From kde-devel Tue Jul 14 13:58:48 2009 From: Thiago Macieira Date: Tue, 14 Jul 2009 13:58:48 +0000 To: kde-devel Subject: Re: KDE4 is a memory hog Message-Id: <200907141558.48713.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=124758022019156 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1481997618==" --===============1481997618== Content-Type: multipart/signed; boundary="nextPart6877951.2THAo6t5Es"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart6877951.2THAo6t5Es Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Em Ter=C3=A7a-feira 14 Julho 2009, =C3=A0s 10:40:11, Ferdinand Gassauer esc= reveu: > On Monday 13 July 2009 23:27:13 Thiago Macieira wrote: > > 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). > > I just uninstalled the nvidia driver .... - seems that memory consumption > decreases and preceived speed increases significantly (due to no more > swaping) Swapping shouldn't be an issue, but memory consumption definitely. =46irst of all, don't use the NVidia driver with KDE 4.2. Use 4.3, since it= =20 includes Lubo=C5=A1's fix to share it. (so instead of having 3 or 4 applica= tions=20 with libGL.so loaded, we have ALL KDE applications doing that, but sharing = it) Second, I think that the most memory used by X and by kwin is due to pixmap= =20 caching. Then remember Qt applications do double-buffering too, which leads= to=20 triple buffering of everything. There was even a bug in Oxygen that caused = KWin=20 to enable double-buffering of its own, which would lead to quadruple-buffer= ing,=20 but I think that has been fixed for a year. If you run xrestop, you'll see the number of pixmaps in use. Up until last= =20 week, plasma would leak a lot of pixmaps. KWin too, until this weekend in=20 trunk. Those leakages cause the process memory space to grow as well as X's= =20 own. Since Plasma and KWin were fixed, the biggest aggressors for me are Kontact= =20 (mostly Akregator, which btw can't do KIO correctly, launching a hundred=20 kio_http) and Skype. Now, we can't fix Skype unless it's a leak inside Qt, = but=20 Kontact we can. res-base Wins GCs Fnts Pxms Misc Pxm mem Other Total PID Identifier 4200000 45 39 0 2569 2677 42744K 64K 42809K 30060 skype 4c00000 29 9 0 614 852 8877K 20K 8898K 23117 E-mail -= =20 Kontact (this kontact is not running akregator; if I run it, it eventually exhausts= =20 the X pixmap memory) In my current setup, X is holding 128 MB of pixmaps. So no wonder: =46 UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMM= AND 4 0 7760 5810 20 0 524676 184420 poll_s Ss+ tty7 571:56=20 /etc/X11/X =2D-=20 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Senior Product Manager - Nokia, Qt Software PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 --nextPart6877951.2THAo6t5Es 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) iD8DBQBKXI8YM/XwBW70U1gRAnWMAKCZQV/jML5c06cgtW2UCq79LAROigCeOmFr xtwvUZFarPSFLXubM3zLqcE= =HAs0 -----END PGP SIGNATURE----- --nextPart6877951.2THAo6t5Es-- --===============1481997618== 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 << --===============1481997618==--