当前位置:网站首页>Solve the single thread scheduling problem of intel12 generation core CPU (II)
Solve the single thread scheduling problem of intel12 generation core CPU (II)
2022-07-06 16:38:00 【Ruo Miaoshen】
List of articles
( One ) Previous review
1.1 Twelve generation core size core and power mode
Reference resources 《 solve Intel12 Generation core CPU【 The small nucleus is full , Big core onlookers 】 The problem of (WIN11)》.
The main problem is that even in Win11 Next , Multithreaded programs will almost always run on small cores , Large core idle , Resulting in low efficiency .
The solution is 【 Power mode 】->【 Best performance 】.
1.2 Single threaded program problems
Reference resources 《 solve Intel12 Generation core CPU Single thread only gives small cores to run 》.
The main problem is that even if the best performance is set , Self developed early single threaded program , It will still run on the small core .
At that time, I accidentally found a monitoring program hanging , We can try to use large cores . Although I don't quite understand it, I also do so .
( Two ) set priority (priority)
In the discussion of the above problem , Some students mentioned that you can test and set the process priority , And process dependencies .
As shown in the figure below , These two items can be found in 【 Task manager 】 in , process 【 Details 】 Set in the page right-click menu .
After testing , Priority is very effective , There is no need to hang monitoring .
Set the process priority to 【 high 】 in the future , Tested a previous time-consuming single threaded program .
It's faster than closing the small core 100 second , Here's the picture .
Program | 8P + 0E | 8P8E performance | 8P8E Hang up monitoring | 8P8E High priority | Company |
---|---|---|---|---|---|
Another single thread | 1059 | 1367 | 1050 | 940 | second |
And set priorities , It can be carried out in its own program .
adopt CreateProcess()
Join in HIGH_PRIORITY_CLASS
Parameters control the priority of the creation process .
It's fine too SetThreadPriority()
Set priority after creation .
( 3、 ... and ) Set correlation (affinity)
In the menu above , The next item of priority is relevance .
It means to set what is used in this process CPU Logic processor .
The default is to use both , All selected .
The test found that the last 8 After the small core is unchecked , It's true that only big cores can be used .
But the problem is this correlation setting , Program code It seems impossible .
Just a little bit , In addition to the above mouse point , It seems that you can only set the correlation in the following way :
- Start the program by batch command .
- Start the program by shortcut .
- Through third-party software such as
Process Lasso
Set up .
The first two command formats :start /affinity 0x? app.exe
0x?
What logic is used for bit setting CPU.app.exe
Is the program you want to start .
( Four ) solve
There are few old single thread and time-consuming programs here .
So it only needs to be in the scheduling platform , For these procedures 【 Set high priority 】 It solves the problem of efficiency .
as for 【 Set correlation 】, How to set and different CPU The number of cores is related to , There is no API You can call , So don't consider for the time being .
边栏推荐
- Spark独立集群动态上线下线Worker节点
- 简单尝试DeepFaceLab(DeepFake)的新AMP模型
- sublime text 代码格式化操作
- Codeforces round 797 (Div. 3) no f
- 【锟斤拷】的故事:谈谈汉字编码和常用字符集
- 第6章 Rebalance详解
- Calculate the time difference
- Market trend report, technological innovation and market forecast of China's double sided flexible printed circuit board (FPC)
- Chapter 7__ consumer_ offsets topic
- The concept of spark independent cluster worker and executor
猜你喜欢
Installation and use of VMware Tools and open VM tools: solve the problems of incomplete screen and unable to transfer files of virtual machines
Chapter 6 rebalance details
第一章 MapReduce概述
业务系统从Oracle迁移到openGauss数据库的简单记录
ffmpeg命令行使用
QT实现圆角窗口
FLV格式详解
The concept of spark independent cluster worker and executor
图像处理一百题(1-10)
Chapter 6 datanode
随机推荐
Solve the problem that intel12 generation core CPU single thread only runs on small cores
Installation and use of VMware Tools and open VM tools: solve the problems of incomplete screen and unable to transfer files of virtual machines
875. Leetcode, a banana lover
AcWing:第58场周赛
useEffect,函數組件掛載和卸載時觸發
第三章 MapReduce框架原理
Share an example of running dash application in raspberry pie.
解决Intel12代酷睿CPU【小核载满,大核围观】的问题(WIN11)
去掉input聚焦时的边框
Story of [Kun Jintong]: talk about Chinese character coding and common character sets
新手必会的静态站点生成器——Gridsome
VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
Codeforces Round #803 (Div. 2)A~C
Research Report on market supply and demand and strategy of double drum magnetic separator industry in China
QT实现圆角窗口
Problem - 1646C. Factorials and Powers of Two - Codeforces
sublime text 代码格式化操作
QT implementation fillet window
(lightoj - 1236) pairs forming LCM (prime unique decomposition theorem)
图像处理一百题(11-20)