后续, Win11 下大小核心调度问题。

2022-11-01 13:51:29 +08:00
 afirefish

之前发过一个帖子。 传送门: https://www.v2ex.com/t/874009#reply30

Intel 12 代大小核,Win10 系统,某些场景下,出现 4 核有难,8 和围观的问题! 之前说过,等 22H2 发布后,安装 Win11 22H2 ,然后重新测试。

结论: 在 Win11 下,相对 Win10 而言,intel 大小核调度确实好一些,但是似乎还是不够好? 可以看到大量负载还是落到了 E 核上面。这个测试虽然不是很严瑾,但也说明了一些问题吧。

和之前同样的场景,qemu 运行 arm64 虚拟机,gcc 编译。参数配置均相同。结果如下:

虚拟机配置:

root@debian-arm64:~# lscpu
Architecture:                    aarch64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
CPU(s):                          4
On-line CPU(s) list:             0-3
Thread(s) per core:              1
Core(s) per socket:              4
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       ARM
Model:                           3
Model name:                      Cortex-A72
Stepping:                        r0p3
BogoMIPS:                        125.00
NUMA node0 CPU(s):               0-3
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Not affected
Vulnerability Retbleed:          Not affected
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:        Mitigation; __user pointer sanitization
Vulnerability Spectre v2:        Vulnerable
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid

root@debian-arm64:~# cat /proc/cpuinfo
processor	: 0
BogoMIPS	: 125.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 3

processor	: 1
BogoMIPS	: 125.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 3

processor	: 2
BogoMIPS	: 125.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 3

processor	: 3
BogoMIPS	: 125.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 3

root@debian-arm64:~# free -m
               total        used        free      shared  buff/cache   available
Mem:            3923          65        2871           0         987        3709
Swap:            975           0         975

3926 次点击
所在节点    程序员
23 条回复
dcty
2022-11-01 14:09:26 +08:00

估计也是分场景
mrzx
2022-11-01 17:17:28 +08:00
买不分大小核的 AMD CPU 完事。要不等 intel 13 代看看

纠结这些有什么用。再说通过系统软件层面上来解决此问题效果并不显著。因为调度真正是由 cpu 硬件里的 ITD 来调度的

intel 12 代就是小白鼠产品,拿你们的钱包做实验用的。

手机上的使用环境和 pc 机上使用环境怎么可能一样呢?我身边很多不懂电脑的朋友,因为 intel 宣传核心数量,并且那些朋友拿 amd 核心数一对比,觉得数量对的上,性能也是一样的呢。。。
msdx123
2022-11-01 18:34:42 +08:00

make -j8

prime95 8C with HT

prime95 4C w/o HT
afirefish
2022-11-01 18:36:27 +08:00
@dcty 感觉确实分场景,我测试 windows 的虚拟机就没啥问题
afirefish
2022-11-01 18:37:54 +08:00
@msdx123 WSL 还是虚拟机?
msdx123
2022-11-01 18:38:12 +08:00
afirefish
2022-11-01 18:39:11 +08:00
@msdx123 我这儿 WSL 和 vm 虚拟机也没问题,qemu arm 虚拟机才是这样的
msdx123
2022-11-01 18:39:50 +08:00
@afirefish 好 我起个 qemu 看看
afirefish
2022-11-01 18:43:50 +08:00
@msdx123 试试
```
qemu-system-aarch64 \
-m 4G \
-cpu cortex-a72 \
-smp 4,sockets=1,cores=4 \
-M virt \
-nographic \
-pflash $VM_FOLDER/flash0.img \
-pflash $VM_FOLDER/flash1.img \
-drive file="$VM_FOLDER/debian-arm64.sda.qcow2",index=0,id=hd0,if=none,media=disk \
-device virtio-scsi-device \
-device scsi-hd,drive=hd0 \
-net nic \
-net user,hostfwd=tcp::12222-:22
```
cubecube
2022-11-01 19:07:36 +08:00
intel 的 ppt 里面提到了,13 代更新了一版硬件线程调度器。觉得不爽,可以升级 13600,12700 升级成本很低,提升很大:)
hez2010
2022-11-01 19:09:56 +08:00
虚拟机需要主动做适配的,否则会把虚拟机 host 当作后台进程一律往小核上调度。
msdx123
2022-11-01 19:17:49 +08:00
@afirefish

make -j4 编译 mlucas
afirefish
2022-11-01 19:25:07 +08:00
@msdx123 难道真的 13 代优化了调度
afirefish
2022-11-01 19:26:05 +08:00
@cubecube 还不如 AMD YES ,不用折腾大小核
mortal
2022-11-01 19:26:07 +08:00
@msdx123 #12 大佬玩不玩游戏的😂全网都没找到 13 代处理器在星(单)际(核)争霸 2 下的帧数表现
msdx123
2022-11-01 19:29:23 +08:00
@afirefish

`./Mlucas -fft 192 -iters 100000 -radset 0 -nthread 4`
跑 mlucas 也是落到大核上的
msdx123
2022-11-01 19:33:24 +08:00
@afirefish 我还有颗 12900K ,过几天有机会换上去对比一下。跑出来结果 at 你
cubecube
2022-11-01 19:36:15 +08:00
@afirefish 7000 系列的 CPU 目前看,还是比 13 代差一些的。其实,综合各种情况看,大部分日常的软件已经能够适配大小核心了。慢慢就好了
Routeros
2022-11-01 19:39:10 +08:00
@msdx123 加我一个。 @我一下
afirefish
2022-11-01 20:02:27 +08:00
@msdx123 好,多谢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/891752

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX