udp buffer 和reassemble buffer

本文介绍了UDP缓冲区不足及IP片段重组失败的现象,并提供了针对Linux系统的调整方法,包括设置wmem参数及调整IP片段处理阈值。


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

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值