From: Laurent Vivier <lvivier@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: David Gibson <david@gibson.dropbear.id.au>,
Thomas Huth <thuth@redhat.com>,
qemu-devel@nongnu.org, Laurent Vivier <lvivier@redhat.com>
Subject: [Qemu-devel] [PATCH v2 0/2] numa, spapr: equally distribute memory on nodes
Date: Thu, 27 Apr 2017 12:12:57 +0200 [thread overview]
Message-ID: <20170427101259.13798-1-lvivier@redhat.com> (raw)
When there are more nodes than memory available to put the minimum
allowed memory by node, all the memory is put on the last node.
This series introduces a new MachineState function to
distribute equally the memory across the nodes
without breaking compatibility with previous
machine types.
The new function uses an error diffusion algorithm to
distribute the memory across the nodes.
As the memory alignment for pseries is 256MB and for the others
is only 8MB, we introduce this change only for pseries-2.10
Laurent Vivier (2):
numa: introduce numa_auto_assign_ram() function in MachineClass
numa,spapr: equally distribute memory on nodes
hw/ppc/spapr.c | 21 ++++++++++++++++++++-
include/hw/boards.h | 2 ++
include/hw/ppc/spapr.h | 3 ++-
numa.c | 44 +++++++++++++++++++++++++++++++++-----------
4 files changed, 57 insertions(+), 13 deletions(-)
--
2.9.3
next reply other threads:[~2017-04-27 10:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-27 10:12 Laurent Vivier [this message]
2017-04-27 10:12 ` [Qemu-devel] [PATCH v2 1/2] numa: introduce numa_auto_assign_ram() function in MachineClass Laurent Vivier
2017-04-27 14:09 ` Eduardo Habkost
2017-04-27 15:09 ` Laurent Vivier
2017-04-27 16:09 ` Eduardo Habkost
2017-04-27 20:28 ` Eduardo Habkost
2017-04-27 10:12 ` [Qemu-devel] [PATCH v2 2/2] numa, spapr: equally distribute memory on nodes Laurent Vivier
2017-04-27 20:31 ` Eduardo Habkost
2017-05-01 3:56 ` David Gibson
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=20170427101259.13798-1-lvivier@redhat.com \
--to=lvivier@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=ehabkost@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).