From kde-devel Tue Jul 14 13:50:40 2009 From: Thiago Macieira Date: Tue, 14 Jul 2009 13:50:40 +0000 To: kde-devel Subject: Re: KDE4 is a memory hog Message-Id: <200907141550.40584.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=124757966118106 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1774440343==" --===============1774440343== Content-Type: multipart/signed; boundary="nextPart1697720.ob0IbVmKVj"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1697720.ob0IbVmKVj Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Em Ter=E7a-feira 14 Julho 2009, =E0s 09:34:34, Boudewijn Rempt escreveu: > On Tuesday 14 July 2009, Thiago Macieira wrote: > > Christian Weilbach wrote: > > >PLEASE help improve the situation so I can use KDE4 in the future here. > > >Any ideas how to keep the issue focused? > > > > I don't think we'll be able to reduce the memory usage by much. Besides > > the gross problems, we'll probably stay at current levels. > > One thing I noticed when profiling KOffice was that the kconfig seem to > take quite a bit of memory (our biggest leak was pigmentcms, which took > 20mb on startup, according to massif kword now needs 10mb of heap for an > empty document). > > I might be misinterpreting the massif output, but to me it looks as if > kconfig takes about 2-4 mb of those 10mb left. Depends on what it's trying to parse. I've tried massif on Dolphin here and the biggest hogs are the font stuff=20 (freetype, fontconfig and harfbuzz), followed by QIODevice's internal buffe= rs=20 (sockets and kDebug) and painter caches. The largest block (20-25%), however, is from small allocations, between 150= 0=20 and 2000 of them. Those allocations average 1000 to 1200 bytes. Running massif at the standard threshold (1%) will limit the display to=20 allocations over 50 kB or more. You need to run with a lower threshold to s= ee=20 the bunch of small stuff. =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 --nextPart1697720.ob0IbVmKVj 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) iD8DBQBKXI0wM/XwBW70U1gRAiQLAJ0QRdzBfsrgpCrhB5Nb6bP7+jZTKwCfYOlR uQGVpbLgKKczB34eaK6klX0= =CbWl -----END PGP SIGNATURE----- --nextPart1697720.ob0IbVmKVj-- --===============1774440343== 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 << --===============1774440343==--