Re: [PATCH] strict VM overcommit

Robert Love (rml@tech9.net)
18 Jul 2002 15:27:26 -0700


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
OOM.

Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/