Re: [PATCH v4 02/11] memcg: document cgroup dirty memory interfaces

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wu Fengguang
Date: Friday, October 29, 2010 - 8:02 pm

On Sat, Oct 30, 2010 at 05:35:50AM +0800, Greg Thelen wrote:

Yeah. And I'm OK with the current behavior, since
1) it does not impact the global limits
2) the common memcg usage (the workload you cared) seems don't share
   pages between memcg's a lot

So I'm OK to improve it in future when there comes a need.


Me too.


It still introduce complexities of maintaining the foreign memcg <=>
task mutual links.

Another approach may to add a parameter "struct page *page" to
balance_dirty_pages(). Then balance_dirty_pages() can check the memcg
that is associated with the _current_ dirtied page. It may not catch
all foreign memcg's, but should work fine with good probability
without introducing new data structure.

Thanks,
Fengguang
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v4 05/11] writeback: create dirty_info structure, Greg Thelen, (Fri Oct 29, 12:09 am)
[PATCH v4 08/11] memcg: add dirty limits to mem_cgroup, Greg Thelen, (Fri Oct 29, 12:09 am)
[PATCH v4 09/11] memcg: CPU hotplug lockdep warning fix, Greg Thelen, (Fri Oct 29, 12:09 am)
Re: [PATCH v4 08/11] memcg: add dirty limits to mem_cgroup, KAMEZAWA Hiroyuki, (Fri Oct 29, 12:41 am)
Re: [PATCH v4 10/11] memcg: add cgroupfs interface to memc ..., KAMEZAWA Hiroyuki, (Fri Oct 29, 12:43 am)
Re: [PATCH v4 11/11] memcg: check memcg dirty limits in pa ..., KAMEZAWA Hiroyuki, (Fri Oct 29, 12:48 am)
Re: [PATCH v4 05/11] writeback: create dirty_info structure, KAMEZAWA Hiroyuki, (Fri Oct 29, 12:50 am)
Re: [PATCH v4 06/11] memcg: add dirty page accounting infr ..., KAMEZAWA Hiroyuki, (Fri Oct 29, 4:17 am)
Re: [PATCH v4 02/11] memcg: document cgroup dirty memory i ..., Wu Fengguang, (Fri Oct 29, 8:02 pm)