From: Pekka Enberg <penberg@cs.helsinki.fi>
To: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
Cc: Christoph Lameter <clameter@sgi.com>,
Matt Mackall <mpm@selenic.com>, Nick Piggin <npiggin@suse.de>,
linux-mm@kvack.org
Subject: Re: [patch] slub: change the formula which calculates min_objects based on number of processors
Date: Tue, 08 Apr 2008 21:08:23 +0300 [thread overview]
Message-ID: <47FBB497.4050603@cs.helsinki.fi> (raw)
In-Reply-To: <1207646286.12878.150.camel@ymzhang>
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>
next parent reply other threads:[~2008-04-08 18:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 ` Pekka Enberg [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47FBB497.4050603@cs.helsinki.fi \
--to=penberg@cs.helsinki.fi \
--cc=clameter@sgi.com \
--cc=linux-mm@kvack.org \
--cc=mpm@selenic.com \
--cc=npiggin@suse.de \
--cc=yanmin_zhang@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox