当前位置:网站首页>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 .
边栏推荐
- 力扣leetcode第 280 场周赛
- Chapter 1 overview of MapReduce
- 原生js实现全选和反选的功能 --冯浩的博客
- Specify the format time, and fill in zero before the month and days
- (lightoj - 1236) pairs forming LCM (prime unique decomposition theorem)
- Hbuilder X格式化快捷键设置
- 本地可视化工具连接阿里云centOS服务器的redis
- Remove the border when input is focused
- FLV格式详解
- Research Report of desktop clinical chemical analyzer industry - market status analysis and development prospect prediction
猜你喜欢
The "sneaky" new asteroid will pass the earth safely this week: how to watch it
Some problems encountered in installing pytorch in windows11 CONDA
Pull branch failed, fatal: 'origin/xxx' is not a commit and a branch 'xxx' cannot be created from it
Chapter 7__ consumer_ offsets topic
第7章 __consumer_offsets topic
QT implementation fillet window
第6章 DataNode
提交Spark应用的若干问题记录(sparklauncher with cluster deploy mode)
Chapter 6 rebalance details
Chapter 5 detailed explanation of consumer groups
随机推荐
Acwing - game 55 of the week
Codeforces Round #802(Div. 2)A~D
第6章 DataNode
Codeforces Round #800 (Div. 2)AC
QT simulates mouse events and realizes clicking, double clicking, moving and dragging
js封装数组反转的方法--冯浩的博客
提交Spark应用的若干问题记录(sparklauncher with cluster deploy mode)
Investigation report of bench type Brinell hardness tester industry - market status analysis and development prospect prediction
Codeforces Round #801 (Div. 2)A~C
Research Report on market supply and demand and strategy of Chinese table lamp industry
Install Jupiter notebook under Anaconda
Codeforces Round #798 (Div. 2)A~D
Kubernetes cluster deployment
Market trend report, technical innovation and market forecast of tabletop dishwashers in China
Browser print margin, default / borderless, full 1 page A4
简单尝试DeepFaceLab(DeepFake)的新AMP模型
(lightoj - 1369) answering queries (thinking)
Flask框架配置loguru日志庫
Local visualization tools are connected to redis of Alibaba cloud CentOS server
The "sneaky" new asteroid will pass the earth safely this week: how to watch it