lkml.org 
[lkml]   [2013]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 10/10] mm: vmscan: Move logic from balance_pgdat() to kswapd_shrink_zone()
    On Sun, Mar 17, 2013 at 07:55:54AM -0700, Andi Kleen wrote:
    > Mel Gorman <mgorman@suse.de> writes:
    >
    > > +
    > > + /*
    > > + * We put equal pressure on every zone, unless one zone has way too
    > > + * many pages free already. The "too many pages" is defined as the
    > > + * high wmark plus a "gap" where the gap is either the low
    > > + * watermark or 1% of the zone, whichever is smaller.
    > > + */
    > > + balance_gap = min(low_wmark_pages(zone),
    > > + (zone->managed_pages + KSWAPD_ZONE_BALANCE_GAP_RATIO-1) /
    > > + KSWAPD_ZONE_BALANCE_GAP_RATIO);
    >
    > Don't like those hard coded tunables. 1% of a 512GB node can be still
    > quite a lot. Shouldn't the low watermark be enough?
    >

    1% of 512G would be lot but in that case, it'll use the low watermark as
    the balance gap.

    --
    Mel Gorman
    SUSE Labs


    \
     
     \ /
      Last update: 2013-03-17 16:41    [W:3.253 / U:0.140 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site