From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756110AbYE3Bs7 (ORCPT ); Thu, 29 May 2008 21:48:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751972AbYE3Bsv (ORCPT ); Thu, 29 May 2008 21:48:51 -0400 Received: from mx1.redhat.com ([66.187.233.31]:58905 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751914AbYE3Bsu (ORCPT ); Thu, 29 May 2008 21:48:50 -0400 Date: Thu, 29 May 2008 21:46:26 -0400 From: Rik van Riel To: KAMEZAWA Hiroyuki Cc: "linux-mm@kvack.org" , LKML , "balbir@linux.vnet.ibm.com" , "xemul@openvz.org" , "menage@google.com" , "yamamoto@valinux.co.jp" , "lizf@cn.fujitsu.com" Subject: Re: [RFC][PATCH 0/2] memcg: simple hierarchy (v2) Message-ID: <20080529214626.00da9bda@bree.surriel.com> In-Reply-To: <20080530104312.4b20cc60.kamezawa.hiroyu@jp.fujitsu.com> References: <20080530104312.4b20cc60.kamezawa.hiroyu@jp.fujitsu.com> Organization: Red Hat, Inc. X-Mailer: Claws Mail 3.0.2 (GTK+ 2.10.4; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 May 2008 10:43:12 +0900 KAMEZAWA Hiroyuki wrote: > Implemented Policy: > - parent overcommits all children > parent->usage = resource used by itself + resource moved to children. > Of course, parent->limit > parent->usage. > - when child's limit is set, the resouce moves. > - no automatic resource moving between parent <-> child > Why this is enough ? > - A middleware can do various kind of resource balancing only by reseting "limit" > in userland. I like this idea. The alternative could mean having a page live on multiple cgroup LRU lists, not just the zone LRU and the one cgroup LRU, and drastically increasing run time overhead. Swapping memory in and out is horrendously slow anyway, so the idea of having a daemon adjust the limits on the fly should work just fine. -- All rights reversed.