[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <45586175.4090007@openvz.org>
Date: Mon, 13 Nov 2006 15:13:41 +0300
From: Pavel Emelianov <xemul@...nvz.org>
To: Pekka Enberg <penberg@...helsinki.fi>
CC: Kirill Korotaev <dev@...ru>, Andrew Morton <akpm@...l.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Alan Cox <alan@...rguk.ukuu.org.uk>, xemul@...nvz.org,
devel@...nvz.org, oleg@...sign.ru, hch@...radead.org,
matthltc@...ibm.com, ckrm-tech@...ts.sourceforge.net
Subject: Re: [PATCH 6/13] BC: kmemsize accounting (core)
Pekka Enberg wrote:
> Hi,
>
> On 11/9/06, Kirill Korotaev <dev@...ru> wrote:
>> +#ifdef CONFIG_BEANCOUNTERS
>> +#define BC_EXTRASIZE sizeof(struct beancounter *)
>> +static inline size_t slab_mgmt_size_noalign(int flags, size_t nr_objs)
>> +{
>> + size_t size;
>> +
>> + size = slab_mgmt_size_raw(nr_objs);
>> + if (flags & SLAB_BC)
>> + size = ALIGN(size, BC_EXTRASIZE) + nr_objs *
>> BC_EXTRASIZE;
>> + return size;
>
> Why do we want to track each allocated _object_ in the slab? Isn't
> tracking pages enough?
No. One page may contain objects allocated in different beancounters.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists