Re: 2.6.24-rc2: Network commit causes SLUB performance regression with tbench

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Friday, November 9, 2007 - 6:29 pm

cc'ed linux-netdev

On Saturday 10 November 2007 10:46, Christoph Lameter wrote:

Ah, I didn't realise this was a regression. Thanks for bisecting it.




The data should already be cacheline aligned. It is kmalloced, and
with a minimum size of somewhere around 200 bytes on a 64-bit machine.
So it will hit a cacheline aligned kmalloc slab AFAIKS  -- cacheline
interference is probably not the problem. (To verify, I built slub with
minimum kmalloc size set to 32 like slab and it's no real difference)

But I can't see why restricting the allocation to PAGE_SIZE would help
either. Maybe the macros are used in some other areas.

BTW. your size-2048 kmalloc cache is order-1 in the default setup,
wheras kmalloc(1024) or kmalloc(4096) will be order-0 allocations. And
SLAB also uses order-0 for size-2048. It would be nice if SLUB did the
same...


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.24-rc2 slab vs slob tbench numbers, Nick Piggin, (Fri Nov 9, 5:36 am)
Re: 2.6.24-rc2 slab vs slob tbench numbers, Christoph Lameter, (Fri Nov 9, 8:15 am)
Re: 2.6.24-rc2 slab vs slob tbench numbers, Christoph Lameter, (Fri Nov 9, 10:49 am)
Re: 2.6.24-rc2: Network commit causes SLUB performance reg ..., Nick Piggin, (Fri Nov 9, 6:29 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance reg ..., Christoph Lameter, (Mon Nov 12, 12:44 pm)
Re: 2.6.24-rc2 slab vs slob tbench numbers, Matt Mackall, (Mon Nov 12, 1:13 pm)
Re: 2.6.24-rc2 slab vs slob tbench numbers, Nick Piggin, (Tue Nov 13, 4:44 am)
Re: 2.6.24-rc2: Network commit causes SLUB performance reg ..., Christoph Lameter, (Wed Nov 14, 11:33 am)
Re: 2.6.24-rc2: Network commit causes SLUB performance reg ..., Christoph Lameter, (Wed Nov 14, 6:03 pm)