Skip to content

Commit

Permalink
frontend: introduce isolate threads
Browse files Browse the repository at this point in the history
This patch adds the isolate threads option to the UI.

Change-Id: I7b7c095b2acad2f0693f238a2dd3b4c86f9fb63b
Signed-off-by: Liran Rotenberg <lrotenbe@redhat.com>
  • Loading branch information
liranr23 committed Apr 12, 2022
1 parent 0b80e60 commit 93dac04
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public CpuPinningListModel() {
CpuPinningPolicy.DEDICATED,
constants.cpuPinningDedicatedDescription(),
constants.cpuPinningDedicatedDisabled()));
items.add(new CpuPinningListModelItem(
CpuPinningPolicy.ISOLATE_THREADS,
constants.cpuPinningIsolateThreadsDescription(),
constants.cpuPinningDedicatedDisabled()));

setItems(items);
setSelectedCpuPolicy(CpuPinningPolicy.NONE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4080,6 +4080,7 @@ protected void updateCpuPinningPolicy() {

cpuPinningPolicy.setCpuPolicyEnabled(CpuPinningPolicy.MANUAL, defaultHostSelected);
cpuPinningPolicy.setCpuPolicyEnabled(CpuPinningPolicy.DEDICATED, isDedicatedCpusSupported && numaNodesUnpinned);
cpuPinningPolicy.setCpuPolicyEnabled(CpuPinningPolicy.ISOLATE_THREADS, isDedicatedCpusSupported && numaNodesUnpinned);
}

protected void cpuPinningPolicyChanged() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,8 @@ public interface LocalizedEnums extends ConstantsWithLookup {

String CpuPinningPolicy___DEDICATED();

String CpuPinningPolicy___ISOLATE_THREADS();

String SerialNumberPolicy___HOST_ID();

String SerialNumberPolicy___VM_ID();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2233,6 +2233,8 @@ public interface UIConstants extends Constants {

String cpuPinningDedicatedDescription();

String cpuPinningIsolateThreadsDescription();

String cpuPinningDedicatedDisabled();

String accountSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ CpuPinningPolicy___NONE=None
CpuPinningPolicy___MANUAL=Manual
CpuPinningPolicy___RESIZE_AND_PIN_NUMA=Resize and Pin NUMA
CpuPinningPolicy___DEDICATED=Dedicated
CpuPinningPolicy___ISOLATE_THREADS=Isolate threads
DiskInterface___IDE=IDE
DiskInterface___SCSI=SCSI
DiskInterface___SPAPR_VSCSI=sPAPR VSCSI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1133,5 +1133,6 @@ directPermissions=Direct
customParallelMigrationsDisabledReason=Available only when Custom Parallel Migrations are selected.
clusterDefaultCustomParallelMigrationsDisabledReason=Cannot change for Cluster default value.
cpuPinningDedicatedDescription=Exclusively pin virtual CPUs to host physical CPUs. If a VM has NUMA enabled, the NUMA nodes will be pinned automatically.
cpuPinningDedicatedDisabled=Dedicated CPU Policy is available on cluster version 4.7 or newer. If the VM has NUMA enabled, all nodes have to be unpinned.
cpuPinningDedicatedDisabled=The CPU Policy is available on cluster version 4.7 or newer. If the VM has NUMA enabled, all nodes have to be unpinned.
cpuPinningIsolateThreadsDescription=Exclusively pin virtual CPUs to host physical CPUs. Each virtual CPU gets a physical core. If a VM has NUMA enabled, the NUMA nodes will be pinned automatically.
statelessVmFieldDisabledReason=Disabled when using the latest version of a template is selected.

0 comments on commit 93dac04

Please sign in to comment.