[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070508.185539.95059076.davem@davemloft.net>
Date: Tue, 08 May 2007 18:55:39 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: clameter@....com
Cc: mpm@...enic.com, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org
Subject: Re: +
fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm
tree
From: Christoph Lameter <clameter@....com>
Date: Tue, 8 May 2007 18:53:28 -0700 (PDT)
> On Tue, 8 May 2007, David Miller wrote:
>
> > SLOB seems to look at the descriptor in the previous blob to figure
> > out how big the being-freed blob is. That's actually kind of clever
> > :-)
>
> We were assuming that the objects are actually allocated. How does it
> figure out the previous blobs boundaries without metadata?
The page is filled entirely with descriptors in the not-in-use regions
of the page aparently. So "freed_object - 1" will always give you
a descriptor.
I'm just reading over the code to figure out what to type to you, you
could read the code too it's not very complicated :-)
-
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