Re: Endless overcommit memory thread.

From: Ragnar Kjørstad (kernel@ragnark.vestdata.no)
Date: Fri Mar 24 2000 - 19:33:46 EST


On Fri, Mar 24, 2000 at 11:22:40PM +0000, Mark Zealey wrote:
> > If an application allocates a large amount of memory and then
> > does not use it, is the app not broken as designed? I say FIX
> > THE APPLICATION!
>
> What about malicious users, viruses etc... I don't think that it's right
> to have a badly designed program bring down the entire system.

That's not what he suggested. He suggested that malloc should fail if
there is not enough memory/swap.

To me it sounds like a good idea. An important process (like syslog) can make
sure it will not be killed by just mallocing the memory it needs on
startup.

--
Ragnar Kjørstad

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