lkml.org 
[lkml]   [2000]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Some questions about linux kernel.
Date
From
orc@pell.portland.or.us (david parsons) said:
> In article <linux.kernel.Pine.LNX.4.10.10003171319000.3718-100000@dax.joh.cam.ac.uk>,
> James Sutherland <jas88@cam.ac.uk> wrote:

[...]

> >In fact, it makes the problem worse.
>
> If the problem is an intruder on your system who is attempting a
> deliberate denial of service attack, maybe. If the problem is a
> program allocating more memory than there is in the system and
> making a different program die because of the overcommit,
> non-overcommit is the best solution to this feature.

If one program allocates just shy of what is available, it will succeed.
The next one the can't get the memory it needs and crashes. Exactly as in
the overcommiting case: Innocent bystanders get shot, just earlier (or even
much earlier) if you don't overcommit. And with a clean bullet through the
head (malloc(3), or fork(2), fails), not by a random shot at the body
(SIGSEGV when accessing memory that "should be there"). End result is the
same.
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513

-
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.069 / U:0.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site