On Tue, Mar 08, 2005 at 02:24:07PM -0400, bulia byak wrote:
On Tue, 8 Mar 2005 13:16:32 -0500, mental@...3... <mental@...3...> wrote:
Why is memory usage increased, compared to loading a lib?
It doesn't increase the memory usage so much as reduce the number of pages that can be shared between processes.
Just to be explicit: this means that using our own copy of libcroco (rather than linking against the system-installed one) increases memory usage when and only when there are other processes running that are linked against the system libcroco.
librsvg can optionally be built linked against libcroco. At least Fedora and Debian do so; I'd guess that most distributions do.
nautilus in turn links against librsvg, which I think means that ~all gnome users will already have libcroco in memory: I think nautilus provides the desktop icons.
To see if libcroco is in memory right now on your system, try ldd /proc/[1-9]*/exe 2>/dev/null | grep croco (Do it as root if you have gdm or if there are X sessions running under more than one user.)
pjrm.