@
canesten @
tjmao @
CMGS 最新进展,找了一台物理机,8核,8Gb CentOS,客户端:i5 2.4Mhz, 8Gb
内核参数:
fs.file-max = 999999
net.ipv4.tcp_rmem = 4096 4096 16777216
net.ipv4.tcp_wmem = 4096 4096 16777216
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_fin_timeout = 15
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.netdev_max_backlog = 4096
net.core.somaxconn = 4096
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_tw_buckets = 360000
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_syn_retries = 2
net.ipv4.tcp_synack_retries = 2
[root@sz-monitor ~]# ulimit -n
1000000
[root@sz-monitor ~]# ulimit -Sn
1000000
[root@sz-monitor ~]# ulimit -Hn
1000000
并发10000,ab -n 5000000 -c 10000
Requests per second: 70806.95 [#/sec] (mean)
Time per request: 141.229 [ms] (mean)
Time per request: 0.014 [ms] (mean, across all concurrent requests)
Transfer rate: 5255.20 [Kbytes/sec] received
网卡的速度
05:16:19 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s
05:16:24 PM lo 0.20 0.20 0.10 0.10 0.00 0.00 0.00
05:16:24 PM eth0 147588.73 75031.99 14179.64 10316.23 0.00 0.00 0.00
rxkB/s 14179.64
txkB/s 10316.23
CPU在200%-400%左右
内存在3.5%左右
正常速度70806.95/s,离400000/s差距甚远啊