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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Lameter <clameter@...>, <linux-netdev@...>
Cc: David S. Miller <davem@...>, Herbert Xu <herbert@...>, <linux-kernel@...>
Date: Friday, November 9, 2007 - 9: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, 8:36 am)
Re: 2.6.24-rc2 slab vs slob tbench numbers, Matt Mackall, (Mon Nov 12, 4:13 pm)
Re: 2.6.24-rc2 slab vs slob tbench numbers, Nick Piggin, (Tue Nov 13, 7:44 am)
Re: 2.6.24-rc2 slab vs slob tbench numbers, Christoph Lameter, (Fri Nov 9, 11:15 am)
Re: 2.6.24-rc2 slab vs slob tbench numbers, Christoph Lameter, (Fri Nov 9, 1:49 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre..., Nick Piggin, (Fri Nov 9, 9:29 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre..., Christoph Lameter, (Mon Nov 12, 3:44 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre..., Christoph Lameter, (Wed Nov 14, 9:03 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre..., Christoph Lameter, (Wed Nov 14, 2:33 pm)