Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1567264
| From | Mel Gorman <mgorman@suse.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/5] mm: vmscan: only write dirty pages that the scanner has seen twice |
| Date | 2017-01-26 11:10 +0100 |
| Message-ID | <t3Paa-61W-19@gated-at.bofh.it> (permalink) |
| References | <t2RnI-1o4-13@gated-at.bofh.it> <t2RnI-1o4-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Jan 23, 2017 at 01:16:40PM -0500, Johannes Weiner wrote: > Dirty pages can easily reach the end of the LRU while there are still > clean pages to reclaim around. Don't let kswapd write them back just > because there are a lot of them. It costs more CPU to find the clean > pages, but that's almost certainly better than to disrupt writeback > from the flushers with LRU-order single-page writes from reclaim. And > the flushers have been woken up by that point, so we spend IO capacity > on flushing and CPU capacity on finding the clean cache. > > Only start writing dirty pages if they have cycled around the LRU > twice now and STILL haven't been queued on the IO device. It's > possible that the dirty pages are so sparsely distributed across > different bdis, inodes, memory cgroups, that the flushers take forever > to get to the ones we want reclaimed. Once we see them twice on the > LRU, we know that's the quicker way to find them, so do LRU writeback. > > Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Mel Gorman <mgorman@suse.de> -- Mel Gorman SUSE Labs
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 4/5] mm: vmscan: only write dirty pages that the scanner has seen twice Johannes Weiner <hannes@cmpxchg.org> - 2017-01-23 19:20 +0100 Re: [PATCH 4/5] mm: vmscan: only write dirty pages that the scanner has seen twice Minchan Kim <minchan@kernel.org> - 2017-01-26 02:50 +0100 Re: [PATCH 4/5] mm: vmscan: only write dirty pages that the scanner has seen twice Mel Gorman <mgorman@suse.de> - 2017-01-26 11:10 +0100 Re: [PATCH 4/5] mm: vmscan: only write dirty pages that the scanner has seen twice Michal Hocko <mhocko@kernel.org> - 2017-01-26 14:40 +0100
csiph-web