lkml.org 
[lkml]   [2008]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] splitlru: memcg swapbacked pages active
On Sun, 29 Jun 2008, KOSAKI Motohiro wrote:
> > add_to_page_cache_lru puts PageSwapBacked pages on the active_anon lru,
> > so shouldn't mem_cgroup_charge_common mirror that by setting FLAG_ACTIVE?
> >
> > Signed-off-by: Hugh Dickins <hugh@veritas.com>
>
> I don't think so.
>
> in global lru, active vs inactive anon ratio is controlled by
> inactive_anon_is_low().
> but memcg doesn't have any sililar things.
>
> thus, this patch increase active anon. and too many active page cause
> decrease reclaim throuput.
>
> yes, We should implement SEQ replacement reclaim (like global reclaim)
> for memcg.
> I'm working on this.

Hmm. Thanks for looking into it (and the others). This is something
I noticed as a discrepancy in the source, rather than something from
which I observed any OOMs. So if you're already working on bringing
the global and memcg approaches into line, I defer to your judgement.

But it seems to me worrying and fragile while they diverge in this way.
If the global has anon, active anon, file, active file and unevictable
lrus for the page; and the memcg has anon, active anon, file, active file
and unevictable lrus for the page cgroup; but different choices are made
which to put on where, then we're heading for confusion and trouble.

And when called, __mem_cgroup_move_lists tries to keep the activ-ity of
the memcg lrus in step with the activ-ity of the global lrus, doesn't
it? So it's beyond my comprehension to start them off out of step.

Hugh


\
 
 \ /
  Last update: 2008-06-29 14:23    [W:0.109 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site