udp buffer 和reassemble buffer

来源:互联网 发布:java 互斥锁 编辑:程序博客网 时间:2024/06/07 15:03


udp buffer不足的现象:
'netstat -s' 或 'netstat -su',并根据具体平台查看 
 "udpInOverflowsudpInOverflows", "packet receive errors", "fragments dropped" 或 "outgoing packet drop" 信息


调整方法:
wmem_default 和 wmem_max到4M(Linux平台)


==================================================================================================================
reassemble buffer不足的现象:
在接收节点’netstat -s’输出的 "IP Statistics"
部分提示有大量的Internet Protocol (IP)上的"reassembles failed" 和 "fragments dropped after timeout"信息


调整方法:
net.ipv4.ipfrag_high_thresh
net.ipv4.ipfrag_low_thresh


对net.ipv4.ipfrag_high_thresh的解释:
Maximum memory used to reassemble IP fragments. 
When ipfrag_high_thresh bytes of memory is allocated for this purpose, 
the fragment handler will toss packets until ipfrag_low_thresh is reached.
INTEGER - (The settable value range)-2147483647 - 2147483647

Default: 262144


【转载自mos中文文章】RAC 环境中 gc block lost 和私网通信性能问题的诊断 (Doc ID 1674865.1)
https://access.redhat.com/solutions/108513#socketlayer

原创粉丝点击