본문 바로가기
서버/Linux

linux interface rx packets dropped 조치

by WYYOON 2019. 9. 24.
728x90
반응형
SMALL

root@localhost:~# ifconfig
em1       Link encap:Ethernet  HWaddr 1c:98:ec:21:90:a4  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::1e98:ecff:fe21:90a4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:467978585 errors:0 dropped:9408 overruns:0 frame:0
          TX packets:392979533 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:518863106305 (518.8 GB)  TX bytes:398746882754 (398.7 GB)
          Interrupt:16 

 

Drop되는 원인:
- 대량의 Data로 안해 NIC 내의 Ring Buffer가 Full되어 발생됨

 

Realtime 적용: ethtool -G em1 rx 1020

 

[적용확인]

root@localhost:~# ethtool -g em1
Ring parameters for em1:
Pre-set maximums:
RX:             2047
RX Mini:        0
RX Jumbo:       0
TX:             511
Current hardware settings:
RX:             1020                <- 적용한 값이 변경되었는지 확인
RX Mini:        0
RX Jumbo:       0
TX:             511

 

[재부팅시 자동 등록]

vi /etc/rc.local에 아래 항목을 추가
/sbin/ethtool -G em1 rx 1020

 

 

728x90
반응형
SMALL