如果我将以下processor.max_cstate = 0添加到内核命令行进行启动,是否会禁用所有cpu电源管理和限制?
该链接讨论了将cpu调控器从“ondemand”更改为所有cpu /内核的“性能”以及从内核禁用kondemand.
服务器用于Web托管
更新:
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
解决方法
这将取决于您的硬件设置.
请提供服务器make / model和Linux发行版/版本和内核.
请提供服务器make / model和Linux发行版/版本和内核.
例如:
> Red Hat 6系统具有tuned-adm框架,可以禁用cpu调控器. (Also see this graphic.)
> HP ProLiant服务器(和其他)具有specific tuning guide和低延迟和性能优化设置的步骤.
>大多数硬件供应商都有特定的BIOS设置可以提供帮助(禁用C状态和P状态 – 也可以进行频率调整).
所以,请提供更多有关您正在寻找的内容的背景信息.
检查矩阵listed in this answer以获取有关RHEL方法的一些一般信息.
编辑:从您的内核字符串,这似乎是一个类似Red Hat的RPM系统.
我建议下载tuned-adm实用程序并更改系统的性能配置文件以完成您想要的任务.
在你的情况下:
yum install tuned tuned-utils tuned-adm profile latency-performance
或者可能:
tuned-adm profile enterprise storage
要么禁用cpu调控器.
系统设置和配置文件按照以下时间表排列: