Re: [PATCH 6/13] BC: kmemsize accounting (core)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 11/9/06, Kirill Korotaev <[email protected]> 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?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux