Re: Re: [PATCH][RFC] dirty balancing for cgroups

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Peter Zijlstra <a.p.zijlstra@...>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>, YAMAMOTO Takashi <yamamoto@...>, <linux-mm@...>, <menage@...>, <containers@...>, <linux-kernel@...>
Date: Monday, July 14, 2008 - 10:38 am

----- Original Message -----
ped
le
d
ther
Thank you for explanation. Maybe I misunderstood something.

What I thought was to keep some amount of clean pages under memcg
for smooth reclaiming. But after reading your explanation, I'm now
considering again...

about DEADLOCK:

memory cgroup's reclaim path is working as following now.
==
mem_cgroup_charge() or others.
  -> try_to_free_mem_cgroup_pages()
      -> shrink_zone()...
          -> subsystem may call alloc_pages()
               -> ....(*)

Unlike global LRU, memory_cgroup does not affect (*) because add_tp_page_cache
() is called here and maybe no deadlock.

about Memory Reclaim's  health:

It doesn't seem good to allow users to make all pages under memcg
to be dirty without penalty(throttling).
 
Dirty/Written-backed pages are not to be reclaimed by first lru scan because
it has to be written out (and rolated to the tail of LRU.) and clean pages,
which are easy to be dropped, are dropped soon.

Under following situation
 - large file copy under memcg.
 - big coredump under memcg.

I think too much (clean) pages are swapped out by memcg's LRU because
of tons of dirty pages. (but I don't have enough data now. just my concern.)

What can I do against this ? Could you give me a hint ?

Thanks,
-Kame

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH][RFC] dirty balancing for cgroups, YAMAMOTO Takashi, (Wed Jul 9, 2:00 am)
Re: [PATCH][RFC] dirty balancing for cgroups, Peter Zijlstra, (Mon Jul 14, 9:37 am)
Re: [PATCH][RFC] dirty balancing for cgroups, KAMEZAWA Hiroyuki, (Thu Jul 10, 7:54 pm)
Re: [PATCH][RFC] dirty balancing for cgroups, YAMAMOTO Takashi, (Fri Jul 11, 12:06 am)
Re: [PATCH][RFC] dirty balancing for cgroups, KAMEZAWA Hiroyuki, (Fri Jul 11, 1:15 am)
Re: [PATCH][RFC] dirty balancing for cgroups, YAMAMOTO Takashi, (Fri Jul 11, 1:59 am)
Re: [PATCH][RFC] dirty balancing for cgroups, KAMEZAWA Hiroyuki, (Fri Jul 11, 3:13 am)
Re: [PATCH][RFC] dirty balancing for cgroups, Peter Zijlstra, (Mon Jul 14, 9:49 am)
Re: [PATCH][RFC] dirty balancing for cgroups, Paul Menage, (Thu Aug 14, 4:38 am)
Re: [PATCH][RFC] dirty balancing for cgroups, YAMAMOTO Takashi, (Wed Jul 16, 9:43 pm)
Re: Re: [PATCH][RFC] dirty balancing for cgroups, , (Mon Jul 14, 10:38 am)
Re: [PATCH][RFC] dirty balancing for cgroups, YAMAMOTO Takashi, (Fri Jul 11, 4:34 am)
Re: [PATCH][RFC] dirty balancing for cgroups, KAMEZAWA Hiroyuki, (Fri Jul 11, 4:52 am)
Re: [PATCH][RFC] dirty balancing for cgroups, YAMAMOTO Takashi, (Wed Aug 6, 4:20 am)
Re: [PATCH][RFC] dirty balancing for cgroups, Peter Zijlstra, (Thu Aug 7, 9:36 am)
Re: [PATCH][RFC] dirty balancing for cgroups, YAMAMOTO Takashi, (Wed Aug 13, 3:15 am)
Re: [PATCH][RFC] dirty balancing for cgroups, KAMEZAWA Hiroyuki, (Mon Aug 18, 3:58 am)
Re: [PATCH][RFC] dirty balancing for cgroups, KAMEZAWA Hiroyuki, (Wed Aug 6, 4:53 am)
Re: [PATCH][RFC] dirty balancing for cgroups, YAMAMOTO Takashi, (Wed Aug 6, 5:10 am)