* Re: [patch] slub: change the formula which calculates min_objects based on number of processors
[not found] ` <1207646286.12878.150.camel@ymzhang>
@ 2008-04-08 18:08 ` Pekka Enberg
0 siblings, 0 replies; 2+ messages in thread
From: Pekka Enberg @ 2008-04-08 18:08 UTC (permalink / raw)
To: Zhang, Yanmin; +Cc: Christoph Lameter, Matt Mackall, Nick Piggin, linux-mm
Zhang, Yanmin wrote:
> Current formula to calculate min_objects based on number of processors is
> '4 * fls(nr_cpu_ids)', which is not the best optimization on 16-core tigerton.
> If I add 4 to its result, hackbench result is better.
>
> On 16-core tigerton, by run
> ./hackbench 100 process 2000
> results are:
> 1) 2.6.25-rc6slab: 23.5seconds
> 2) 2.6.25-rc7SLUB+slub_min_objects=20: 31seconds
> 3) 2.6.25-rc7SLUB+slub_min_objects=24: 23.5seconds
>
> So adding 4 to the output of '4 * fls(nr_cpu_ids)' could get the similar result
> like CONFIG_SLAB=y.
Applied, thanks!
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 04/12] slub: Add kmem_cache_order_objects struct
[not found] ` <47FA4507.6090409@cs.helsinki.fi>
@ 2008-04-08 20:55 ` Christoph Lameter
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Lameter @ 2008-04-08 20:55 UTC (permalink / raw)
To: Pekka Enberg; +Cc: Matt Mackall, Nick Piggin, linux-mm
On Mon, 7 Apr 2008, Pekka Enberg wrote:
> Hi Christoph,
>
> Christoph Lameter wrote:
> > @@ -1143,7 +1165,7 @@ static struct page *new_slab(struct kmem
> > start = page_address(page);
> > if (unlikely(s->flags & SLAB_POISON))
> > - memset(start, POISON_INUSE, PAGE_SIZE << s->order);
> > + memset(start, POISON_INUSE, PAGE_SIZE << oo_order(oo));
>
> This should be compound_order(page) as allocate_slab() can fall back to
> smaller page order.
Ack. I distinctly remember fixing this once before. Sigh.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-08 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20080404225019.369359572@sgi.com>
[not found] ` <20080404225105.959019108@sgi.com>
[not found] ` <1207548437.12878.48.camel@ymzhang>
[not found] ` <47FA346C.4020802@cs.helsinki.fi>
[not found] ` <1207635477.12878.74.camel@ymzhang>
[not found] ` <84144f020804072337s541646d8s999be14b4c17375e@mail.gmail.com>
[not found] ` <1207646286.12878.150.camel@ymzhang>
2008-04-08 18:08 ` [patch] slub: change the formula which calculates min_objects based on number of processors Pekka Enberg
[not found] ` <20080404225104.311511519@sgi.com>
[not found] ` <47FA4507.6090409@cs.helsinki.fi>
2008-04-08 20:55 ` [patch 04/12] slub: Add kmem_cache_order_objects struct Christoph Lameter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox