Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.

Commit eda01dc

Browse files
authored
performance gobernor
1 parent 163c3f1 commit eda01dc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

bootstrap/00-kernel

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,14 @@ vm.vfs_cache_pressure=500
3737
vm.swappiness=100
3838
vm.dirty_background_ratio=1
3939
vm.dirty_ratio=50
40-
EOF
40+
EOF
41+
42+
cat <<EOF >> /etc/local.d/cpufreq.start
43+
#!/bin/sh
44+
for cpu in /sys/devices/system/cpu/cpufreq/policy*; do
45+
echo performance > ${cpu}/scaling_governor
46+
done
47+
EOF
48+
49+
chmod +x /etc/local.d/cpufreq.start
50+
rc-update add local default

0 commit comments

Comments
 (0)