当前位置:网站首页>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 .
边栏推荐
- 新手必会的静态站点生成器——Gridsome
- Acwing: the 56th weekly match
- CMake Error: Could not create named generator Visual Studio 16 2019解决方法
- MariaDB的安装与配置
- 软通乐学-js求字符串中字符串当中那个字符出现的次数多 -冯浩的博客
- Market trend report, technical innovation and market forecast of tabletop dishwashers in China
- Chapter 7__ consumer_ offsets topic
- Bidirectional linked list - all operations
- useEffect,函數組件掛載和卸載時觸發
- Codeforces Round #797 (Div. 3)无F
猜你喜欢
浏览器打印边距,默认/无边距,占满1页A4
Codeforces Round #802(Div. 2)A~D
Kubernetes cluster deployment
(lightoj - 1369) answering queries (thinking)
Codeforces Round #797 (Div. 3)无F
Submit several problem records of spark application (sparklauncher with cluster deploy mode)
Chapter III principles of MapReduce framework
Spark独立集群动态上线下线Worker节点
Browser print margin, default / borderless, full 1 page A4
Chapter 6 datanode
随机推荐
Some problems encountered in installing pytorch in windows11 CONDA
Codeforces Round #798 (Div. 2)A~D
业务系统兼容数据库Oracle/PostgreSQL(openGauss)/MySQL的琐事
Codeforces Round #801 (Div. 2)A~C
antd upload beforeUpload中禁止触发onchange
Flag framework configures loguru logstore
Chapter 2 shell operation of hfds
Chapter 5 yarn resource scheduler
Codeforces Round #803 (Div. 2)A~C
使用jq实现全选 反选 和全不选-冯浩的博客
Acwing: Game 58 of the week
第7章 __consumer_offsets topic
Codeforces Global Round 19
图图的学习笔记-进程
Double specific tyrosine phosphorylation regulated kinase 1A Industry Research Report - market status analysis and development prospect prediction
The "sneaky" new asteroid will pass the earth safely this week: how to watch it
Research Report on market supply and demand and strategy of double drum magnetic separator industry in China
第6章 DataNode
浏览器打印边距,默认/无边距,占满1页A4
Market trend report, technological innovation and market forecast of China's double sided flexible printed circuit board (FPC)