lkml.org 
[lkml]   [2009]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Warn when we run out of swap space (was Re: Misleading OOM messages)
    On Fri 2009-05-22 10:17:15, Christoph Lameter wrote:
    >
    > Subject: Warn if we run out of swap space
    >
    > Running out of swap space means that the evicton of anonymous pages may no longer
    > be possible which can lead to OOM conditions.
    >
    > Print a warning when swap space first becomes exhausted.
    >
    > Signed-off-by: Christoph Lameter <cl@linux-foundation.org>

    WARN_ONCE... will it mean a backtrace? That's quite an overkill for
    something that is not a kernel fault (and where backtrace is useless).

    But yes, I agree in principle.
    Pavel

    > @@ -412,6 +412,7 @@ swp_entry_t get_swap_page(void)
    > nr_swap_pages++;
    > noswap:
    > spin_unlock(&swap_lock);
    > + WARN_ONCE(1, "All of swap is in use. Some pages cannot be swapped out.");
    > return (swp_entry_t) {0};
    > }

    --
    (english) http://www.livejournal.com/~pavelmachek
    (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


    \
     
     \ /
      Last update: 2009-05-22 16:59    [W:0.053 / U:181.728 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site