当前位置:网站首页>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 LassoSet up .
The first two command formats :start /affinity 0x? app.exe0x? 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 .
边栏推荐
- Codeforces Round #803 (Div. 2)A~C
- QT simulates mouse events and realizes clicking, double clicking, moving and dragging
- Market trend report, technological innovation and market forecast of double door and multi door refrigerators in China
- Chapter 2 shell operation of hfds
- Codeforces Global Round 19
- Acwing - game 55 of the week
- Date plus 1 day
- Research Report on market supply and demand and strategy of double drum magnetic separator industry in China
- 指定格式时间,月份天数前补零
- Useeffect, triggered when function components are mounted and unloaded
猜你喜欢

QT模拟鼠标事件,实现点击双击移动拖拽等

Share an example of running dash application in raspberry pie.

拉取分支失败,fatal: ‘origin/xxx‘ is not a commit and a branch ‘xxx‘ cannot be created from it

Kubernetes集群部署

第五章 Yarn资源调度器

新手必会的静态站点生成器——Gridsome

The concept of spark independent cluster worker and executor

浏览器打印边距,默认/无边距,占满1页A4

Installation and configuration of MariaDB

Chapter 5 detailed explanation of consumer groups
随机推荐
Codeforces Round #803 (Div. 2)A~C
第五章 Yarn资源调度器
Installation and configuration of MariaDB
Codeforces Round #799 (Div. 4)A~H
300th weekly match - leetcode
Flask框架配置loguru日志庫
Pytorch extract skeleton (differentiable)
Study notes of Tutu - process
Research Report of desktop clinical chemical analyzer industry - market status analysis and development prospect prediction
Summary of FTP function implemented by qnetworkaccessmanager
(POJ - 1458) common subsequence (longest common subsequence)
Advancedinstaller installation package custom action open file
新手必会的静态站点生成器——Gridsome
第三章 MapReduce框架原理
图图的学习笔记-进程
Codeforces Round #800 (Div. 2)AC
Raspberry pie 4b64 bit system installation miniconda (it took a few days to finally solve it)
图像处理一百题(11-20)
sublime text 代码格式化操作
Codeforces Round #771 (Div. 2)