Messages in this thread Patch in this message | | | Date | Thu, 21 Feb 2013 20:07:03 +0800 | Subject | Re: kswapd craziness round 2 | From | Hillf Danton <> |
| |
On Thu, Feb 21, 2013 at 6:14 AM, Jiri Slaby <jslaby@suse.cz> wrote: >> >> Does Ingo's revert help? https://lkml.org/lkml/2013/2/15/168 > > Not at all... > Then mind taking a try?
--- a/mm/vmscan.c Thu Feb 21 20:01:02 2013 +++ b/mm/vmscan.c Thu Feb 21 20:05:58 2013 @@ -1715,7 +1715,7 @@ static void get_scan_count(struct lruvec * to swap. Better start now and leave the - probably heavily * thrashing - remaining file pages alone. */ - if (global_reclaim(sc)) { + if (global_reclaim(sc) && sc->priority >= DEF_PRIORITY - 2) { free = zone_page_state(zone, NR_FREE_PAGES); if (unlikely(file + free <= high_wmark_pages(zone))) { scan_balance = SCAN_ANON; @@ -2840,9 +2840,10 @@ out: * reclaim if they wish. */ if (sc.nr_reclaimed < SWAP_CLUSTER_MAX) - order = sc.order = 0; - - goto loop_again; + if (order != 0) { + sc.order = order = 0; + goto loop_again; + } }
/* --
| |