Skip to content

Commit baefc3b

Browse files
committed
Set nohz_full in cpu-pinning element
nohz_full (or full dynticks) is a Linux kernel setting that should reduce kernel noise on configured CPUs to a minimum. This change activates this setting on all vCPUs except the first one. Change-Id: Ie009aff52d572873da0bb5cc43fedd7f3325dccc
1 parent 0b1b6c5 commit baefc3b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

elements/cpu-pinning/environment.d/80-kernel-cpu-affinity

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ case $DISTRO_NAME in
2727
DIB_BOOTLOADER_DEFAULT_CMDLINE+=" irqaffinity=0"
2828
# This will be ignored on single vCPU systems
2929
DIB_BOOTLOADER_DEFAULT_CMDLINE+=" isolcpus=1-N"
30+
DIB_BOOTLOADER_DEFAULT_CMDLINE+=" nohz=on nohz_full=1-N"
3031
export DIB_BOOTLOADER_DEFAULT_CMDLINE
3132
;;
3233
*)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
features:
3+
- |
4+
The cpu-pinning element for the amphora image sets the kernel bootarg
5+
nohz_full=1-N to enable
6+
full dynticks on all CPUs except the first one (on single CPU images this
7+
will have no effect). This should reduce kernel noise on those CPUs to a
8+
minimum and reduce latency.
9+
upgrade:
10+
- |
11+
In order for the full dynticks optimization to become effective a new
12+
amphora image needs to be built with the new optional CPU pinning
13+
feature enabled.

0 commit comments

Comments
 (0)