調整網卡隊列,緩解丟包問題

出現drop包時,一般是網卡隊列滿:https://stackoverflow.com/questions/3521678/what-are-meanings-of-fields-in-proc-net-dev

可調大buffer:https://www.ibm.com/support/knowledgecenter/en/SSQPD3_2.6.0/com.ibm.wllm.doc/nicringbuffers.html
ethtool -g eth1
ethtool -G eth1 rx 4096 tx 4096

副作用:延遲增加:https://cromwell-intl.com/open-source/performance-tuning/ethernet.html
按上面文章的說法,iptables規則貌似也會算在drop計數裏。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章