LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Ben Webb (ben_at_[hidden])
Date: 2002-09-04 11:23:16


On Wed, Sep 04, 2002 at 08:53:42AM -0700, jeremy archuleta wrote:
> run "top" and see how much memory you have left.
> i have the same problem and found that i am running
> out of memory because somehow very few of my memory
> pages are returning to the memory pool.

        If memory is not being returned after an application has
finished, then there is a bug in your operating system. More likely you
are running out of SysV IPC shared memory; try the "ipcs" command
instead. Many buggy applications fail to clean up shared memory when
they're finished.

> (i am almost positive the leak has to do with Linux because if
> i just boot the comp and run "top" i lose 8K every 3 seconds or so...)

        I find that exceptionally hard to believe unless you are running
a heavily patched, experimental (2.5.x) kernel. If there were such a bug
in the latest 2.2 or 2.4 kernels, somebody would have noticed it by now.
What you are most likely seeing is Linux making efficient use of spare
memory by using it as buffers or cache. You shouldn't ever need to reboot
a Linux system, unless you're changing the kernel or clearing processes
stuck in uninterruptible IO.

        Ben

-- 
ben_at_[hidden]           http://bellatrix.pcl.ox.ac.uk/~ben/
"I think there is a world market for maybe five computers."
	- Thomas Watson, chairman of IBM, 1943
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/