Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1618189

Re: [PATCH] mm: vmscan: fix IO/refault regression in cache workingset transition

From Rik van Riel <riel@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH] mm: vmscan: fix IO/refault regression in cache workingset transition
Date 2017-04-06 19:00 +0200
Message-ID <ttiVj-3pQ-9@gated-at.bofh.it> (permalink)
References <tsEOd-2oP-11@gated-at.bofh.it> <tt1rr-8o8-9@gated-at.bofh.it> <ttgTw-1Cx-39@gated-at.bofh.it>
Organization Red Hat, Inc

Show all headers | View raw


On Thu, 2017-04-06 at 10:49 -0400, Johannes Weiner wrote:
> On Wed, Apr 05, 2017 at 06:11:04PM -0400, Rik van Riel wrote:
> > 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?
> 
> That win was intriguing, but it would be bad if it came out of the
> budget of truly shared LRUs (for which I have no quantification).
> 
> Since this is a regression fix, it would be fair to be conservative
> and use the 50/50 split for transitions here; keep the more adaptive
> behavior for a future optimization.
> 
> What do you think?

Lets try your patch, and see what happens.
After all, it only affects the file cache,
and does not lead to anonymous pages being
swapped out and causing major pain.

A fast workload transition seems like it
could be in everybody's best interest.

If this approach leads to trouble, we can
always try to soften it later.

One potential way of softening would be to
look at the number of refaults, vs the
number of working set re-confirmations, and
determine a target based on that.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] mm: vmscan: fix IO/refault regression in cache workingset transition Johannes Weiner <hannes@cmpxchg.org> - 2017-04-05 00:10 +0200
  Re: [PATCH] mm: vmscan: fix IO/refault regression in cache  workingset transition Rik van Riel <riel@redhat.com> - 2017-04-06 00:20 +0200
    Re: [PATCH] mm: vmscan: fix IO/refault regression in cache  workingset transition Johannes Weiner <hannes@cmpxchg.org> - 2017-04-06 16:50 +0200
      Re: [PATCH] mm: vmscan: fix IO/refault regression in cache  workingset transition Rik van Riel <riel@redhat.com> - 2017-04-06 19:00 +0200

csiph-web