V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  kgdb00  ›  全部回复第 2 页 / 共 10 页
回复总数  186
1  2  3  4  5  6  7  8  9  10  
2022-05-20 17:25:08 +08:00
回复了 kgdb00 创建的主题 Linux 为什么 arm64 架构的 Linux 内核不能压缩,而 x86 却可以?
@ysc3839 最新的 mainline 内核都不行,openwrt 应该也不行。
2022-05-12 21:53:55 +08:00
回复了 MrCsharp 创建的主题 深圳 我是新时代四败青年
至少你上过大学,而我就只有初中学历
@nlzy 感谢回复,我也是大半夜不睡觉,编译器优化是故意关掉的,开了 O3 优化差距一样大。你这一大堆解释我得等有空了再验证吸收一下,另外这代码是取自 sysbench ,我也不管它有啥意义,只是想搞明白性能为啥有差别。
@mayli 我觉得不是某个指令慢导致的,你可以看一下我在 12 楼的回复。
@choury 你为什么会认为我在两台机器上测的不是同一个二进制文件?
@choury @icyalala 我觉得应该跟浮点数性能没关系,我把 if (c % l == 0) 这一行去掉,3700x 的 ipc 还反超了 5600x 。

而且我用 perf annotate 分析 ,if (c % l == 0) 这一行的汇编指令有一条 mov %rdx,%rax 在 3700X 上占了 81%的时间,在 5600x 上也占了 54%的时间。

有没有什么办法让 perf record 的输出能在另一台机上分析?我发现拷贝 perf.data 到另一台机就不能 annotate 了,所以也没法共享给各位分析。
@kgdb00 #8 v 站的回复不能用 markdown 格式化
@icyalala
在 3700x 上运行"perf stat ./cpu-test"结果如下:

```
root@develop:~/test# perf stat ./cpu-test

Performance counter stats for './cpu-test':

313.31 msec task-clock # 0.999 CPUs utilized
0 context-switches # 0.000 /sec
0 cpu-migrations # 0.000 /sec
62 page-faults # 197.886 /sec
1,334,724,216 cycles # 4.260 GHz
4,152,400 stalled-cycles-frontend # 0.31% frontend cycles idle
1,084,407,060 stalled-cycles-backend # 81.25% backend cycles idle
1,112,064,247 instructions # 0.83 insn per cycle
# 0.98 stalled cycles per insn
280,732,961 branches # 896.020 M/sec
479,493 branch-misses # 0.17% of all branches

0.313649907 seconds time elapsed

0.313436000 seconds user
0.000000000 seconds sys
```

5600x 上结果如下:

```
d@desktop:~/test$ perf stat ./cpu-test

Performance counter stats for './cpu-test':

109.50 msec task-clock:u # 0.997 CPUs utilized
0 context-switches:u # 0.000 /sec
0 cpu-migrations:u # 0.000 /sec
57 page-faults:u # 520.552 /sec
497,192,700 cycles:u # 4.541 GHz
1,236,868 stalled-cycles-frontend:u # 0.25% frontend cycles idle
3,047 stalled-cycles-backend:u # 0.00% backend cycles idle
1,109,781,743 instructions:u # 2.23 insn per cycle
# 0.00 stalled cycles per insn
280,305,908 branches:u # 2.560 G/sec
420,708 branch-misses:u # 0.15% of all branches

0.109816486 seconds time elapsed

0.108714000 seconds user
0.000997000 seconds sys
```
@booboo 感谢回复,编译出的程序是一样的,都是在 fedora 35 系统上,而且用 fedora 35 的 sysbench 也是这样的差距。刚才不小心用小号回复了。
使用"sysbench cpu run"得到的是同样的结果,5600x 上的性能要远高于 3700x 。
2022-03-10 23:51:44 +08:00
回复了 kgdb00 创建的主题 Google gmail 不让发邮件怎么办?
@evilStart 我问问题是想得到有用的帮助,请你在回复的时候附上解决方案,谢谢。
2022-03-10 23:49:18 +08:00
回复了 kgdb00 创建的主题 Google gmail 不让发邮件怎么办?
@evilStart 问题是我给我的 4 个小号(都是 gmail 账号)发邮件也发送不了,一样的问题,而且我抄送的多个人都是不同的邮箱系统。

我用我的另一个 gmail 账号发送同一个 patch 抄送同样的这十几个人就能发送。

如果是你说的这个原因,有什么办法解决吗?
2022-03-03 11:28:14 +08:00
回复了 kgdb00 创建的主题 问与答 美团外卖配送费不同的账号不一样,这是不是价格歧视?
@xiaocongcong 我这里配送费原价分别是 3.4 和 4.7 元。
1  2  3  4  5  6  7  8  9  10  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5260 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 08:29 · PVG 16:29 · LAX 01:29 · JFK 04:29
Developed with CodeLauncher
♥ Do have faith in what you're doing.