Linux Network Proc/Debugging ===== Network device's MIB counters: cat /proc/net/dev ===== Note: it should match with ifconfig command Inter-| Receive | Transmit 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 0 0 936 12 0 0 0 0 0 0 eth0_5: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 lo: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 br0: 2592 34 0 0 0 0 0 0 468 6 0 0 0 0 0 0 eth0_0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 eth1: 0 0 0 0 0 0 0 0 468 6 0 0 0 0 0 0 ===== Per CPU Backlog queue status: cat /proc/net/softnet_stat ===== Total dropped time_squeeze - - - - - - cpu_collision 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) 00000000 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 ===== Modify Network backlog queue length: echo xxx > /proc/sys/net/netdev_max_backlog =====