Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1415517
| From | Johannes Weiner <hannes@cmpxchg.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation |
| Date | 2016-06-07 00:20 +0200 |
| Message-ID | <rHb2h-2sU-13@gated-at.bofh.it> (permalink) |
| References | <rH8QO-Oc-9@gated-at.bofh.it> <rH8QO-Oc-33@gated-at.bofh.it> <rHaIW-25i-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Jun 06, 2016 at 05:56:09PM -0400, Rik van Riel wrote:
> On Mon, 2016-06-06 at 15:48 -0400, Johannes Weiner wrote:
> >
> > +void lru_cache_putback(struct page *page)
> > +{
> > + struct pagevec *pvec = &get_cpu_var(lru_putback_pvec);
> > +
> > + get_page(page);
> > + if (!pagevec_space(pvec))
> > + __pagevec_lru_add(pvec, false);
> > + pagevec_add(pvec, page);
> > + put_cpu_var(lru_putback_pvec);
> > +}
> >
>
> Wait a moment.
>
> So now we have a putback_lru_page, which does adjust
> the statistics, and an lru_cache_putback which does
> not?
>
> This function could use a name that is not as similar
> to its counterpart :)
lru_cache_add() and lru_cache_putback() are the two sibling functions,
where the first influences the LRU balance and the second one doesn't.
The last hunk in the patch (obscured by showing the label instead of
the function name as context) updates putback_lru_page() from using
lru_cache_add() to using lru_cache_putback().
Does that make sense?
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation Johannes Weiner <hannes@cmpxchg.org> - 2016-06-06 22:00 +0200
Re: [PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation Rik van Riel <riel@redhat.com> - 2016-06-07 00:00 +0200
Re: [PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation Johannes Weiner <hannes@cmpxchg.org> - 2016-06-07 00:20 +0200
Re: [PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation Rik van Riel <riel@redhat.com> - 2016-06-07 03:20 +0200
Re: [PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation Johannes Weiner <hannes@cmpxchg.org> - 2016-06-07 16:00 +0200
Re: [PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation Michal Hocko <mhocko@kernel.org> - 2016-06-07 11:30 +0200
Re: [PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation Johannes Weiner <hannes@cmpxchg.org> - 2016-06-07 16:10 +0200
Re: [PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation Michal Hocko <mhocko@kernel.org> - 2016-06-07 12:00 +0200
Re: [PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation Minchan Kim <minchan@kernel.org> - 2016-06-08 09:40 +0200
Re: [PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation Johannes Weiner <hannes@cmpxchg.org> - 2016-06-08 18:10 +0200
csiph-web