Merge "Add NUMA affinity policy options "socket""
This commit is contained in:
commit
147503f3c6
@ -205,6 +205,10 @@ def _get_attrs(client_manager, parsed_args):
|
||||
and parsed_args.numa_policy_preferred
|
||||
):
|
||||
attrs['numa_affinity_policy'] = 'preferred'
|
||||
elif (
|
||||
'numa_policy_socket' in parsed_args and parsed_args.numa_policy_socket
|
||||
):
|
||||
attrs['numa_affinity_policy'] = 'socket'
|
||||
elif (
|
||||
'numa_policy_legacy' in parsed_args and parsed_args.numa_policy_legacy
|
||||
):
|
||||
@ -354,6 +358,11 @@ def _add_updatable_args(parser):
|
||||
action='store_true',
|
||||
help=_("NUMA affinity policy preferred to schedule this port"),
|
||||
)
|
||||
numa_affinity_policy_group.add_argument(
|
||||
'--numa-policy-socket',
|
||||
action='store_true',
|
||||
help=_("NUMA affinity policy socket to schedule this port"),
|
||||
)
|
||||
numa_affinity_policy_group.add_argument(
|
||||
'--numa-policy-legacy',
|
||||
action='store_true',
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Add a new NUMA affinity policy option: "socket". That applies to any new
|
||||
port (using ``port create``) or any existing port (using ``port set``).
|
Loading…
x
Reference in New Issue
Block a user