From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Emelyanov Subject: Re: [RFC][PATCH 0/3] Kernel memory accounting container (v2) Date: Fri, 14 Sep 2007 10:26:03 +0400 Message-ID: <46EA297B.5070605@openvz.org> References: <46E8FEC7.2010707@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Christoph Lameter Cc: Linux Containers , Paul Menage List-Id: containers.vger.kernel.org Christoph Lameter wrote: > On Thu, 13 Sep 2007, Pavel Emelyanov wrote: > >> This is based on the SLUB allocator, Paul's containers and the >> resource counters I made for RSS controller and which are in >> -mm tree already. >> >> To play with it, one need to mount the container file system >> with -o kmem and then mark some caches as accountable via >> /sys/slab//cache_account. > > Hmmmm... Okay I have seen multiple people who want to control slab > allocations and track memory for various reasons. Would it be possible to > come up with some hook that would allow a subscription to certain SLUB > events? That way multiple subsystems may track and maybe disallow certain > allocations in various contexts. Do you mean some more generic than just explicit call from slab_alloc, etc? Ok, I will work on it. Thanks, Pavel