lkml.org 
[lkml]   [2004]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: lowmem_reserve (replaces protection)
    Andrea Arcangeli <andrea@novell.com> wrote:
    >
    > So after allocating the highmem pages we invoke kswapd
    > again

    Nope. We don't wake kswapd until the lower zones are below pages_low as
    well. Then we rebalance all the zones which are below pages_high.

    As I say: run a workload mix and monitor /proc/vmstat:

    pgscan_kswapd_high
    pgscan_kswapd_normal
    pgscan_kswapd_dma

    These should be increasing at rates which are proportional to their size,
    if most allocations have __GFP_HIGHMEM.

    The lower-zone protection thing means that the scanning rate really should
    be proportional to (zone size - (protection from __GFP_HIGHMEM
    allocations)), but it's not too far off at present.

    The balancing of the zone scanning rates is subtle and easy to break. As is
    the balancing of that against slab scanning.
    -
    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 14:07    [W:0.019 / U:0.776 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site