lkml.org 
[lkml]   [1999]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] ipc updates
On Sun, Nov 07, 1999 at 07:20:08PM +0100, Manfred Spraul wrote:
> Andi Kleen wrote:
> >
> > As far as I can see it still has the resource race (resources are charged
> > after sleeping without rechecking, so there is a window where the user is
> > able to overcommit). Here is for reference my 2.2 patch that fixes the
> > problem and Scott Maxwell's DoS.
> >
>
> I think my patch solves both problems:
> * the overcommit race does not exist: the code never sleeps between
> checking for free queue space and increasing q_cbytes.

Yes, sorry, seems I misread your new code.


> I reuse the number of bytes in the queue. This allows the user to
> overcommit by ~ 3%, IMHO that's acceptable.
> (16384 one byte messages eat ~ 512 kB kernel memory, 2 8 Kb message +
> 16382 0 byte messages around 528 kB)
>

That's a lot. Hopefully Linux will have the beancounter patches someday.



-Andi

-
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:54    [W:0.042 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site