Profile

unixronin: Galen the technomage, from Babylon 5: Crusade (Default)
Unixronin

December 2012

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Expand Cut Tags

No cut tags
Thursday, December 2nd, 2004 01:24 am

I appear to have just confirmed I have a kernel memory leak on this machine.

Before reboot:  496M of physical RAM out of 512M in use for processes, 300M of swap out of 512M used, total of around 850M of RAM usage and only 50M of it buffers and cache.  After reboot:  295M of physical RAM used for processes, 210M used for buffers and cache, zero swap used.  Same processes running, same number of browser windows open to the same pages, same four processes are the top memory users, they're still the only ones using over 1M of RAM, and they're using about the same amount as they were before rebooting.

So somewhere, the kernel had leaked half a gig of RAM....

Thursday, December 2nd, 2004 07:32 pm (UTC)
Mmm, point, there is that possibility. I hadn't considered that. In that case the memory would be freed when the last application using that library is closed, right?

And yeah, one would hope there were not bad memory leaks all over, but it wouldn't be the first time the Linux kernel has had a memory leak.
Then again, I DID have to update some Gnome2 libraries a while back to support the latest Firefox releases, and I cannot honestly claim Gnome is my favorite piece of software. So you might well be onto something there.

Any diagnostic suggestions for library leaks?

(Frankly, this whole box is overdue for a total OS reinstall with a more current version. I suspect that'll clean up a LOT of assorted cruft.)
Friday, December 3rd, 2004 01:50 am (UTC)
Sorry if I pissed you off.

Your best bet to rule the kernel out is going to be dropping to single user mode.

You might even do a full lsof before/after and compare those if you want more detail.

It could be a kernel module, but even that isn't nearly as likely as having a problem in something else.
Friday, December 3rd, 2004 08:06 am (UTC)
Yeah, sorry I went off on you a bit. But frankly, I found it insulting that you assumed that I hadn't done even trivial troubleshooting of userspace apps as obvious as a web browser simply because I hadn't posted my full troubleshooting process.