From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751308Ab0JTE0W (ORCPT ); Wed, 20 Oct 2010 00:26:22 -0400 Received: from smtp-out.google.com ([74.125.121.35]:59335 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751122Ab0JTE0U (ORCPT ); Wed, 20 Oct 2010 00:26:20 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=from:to:cc:subject:references:date:message-id:user-agent: mime-version:content-type; b=v5sR+uyKWDD1688Kpp5SEzguUA/iYs3//QjKfBKYU0pQO4f3QYLwxYvVUHWAQ2NvC nwQkzOneamJ81lLJzpT7g== From: Greg Thelen To: KAMEZAWA Hiroyuki Cc: Daisuke Nishimura , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, containers@lists.osdl.org, Andrea Righi , Balbir Singh , Minchan Kim , Ciju Rajan K , David Rientjes Subject: Re: [PATCH v3 02/11] memcg: document cgroup dirty memory interfaces References: <1287448784-25684-1-git-send-email-gthelen@google.com> <1287448784-25684-3-git-send-email-gthelen@google.com> <20101019172744.45e0a8dc.nishimura@mxp.nes.nec.co.jp> <20101020091109.ccd7b39a.kamezawa.hiroyu@jp.fujitsu.com> <20101020130654.bf861eda.kamezawa.hiroyu@jp.fujitsu.com> Date: Tue, 19 Oct 2010 21:25:53 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org KAMEZAWA Hiroyuki writes: > On Tue, 19 Oct 2010 17:45:08 -0700 > Greg Thelen wrote: > >> KAMEZAWA Hiroyuki writes: >> > BTW, how about supporing dirty_limit_in_bytes when use_hierarchy=0 or >> > leave it as broken when use_hierarchy=1 ? It seems we can only >> > support dirty_ratio when hierarchy is used. >> >> I am not sure what you mean here. > > When using dirty_ratio, we can check the value of dirty_ratio at setting it > and make guarantee that any children's dirty_ratio cannot exceeds it parent's. > > If we guarantee that, we can keep dirty_ratio even under hierarchy. > > When it comes to dirty_limit_in_bytes, we never able to do such kind of > controls. So, it will be broken and will do different behavior than > dirty_ratio. I think that for use_hierarchy=1, we could support either dirty_ratio or dirty_limit_in_bytes. The code that modifies dirty_limit_in_bytes could ensure that the sum the dirty_limit_in_bytes of each child does not exceed the parent's dirty_limit_in_bytes. > So, not supporing dirty_bytes when use_hierarchy==1 for now sounds > reasonable to me. Ok, I will add the use_hierarchy==1 check and repost the patches. I will wait to post the -v4 patch series until you post an improved "[PATCH][memcg+dirtylimit] Fix overwriting global vm dirty limit setting by memcg (Re: [PATCH v3 00/11] memcg: per cgroup dirty page accounting" patch. I think it makes sense to integrate that into -v4 of the series. > Thanks, > -Kame