From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: Andre Przywara <andre.przywara@amd.com>,
Alexander Graf <agraf@suse.de>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [PATCH 0/3][RFC] NUMA: add host side pinning
Date: Mon, 28 Jun 2010 11:17:55 -0500 [thread overview]
Message-ID: <4C28CB33.8030101@codemonkey.ws> (raw)
In-Reply-To: <4C233DAB.60106@redhat.com>
On 06/24/2010 06:12 AM, Avi Kivity wrote:
> On 06/24/2010 01:58 PM, Andre Przywara wrote:
>>> So who would create the /dev/shm/nodeXX files?
>>
>> Currently it is QEMU. It creates a somewhat unique filename, opens
>> and unlinks it. The difference would be to name the file after the
>> option and to not unlink it.
>>
>> > I can imagine starting numactl before qemu, even though that's
>> > cumbersome. I don't think it's feasible to start numactl after
>> > qemu is running. That'd involve way too much magic that I'd prefer
>> > qemu to call numactl itself.
>> Using the current code the files would not exist before QEMU
>> allocated RAM, and after that it could already touch pages before
>> numactl set the policy.
>
> Non-anonymous memory doesn't work well with ksm and transparent
> hugepages. Is it possible to use anonymous memory rather than file
> backed?
You aren't going to be doing NUMA pinning and KSM AFAICT.
Regards,
Anthony Liguori
>> To avoid this I'd like to see the pinning done from within QEMU. I am
>> not sure whether calling numactl via system() and friends is OK, I'd
>> prefer to run the syscalls directly (like in patch 3/3) and pull the
>> necessary options into the -numa pin,... command line. We could mimic
>> numactl's syntax here.
>
> Definitely not use system(), but IIRC numactl has a library interface?
>
>
next prev parent reply other threads:[~2010-06-28 16:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-23 21:09 [PATCH 0/3][RFC] NUMA: add host side pinning Andre Przywara
2010-06-23 21:09 ` [PATCH 1/3] NUMA: add Linux libnuma detection Andre Przywara
2010-06-23 21:09 ` [PATCH 2/3] NUMA: add parsing of host NUMA pin option Andre Przywara
2010-06-23 21:09 ` [PATCH 3/3] NUMA: realize NUMA memory pinning Andre Przywara
2010-06-23 22:21 ` [PATCH 0/3][RFC] NUMA: add host side pinning Anthony Liguori
2010-06-23 22:29 ` Alexander Graf
2010-06-24 10:58 ` Andre Przywara
2010-06-24 11:12 ` Avi Kivity
2010-06-24 11:34 ` Andre Przywara
2010-06-24 11:42 ` Avi Kivity
2010-06-28 16:20 ` Anthony Liguori
2010-06-28 16:26 ` Alexander Graf
2010-06-29 9:46 ` Avi Kivity
2010-06-25 11:00 ` Jes Sorensen
2010-06-25 11:06 ` Andre Przywara
2010-06-25 11:37 ` Jes Sorensen
2010-06-28 16:17 ` Anthony Liguori [this message]
2010-06-29 9:48 ` Avi Kivity
2010-06-24 6:44 ` Andre Przywara
2010-06-24 13:14 ` Andi Kleen
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=4C28CB33.8030101@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=agraf@suse.de \
--cc=andre.przywara@amd.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.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