Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: kamezawa.hiroyu
Date: Friday, May 30, 2008 - 6:59 pm

>KAMEZAWA Hiroyuki wrote:
sary

ok, let's consider a _miiddleware_ wchich has following paramater.

An expoterd param to the user.
   - user_memory_limit
parameters for co-operation with the kernel
   - kernel_memory_limit

And here,
   user_memory_limit >= kernel_memory_limit == cgroup's memory.limits_in_bytes

When a user ask the miidleware to set limit to 1Gbytes
   user_memory_limit = 1G
   kernel_memory_limit = 0-1G.
It moves kernel_memory_limit dynamically 0 to 1Gbytes and reset limits_in_byte
s in dynamic way with checking memory cgroup's statistics.
Of course, we can add some kind of interdace , as following
  - failure_notifier - triggered at failcnt increment.
  - threshhold_notifier - triggered as usage > threshold.

aim
That's not problem because it's avoildable by users.
But it's ok to limit the sum of child's limit to be below XX % ot the parent.

As explained, this can be dynamic by middleware.


Yes, I read. And tried to make it faster and found it will be complicated.
One problem is overhead of counter itself.
Another problem is overhead of shrinking multi-level LRU with feedback.
One more problem is that it's hard to implement various kinds of hierarchy
policy. I believe there are other hierarhcy policies rather than OpenVZ
want to use. Kicking out functions to middleware AMAP is what I'm thinking
now.

Thanks,
-Kame



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

Messages in current thread:
[RFC][PATCH 0/2] memcg: simple hierarchy (v2), KAMEZAWA Hiroyuki, (Thu May 29, 6:43 pm)
[RFC][PATCH 1/2] memcg: res_counter hierarchy, KAMEZAWA Hiroyuki, (Thu May 29, 6:45 pm)
[RFC][PATCH 2/2] memcg: memcg hierarchy, KAMEZAWA Hiroyuki, (Thu May 29, 6:46 pm)
Re: [RFC][PATCH 0/2] memcg: simple hierarchy (v2), Rik van Riel, (Thu May 29, 6:46 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Balbir Singh, (Fri May 30, 3:20 pm)
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, kamezawa.hiroyu, (Fri May 30, 6:59 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Balbir Singh, (Sat May 31, 4:20 am)
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, kamezawa.hiroyu, (Sat May 31, 7:47 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Balbir Singh, (Sat May 31, 10:18 am)
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, kamezawa.hiroyu, (Sat May 31, 5:35 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, YAMAMOTO Takashi, (Sun Jun 1, 7:15 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, Balbir Singh, (Sun Jun 1, 11:16 pm)
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, kamezawa.hiroyu, (Mon Jun 2, 2:48 am)
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy, kamezawa.hiroyu, (Mon Jun 2, 2:52 am)