系统tcp缓冲区大小设置和读取
读取
sysctl -n net.inet.tcp.sendspace
sysctl -n net.inet.tcp.recvspace
设置
sysctl -w net.inet.tcp.sendspace=262144
sysctl -w net.inet.tcp.recvspace=262144
sysctl -n net.inet.tcp.sendspace
sysctl -n net.inet.tcp.recvspace
sysctl -w net.inet.tcp.sendspace=262144
sysctl -w net.inet.tcp.recvspace=262144