[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Special purpose malloc() in KDE?
From: Chris Samuel <chris-kde-devel () old-wyche ! demon ! co ! uk>
Date: 2001-04-01 11:11:40
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hi folks,
I've only just subscribed, so apologies if I'm repeating something that's
already been said.
Reading the KDE-devel KC page I was interested to read about the malloc
problems reported, so I built DL's malloc as a shared library, created
/etc/ld.so.preload and added it into it.
If I've got this right then this procedure may help those who wish to try out
alternative malloc's without having to rebuild KDE.
cc -fPIC -shared -c -o malloc.o malloc.c
ld -shared -o libdlmalloc.so.2.7.0 malloc.o
mv libdlmalloc.so.2.7.0 /lib
[add /lib/libdlmalloc.so.2.7.0 to /etc/ld.so.preload]
ldconfig
I've not really done any real testing yet, but after rebooting (and thus
allowing all processes to pick it up) I *think* I'm seeing a noticeable
reduction in memory usage. Currently hovering around 208Mb used with 2
konsole's, KMail, kppp, Netscape and xosview running on the desktop, and
Squid, Named, Cups and Postfix (amongst others) running underneath.
KDE is 2.1.1 from the Mandrake RPMs, XFree86-4.0.3.
I'm pretty much a novice at this sort of thing, so apologies for any mistakes.
cheers,
Chris
- --
Chris Samuel, Malvern, Worcs, UK. <chris@discordia.ukuu.org.uk>
+++ Divide by Cucumber Error. Please Reinstall Universe and Reboot +++
- Hex
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iQEVAwUBOscM7I1yjaOTJg85AQG4nAgAirMbfmH9uRzf28l19s5lsz/Oh0Z1OhIE
oj6CoMkjItaxREU9qXdOJANWKtz4+36aTFkRGOWzbz9F2YFIJkW1O1dwUHXFjqcq
4YEqSNz4R35DAKR4K2NnHXAt+B9NW02BWqjwXjQePWuCtgp4jSvWC4wbwSxzYuGY
w18f0SAfYTDso4Sa7bPwPsnNLEnR54J+hb7XjmjDZwD/3e015jMuDK7FLf3YXV75
fibT4r9IEcAc1UCiXk+tcTtBr60mB0ZCm+43qd78SkliiRuFOm/awpoaxAM04VRt
DortDsgCeHd0S0XOYaaRLIjmpXQAGslWmQZCwcVgPHwI+uhdsFxGZw==
=Jrt5
-----END PGP SIGNATURE-----
>> Visit http://master.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