如果我将以下内容添加processor.max_cstate=0
到启动内核命令行中,是否会禁用所有 CPU 电源管理和限制?
该链接讨论了将所有 CPU/核心的 CPU 调节器从“按需”更改为“性能”,并从内核禁用 kondemand。
服务器用于网站托管
更新:
2.6.32-379.1.1.lve1.1.7.6.el6.x86_64 #1 SMP Sat Aug 4 09:56:37 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
。
# dmidecode 2.11
SMBIOS 2.6 present.
74 structures occupying 2878 bytes.
Table at 0x0009F000.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: American Megatrends Inc.
Version: 1.0c
Release Date: 05/27/2010
Address: 0xF0000
Runtime Size: 64 kB
ROM Size: 4096 kB
Characteristics:
ISA is supported
PCI is supported
PNP is supported
BIOS is upgradeable
BIOS shadowing is allowed
ESCD support is available
Boot from CD is supported
Selectable boot is supported
BIOS ROM is socketed
EDD is supported
5.25"/1.2 MB floppy services are supported (int 13h)
3.5"/720 kB floppy services are supported (int 13h)
3.5"/2.88 MB floppy services are supported (int 13h)
Print screen service is supported (int 5h)
8042 keyboard services are supported (int 9h)
Serial services are supported (int 14h)
Printer services are supported (int 17h)
CGA/mono video services are supported (int 10h)
ACPI is supported
USB legacy is supported
LS-120 boot is supported
ATAPI Zip drive boot is supported
BIOS boot specification is supported
Targeted content distribution is supported
BIOS Revision: 8.16
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: Supermicro
Product Name: X8SIE
Version: 0123456789
Serial Number: 0123456789
UUID: 49434D53-0200-9033-2500-33902500D52C
Wake-up Type: Power Switch
SKU Number: To Be Filled By O.E.M.
Family: To Be Filled By O.E.M.
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: Supermicro
Product Name: X8SIE
Version: 0123456789
Serial Number: VM11S61561
Asset Tag: To Be Filled By O.E.M.
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: To Be Filled By O.E.M.
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0
Handle 0x0003, DMI type 3, 21 bytes
Chassis Information
Manufacturer: Supermicro
Type: Sealed-case PC
Lock: Not Present
Version: 0123456789
Serial Number: 0123456789
Asset Tag: To Be Filled By O.E.M.
Boot-up State: Safe
Power Supply State: Safe
Thermal State: Safe
Security Status: None
OEM Information: 0x00000000
Height: Unspecified
Number Of Power Cords: 1
Contained Elements: 0
答案1
这将是您的硬件设置的功能。
请提供服务器品牌/型号以及 Linux 发行版/版本和内核。
最大化服务器性能的过程因您可用的资源而异......
例如:
- Red Hat 6 系统具有 tuned-adm 框架,可禁用 CPU 调节器。(另请参见此图。)
- HP ProLiant 服务器(及其他服务器)具有具体调整指南以及低延迟和性能优化设置的步骤。
- 大多数硬件供应商都有可以提供帮助的特定 BIOS 设置(禁用 C 状态和 P 状态 - 还有频率缩放)。
因此,请提供更多有关您正在寻找的内容的背景信息。
检查矩阵在此答案中列出有关 RHEL 方法的一些一般信息。
编辑:从您的内核字符串来看,这似乎是一个基于 Red Hat 的 RPM 系统。
我建议下载 tuned-adm 实用程序并更改系统的性能配置文件来实现您的要求。
就你的情况而言:
yum install tuned tuned-utils
tuned-adm profile latency-performance
或者可能:
tuned-adm profile enterprise storage
两者都将禁用 CPU 调节器。
系统设置和配置文件按照以下时间表排列: