Difference between revisions of "Pcap worksheet"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | $ ethtool -S eth0 // Statistics $ ethtool -S eth0 | egrep '(rx_missed|no_buffer)' // Drop Values $ ethtool -g eth0 ; ethtool -G eth0 rx 4096 tx 4096 // FIFO RX Descriptors $ ethtool -k eth0 ; ethtool -K gro on gso on rx on // Offloading $ ethtool -a eth0 ; ethtool -A rx off autoneg off // Pause Frames $ ethtool -c eth0 ; ethtool -C eth0 rx-usecs 100 // Interrupt Coalescence | + | $ ethtool -S eth0 // Statistics $ ethtool -S eth0 | egrep '(rx_missed|no_buffer)' // Drop Values |
− | $ cat /proc/net/softnet_stats; printf "%d" 0xffff //Backlog Queue Stat $ echo "1" > /proc/sys/net/core/bpf_jit_enable $ sysctl net.core.netdev_max_backlog; sysctl -w net.core.netdev_max_backlog=3000 $ sysctl net.core.wmem_max; sysctl net.core.rmem_max $ sysctl net.core.wmem_default; sysctl net.core.rmem_default $ sysctl net.core.optmem_max $ echo "net.core.netdev_max_backlog=1024" >> /etc/sysctl.conf | + | $ ethtool -g eth0 ; ethtool -G eth0 rx 4096 tx 4096 // FIFO RX Descriptors |
+ | $ ethtool -k eth0 ; ethtool -K gro on gso on rx on // Offloading | ||
+ | $ ethtool -a eth0 ; ethtool -A rx off autoneg off // Pause Frames | ||
+ | $ ethtool -c eth0 ; ethtool -C eth0 rx-usecs 100 // Interrupt Coalescence | ||
+ | |||
+ | $ cat /proc/net/softnet_stats; printf "%d" 0xffff //Backlog Queue Stat | ||
+ | $ echo "1" > /proc/sys/net/core/bpf_jit_enable $ sysctl net.core.netdev_max_backlog; sysctl -w net.core.netdev_max_backlog=3000 | ||
+ | $ sysctl net.core.wmem_max; sysctl net.core.rmem_max | ||
+ | $ sysctl net.core.wmem_default; sysctl net.core.rmem_default | ||
+ | $ sysctl net.core.optmem_max $ echo "net.core.netdev_max_backlog=1024" >> /etc/sysctl.conf | ||
+ | |||
+ | [http://jonschipp.com/talks/pcapworksheet.txt] |
Latest revision as of 18:39, 12 November 2013
$ ethtool -S eth0 // Statistics $ ethtool -S eth0 | egrep '(rx_missed|no_buffer)' // Drop Values $ ethtool -g eth0 ; ethtool -G eth0 rx 4096 tx 4096 // FIFO RX Descriptors $ ethtool -k eth0 ; ethtool -K gro on gso on rx on // Offloading $ ethtool -a eth0 ; ethtool -A rx off autoneg off // Pause Frames $ ethtool -c eth0 ; ethtool -C eth0 rx-usecs 100 // Interrupt Coalescence
$ cat /proc/net/softnet_stats; printf "%d" 0xffff //Backlog Queue Stat $ echo "1" > /proc/sys/net/core/bpf_jit_enable $ sysctl net.core.netdev_max_backlog; sysctl -w net.core.netdev_max_backlog=3000 $ sysctl net.core.wmem_max; sysctl net.core.rmem_max $ sysctl net.core.wmem_default; sysctl net.core.rmem_default $ sysctl net.core.optmem_max $ echo "net.core.netdev_max_backlog=1024" >> /etc/sysctl.conf