lkml.org 
[lkml]   [2000]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Overcommitable memory??
Date
From
David Whysong <dwhysong@physics.ucsb.edu> said:

[...]

> Preventing system OOM using resource limits is equivalent to disabling
> overcommit. You have to restrict each of N users to 1/N of the total
> system memory.

So you have 500 accounts, each one gets to use 1/500th of the (be very
generous!) 2Gb VM. What if a batch of 50 new accounts shows up? Everybody
gets the quota cut down 10%?

There are usually 10 active accounts, each one gets 200Mb. What if the 11th
logs in? Start killing off processes of the people that were using exactly
their share of the memory ATM?

Resource limits per user are orthogonal to overcommit. You could very well
limit Jane Random User to 300Mb, as long as the system is able to provide
it. You can overcommit or not, but in no case can Jane use more than her
limit.
--
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.298 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site