Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965063AbWHQQfg (ORCPT ); Thu, 17 Aug 2006 12:35:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965119AbWHQQfg (ORCPT ); Thu, 17 Aug 2006 12:35:36 -0400 Received: from smtp-out.google.com ([216.239.45.12]:52872 "EHLO smtp-out.google.com") by vger.kernel.org with ESMTP id S965063AbWHQQff (ORCPT ); Thu, 17 Aug 2006 12:35:35 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:subject:from:reply-to:to:cc:in-reply-to:references: content-type:organization:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=rVo6FeMAcdkaWCfMMmd/Ldkx9D1rbAih01icpnTEdkze8ekaTTIVlJW6MnVQ0xaHi sPngg0zEg2Yx2DPQQg4UQ== Subject: Re: [ckrm-tech] [RFC][PATCH 5/7] UBC: kernel memory accounting (core) From: Rohit Seth Reply-To: rohitseth@google.com To: Dave Hansen Cc: Rik van Riel , Andi Kleen , ckrm-tech@lists.sourceforge.net, Linux Kernel Mailing List , Kirill Korotaev , Christoph Hellwig , Andrey Savochkin , devel@openvz.org, hugh@veritas.com, Ingo Molnar , Alan Cox , Pavel Emelianov In-Reply-To: <1155758369.9274.26.camel@localhost.localdomain> References: <44E33893.6020700@sw.ru> <44E33C8A.6030705@sw.ru> <1155754029.9274.21.camel@localhost.localdomain> <1155755729.22595.101.camel@galaxy.corp.google.com> <1155758369.9274.26.camel@localhost.localdomain> Content-Type: text/plain Organization: Google Inc Date: Thu, 17 Aug 2006 09:31:48 -0700 Message-Id: <1155832308.14617.1.camel@galaxy.corp.google.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1367 Lines: 32 On Wed, 2006-08-16 at 12:59 -0700, Dave Hansen wrote: > On Wed, 2006-08-16 at 12:15 -0700, Rohit Seth wrote: > > My preference would be to have container (I keep on saying container, > > but resource beancounter) pointer embeded in task, mm(not sure), > > address_space and anon_vma structures. > > Hmm. If we can embed it in the mm, then we can get there from any given > anon_vma (or any pte for that matter). Here's a little prototype for > doing just that: > > http://www.sr71.net/patches/2.6.18/2.6.18-rc4-mm1-lxc1/broken-out/modify-lru-walk.patch > > See file/anon_page_has_naughty_cpuset(). Anybody see any basic problems > with doing it that way? > > One trick with putting it in an mm is that we don't have a direct > relationship between processes and mm's. We could also potentially have > two different threads of a process in two different accounting contexts. > But, that might be as simple to fix as disallowing things that share mms > from being in different accounting contexts, unless you unshare the mm. But anon_vmas could be shared across different processes (with different mms). -rohit - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/