[lkml]   [2004]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: oom-killer
    On Wed, Aug 18, 2004 at 09:57:03AM -0400, Gene Heskett wrote:
    >Any ideas?
    > >
    > >Try to disable swap? Tune magic VM settings? Any suggestions are
    > > highly welcome.
    > >
    > >Thank you very much,
    > You may be another candidate for the same thing thats troubleing me.
    > Back up the log above that and look for an Oops and post that please.

    Looking thru the swapfile.c and oom killer code, one thing that is
    making me scratch my head:

    nr_swap_pages is a *signed* integer. This does not make sense. There
    are even tests in swapfile.c that explicitly test "nr_swap_pages <= 0"
    instead of simply "!nr_swap_pages" - this does not make sense at all
    either - or does it?

    Stephen is that your code?

    See, if nr_swap_pages can validly be negative and some meaning is
    attached to that (some meaning other than "we're out of swap"), the
    oom_killer surely misses that, as it tests "nr_swap_pages > 0".

    I don't think that nr_swap_pages can be negative (unless one adds a
    *lot* of swap in which case this will unintentionally happen all by
    itself), but I felt I should chirp in with this comment in case
    someone's looking at it anyway :)


    / jakob

    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 14:05    [W:0.021 / U:6.144 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site