13代酷睿i9上PostgreSQL性能低下问题求助
PostgreSQL 12 pgbench 性能异常排查求助
测试命令
初始化命令:
pgbench -i -U postgres -s 50 db_test
压测命令:
pgbench -c 1 -j 1 -t 3000 -U postgres db_test
测试参数
- 客户端数量:1
- 线程数量:1
- 每个客户端事务数:3000
初始测试结果
| 设备 | CPU | 操作系统 | 内存 | 内核 | 平均延迟 |
|---|---|---|---|---|---|
| #1 | Core i5 gen 12th | Ubuntu 20.x | 16GB | 5.x | 0.450 ms |
| #2 | Core i7 gen 10th | Ubuntu 20.x | 16GB | 5.x | 0.625 ms |
| #3 | Core i9 gen 13th(P-core和E-core全启用) | Ubuntu 20.x | 64GB | 5.x | 10.213 ms |
| #4 | Core i9 gen 12th(P-core和E-core全启用) | Ubuntu 20.x | 64GB | 6.7.2 | 12.161ms |
补充测试结果
| 设备 | CPU | 操作系统 | 内存 | 内核 | PostgreSQL版本 | 平均延迟 |
|---|---|---|---|---|---|---|
| #3 | Core i9 gen 13th(P-core和E-core全启用) | Ubuntu 22.04.3 | 64GB | 6.5.0-15-generic | 16.1 | 4.836 ms |
| #3 | Core i9 gen 13th(P-core和E-core全启用) | Ubuntu 22.04.3 | 64GB | 6.5.0-15-generic | 11.22 | 5.257 ms |
高配置的12/13代Core i9处理器设备(大小核全启用)上,pgbench平均延迟远高于低配置的i5/i7设备。即使更换操作系统、PostgreSQL版本后延迟有所下降,但仍远未达到预期。已查阅相关资料未找到解决办法,恳请协助排查。
内容的提问来源于stack exchange,提问作者user3926246
相关产品推荐
相关产品推荐

