lkml.org 
[lkml]   [2017]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] mm: vmscan: fix IO/refault regression in cache workingset transition
From
Date
On Tue, 2017-04-04 at 18:00 -0400, Johannes Weiner wrote:

> +
> + /*
> +  * When refaults are being observed, it means a new
> workingset
> +  * is being established. Disable active list protection to
> get
> +  * rid of the stale workingset quickly.
> +  */

This looks a little aggressive. What is this
expected to do when you have multiple workloads
sharing the same LRU, and one of the workloads
is doing refaults, while the other workload is
continuing to use the same working set as before?

I have been trying to wrap my mind around that for
the past day or so, and figure I should just ask
the question :)

> + if (file && actual_reclaim && lruvec->refaults != refaults)
> {
> + inactive_ratio = 0;
> + } else {
> + gb = (inactive + active) >> (30 - PAGE_SHIFT);
> + if (gb)
> + inactive_ratio = int_sqrt(10 * gb);
> + else
> + inactive_ratio = 1;
> + }

--
All rights reversed
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2017-04-06 00:11    [W:0.066 / U:0.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site