From: Christoph Lameter <clameter@sgi.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Subject: Re: Support concurrent local and remote frees and allocs on a slab.
Date: Mon, 7 May 2007 14:55:07 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0705071452080.10230@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <20070507145030.9b7f41bd.akpm@linux-foundation.org>
> Is there some way in which we can communicate this better? It is quite
> central to maintainability.
Would you drop this patch again? I am still reworking it and you will get
conflicts with the patchset I sent you.
> This change implies that "first_page" is no longer a "SLUB use". Is that
> true?
We moved that into the huge page support functions in include/linux/mm.h
> I'm a bit surprised that slub didn't already have a per-cpu freelist of
> objects?
It does but it has a lock before and after access to per cpu slabs since
remove frees may access per cpu slabs. The patch splits the freelists.
> Each cache has this "cpu_slab" thing, which is not documented anywhere
> afaict. What does it do, and how does this change enhance it?
It avoids the atomic overhead. If the cachelines are all hot then the
atomic overhead and stack handling etc become a factor. I am minimizing
that currently. Next rev will do that better.
> if (unlikely(node != -1 && page_to_nid(page) != node)) {
>
> get appropriately optimised away on non-NUMA?
Yes.
--
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 prev parent reply other threads:[~2007-05-07 21:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-05 3:28 Christoph Lameter
2007-05-06 4:59 ` Christoph Lameter
2007-05-06 5:45 ` Christoph Lameter
2007-05-06 19:24 ` Andrew Morton
2007-05-07 15:15 ` Christoph Lameter
2007-05-07 18:39 ` Christoph Lameter
2007-05-07 18:54 ` Andrew Morton
2007-05-07 18:58 ` Christoph Lameter
2007-05-07 20:32 ` Andrew Morton
2007-05-07 21:50 ` Andrew Morton
2007-05-07 21:55 ` Christoph Lameter [this message]
2007-05-08 0:56 ` Christoph Lameter
2007-05-08 22:05 ` 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=Pine.LNX.4.64.0705071452080.10230@schroedinger.engr.sgi.com \
--to=clameter@sgi.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
/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