From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754581AbZC1S2U (ORCPT ); Sat, 28 Mar 2009 14:28:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753738AbZC1S2M (ORCPT ); Sat, 28 Mar 2009 14:28:12 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:39871 "EHLO e23smtp06.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753486AbZC1S2L (ORCPT ); Sat, 28 Mar 2009 14:28:11 -0400 Date: Sat, 28 Mar 2009 23:57:47 +0530 From: Balbir Singh To: KAMEZAWA Hiroyuki Cc: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "kosaki.motohiro@jp.fujitsu.com" , "nishimura@mxp.nes.nec.co.jp" Subject: Re: [RFC][PATCH] memcg soft limit (yet another new design) v1 Message-ID: <20090328182747.GA8339@balbir.in.ibm.com> Reply-To: balbir@linux.vnet.ibm.com References: <20090327135933.789729cb.kamezawa.hiroyu@jp.fujitsu.com> <20090328181100.GB26686@balbir.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20090328181100.GB26686@balbir.in.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Balbir Singh [2009-03-28 23:41:00]: > * KAMEZAWA Hiroyuki [2009-03-27 13:59:33]: > > > ==brief test result== > > On 2CPU/1.6GB bytes machine. create group A and B > > A. soft limit=300M > > B. no soft limit > > > > Run a malloc() program on B and allcoate 1G of memory. The program just > > sleeps after allocating memory and no memory refernce after it. > > Run make -j 6 and compile the kernel. > > > > When vm.swappiness = 60 => 60MB of memory are swapped out from B. > > When vm.swappiness = 10 => 1MB of memory are swapped out from B > > > > If no soft limit, 350MB of swap out will happen from B.(swapiness=60) > > > > I ran the same tests, booted the machine with mem=1700M and maxcpus=2 > > Here is what I see with I meant to say, Here is what I see with my patches (v7) > > A has a swapout of 344M and B has not swapout at all, since B is > always under its soft limit. vm.swappiness is set to 60 > > I think the above is more along the lines of the expected functional behaviour. > > -- > Balbir -- Balbir