From: Balbir Singh <balbir@linux.vnet.ibm.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
LKML <linux-kernel@vger.kernel.org>,
"xemul@openvz.org" <xemul@openvz.org>,
"menage@google.com" <menage@google.com>,
"yamamoto@valinux.co.jp" <yamamoto@valinux.co.jp>,
"lizf@cn.fujitsu.com" <lizf@cn.fujitsu.com>
Subject: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
Date: Sat, 31 May 2008 03:50:51 +0530 [thread overview]
Message-ID: <48407DC3.8060001@linux.vnet.ibm.com> (raw)
In-Reply-To: <20080530104515.9afefdbb.kamezawa.hiroyu@jp.fujitsu.com>
KAMEZAWA Hiroyuki wrote:
> This patch tries to implements _simple_ 'hierarchy policy' in res_counter.
>
> While several policy of hierarchy can be considered, this patch implements
> simple one
> - the parent includes, over-commits the child
> - there are no shared resource
I am not sure if this is desirable. The concept of a hierarchy applies really
well when there are shared resources.
> - dynamic hierarchy resource usage management in the kernel is not necessary
>
Could you please elaborate as to why? I am not sure I understand your point
> works as following.
>
> 1. create a child. set default child limits to be 0.
> 2. set limit to child.
> 2-a. before setting limit to child, prepare enough room in parent.
> 2-b. increase 'usage' of parent by child's limit.
The problem with this is that you are forcing the parent will run into a reclaim
loop even if the child is not using the assigned limit to it.
> 3. the child sets its limit to the val moved from the parent.
> the parent remembers what amount of resource is to the children.
>
All of this needs to be dynamic
> Above means that
> - a directory's usage implies the sum of all sub directories +
> own usage.
> - there are no shared resource between parent <-> child.
>
> Pros.
> - simple and easy policy.
> - no hierarchy overhead.
> - no resource share among child <-> parent. very suitable for multilevel
> resource isolation.
Sharing is an important aspect of hierachies. I am not convinced of this
approach. Did you look at the patches I sent out? Was there something
fundamentally broken in them?
[snip]
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
WARNING: multiple messages have this Message-ID (diff)
From: Balbir Singh <balbir@linux.vnet.ibm.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
LKML <linux-kernel@vger.kernel.org>,
"xemul@openvz.org" <xemul@openvz.org>,
"menage@google.com" <menage@google.com>,
"yamamoto@valinux.co.jp" <yamamoto@valinux.co.jp>,
"lizf@cn.fujitsu.com" <lizf@cn.fujitsu.com>
Subject: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
Date: Sat, 31 May 2008 03:50:51 +0530 [thread overview]
Message-ID: <48407DC3.8060001@linux.vnet.ibm.com> (raw)
In-Reply-To: <20080530104515.9afefdbb.kamezawa.hiroyu@jp.fujitsu.com>
KAMEZAWA Hiroyuki wrote:
> This patch tries to implements _simple_ 'hierarchy policy' in res_counter.
>
> While several policy of hierarchy can be considered, this patch implements
> simple one
> - the parent includes, over-commits the child
> - there are no shared resource
I am not sure if this is desirable. The concept of a hierarchy applies really
well when there are shared resources.
> - dynamic hierarchy resource usage management in the kernel is not necessary
>
Could you please elaborate as to why? I am not sure I understand your point
> works as following.
>
> 1. create a child. set default child limits to be 0.
> 2. set limit to child.
> 2-a. before setting limit to child, prepare enough room in parent.
> 2-b. increase 'usage' of parent by child's limit.
The problem with this is that you are forcing the parent will run into a reclaim
loop even if the child is not using the assigned limit to it.
> 3. the child sets its limit to the val moved from the parent.
> the parent remembers what amount of resource is to the children.
>
All of this needs to be dynamic
> Above means that
> - a directory's usage implies the sum of all sub directories +
> own usage.
> - there are no shared resource between parent <-> child.
>
> Pros.
> - simple and easy policy.
> - no hierarchy overhead.
> - no resource share among child <-> parent. very suitable for multilevel
> resource isolation.
Sharing is an important aspect of hierachies. I am not convinced of this
approach. Did you look at the patches I sent out? Was there something
fundamentally broken in them?
[snip]
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-05-30 22:22 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-30 1:43 [RFC][PATCH 0/2] memcg: simple hierarchy (v2) KAMEZAWA Hiroyuki
2008-05-30 1:43 ` KAMEZAWA Hiroyuki
2008-05-30 1:45 ` [RFC][PATCH 1/2] memcg: res_counter hierarchy KAMEZAWA Hiroyuki
2008-05-30 1:45 ` KAMEZAWA Hiroyuki
2008-05-30 22:20 ` Balbir Singh [this message]
2008-05-30 22:20 ` Balbir Singh
2008-05-31 1:59 ` kamezawa.hiroyu
2008-05-31 1:59 ` kamezawa.hiroyu
2008-05-31 11:20 ` Balbir Singh
2008-05-31 11:20 ` Balbir Singh
2008-05-31 14:47 ` kamezawa.hiroyu
2008-05-31 14:47 ` kamezawa.hiroyu
2008-05-31 17:18 ` Balbir Singh
2008-05-31 17:18 ` Balbir Singh
2008-06-01 0:35 ` kamezawa.hiroyu
2008-06-01 0:35 ` kamezawa.hiroyu
2008-06-02 6:16 ` Balbir Singh
2008-06-02 6:16 ` Balbir Singh
2008-06-02 9:48 ` kamezawa.hiroyu
2008-06-02 9:48 ` kamezawa.hiroyu
2008-06-02 2:15 ` YAMAMOTO Takashi
2008-06-02 2:15 ` YAMAMOTO Takashi
2008-06-02 9:52 ` kamezawa.hiroyu
2008-06-02 9:52 ` kamezawa.hiroyu
2008-05-30 1:46 ` [RFC][PATCH 2/2] memcg: memcg hierarchy KAMEZAWA Hiroyuki
2008-05-30 1:46 ` KAMEZAWA Hiroyuki
2008-05-30 1:46 ` [RFC][PATCH 0/2] memcg: simple hierarchy (v2) Rik van Riel
2008-05-30 1:46 ` Rik van Riel
-- strict thread matches above, loose matches on Subject: below --
2008-06-04 4:58 [RFC][PATCH 0/2] memcg: hierarchy support (v3) KAMEZAWA Hiroyuki
2008-06-04 5:01 ` [RFC][PATCH 1/2] memcg: res_counter hierarchy KAMEZAWA Hiroyuki
2008-06-04 5:01 ` KAMEZAWA Hiroyuki
2008-06-04 6:54 ` Li Zefan
2008-06-04 6:54 ` Li Zefan
2008-06-04 7:03 ` KAMEZAWA Hiroyuki
2008-06-04 7:03 ` KAMEZAWA Hiroyuki
2008-06-04 7:20 ` YAMAMOTO Takashi
2008-06-04 7:20 ` YAMAMOTO Takashi
2008-06-04 7:32 ` KAMEZAWA Hiroyuki
2008-06-04 7:32 ` KAMEZAWA Hiroyuki
2008-06-04 8:59 ` Paul Menage
2008-06-04 8:59 ` Paul Menage
2008-06-04 9:18 ` KAMEZAWA Hiroyuki
2008-06-04 9:18 ` KAMEZAWA Hiroyuki
2008-06-09 9:48 ` Balbir Singh
2008-06-09 9:48 ` Balbir Singh
2008-06-09 10:20 ` KAMEZAWA Hiroyuki
2008-06-09 10:20 ` KAMEZAWA Hiroyuki
2008-06-09 10:37 ` Balbir Singh
2008-06-09 10:37 ` Balbir Singh
2008-06-11 23:24 ` Randy Dunlap
2008-06-11 23:24 ` Randy Dunlap
2008-06-12 4:59 ` KAMEZAWA Hiroyuki
2008-06-12 4:59 ` KAMEZAWA Hiroyuki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48407DC3.8060001@linux.vnet.ibm.com \
--to=balbir@linux.vnet.ibm.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lizf@cn.fujitsu.com \
--cc=menage@google.com \
--cc=xemul@openvz.org \
--cc=yamamoto@valinux.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.