From kde-devel Mon Jul 13 21:27:13 2009 From: Thiago Macieira Date: Mon, 13 Jul 2009 21:27:13 +0000 To: kde-devel Subject: Re: KDE4 is a memory hog Message-Id: <200907132327.30258.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=124752059007445 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1094471829==" --===============1094471829== Content-type: multipart/signed; boundary=nextPart1405840.QD9zrcNUug; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit --nextPart1405840.QD9zrcNUug Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=3D102 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=3Dmassif 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= =20 and fix them. Our stacks are far too large. That's easily visible in many applications.=20 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=20 1024 units) The use of MySQL in Amarok and Akonadi increases the memory usage by=20 another 30 MB (just by starting MySQL). The use of the NVidia driver=20 consumes another 10 MB *per* *process*: amarok, plasma, ksmserver, kwin=20 (unless you're using KDE 4.3). There are definitely memory leaks in some places. In other places, we need= =20 profiling to find out why we're wasting so much memory. However, I also know that we are using more memory for caching things,=20 pre-rendered pixmaps for example. We use more memory to make the system=20 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=20 example, right now, Plasma wakes up between 20 and 60 times per second due= =20 to timers. Killing Plasma makes my laptop's power consumption drop by 1 W=20 (extending the battery time from 6 to 7 hours). Keeping desktop effects=20 enabled consumes another 1.6 W and this time I have no explanation (no=20 application wakes up more often). Konqueror also keeps waking up the disk=20 every 2 seconds to save its crash recovery, even when there's no change in= =20 state. So I expect KDE 4 to be larger, use more memory, to be faster and consume=20 less (or the same) power than KDE 3. And, to boot, be more functional and=20 more pleasing to the eye. =2D-=20 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 --nextPart1405840.QD9zrcNUug Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQBKW6axM/XwBW70U1gRAqMjAJ0Swnyu8Eo8WvLUWJNvfePQmsgKUQCgyOH8 eY3KrbXZXTXPYVnKWW1rzhc= =GTv5 -----END PGP SIGNATURE----- --nextPart1405840.QD9zrcNUug-- --===============1094471829== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1094471829==--