|
本帖最后由 fulibo 于 2025-1-10 18:24 编辑
这个配置很稳定!
大小核心CPU需要自己调整一下!
异类线程调度策略
异类短运行线程调度策略
@echo off
echo scheme_min=高性能 scheme_max=节能模式 SCHEME_BALANCED=平衡模式
echo -setacvalueindex=插电模式 -setdcvalueindex=电池模式
echo 可以在处理器电源管理做以下的设定,来实现大核心工作,但超线程,小核都不工作,处于睡眠状态
echo 生效的异类策略(异类策略0)+异类线程调度策略(高性能处理器)+异类短运行线程调度策略(高性能处理器)
echo 播放视频时(0=优化视频质量,1=平衡,2=优化节能)
Powercfg -setacvalueindex scheme_min 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 0
Powercfg -setdcvalueindex scheme_min 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 1
powercfg -setacvalueindex scheme_max 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 1
Powercfg -setdcvalueindex scheme_max 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 1
powercfg -setacvalueindex SCHEME_BALANCED 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 0
Powercfg -setdcvalueindex SCHEME_BALANCED 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 1
echo 处理器性能提升策略,性能倾向从保守到激进的排序为:单一的、理想的、IdealAggressive、Rocket
echo 0=理想,1=单一,2=Rocket,3=IdealAggressive
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PERFINCPOL 2
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PERFINCPOL 2
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PERFINCPOL 1
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PERFINCPOL 1
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFINCPOL 0
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFINCPOL 0
echo 处理器性能降低策略,降频积极性从高到底排序为:Rocket、理想的、单一
echo 0=理想,1=单一,2=Rocket
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PERFDECPOL 1
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PERFDECPOL 1
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PERFDECPOL 2
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PERFDECPOL 2
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFDECPOL 0
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFDECPOL 0
echo 处理器性能内核休止实用工具分配(禁用)
Powercfg -setacvalueindex scheme_min sub_processor DISTRIBUTEUTIL 0
Powercfg -setdcvalueindex scheme_min sub_processor DISTRIBUTEUTIL 0
powercfg -setacvalueindex scheme_max sub_processor DISTRIBUTEUTIL 0
Powercfg -setdcvalueindex scheme_max sub_processor DISTRIBUTEUTIL 0
powercfg -setacvalueindex SCHEME_BALANCED sub_processor DISTRIBUTEUTIL 0
Powercfg -setdcvalueindex SCHEME_BALANCED sub_processor DISTRIBUTEUTIL 0
echo 开启处理器性能提升模式
echo 性能倾向从保守到激进的排序为:高效率、高效积极且有保障、高性能高效率、积极且有保障、高性能
echo 0=已禁用 - 不选择高于最大频率的目标频率。 1=已启用 - 选择高于最大频率的目标频率。2=高性能 - 总是选择超过标称频率的最高目标频率。
echo 3=高效率 - 选择高于最大频率的目标频率(如果硬件能够如此有效地支持).4= 高性能高效率 - 总是选择超过标称频率的最高目标频率(如果硬件能够提供有效的支持)。
echo 5=积极且有保障 - 总是选择超过保证频率的最高目标频率.6=高效、积极且有保障 - 总是选择超过保证频率的最高目标频率(如果硬件能够提供有效的支持)。
Powercfg -setacvalueindex scheme_min sub_processor PERFBOOSTMODE 2
Powercfg -setdcvalueindex scheme_min sub_processor PERFBOOSTMODE 2
powercfg -setacvalueindex scheme_max sub_processor PERFBOOSTMODE 2
Powercfg -setdcvalueindex scheme_max sub_processor PERFBOOSTMODE 2
powercfg -setacvalueindex SCHEME_BALANCED sub_processor PERFBOOSTMODE 2
Powercfg -setdcvalueindex SCHEME_BALANCED sub_processor PERFBOOSTMODE 2
echo 生效的异类策略:
echo 异类策略0="处理器性能放置最小核心数量"负责所有睡眠;睡眠顺序为优先睡眠超线程-小核-大核
echo 异类策略1="处理器性能放置最小核心数量"负责小核睡眠;"针对第1类处理器电源效率的处理器性能核心放置最小核心数量"负责大核+超线程睡眠
echo 异类策略2=大核休眠;异类策略3=小核休眠;异类策略4=基于利用率进行随机休眠(Win10默认)
echo 如果你使用12、13代处理器,无论是哪种系统,最好都设为异类策略0,可以获得最好的能效处理。
Powercfg -setacvalueindex scheme_min sub_processor HETEROPOLICY 0
Powercfg -setdcvalueindex scheme_min sub_processor HETEROPOLICY 0
powercfg -setacvalueindex scheme_max sub_processor HETEROPOLICY 0
Powercfg -setdcvalueindex scheme_max sub_processor HETEROPOLICY 0
powercfg -setacvalueindex SCHEME_BALANCED sub_processor HETEROPOLICY 0
Powercfg -setdcvalueindex SCHEME_BALANCED sub_processor HETEROPOLICY 0
echo 异类线程调度策略;(默认=自动)0=所有处理器 - 调度至任何可用处理器;1=高性能处理器(只用大核);2=首选高性能处理器(大核忙的时候用小核)。
echo 3=高效处理器(只用小核);4=首选高效处理器(小核忙的时候用大核);5=自动 - 让系统选择合适的策略.
Powercfg -setacvalueindex scheme_min sub_processor SCHEDPOLICY 5
Powercfg -setdcvalueindex scheme_min sub_processor SCHEDPOLICY 5
powercfg -setacvalueindex scheme_max sub_processor SCHEDPOLICY 5
Powercfg -setdcvalueindex scheme_max sub_processor SCHEDPOLICY 5
powercfg -setacvalueindex SCHEME_BALANCED sub_processor SCHEDPOLICY 5
Powercfg -setdcvalueindex SCHEME_BALANCED sub_processor SCHEDPOLICY 5
echo 异类短运行线程调度策略:程序刚开启时的大小核调度策略(默认=自动)(0=所有处理器;1=高性能处理器;2首选高性能;3=高效处理器;4首选高效;5=自动)
Powercfg -setacvalueindex scheme_min sub_processor SHORTSCHEDPOLICY 5
Powercfg -setdcvalueindex scheme_min sub_processor SHORTSCHEDPOLICY 5
powercfg -setacvalueindex scheme_max sub_processor SHORTSCHEDPOLICY 5
Powercfg -setdcvalueindex scheme_max sub_processor SHORTSCHEDPOLICY 5
powercfg -setacvalueindex SCHEME_BALANCED sub_processor SHORTSCHEDPOLICY 5
Powercfg -setdcvalueindex SCHEME_BALANCED sub_processor SHORTSCHEDPOLICY 5
echo 处理器性能增强策略, 指定处理器有可能将频率提高到超过当前操作条件允许的最大值的程度。
echo 节能=0,平衡=60,高性能=100
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PERFBOOSTPOL 100
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PERFBOOSTPOL 100
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFBOOSTPOL 60
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFBOOSTPOL 60
echo 处理器能源性能首选项策略(值越高闲时处理器频率越低)
echo 节能=75,平衡=33,高性能=0
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PERFEPP 0
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PERFEPP 0
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PERFEPP 75
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PERFEPP 75
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFEPP 33
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFEPP 33
echo 最大处理器状态
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PROCTHROTTLEMAX 100
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PROCTHROTTLEMAX 100
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PROCTHROTTLEMAX 100
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PROCTHROTTLEMAX 100
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMAX 100
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMAX 100
echo 第 1 类处理器电源效率的最大处理器状态
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PROCTHROTTLEMAX1 100
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PROCTHROTTLEMAX1 100
echo 最小处理器状态
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PROCTHROTTLEMIN 75
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PROCTHROTTLEMIN 75
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMIN 30
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMIN 30
echo 第 1 类处理器电源效率的最小处理器状态
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PROCTHROTTLEMIN1 75
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PROCTHROTTLEMIN1 75
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMIN1 30
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMIN1 30
echo 系统散热方式(0=被动散热;1=主动散热);就是否开启散热风扇!
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR SYSCOOLPOL 1
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR SYSCOOLPOL 1
powercfg -setacvalueindex scheme_max SUB_PROCESSOR SYSCOOLPOL 1
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR SYSCOOLPOL 0
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR SYSCOOLPOL 1
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR SYSCOOLPOL 0
echo 处理器性能核心放置减小策略(减少活跃的核心)
echo 0=理想的核心数量,1=单一核心,2=所有可能的核心,3=八分之一核心
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR CPDECREASEPOL 0
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR CPDECREASEPOL 0
powercfg -setacvalueindex scheme_max SUB_PROCESSOR CPDECREASEPOL 0
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR CPDECREASEPOL 0
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR CPDECREASEPOL 0
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR CPDECREASEPOL 0
echo 处理器性能核心放置增加策略(需要更多核心时只增加核心)
echo 0=理想的核心数量,1=单一核心,2=所有可能的核心,3=八分之一核心
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR CPINCREASEPOL 0
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR CPINCREASEPOL 0
powercfg -setacvalueindex scheme_max SUB_PROCESSOR CPINCREASEPOL 0
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR CPINCREASEPOL 0
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR CPINCREASEPOL 0
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR CPINCREASEPOL 0
echo 处理器闲置禁用,警告:散热不足不要开启这个选项,CPU会撞功耗墙不要开启这个选项)0=开启禁用,1=禁止禁用
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR IDLEDISABLE 0
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR IDLEDISABLE 0
powercfg -setacvalueindex scheme_max SUB_PROCESSOR IDLEDISABLE 0
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR IDLEDISABLE 0
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR IDLEDISABLE 0
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR IDLEDISABLE 0
echo 处理器闲置阈值调整,0=禁止,1=开启
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR IDLEDISABLE 0
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR IDLEDISABLE 0
powercfg -setacvalueindex scheme_max SUB_PROCESSOR IDLEDISABLE 0
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR IDLEDISABLE 0
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR IDLEDISABLE 0
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR IDLEDISABLE 0
echo 停用已停用性能状态的处理器性能核心,0=无首选项,1=最深性能状态,2=最浅性能状态
powercfg -setdcvalueindex scheme_min SUB_PROCESSOR CPPERF 0
powercfg -setacvalueindex scheme_min SUB_PROCESSOR CPPERF 0
powercfg -setacvalueindex scheme_max SUB_PROCESSOR CPPERF 0
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR CPPERF 0
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR CPPERF 0
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR CPPERF 0
echo 处理器性能核心放置增加时间
powercfg -setdcvalueindex scheme_min SUB_PROCESSOR CPINCREASETIME 1
powercfg -setacvalueindex scheme_min SUB_PROCESSOR CPINCREASETIME 1
echo 处理器性能核心放置过度利用阈值
powercfg -setdcvalueindex scheme_min SUB_PROCESSOR CPOVERUTIL 60
powercfg -setacvalueindex scheme_min SUB_PROCESSOR CPOVERUTIL 60
echo 处理器性能核心放置减少时间
powercfg -setdcvalueindex scheme_min SUB_PROCESSOR CPDECREASETIME 10
powercfg -setacvalueindex scheme_min SUB_PROCESSOR CPDECREASETIME 10
echo SMT 线程启动策略(win11),0=核心,1=每个线程的核心,2=循环配置,3=顺序
powercfg -setdcvalueindex scheme_min SUB_PROCESSOR SMTUNPARKPOLICY 2
powercfg -setacvalueindex scheme_min SUB_PROCESSOR SMTUNPARKPOLICY 2
powercfg -setacvalueindex scheme_max SUB_PROCESSOR SMTUNPARKPOLICY 2
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR SMTUNPARKPOLICY 2
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR SMTUNPARKPOLICY 2
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR SMTUNPARKPOLICY 2
echo AHCI Link Power Management - HIPM/DIPM
echo 0=Active,1=HIPM,2=HIPM+DIPM,3=DIPM,4=Lowest
echo Active(一直活动)、HIPM(由主机发起的LPM)、DIPM(由硬盘发起的LPM)、Lowest(低耗能模式)
powercfg -setdcvalueindex scheme_min 0012ee47-9041-4b5d-9b77-535fba8b1442 0b2d69d7-a2a1-449c-9680-f91c70521c60 0
powercfg -setacvalueindex scheme_min 0012ee47-9041-4b5d-9b77-535fba8b1442 0b2d69d7-a2a1-449c-9680-f91c70521c60 0
powercfg -setacvalueindex scheme_max 0012ee47-9041-4b5d-9b77-535fba8b1442 0b2d69d7-a2a1-449c-9680-f91c70521c60 0
Powercfg -setdcvalueindex scheme_max 0012ee47-9041-4b5d-9b77-535fba8b1442 0b2d69d7-a2a1-449c-9680-f91c70521c60 0
powercfg -setacvalueindex SCHEME_BALANCED 0012ee47-9041-4b5d-9b77-535fba8b1442 0b2d69d7-a2a1-449c-9680-f91c70521c60 0
Powercfg -setdcvalueindex SCHEME_BALANCED 0012ee47-9041-4b5d-9b77-535fba8b1442 0b2d69d7-a2a1-449c-9680-f91c70521c60 0
echo AHCI Link Power Management - Adaptive,0=取消深度节能,
echo 决定了硬盘在空闲状态下,从浅休眠(Partial)状态过渡到深休眠(Slumber)状态的等待时间
powercfg -setdcvalueindex scheme_min 0012ee47-9041-4b5d-9b77-535fba8b1442 dab60367-53fe-4fbc-825e-521d069d2456 0
powercfg -setacvalueindex scheme_min 0012ee47-9041-4b5d-9b77-535fba8b1442 dab60367-53fe-4fbc-825e-521d069d2456 0
powercfg -setacvalueindex scheme_max 0012ee47-9041-4b5d-9b77-535fba8b1442 dab60367-53fe-4fbc-825e-521d069d2456 0
Powercfg -setdcvalueindex scheme_max 0012ee47-9041-4b5d-9b77-535fba8b1442 dab60367-53fe-4fbc-825e-521d069d2456 0
powercfg -setacvalueindex SCHEME_BALANCED 0012ee47-9041-4b5d-9b77-535fba8b1442 dab60367-53fe-4fbc-825e-521d069d2456 0
Powercfg -setdcvalueindex SCHEME_BALANCED 0012ee47-9041-4b5d-9b77-535fba8b1442 dab60367-53fe-4fbc-825e-521d069d2456 0
echo Primary NVMe Idle Timeout
echo 自动进入节能模式前的等待时间。追求性能的可以将这个数值设得大一些,比如600,需要降温则将这个数据设得小一点,比如100。
powercfg -setdcvalueindex scheme_min 0012ee47-9041-4b5d-9b77-535fba8b1442 d639518a-e56d-4345-8af2-b9f32fb26109 600
powercfg -setacvalueindex scheme_min 0012ee47-9041-4b5d-9b77-535fba8b1442 d639518a-e56d-4345-8af2-b9f32fb26109 600
powercfg -setacvalueindex scheme_max 0012ee47-9041-4b5d-9b77-535fba8b1442 d639518a-e56d-4345-8af2-b9f32fb26109 100
Powercfg -setdcvalueindex scheme_max 0012ee47-9041-4b5d-9b77-535fba8b1442 d639518a-e56d-4345-8af2-b9f32fb26109 100
powercfg -setacvalueindex SCHEME_BALANCED 0012ee47-9041-4b5d-9b77-535fba8b1442 d639518a-e56d-4345-8af2-b9f32fb26109 300
Powercfg -setdcvalueindex SCHEME_BALANCED 0012ee47-9041-4b5d-9b77-535fba8b1442 d639518a-e56d-4345-8af2-b9f32fb26109 300
echo 链接状态电源管理(固态盘设置=2,机械盘可以=0),0=关闭,1=中等电源节省量,2=大电源节省量
powercfg -setdcvalueindex scheme_min SUB_PCIEXPRESS ASPM 2
powercfg -setacvalueindex scheme_min SUB_PCIEXPRESS ASPM 2
powercfg -setacvalueindex scheme_max SUB_PCIEXPRESS ASPM 2
Powercfg -setdcvalueindex scheme_max SUB_PCIEXPRESS ASPM 2
powercfg -setacvalueindex SCHEME_BALANCED SUB_PCIEXPRESS ASPM 2
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PCIEXPRESS ASPM 2
echo 设置电源为常亮
Powercfg -x -monitor-timeout-dc 0
Powercfg -x -monitor-timeout-ac 0
powercfg -x -disk-timeout-dc 0
powercfg -x -disk-timeout-ac 0
powercfg -x -standby-timeout-dc 0
powercfg -x -standby-timeout-ac 0
powercfg -x -hibernate-timeout-dc 0
powercfg -x -hibernate-timeout-ac 0
echo 电源计划立即生效
powercfg -setactive scheme_current
|
|