lkml.org 
[lkml]   [1999]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [test program] for OOM situations
    Hi,

    On Fri, 9 Jul 1999 20:34:23 +0200 (MEST), Bernd Kaindl <bk@suse.de>
    said:

    >> - nr_good_pages = swap_header->info.last_page - i;
    >> + nr_good_pages = swap_header->info.last_page -
    >> + swap_header->info.nr_badpages -
    >> + 1 /* header page */;

    No, this needs to be "... - i - 1", or we'll still overestimate the free
    swap pages if the swap device has any bad pages marked.

    --Stephen

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

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