Jump to content

Command Crate ¿about?

Create udev rule to set CPU scaling threshold on module load

echo SUBSYSTEM=="module", ACTION=="add", KERNEL=="acpi_cpufreq", RUN+=" /bin/sh -c ' echo -n $USER_LIMIT > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ' " > /etc/udev/rules.d/50-scaling-governor.rules

Creates a udev rule that automatically sets the up_threshold for the CPU's ondemand governor when the acpi_cpufreq module is loaded.

system tuning [kb:28]