mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 14:02:53 +08:00
优化 CPU 调度器配置
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# This configuration file is customized by fox
|
||||
# Optimize system CPU governors
|
||||
|
||||
CPUPOWER_START_OPTS="frequency-set -g powersave"
|
||||
CPUPOWER_STOP_OPTS="frequency-set -g performance"
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# This configuration file is customized by fox,
|
||||
# Optimize for cpupower systemd service.
|
||||
|
||||
[Unit]
|
||||
Description=Apply cpupower configuration
|
||||
ConditionVirtualization=!container
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=/etc/default/cpupower
|
||||
ExecStart=/usr/bin/cpupower $CPUPOWER_START_OPTS
|
||||
ExecStop=/usr/bin/cpupower $CPUPOWER_STOP_OPTS
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user