From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Christoph Lameter <cl@linux-foundation.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>,
yanmin_zhang@linux.intel.com, Andi Kleen <andi@firstfloor.org>,
Matthew Wilcox <matthew@wil.cx>,
linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Subject: Re: [PATCH] SLUB: revert direct page allocator pass through
Date: Tue, 3 Feb 2009 12:33:39 +1100 [thread overview]
Message-ID: <200902031233.40987.nickpiggin@yahoo.com.au> (raw)
In-Reply-To: <alpine.DEB.1.10.0901261206500.32192@qirst.com>
On Tuesday 27 January 2009 04:17:28 Christoph Lameter wrote:
> On Sat, 24 Jan 2009, Nick Piggin wrote:
> > Other ones which could be changed but could introduce regressions are
> > watermarks, buddy merging, and struct page error checking and setup.
>
> Isnt it possible to defer that (queuing them (sigh)).
If you defer it then you lose merge opportunities and effectively increase
the rate of fragmentation.
> A bitmap could be
> used to avoid queuing and may even allow fully concurrent allocations
> without locks. Use a counter to check watermarks once in a while.
Bitmap? Involving locks or atomic operations, right?
> > (I did make that patch to enable refcounting to be avoided FWIW, which
> > avoids a couple of atomic operations, but I don't think it brought
> > performance up too much, but I still intend to dust it off at some
> > point).
>
> Well if the page stays with a refcount of one then we do not need to check
> the refcount at all but just push it in an out of some queue / bitmap or
> something.
I sent you the patch but I don't think you ever came back with numbers.
It's trivial, you just can avoid the put_page_testzero if the caller does
not need refcounting and the refcount remains at 0 (has to remain 0, not
1, because of speculative page references).
The page refcounting layer lives on top of the buddy/queueing/etc layers,
so the same technique works no matter what the underlying allocator looks
like.
The only reason I didn't merge it is that it added another branch. I wanted
to rework the APIs a little bit to avoid it.
next prev parent reply other threads:[~2009-02-03 1:34 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-23 8:43 Pekka J Enberg
2009-01-23 8:52 ` Nick Piggin
2009-01-23 9:04 ` Pekka Enberg
2009-01-23 15:03 ` Christoph Lameter
2009-01-23 15:12 ` Nick Piggin
2009-01-23 15:27 ` Christoph Lameter
2009-01-23 15:37 ` Nick Piggin
2009-01-23 15:44 ` Pekka Enberg
2009-01-23 15:54 ` Nick Piggin
2009-01-23 16:07 ` Pekka Enberg
2009-01-23 15:57 ` Christoph Lameter
2009-01-23 16:03 ` Pekka Enberg
2009-01-24 3:11 ` Zhang, Yanmin
2009-01-23 15:16 ` Pekka Enberg
2009-01-23 15:25 ` Christoph Lameter
2009-01-23 15:41 ` Nick Piggin
2009-01-23 15:59 ` Christoph Lameter
2009-01-23 16:17 ` Nick Piggin
2009-01-26 17:17 ` Christoph Lameter
2009-02-03 1:33 ` Nick Piggin [this message]
2009-02-03 17:08 ` Christoph Lameter
2009-01-23 15:42 ` Pekka Enberg
2009-01-23 20:12 ` Matt Mackall
2009-01-23 9:22 ` Zhang, Yanmin
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=200902031233.40987.nickpiggin@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=cl@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=penberg@cs.helsinki.fi \
--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
all inboxes | Powered by JetHome®