From: Tejun Heo <teheo@novell.com>
To: Jan Beulich <JBeulich@novell.com>
Cc: Ingo Molnar <mingo@elte.hu>, Andi Kleen <andi@firstfloor.org>,
linux-kernel@vger.kernel.org
Subject: Re: remap allocator for per-CPU memory
Date: Wed, 13 May 2009 22:53:23 +0900 [thread overview]
Message-ID: <4A0AD0D3.6030802@novell.com> (raw)
In-Reply-To: <4A0AEAC80200007800000BC3@vpn.id2.novell.com>
Hello, Jan.
Jan Beulich wrote:
>>>> Tejun Heo <teheo@novell.com> 13.05.09 15:29 >>>
>>> (b) teach the pageattr code to handle the per-CPU virtual area similarly to
>>> the kernel space for x86-64 (though it's going to be a little more complicated
>>> since there's no pre-determined relation between the virtual and physical
>>> addresses - the necessary lookup might become expensive on systems with
>>> very many [possible] CPUs).
>> Can you elaborate this a bit? Let's sya there's quick way to match
>> whether the page is part of the remapped large page, what can pageattr
>> do differently then? Applying the same attribute to both mappings?
>> Failing or filtering set_memory_*()?
>
> It would have to split the page. Perhaps there wouldn't be a need to
> apply the new attribute to the page(s) that is(are) in the process
> of getting its(their) attribute(s) changed; instead, just don't
> re-establish a 4k mapping for those pages that aren't part of the
> per-CPU space.
Ah... right. Splitting the remapped area should do the trick, so now
the question is whether it would worth all the trouble or should we
just forget about remapping and use 4k on NUMA machines. I don't have
much clue here. Andi seems to think there's no reason to bother with
PMD mappings. Ingo, what do you think?
Thanks.
--
tejun
prev parent reply other threads:[~2009-05-13 13:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-12 15:30 remap allocator for per-CPU memory Jan Beulich
2009-05-12 15:43 ` Tejun Heo
2009-05-13 10:09 ` Tejun Heo
2009-05-13 11:05 ` Andi Kleen
2009-05-13 11:13 ` Tejun Heo
2009-05-13 11:29 ` Tejun Heo
2009-05-13 11:46 ` Andi Kleen
2009-05-13 12:51 ` Jan Beulich
[not found] ` <4A0ADE6A0200007800000BA7@novell.com>
2009-05-13 13:29 ` Tejun Heo
2009-05-13 13:44 ` Jan Beulich
2009-05-13 13:53 ` Tejun Heo [this message]
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=4A0AD0D3.6030802@novell.com \
--to=teheo@novell.com \
--cc=JBeulich@novell.com \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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