lkml.org 
[lkml]   [2000]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Endless overcommit memory thread.
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.115 / U:5.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site