[lkml]   [2002]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] strict VM overcommit
On Thu, 2002-07-18 at 15:08, Adrian Bunk wrote:

> Out of interest:
> How is assured that it's impossible to OOM when the amount of memory
> shrinks?
> IOW:
> - allocate very much memory
> - "swapoff -a"

Well, seriously: don't do that.

But `swapoff' will not succeed if there is not enough swap or physical
memory to move the pages to... if it does succeed, then there is enough
storage elsewhere. At that point, you are not OOM but you may now have
more address space allocated than the strict accounting would typically
allow - thus no allocations will succeed so you should not be able to

Robert Love

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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