Re: Avoiding OOM on overcommit...?

From: Rik van Riel (riel@conectiva.com.br)
Date: Fri Mar 31 2000 - 11:00:03 EST


On Fri, 31 Mar 2000, Marco Colombo wrote:

> On the other side, you know most of the processes you're going to run
> have a large address spaces but a small working-sets. Here your VM is
> mostly swap, so suppose you have 64MB of RAM and 256MB of swap.
> On sych a system, RAM is used always as a kind of cache, for process pages.
> (Of course, it's used as a cache for FS blocks, too).
> If you let processes allocate more that 256MB of VM, you're reducing
> the cache size, and effectiveness. On such a system it makes sense
> NOT to include RAM in the VM counts (just like you don't include RAM
> in counts for available disk space...).

Indeed. We _need_ memory for the kernel and for caching of
executables. Maybe we should reserve something like
min(ram_size / 2, swap_size / 2) for kernel memory and
cache...

regards,

Rik

--
The Internet is not a network of computers. It is a network
of people. That is its real strength.

Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies http://www.conectiva.com/ http://www.surriel.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:29 EST