失效链接处理 |
淘宝 MySQL DBA 网络性能调优 PDF 下载
本站整理下载:
提取码:zal4
相关截图:
主要内容:
RPS is not automatically switched on, you have to configure it.
echo ffff >/sys/class/net/eth0/queues/rx-0/rps_cpus
Same for RFS if you prefer to use RFS
echo 16384 >/sys/class/net/eth0/queues/rx-0/rps_flow_cn
显著提高软中断的均衡性,大大提高性能。
12
initcwnd调优
通过提高初始拥塞窗口的大小(3),大大减少短连接的响应时间.
make sure your Linux kernel is 2.6.30 or higher.
ip route change [default via a.b.c.d dev ethX ... ] initcwnd 10
13
ksysguard观察网络行为
14
wireshark
15
iptraf
16
socktop
17
网络系统调用代价
sudo ./syscalltimes -n qperf -t -u chuba -p `pgrep qperf`
18
协议栈缺内存引发问题
$ sudo stap sk_stream_wait_memory.stp
1218230114875167: python(17631) blocked on full send buffer
1218230114876196: python(17631) recovered from full send buffer
1218230114876271: python(17631) blocked on full send buffer
1218230114876479: python(17631) recovered from full send buffer
|