[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KDE4 is a memory hog
From:       Christian Weilbach <christian_weilbach () web ! de>
Date:       2009-07-14 0:01:37
Message-ID: 200907140201.37722.christian_weilbach () web ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Am Montag, 13. Juli 2009 schrieb Thiago Macieira:
> Andreas Pakulat wrote:
> >On 13.07.09 10:26:34, Christian Weilbach wrote:
> >> Hi,
> >>
> >> As I have blogged before here: http://whilos.blogsite.org/?p=102 I
> >> have certain problems about KDE4's increased memory requirements and I
> >> am not alone.
> >> Forgive me the length of the mail, but I have already tried to
> >> convince people that this is a serious issue and have failed in the
> >> past, so I have really tried to get proving information together and
> >> am looking forward to your help.
> >
> >Sorry to say that but those numbers don't help at all. All you're seeing
> >there is that $someapp uses a certain amount of memory. Where that
> >memory is used and wether it could possibly be reduced needs a bit more
> >work, in particular profiling the app(s) in question. So run the worst
> >memory hogs with valgrind --tool=massif and post the results on the
> >relevant developer lists.
>
> I think the numbers do help. They do prove that we need to profile our apps
> and fix them.
>
> Our stacks are far too large. That's easily visible in many applications.
> Here's an excerpt from /proc/`pidof plasma-desktop`/smaps:
>
> 096d8000-168ad000 rw-p 096d8000 00:00 0          [heap]
> Size:             214868 kB
> Rss:              214576 kB
> Pss:              214576 kB
>
> Can anyone tell me why Plasma needed to allocate 209.8 MB of RAM? (binary
> 1024 units)
>
> The use of MySQL in Amarok and Akonadi increases the memory usage by
> another 30 MB (just by starting MySQL). The use of the NVidia driver
> consumes another 10 MB *per* *process*: amarok, plasma, ksmserver, kwin
> (unless you're using KDE 4.3).
>
> There are definitely memory leaks in some places. In other places, we need
> profiling to find out why we're wasting so much memory.
>
> However, I also know that we are using more memory for caching things,
> pre-rendered pixmaps for example. We use more memory to make the system
> faster. So I don't expect KDE 4 to reach KDE 3 levels again.
>
> No. I expect KDE 4 to excel in other areas, like battery time. For
> example, right now, Plasma wakes up between 20 and 60 times per second due
> to timers. Killing Plasma makes my laptop's power consumption drop by 1 W
> (extending the battery time from 6 to 7 hours). Keeping desktop effects
> enabled consumes another 1.6 W and this time I have no explanation (no
> application wakes up more often). Konqueror also keeps waking up the disk
> every 2 seconds to save its crash recovery, even when there's no change in
> state.
>
> So I expect KDE 4 to be larger, use more memory, to be faster and consume
> less (or the same) power than KDE 3. And, to boot, be more functional and
> more pleasing to the eye.

Thx Thiago, that is exactly what I wanted to point out. The problem is not my 
personal one, but the numbers show that it is a general problem and the 
problem exists inside KDE4. And this is not fixable by me nor by a one man 
effort elsewhere either imo.
PLEASE help improve the situation so I can use KDE4 in the future here.
Any ideas how to keep the issue focused?

Cheers,
whilo

-- 
My blog: http://whilos.blogsite.org

No brain - no headache!

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta \
name="qrichtext" content="1" /><style type="text/css">p, li { white-space: \
pre-wrap; }</style></head><body style=" font-family:'FreeSans'; \
font-size:11pt; font-weight:400; font-style:normal;">Am Montag, 13. Juli \
2009 schrieb Thiago Macieira:<br> &gt; Andreas Pakulat wrote:<br>
&gt; &gt;On 13.07.09 10:26:34, Christian Weilbach wrote:<br>
&gt; &gt;&gt; Hi,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; As I have blogged before here: \
http://whilos.blogsite.org/?p=102 I<br> &gt; &gt;&gt; have certain problems \
about KDE4's increased memory requirements and I<br> &gt; &gt;&gt; am not \
alone.<br> &gt; &gt;&gt; Forgive me the length of the mail, but I have \
already tried to<br> &gt; &gt;&gt; convince people that this is a serious \
issue and have failed in the<br> &gt; &gt;&gt; past, so I have really tried \
to get proving information together and<br> &gt; &gt;&gt; am looking \
forward to your help.<br> &gt; &gt;<br>
&gt; &gt;Sorry to say that but those numbers don't help at all. All you're \
seeing<br> &gt; &gt;there is that $someapp uses a certain amount of memory. \
Where that<br> &gt; &gt;memory is used and wether it could possibly be \
reduced needs a bit more<br> &gt; &gt;work, in particular profiling the \
app(s) in question. So run the worst<br> &gt; &gt;memory hogs with valgrind \
--tool=massif and post the results on the<br> &gt; &gt;relevant developer \
lists.<br> &gt;<br>
&gt; I think the numbers do help. They do prove that we need to profile our \
apps<br> &gt; and fix them.<br>
&gt;<br>
&gt; Our stacks are far too large. That's easily visible in many \
applications.<br> &gt; Here's an excerpt from /proc/`pidof \
plasma-desktop`/smaps:<br> &gt;<br>
&gt; 096d8000-168ad000 rw-p 096d8000 00:00 0          [heap]<br>
&gt; Size:             214868 kB<br>
&gt; Rss:              214576 kB<br>
&gt; Pss:              214576 kB<br>
&gt;<br>
&gt; Can anyone tell me why Plasma needed to allocate 209.8 MB of RAM? \
(binary<br> &gt; 1024 units)<br>
&gt;<br>
&gt; The use of MySQL in Amarok and Akonadi increases the memory usage \
by<br> &gt; another 30 MB (just by starting MySQL). The use of the NVidia \
driver<br> &gt; consumes another 10 MB *per* *process*: amarok, plasma, \
ksmserver, kwin<br> &gt; (unless you're using KDE 4.3).<br>
&gt;<br>
&gt; There are definitely memory leaks in some places. In other places, we \
need<br> &gt; profiling to find out why we're wasting so much memory.<br>
&gt;<br>
&gt; However, I also know that we are using more memory for caching \
things,<br> &gt; pre-rendered pixmaps for example. We use more memory to \
make the system<br> &gt; faster. So I don't expect KDE 4 to reach KDE 3 \
levels again.<br> &gt;<br>
&gt; No. I expect KDE 4 to excel in other areas, like battery time. For<br>
&gt; example, right now, Plasma wakes up between 20 and 60 times per second \
due<br> &gt; to timers. Killing Plasma makes my laptop's power consumption \
drop by 1 W<br> &gt; (extending the battery time from 6 to 7 hours). \
Keeping desktop effects<br> &gt; enabled consumes another 1.6 W and this \
time I have no explanation (no<br> &gt; application wakes up more often). \
Konqueror also keeps waking up the disk<br> &gt; every 2 seconds to save \
its crash recovery, even when there's no change in<br> &gt; state.<br>
&gt;<br>
&gt; So I expect KDE 4 to be larger, use more memory, to be faster and \
consume<br> &gt; less (or the same) power than KDE 3. And, to boot, be more \
functional and<br> &gt; more pleasing to the eye.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>Thx Thiago, that is exactly what I wanted to \
point out. The problem is not my personal one, but the numbers show that it \
is a general problem and the problem exists inside KDE4. And this is not \
fixable by me nor by a one man effort elsewhere either imo.<br> PLEASE help \
improve the situation so I can use KDE4 in the future here.<br> Any ideas \
how to keep the issue focused?<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Cheers,<br> \
whilo<br> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br></p>-- <br> My blog: \
http://whilos.blogsite.org<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>No brain - \
no headache!</p></body></html>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic