lkml.org 
[lkml]   [2002]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] strict VM overcommit
    From
    Date
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:27    [W:0.024 / U:2.752 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site