Linux   发布时间:2022-04-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux – 禁用CPU管理大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

如果我将以下processor.max_cstate = 0添加到内核命令行进行启动,是否会禁用所有CPU电源管理和限制? 我还发现: http://www.experts-exchange.com/OS/Linux/Administration/A_3492-Avoiding-CPU-speed-scaling-in-modern-Linux-diStributions-Running-CPU-
如果我将以下processor.max_cstate = 0添加到内核命令行进行启动,是否会禁用所有cpu电源管理和限制?

我还发现:
http://www.experts-exchange.com/OS/Linux/Administration/A_3492-Avoiding-CPU-speed-scaling-in-modern-Linux-distributions-Running-CPU-at-full-speed-Tips.html

链接讨论了将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发行版/版本和内核.

最大化服务器性能的过程因您可以使用的内容而有很大差异…

例如:

> 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调控器.

系统设置和配置文件按照以下时间表排列:

大佬总结

以上是大佬教程为你收集整理的linux – 禁用CPU管理全部内容,希望文章能够帮你解决linux – 禁用CPU管理所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。