Home

August 1st, 2004

11:41 am
Learn about Memory Usage, Please!

Erich thinks Evolution is hogging memory, it isn't!

Most of that 80MB of memory eds is using is shared between the various processes. On my machine it's actually using around 1MB of memory and that's with quite a large calendar loaded into it.

The alarm notifier is using 68MB? On my machine it's only actually using about 850KB.

These two could probably be shrunk a little by more efficient structure layout and perhaps a little fine-tweaking of what memory is allocated and what is shared.

Out of the rest of the memory you think Evolution is using, the largest chunk is actually libc6 and the locale archive, that's a block of memory shared by nearly every single process.

Next you'll be going on a crusade why X needs over 128MB of memory ... when the largest chunk of that is just your video card memory mapped directly into its address space.

05:01 pm
Memory again...

Uh, Erich, if eds loads every shared library and takes 80MB ... then the amount of memory you need for every other app is also 80MB, not 512MB.

79MB of that is shared with every other application loading the shared library, they all use the same copy.

Actually, the largest load time isn't anything to do with the size of the libraries, it's the symbolic relocation that needs to be performed -- this won't be any faster having loaded eds first.

GNOME do have a relatively slack attitude to memory management, but then memory *is* cheap these days. But you're vastly exaggerating it.

The GNOME footprint is 80MB, not 512MB. That's 432MB left for all your heap requirements, more than enough. In fact, on this GNOME-running machine with evolution, mozilla, xchat, gaim, etc. all running -- there's enough free memory that 280MB is being used for the page cache!