Pcap worksheet: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
(Replaced content with "<poem>1.) OS Stats $ ifconfig eth0; ifconfig -a $ netstat -ni $ netstat -s $ cat /proc/net/dev | columns -t $ awk '{ print $1,$5 }' /proc/net/dev $ watch -n 1 cat /proc/i...")
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<poem>1.) OS Stats $ ifconfig eth0; ifconfig -a $ netstat -ni $ netstat -s $ cat /proc/net/dev | columns -t $ awk '{ print $1,$5 }' /proc/net/dev $ watch -n 1 cat /proc/interrupts $ watch -n 1 cat /proc/softirqs<code>
 
</poem>
 
$ 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
 
[http://jonschipp.com/talks/pcapworksheet.txt]

Latest revision as of 17: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

[1]