Re: [PATCH] SLAB: Record actual last user of freed objects.

From: Christoph Lameter
Date: Fri Jun 03 2011 - 10:05:17 EST


On Thu, 2 Jun 2011, David Rientjes wrote:

> On Thu, 2 Jun 2011, Suleiman Souhlal wrote:
>
> > Currently, when using CONFIG_DEBUG_SLAB, we put in kfree() or
> > kmem_cache_free() as the last user of free objects, which is not
> > very useful, so change it to the caller of those functions instead.
> >
> > Signed-off-by: Suleiman Souhlal <suleiman@xxxxxxxxxx>
>
> Acked-by: David Rientjes <rientjes@xxxxxxxxxx>

Well note that this increases the overhead of a hot code path. But slub
does the same

Acked-by: Christoph Lameter <cl@xxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/