Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1421987
| From | Mel Gorman <mgorman@techsingularity.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 06/27] mm, vmscan: Make kswapd reclaim in terms of nodes |
| Date | 2016-06-14 17:00 +0200 |
| Message-ID | <rJXYS-69X-21@gated-at.bofh.it> (permalink) |
| References | <rJa25-6U7-5@gated-at.bofh.it> <rJa25-6U7-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, Jun 12, 2016 at 05:33:24PM +0800, Hillf Danton wrote: > > - /* > > - * 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), DIV_ROUND_UP( > > - zone->managed_pages, KSWAPD_ZONE_BALANCE_GAP_RATIO)); > > + nr_to_reclaim += max(high_wmark_pages(zone), SWAP_CLUSTER_MAX); > > + } > > Missing sc->nr_to_reclaim = nr_to_reclaim; ? > Yes. It may explain why I saw lower than expected kswapd in more detailed tests recently. Thanks. -- Mel Gorman SUSE Labs
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH 06/27] mm, vmscan: Make kswapd reclaim in terms of nodes "Hillf Danton" <hillf.zj@alibaba-inc.com> - 2016-06-12 11:40 +0200 Re: [PATCH 06/27] mm, vmscan: Make kswapd reclaim in terms of nodes Mel Gorman <mgorman@techsingularity.net> - 2016-06-14 17:00 +0200
csiph-web