Re: Avoiding OOM on overcommit...?

From: Khimenko Victor (khim@sch57.msk.ru)
Date: Mon Mar 27 2000 - 09:39:56 EST


In <38DE99F6.AC0BFFD0@sgi.com> Linda Walsh (law@sgi.com) wrote:
> David Whysong wrote:
>> If you run out of a resource, the system should not crash. The kernel just
>> has to free up the resource. A convenient way of doing that is to kill a
>> user process.
> ---
> Then you have violated the integrity of the user-process space.
> Tell me, which processes are killed when the system runs out file descriptors?

One who request additional file desriptor if there are none usually will die.

> How about processes?

The same.

> Disk space?

If process will write to middle of file with holes it'll be killed. JUST like
with memory.

> Why are you treating memory differently?

Since OOM happens MUCH more frequently then "no file descriptors" or "no more
processes" problem. You can extend number of filedescriptors with just `echo'
command. You can not add memory with such easy.

-
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:19 EST