我们正在做以下工作:
vi /etc/systemd/system/cpupower.service
[Unit]
Description=CPU powersave
[Service]
Type=oneshot
ExecStart=/usr/bin/cpupower idle-set -D 0
ExecStart=/usr/bin/cpupower frequency-set -g performance
[Install]
WantedBy=multi-user.target以及:
chmod 644 /etc/systemd/system/cpupower.service; systemctl enable cpupower.service在SLES12.3机器上,但是在重新启动后,这不会设置它们!
只有当我们手动执行"systemctl重新启动cpupower.service“时,它才会被设置。
问题是:如何使其永久化,以便在每次重新启动后设置它?
发布于 2019-07-12 14:16:52
sed -i.$(date +%F-%Hh-%Mm-%Ss) 's/#governor/governor/g; s/#energy_perf_bias/energy_perf_bias/g; s/#min_perf_pct/min_perf_pct/g' /usr/lib/tuned/*/tuned.conf调好了!(off:应该在/etc/中修改,而不是在/usr中修改,因为经过优化的更新可以删除设置)
https://unix.stackexchange.com/questions/524687
复制相似问题