linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andriy Tkachuk <andriy.tkachuk@seagate.com>
To: Minchan Kim <minchan@kernel.org>
Cc: linux-kernel@vger.kernel.org, Mel Gorman <mgorman@suse.de>
Subject: Re: mm: kswapd struggles reclaiming the pages on 64GB server
Date: Mon, 22 Aug 2016 19:10:24 +0100	[thread overview]
Message-ID: <CAK-uSPqbQ7jM=4oz=mzz4UkZKrFyhm2+X9552Cxz2Aj1Aj=aZQ@mail.gmail.com> (raw)
In-Reply-To: <20160818140513.GA2453@blaptop>

Hi Minchan,

That's an interesting idea. Although the counters contradicts the theory:

proc-vmstat-0616-160535.txt nr_active_file 44616
proc-vmstat-0616-160545.txt nr_active_file 43471
proc-vmstat-0616-160555.txt nr_active_file 44477
proc-vmstat-0616-160535.txt nr_inactive_file 55534
proc-vmstat-0616-160545.txt nr_inactive_file 35602
proc-vmstat-0616-160555.txt nr_inactive_file 36108
proc-vmstat-0616-160535.txt pgscan_kswapd_normal 111985367420
proc-vmstat-0616-160545.txt pgscan_kswapd_normal 111996845554
proc-vmstat-0616-160555.txt pgscan_kswapd_normal 112028276639
proc-vmstat-0616-160535.txt pgsteal_kswapd_normal 53817848
proc-vmstat-0616-160545.txt pgsteal_kswapd_normal 53818626
proc-vmstat-0616-160555.txt pgsteal_kswapd_normal 53818637

Anyway, I will give it a try if inactive_ratio=1 (which I'm currently
testing) won't help.

Thank you,
  Andriy

On Thu, Aug 18, 2016 at 3:05 PM, Minchan Kim <minchan@kernel.org> wrote:
>
> Currently, VM never reclaims anonymous pages if the number of inactive
> file LRU is greater than one of actice file LRU. Even, it makes
> user tune of vm.swappiness void.
>
> Could you rebuild your kernel? I want to see what happens if we
> remove below part from get_scan_count.
>
> http://lxr.free-electrons.com/source/mm/vmscan.c?v=3.10#L1728
>
> 1727         /*
> 1728          * There is enough inactive page cache, do not reclaim
> 1729          * anything from the anonymous working set right now.
> 1730          */
> 1731         if (!inactive_file_is_low(lruvec)) {
> 1732                 scan_balance = SCAN_FILE;
> 1733                 goto out;
> 1734         }
>
> Thanks.

  parent reply	other threads:[~2016-08-22 18:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-12 20:52 mm: kswapd struggles reclaiming the pages on 64GB server Andriy Tkachuk
2016-08-17 11:43 ` Michal Hocko
2016-08-22 18:16   ` Andriy Tkachuk
     [not found] ` <20160818140513.GA2453@blaptop>
2016-08-18 17:43   ` Andriy Tkachuk
2016-08-22 18:10   ` Andriy Tkachuk [this message]
2016-08-22 18:37 ` Andriy Tkachuk
2016-08-22 22:46   ` Andriy Tkachuk
2016-08-23 15:14     ` Andriy Tkachuk
2016-08-31 13:27       ` Andriy Tkachuk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK-uSPqbQ7jM=4oz=mzz4UkZKrFyhm2+X9552Cxz2Aj1Aj=aZQ@mail.gmail.com' \
    --to=andriy.tkachuk@seagate.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=minchan@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).