From: Benjamin LaHaise <[EMAIL PROTECTED]> Date: Tue, 24 Jan 2006 15:58:27 -0500
> Instead of doing a completely separate skb reuse path, what happens if > you remove the memset() from __alloc_skb() and instead do it in a slab > ctor? I remember seeing that in the profiles for af_unix. Dave, could > you refresh my memory why the slab ctor ended up being dropped? Doing > the memset() at free time is usually almost free since it is usually in > the cache at that point. Performance is better if you warm up the cache at allocation time since we're about to touch this data and actually do things with it. That is my recollection. Some IBM folks did benchmarks and numbers which backed up the theory. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html