Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15W 的 QPS 是怎么测试出来的? #52

Open
ghost opened this issue Sep 29, 2016 · 2 comments
Open

15W 的 QPS 是怎么测试出来的? #52

ghost opened this issue Sep 29, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 29, 2016

我测试服务器安装了 dnspod-sr,使用 queryperf 单机测试只有 2W 多,请问 15W QPS 是怎么测试出来的?求大神们解惑。

dnspod-sr 服务器信息

lscpu

Architecture:          x86_64
CPU(s):                12
Thread(s) per core:    2
Core(s) per socket:    6
厂商 ID:           GenuineIntel
型号名称:        Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz

free -g

              total        used        free      shared  buff/cache   available
Mem:             31           5           0           0          25          24
Swap:            15           0          15

uname -a

Linux localhost 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

测试语句

生成 10W 个测试域名

for i in {1..100000}; do echo "d${i}.test.com. A" >> test.d; done
for i in {1..100000}; do echo "d${i}.test.com. 172800 IN A 192.168.0.${i}" >> root.z; done
./src/dnspod-sr

使用 bind-9.10.4-P2/contrib/queryperf 测试

./queryperf -s 192.168.0.21 -d test.d

DNS Query Performance Testing Tool
Version: $Id: queryperf.c,v 1.12 2007/09/05 07:36:04 marka Exp $

[Status] Processing input data
[Status] Sending queries (beginning with 192.168.0.21)
[Status] Testing complete

Statistics:

  Parse input file:     once
  Ended due to:         reaching end of file

  Queries sent:         100000 queries
  Queries completed:    100000 queries
  Queries lost:         0 queries
  Queries delayed(?):   0 queries

  RTT max:          0.002000 sec
  RTT min:              0.000055 sec
  RTT average:          0.000854 sec
  RTT std deviation:    0.000324 sec
  RTT out of range:     0 queries

  Percentage completed: 100.00%
  Percentage lost:        0.00%

  Started at:           Thu Sep 29 10:45:41 2016
  Finished at:          Thu Sep 29 10:45:45 2016
  Ran for:              4.502813 seconds

  Queries per second:   22208.339542 qps
@haipengz
Copy link

image

这张图已很明确标明:每秒请求数为30W时,dnspod-sr的每秒请求处理数达峰值约为15Wqps。

而楼主的测试:
image
总数为10W条,总时间为4.5s,平均下来性能为2.2Wqps。
综上:dnspod-sr的高性能表现在对大并发请求的处理上,即同测试条件下的服务器配置,解析请求数为30Wrps(每秒请求数)时,解析速度约为15Wqps。

@linkec
Copy link

linkec commented Oct 15, 2018

top 看下queryperf 是不是100%CPU了,我之前压测的时候就是这样。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants