[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v3 0/1] numa: equally distribute memory on nodes
From: |
Laurent Vivier |
Subject: |
[Qemu-ppc] [PATCH v3 0/1] numa: equally distribute memory on nodes |
Date: |
Tue, 2 May 2017 17:23:05 +0200 |
When there are more nodes than available memory 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.
v3:
- by default, use the new algorithm (moved to machine.c),
- use the legacy algorithm with pseries-2.9, pc-q35-2.9 and
pc-i440fx-2.9 (and previous)
v2:
- introduce the MachineState function
- if the machine state function pointer is NULL (default),
use the legacy algorithm
- use the new algorithm for pseries-2.10 only
Laurent Vivier (1):
numa: equally distribute memory on nodes
hw/core/machine.c | 2 ++
hw/i386/pc_piix.c | 1 +
hw/i386/pc_q35.c | 1 +
hw/ppc/spapr.c | 1 +
include/hw/boards.h | 2 ++
include/qemu/typedefs.h | 1 +
include/sysemu/numa.h | 9 +++++++--
numa.c | 49 ++++++++++++++++++++++++++++++++++++++-----------
8 files changed, 53 insertions(+), 13 deletions(-)
--
2.9.3
- [Qemu-ppc] [PATCH v3 0/1] numa: equally distribute memory on nodes,
Laurent Vivier <=