From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Andrew Morton <akpm@osdl.org>
Cc: Christoph Lameter <clameter@sgi.com>,
linux-mm@kvack.org, Andy Whitcroft <apw@shadowen.org>,
Dave Hansen <haveblue@us.ibm.com>
Subject: Re: [PATCH] Get rid of zone_table V2
Date: Wed, 20 Sep 2006 02:17:10 +1000 [thread overview]
Message-ID: <45101806.4070900@yahoo.com.au> (raw)
In-Reply-To: <20060919083851.75b26075.akpm@osdl.org>
Andrew Morton wrote:
> On Tue, 19 Sep 2006 07:10:18 -0700 (PDT)
> Christoph Lameter <clameter@sgi.com> wrote:
>>Yeah but we have added so much stuff in between that such a thing is
>>highly unlikely. Even with padding we could increase the size of zone to
>>the next power of two.
>
>
> unlikely != impossible. If some distro were to send the "unlikely" to
> zillions of users, that would be sad.
I suspect if nobody else, then the ScaleMP guys would be sad about
this. But as you say, it is probably even worse that anybody might
suddenly get suboptimal behaviour depending on the phase of the moon.
>
> I suspect what we want in there is to make the buddy-allocator's fields
> land in a separate cacheline from the vm-scanner's fields. I don't think
> the code has been reviewed for correctness wrt that for quite some time.
>
> If there's some smarter way of doing the padding then cool.
I probably touched this padding stuff last, and indeed I tried to break
it into allocator / scanner / readmostly. There is quite a bit of
readmostly stuff in the allocator area (pages_* x 3, lowmem_reserve,
and the 2 CONFIG_NUMA fields), but it is generally accessed around the
same time as the other fields (lock and free_pages), so it might be
best to keep them together.
vm_stat may not be in the right place. I'd say put it up in the
allocator section, because quite a few stats happen there and
allocation is more performance critical than reclaim.
> Of course, it might be that we _want_ both things in the same cacheline:
> the page scanner often frees pages (we hope ;)). And it'll usually be the
> case that a page-allocator immediately goes and adds the page to the LRU.
> ANd ditto for a page-freer.
That's very true. There is some element of work batching though
(buddy allocation and freeing happening in batches, lru adding and
reclaim freeing happening in pagevec chunks).
So you'd still rather their cachelines don't overlap I suspect. Of
course, I can't imagine it will be easy to benchmark (other than on
ScaleMP systems, maybe).
--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com
--
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:[~2006-09-19 16:17 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-18 19:21 Christoph Lameter
2006-09-18 20:28 ` Andrew Morton
2006-09-18 22:51 ` Christoph Lameter
2006-09-18 23:15 ` Andrew Morton
2006-09-18 23:46 ` Christoph Lameter
2006-09-18 23:58 ` Andrew Morton
2006-09-19 0:08 ` Christoph Lameter
2006-09-19 0:14 ` Christoph Lameter
2006-09-19 0:31 ` Andrew Morton
2006-09-19 1:20 ` Christoph Lameter
2006-09-19 6:12 ` Christoph Lameter
2006-09-19 6:33 ` Andrew Morton
2006-09-19 14:10 ` Christoph Lameter
2006-09-19 15:38 ` Andrew Morton
2006-09-19 15:41 ` Christoph Lameter
2006-09-19 16:23 ` Nick Piggin
2006-09-19 16:45 ` Nick Piggin
2006-09-19 17:50 ` Christoph Lameter
2006-09-19 18:24 ` Andi Kleen
2006-09-19 16:17 ` Nick Piggin [this message]
2006-09-24 10:06 ` Andrew Morton
2006-09-24 16:58 ` Christoph Lameter
2006-09-27 9:19 ` Andrew Morton
2006-09-27 9:26 ` Andy Whitcroft
2006-09-27 11:23 ` [PATCH] zone table removal miss merge Andy Whitcroft
2006-09-27 16:19 ` Christoph Lameter
2006-09-27 11:27 ` [PATCH] Get rid of zone_table V2 Andy Whitcroft
2006-09-27 16:24 ` Andrew Morton
2006-09-30 18:47 ` Christoph Lameter
2006-09-30 18:48 ` Christoph Lameter
2006-09-30 20:08 ` Andrew Morton
2006-10-02 15:57 ` Christoph Lameter
2006-10-02 17:10 ` Christoph Lameter
2006-10-04 10:10 ` Andy Whitcroft
2006-10-06 14:45 ` [PATCH] zoneid fix up calculations for ZONEID_PGSHIFT Andy Whitcroft
2006-10-06 17:00 ` 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=45101806.4070900@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=akpm@osdl.org \
--cc=apw@shadowen.org \
--cc=clameter@sgi.com \
--cc=haveblue@us.ibm.com \
--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