Skip to content

Commit 319f58d

Browse files
[fast/warm-reboot] add cpufreq.default_governor=performance to BOOT_OPTIONS (#3435)
* [fast/warm-reboot] add cpufreq.default_governor=performance to BOOT_OPTIONS Append this option to BOOT_OPTIONS variable. How to verify it Run fast-reboot or warm-reboot. Check: admin@sonic:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance After boot is finalized check that it is reset back to default: admin@sonic:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor schedutil --------- Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
1 parent 88ef85c commit 319f58d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/fast-reboot

+6
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,12 @@ function setup_reboot_variables()
422422
local fstype=$(blkid -o value -s TYPE ${sonic_dev})
423423
BOOT_OPTIONS="${BOOT_OPTIONS} ssd-upgrader-part=${sonic_dev},${fstype}"
424424
fi
425+
426+
if [[ "$sonic_asic_type" == "mellanox" ]]; then
427+
# Set governor to performance to speed up boot process.
428+
# The governor is reset back to kernel default in warmboot-finalizer script.
429+
BOOT_OPTIONS="${BOOT_OPTIONS} cpufreq.default_governor=performance"
430+
fi
425431
}
426432
427433
function check_docker_exec()

0 commit comments

Comments
 (0)