如何在MAC OS X中获得最大的TCP接收/发送窗口? [英] How to get maximum TCP Receive/Send window in MAC OS X?
问题描述
如何在MAC OS X中获得最大的TCP接收/发送窗口?
How to get maximum TCP Receive/Send window in MAC OS X?
Linux中有两个ctl. /proc/sys/net/core/rmem_max-最大TCP接收窗口(NET_CORE_RMEM_MAX) /proc/sys/net/core/wmem_max-最大TCP发送窗口(NET_CORE_WMEM_MAX)
There are two ctl in Linux. /proc/sys/net/core/rmem_max - Maximum TCP Receive Window (NET_CORE_RMEM_MAX) /proc/sys/net/core/wmem_max - Maximum TCP Send Window (NET_CORE_WMEM_MAX)
但是我找不到如何在Mac OS中获取这些参数.
but i couldn't find how to get these parameters in mac os.
有人知道吗?
我在MAC OS X中找到了以下ctls: net.inet.tcp.recvspace,net.inet.tcp.sendspace,kern.ipc.maxsockbuf
I have found the following ctls in MAC OS X: net.inet.tcp.recvspace, net.inet.tcp.sendspace, kern.ipc.maxsockbuf
似乎recvspace + sendspace不能大于maxsockbuf. 我在这里阅读过: http://www.macgeekery.com/tips/configuration/mac_os_x_network_tuning_guide_revisited
It seems that recvspace+sendspace can't be greater than maxsockbuf. I have read about it here: http://www.macgeekery.com/tips/configuration/mac_os_x_network_tuning_guide_revisited
推荐答案
我不确定100%是否正确,但是请尝试sysctl -n net.inet.tcp.recvspace
和sysctl -n net.inet.tcp.sendspace
.您可以使用sysctl -w
进行设置(请参见man sysctl
).
I'm not 100% sure whether these are the correct ones, but try sysctl -n net.inet.tcp.recvspace
and sysctl -n net.inet.tcp.sendspace
. You can set them with sysctl -w
(see man sysctl
).
这篇关于如何在MAC OS X中获得最大的TCP接收/发送窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!