From 3e14c9557bc4a845be5a53083f803b557b81b338 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Thu, 1 Nov 2018 16:00:49 -0400 Subject: [PATCH] Clean up cpu_shared_set config docs This cleans up formatting and grammar for the cpu_shared_set config option docs and related flavor extra spec docs, and updates the flavor extra spec docs to link to the config option. Change-Id: Ief013224b5f6c541ea8900653d35057837f740eb --- doc/source/user/flavors.rst | 6 +++--- nova/conf/compute.py | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/source/user/flavors.rst b/doc/source/user/flavors.rst index 77c4ed190942..a12a49d965de 100644 --- a/doc/source/user/flavors.rst +++ b/doc/source/user/flavors.rst @@ -561,9 +561,9 @@ Emulator threads policy - ``share``: (default) The emulator threads float across the pCPUs associated to the guest. To place a workload's emulator threads on - a set of isolated physical CPUs, set ``share``` and - ``[compute]/cpu_shared_set`` configuration option to the set of - host CPUs that should be used for best-effort CPU resources. + a set of isolated physical CPUs, set ``share`` and the + :oslo.config:option:`compute.cpu_shared_set` configuration option to the + set of host CPUs that should be used for best-effort CPU resources. - ``isolate``: The emulator threads are isolated on a single pCPU. diff --git a/nova/conf/compute.py b/nova/conf/compute.py index ac7bd4c9b25d..b2f1e5496f0c 100644 --- a/nova/conf/compute.py +++ b/nova/conf/compute.py @@ -669,9 +669,10 @@ Defines which physical CPUs (pCPUs) will be used for best-effort guest vCPU resources. Currently only used by libvirt driver to place guest emulator threads when -hw:emulator_threads_policy:share. +the flavor extra spec is set to ``hw:emulator_threads_policy=share``. + +For example:: -:: cpu_shared_set = "4-12,^8,15" """), cfg.BoolOpt('live_migration_wait_for_vif_plug',