大网数据广告活动
服务器运维问答

Disable CPU sockets dynamically in Linux to save energy?

· 52CE 我爱测

I have a 4X Xeon X7560 Dell r810 server that uses a lot of energy, even while idle (400 watts). I don't need all 4 CPUs active when the server is idle or under light load, so I wonder if I can save energy by disabling them. I kno…

问题原文

原帖链接 · sudo · CC BY-SA 3.0

I have a 4X Xeon X7560 Dell r810 server that uses a lot of energy, even while idle (400 watts). I don't need all 4 CPUs active when the server is idle or under light load, so I wonder if I can save energy by disabling them.

I know you can dynamically disable logical cores ("processors" as Linux calls them) with echo 0 > /sys/devices/system/cpu/cpu[number]/online, but how can I disable an entire CPU socket while the system is running in a way that will prevent that CPU from consuming energy? And I also need to be able to re-enable them without rebooting. I tried disabling all lcores that were mapped to a socket, and I didn't see any change in idle power consumption.

已采纳解答

原帖链接 · Thomas · CC BY-SA 3.0

I doubt that disabling the cores in the Linux sysfs will save any power, unless the CPU supports such features like modern ARM CPUs do. The second issue you would have, shutting down one or more sockets, will be that each socket has a dedicated portion of RAM, which would also be unavailable if you shutdown that socket.

Best and maybe only way to save energy is to install and configure cpupower or any other tool that can downclock your CPU. Also check in the BIOS for such features.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-04-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。