User Tools

Site Tools


mywiki:linux:network_debugging

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mywiki:linux:network_debugging [2015/05/04 11:22] supermywiki:linux:network_debugging [2019/09/15 18:55] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Display all network device's MIB counters: cat /proc/net/dev ======+Linux Network Proc/Debugging
  
 +===== Network device's MIB counters: cat /proc/net/dev =====
  
 Note: it should match with ifconfig command Note: it should match with ifconfig command
 <file> <file>
-Inter-|   Receive                                                |  Transmit +Inter-|   Receive                                         |  Transmit 
- face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed +face|bytes packets errs drop fifo frame compress multicast|bytes packets errs drop fifo colls carrier compress 
-eth0_1:  101570     541    0    0    0              0              936      12    0    0    0           0          +eth0_1:  101570   541   0    0    0            0             936     12   0    0    0   0            
-eth0_5:                0    0    0              0                0          0    0    0           0          +eth0_5:             0    0    0            0             0          0    0    0   0            
-    lo:                0    0    0              0                0          0    0    0           0          +    lo:             0    0    0            0             0          0    0    0   0            
-   br0:    2592      34    0    0    0              0              468       6    0    0    0           0          +   br0:    2592   34    0    0    0            0             468     6    0    0    0   0            
-eth0_0:                0    0    0              0         0        0          0    0    0     0                0 +eth0_0:             0    0    0            0                      0    0    0   0            
-eth0_4:       0          0    0    0     0          0         0     4004      46          0                    +  eth1:    0      0        0    0            0            468            0    0   0            0
-  eth1:       0          0    0    0              0         0      468          0    0    0     0                0 +
-eth0_3:                0    0    0              0             4004      46       0    0     0                0 +
-eth0_2:                0    0    0                          4004      46    0    0    0                    0+
 </file> </file>
  
  
-Display Per CPU Backlog queue status: cat cat /proc/net/softnet_stat+===== Per CPU Backlog queue status: cat /proc/net/softnet_stat ===== 
 +<file>  
 +Total    dropped time_squeeze -        -              -        -          -   cpu_collision  
 +</file> 
 +    Total: Total packet number received, including below dropped number also 
 +    dropped: packet dropped number for backlog queue full 
 +    time_squeeze: 一次的软中断的触发还不能处理完目前已经接收的数据,因而要设置下轮软中断,time_squeeze 就表示设置的次数. 
 +    cpu_collision: cpu冲突次数(net/sched.c)
 <file> <file>
-processed dropped time_squeeze -      -        -        -        -     cpu_collision received_rps 
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
 00000245 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000245 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
 </file> </file>
 +
 +
 +===== Modify Network backlog queue length: echo xxx > /proc/sys/net/netdev_max_backlog =====
mywiki/linux/network_debugging.1430709754.txt.gz · Last modified: (external edit)