public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@amd.com>
To: avi@redhat.com, anthony@codemonkey.ws
Cc: kvm@vger.kernel.org
Subject: [PATCH 0/4]: NUMA: add host binding
Date: Wed, 11 Aug 2010 15:52:14 +0200	[thread overview]
Message-ID: <1281534738-8310-1-git-send-email-andre.przywara@amd.com> (raw)

Hi,

the following 4 patches add NUMA host binding to qemu(-kvm).
They allow to specify NUMA policies to be applied to each of the
(separately specified) guest NUMA nodes. It mimics numactl's syntax,
allowing "membind", "preferred" and "interleave" as possible
policies. An example is:
$ qemu -smp 4 ... -numa node,cpus=0,mem=1024M \
  -numa node,cpus=1-2,mem=2048M -numa node,cpus=3,mem=1024M \
  -numa host,nodeid=0,membind=0 -numa host,nodeid=1,interleave=0-1 \
  -numa host,nodeid=2,preferred=!0
The complete syntax is: -numa host,nodeid=<n>,\
  (membind|preferred|interleave)=[+!]<hostnode>[-<hostnode>]
The '+' denotes CPUSET relative nodes, '!' means negation
(see numactl(8)).
As it can be easier done from outside of QEMU, I completely left out
vCPU binding, AFAIK management applications do this today already.

This version is based on the new generic bitmap code submitted with
patch 11/15 of the VNC update by Corentin Chary on Aug 11th:
http://lists.gnu.org/archive/html/qemu-devel/2010-08/msg00517.html
So it requires this patch to build (but not to apply).

Please comment!

Regards,
Andre.

--
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany




             reply	other threads:[~2010-08-11 13:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-11 13:52 Andre Przywara [this message]
2010-08-11 13:52 ` [PATCH 1/4] NUMA: change existing NUMA guest code to use new bitmap implementation Andre Przywara
2010-08-11 13:52 ` [PATCH 2/4] NUMA: add Linux libnuma detection Andre Przywara
2010-08-11 13:52 ` [PATCH 3/4] NUMA: parse new host dependent command line options Andre Przywara
2010-08-11 13:52 ` [PATCH 4/4] NUMA: realize NUMA memory pinning Andre Przywara
2010-08-23 18:59   ` Marcelo Tosatti
2010-08-23 19:27     ` Anthony Liguori
2010-08-23 21:16       ` Andre Przywara
2010-08-23 21:27         ` Anthony Liguori
2010-08-31 20:54           ` Andrew Theurer
2010-08-31 22:03             ` Anthony Liguori
2010-09-01  3:38               ` Andrew Theurer
2010-09-09 20:00               ` Andre Przywara

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=1281534738-8310-1-git-send-email-andre.przywara@amd.com \
    --to=andre.przywara@amd.com \
    --cc=anthony@codemonkey.ws \
    --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