* [Qemu-devel] [PULL 0/1] NUMA documentation update @ 2017-03-03 13:13 Eduardo Habkost 2017-03-03 13:13 ` [Qemu-devel] [PULL 1/1] qemu-options: Rewrite -numa documentation Eduardo Habkost 2017-03-03 15:43 ` [Qemu-devel] [PULL 0/1] NUMA documentation update Peter Maydell 0 siblings, 2 replies; 3+ messages in thread From: Eduardo Habkost @ 2017-03-03 13:13 UTC (permalink / raw) To: Peter Maydell; +Cc: Igor Mammedov, qemu-devel Sorry for sending this after soft freeze. I just noticed that it went through the cracks and I believe the documentation update is relevant and simple enough to be included in 2.9. The following changes since commit 508e038a5d725f2aa729f58a1f5209b9be4227de: dtc: Revert unintentional submodule downgrade from commit 077dd74239a99 (2017-03-03 12:48:42 +0000) are available in the git repository at: git://github.com/ehabkost/qemu.git tags/numa-pull-request for you to fetch changes up to 4b9a5dd762ae41acd7df741de3e554b319a2cced: qemu-options: Rewrite -numa documentation (2017-03-03 10:08:03 -0300) ---------------------------------------------------------------- NUMA documentation update ---------------------------------------------------------------- Eduardo Habkost (1): qemu-options: Rewrite -numa documentation qemu-options.hx | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) -- 2.11.0.259.g40922b1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL 1/1] qemu-options: Rewrite -numa documentation 2017-03-03 13:13 [Qemu-devel] [PULL 0/1] NUMA documentation update Eduardo Habkost @ 2017-03-03 13:13 ` Eduardo Habkost 2017-03-03 15:43 ` [Qemu-devel] [PULL 0/1] NUMA documentation update Peter Maydell 1 sibling, 0 replies; 3+ messages in thread From: Eduardo Habkost @ 2017-03-03 13:13 UTC (permalink / raw) To: Peter Maydell; +Cc: Igor Mammedov, qemu-devel Rewrite the -numa documentation to clarify what exactly it does. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20170123180632.28942-3-ehabkost@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> --- qemu-options.hx | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index c85f77d1d8..229243831b 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -144,16 +144,34 @@ STEXI @item -numa node[,mem=@var{size}][,cpus=@var{firstcpu}[-@var{lastcpu}]][,nodeid=@var{node}] @itemx -numa node[,memdev=@var{id}][,cpus=@var{firstcpu}[-@var{lastcpu}]][,nodeid=@var{node}] @findex -numa -Simulate a multi node NUMA system. If @samp{mem}, @samp{memdev} -and @samp{cpus} are omitted, resources are split equally. Also, note -that the -@option{numa} option doesn't allocate any of the specified -resources. That is, it just assigns existing resources to NUMA nodes. This -means that one still has to use the @option{-m}, @option{-smp} options -to allocate RAM and VCPUs respectively, and possibly @option{-object} -to specify the memory backend for the @samp{memdev} suboption. - -@samp{mem} and @samp{memdev} are mutually exclusive. Furthermore, if one -node uses @samp{memdev}, all of them have to use it. +Define a NUMA node and assign RAM and VCPUs to it. + +@var{firstcpu} and @var{lastcpu} are CPU indexes. Each +@samp{cpus} option represent a contiguous range of CPU indexes +(or a single VCPU if @var{lastcpu} is omitted). A non-contiguous +set of VCPUs can be represented by providing multiple @samp{cpus} +options. If @samp{cpus} is omitted on all nodes, VCPUs are automatically +split between them. + +For example, the following option assigns VCPUs 0, 1, 2 and 5 to +a NUMA node: +@example +-numa node,cpus=0-2,cpus=5 +@end example + +@samp{mem} assigns a given RAM amount to a node. @samp{memdev} +assigns RAM from a given memory backend device to a node. If +@samp{mem} and @samp{memdev} are omitted in all nodes, RAM is +split equally between them. + +@samp{mem} and @samp{memdev} are mutually exclusive. Furthermore, +if one node uses @samp{memdev}, all of them have to use it. + +Note that the -@option{numa} option doesn't allocate any of the +specified resources, it just assigns existing resources to NUMA +nodes. This means that one still has to use the @option{-m}, +@option{-smp} options to allocate RAM and VCPUs respectively. + ETEXI DEF("add-fd", HAS_ARG, QEMU_OPTION_add_fd, -- 2.11.0.259.g40922b1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL 0/1] NUMA documentation update 2017-03-03 13:13 [Qemu-devel] [PULL 0/1] NUMA documentation update Eduardo Habkost 2017-03-03 13:13 ` [Qemu-devel] [PULL 1/1] qemu-options: Rewrite -numa documentation Eduardo Habkost @ 2017-03-03 15:43 ` Peter Maydell 1 sibling, 0 replies; 3+ messages in thread From: Peter Maydell @ 2017-03-03 15:43 UTC (permalink / raw) To: Eduardo Habkost; +Cc: Igor Mammedov, QEMU Developers On 3 March 2017 at 13:13, Eduardo Habkost <ehabkost@redhat.com> wrote: > Sorry for sending this after soft freeze. I just noticed that it > went through the cracks and I believe the documentation update is > relevant and simple enough to be included in 2.9. > > The following changes since commit 508e038a5d725f2aa729f58a1f5209b9be4227de: > > dtc: Revert unintentional submodule downgrade from commit 077dd74239a99 (2017-03-03 12:48:42 +0000) > > are available in the git repository at: > > git://github.com/ehabkost/qemu.git tags/numa-pull-request > > for you to fetch changes up to 4b9a5dd762ae41acd7df741de3e554b319a2cced: > > qemu-options: Rewrite -numa documentation (2017-03-03 10:08:03 -0300) > > ---------------------------------------------------------------- > NUMA documentation update > > ---------------------------------------------------------------- > > Eduardo Habkost (1): > qemu-options: Rewrite -numa documentation > > qemu-options.hx | 38 ++++++++++++++++++++++++++++---------- > 1 file changed, 28 insertions(+), 10 deletions(- Applied, thanks. -- PMM ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-03 15:44 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-03-03 13:13 [Qemu-devel] [PULL 0/1] NUMA documentation update Eduardo Habkost 2017-03-03 13:13 ` [Qemu-devel] [PULL 1/1] qemu-options: Rewrite -numa documentation Eduardo Habkost 2017-03-03 15:43 ` [Qemu-devel] [PULL 0/1] NUMA documentation update Peter Maydell
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).