Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1567429
| From | Michal Hocko <mhocko@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/5] mm: vmscan: remove old flusher wakeup from direct reclaim path |
| Date | 2017-01-26 14:30 +0100 |
| Message-ID | <t3ShI-7Vm-25@gated-at.bofh.it> (permalink) |
| References | <t2RnI-1o4-13@gated-at.bofh.it> <t2RnJ-1o4-37@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon 23-01-17 13:16:39, Johannes Weiner wrote:
> Direct reclaim has been replaced by kswapd reclaim in pretty much all
> common memory pressure situations, so this code most likely doesn't
> accomplish the described effect anymore. The previous patch wakes up
> flushers for all reclaimers when we encounter dirty pages at the tail
> end of the LRU. Remove the crufty old direct reclaim invocation.
>
> Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.com>
> ---
> mm/vmscan.c | 17 -----------------
> 1 file changed, 17 deletions(-)
>
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index 56ea8d24041f..915fc658de41 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -2757,8 +2757,6 @@ static unsigned long do_try_to_free_pages(struct zonelist *zonelist,
> struct scan_control *sc)
> {
> int initial_priority = sc->priority;
> - unsigned long total_scanned = 0;
> - unsigned long writeback_threshold;
> retry:
> delayacct_freepages_start();
>
> @@ -2771,7 +2769,6 @@ static unsigned long do_try_to_free_pages(struct zonelist *zonelist,
> sc->nr_scanned = 0;
> shrink_zones(zonelist, sc);
>
> - total_scanned += sc->nr_scanned;
> if (sc->nr_reclaimed >= sc->nr_to_reclaim)
> break;
>
> @@ -2784,20 +2781,6 @@ static unsigned long do_try_to_free_pages(struct zonelist *zonelist,
> */
> if (sc->priority < DEF_PRIORITY - 2)
> sc->may_writepage = 1;
> -
> - /*
> - * Try to write back as many pages as we just scanned. This
> - * tends to cause slow streaming writers to write data to the
> - * disk smoothly, at the dirtying rate, which is nice. But
> - * that's undesirable in laptop mode, where we *want* lumpy
> - * writeout. So in laptop mode, write out the whole world.
> - */
> - writeback_threshold = sc->nr_to_reclaim + sc->nr_to_reclaim / 2;
> - if (total_scanned > writeback_threshold) {
> - wakeup_flusher_threads(laptop_mode ? 0 : total_scanned,
> - WB_REASON_VMSCAN);
> - sc->may_writepage = 1;
> - }
> } while (--sc->priority >= 0);
>
> delayacct_freepages_end();
> --
> 2.11.0
>
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org. For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
--
Michal Hocko
SUSE Labs
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 3/5] mm: vmscan: remove old flusher wakeup from direct reclaim path Johannes Weiner <hannes@cmpxchg.org> - 2017-01-23 19:20 +0100
Re: [PATCH 3/5] mm: vmscan: remove old flusher wakeup from direct reclaim path Minchan Kim <minchan@kernel.org> - 2017-01-26 02:40 +0100
Re: [PATCH 3/5] mm: vmscan: remove old flusher wakeup from direct reclaim path Mel Gorman <mgorman@suse.de> - 2017-01-26 11:10 +0100
Re: [PATCH 3/5] mm: vmscan: remove old flusher wakeup from direct reclaim path Johannes Weiner <hannes@cmpxchg.org> - 2017-01-26 20:00 +0100
Re: [PATCH 3/5] mm: vmscan: remove old flusher wakeup from direct reclaim path Mel Gorman <mgorman@suse.de> - 2017-01-26 21:50 +0100
Re: [PATCH 3/5] mm: vmscan: remove old flusher wakeup from direct reclaim path Michal Hocko <mhocko@kernel.org> - 2017-01-27 13:10 +0100
Re: [PATCH 3/5] mm: vmscan: remove old flusher wakeup from direct reclaim path Mel Gorman <mgorman@suse.de> - 2017-01-27 15:50 +0100
Re: [PATCH 3/5] mm: vmscan: remove old flusher wakeup from direct reclaim path Michal Hocko <mhocko@kernel.org> - 2017-01-26 14:30 +0100
csiph-web