Merge "update default numa allocation strategy"

This commit is contained in:
Zuul 2022-08-10 21:21:23 +00:00 committed by Gerrit Code Review
commit e90fcc1535
2 changed files with 19 additions and 6 deletions

View File

@ -1008,15 +1008,16 @@ Related options:
to be enabled for this to take effect.
"""),
cfg.BoolOpt('packing_host_numa_cells_allocation_strategy',
default=True,
default=False,
help="""
This option controls allocation strategy used to choose NUMA cells on host for
placing VM's NUMA cells (for VMs with defined numa topology). By
default host's NUMA cell with more resources consumed will be chosen first for
placing attempt. So the host cell with some usage will be packed with VM's cell
until it will be completely exhausted, before new free host's cell will be
used. When the packing_host_numa_cells_allocation_strategy variable is set to
``False``, host's NUMA cell with more resources available will be used.
default host's NUMA cell with more resources consumed will be chosen last for
placing attempt. When the packing_host_numa_cells_allocation_strategy variable
is set to ``False``, host's NUMA cell with more resources available will be
used. When set to ``True`` cells with some usage will be packed with VM's cell
until it will be completely exhausted, before a new free host's cell will be
used.
Possible values:

View File

@ -0,0 +1,12 @@
---
upgrade:
- |
During the triage of https://bugs.launchpad.net/nova/+bug/1978372
we compared the performance of nova's numa allocations strategies
as it applied to the large numbers of host and guest numa nodes.
Prior to ``Xena`` nova only supported a linear packing strategy.
In ``Xena`` ``[compute]/packing_host_numa_cells_allocation_strategy``
was introduced maintaining the previous packing behavior by default.
The numa allocation strategy has now been defaulted to spread.
The old behavior can be restored by defining:
``[compute]/packing_host_numa_cells_allocation_strategy=true``