Measure interface speed
If you ever want to measure the input/output speed of your interfaces you can use ifstat. This is a really cool utility and I just installed it and had it running in less than 3 minutes. Grab it, untar it, and make sure /usr/sfw/bin and /usr/ccs/bin are in your PATH. ./configure; make; make install
Once you run it, it automatically starts logging in/out KB/sec on your interface.
Here’s me transferring a 600MB file from my solaris machine to linux machine:
KB/s in KB/s out
0.00 0.00
0.20 0.13
0.00 0.00
514.66 20853.94
514.25 21564.71
814.88 33671.18
787.98 32942.04
778.22 32055.16
820.35 34272.25
805.25 34045.20
807.75 33977.55
822.91 34546.12
799.83 33339.39
832.44 34547.16
797.99 33147.15
840.15 34767.95
840.07 34464.00
841.79 34524.27
784.47 32330.31
639.21 26542.30
694.19 28859.22
800.51 33386.52
562.46 23486.51
Here’s what Solaris FTP reported after it was sent:
615586930 bytes sent in 20 seconds (30495.36 Kbytes/s)
Seems about right.
September 22nd, 2005 at 10:46 am
You could also use Brendan Gregg’s nicstat utility to measure interface throughput:
http://users.tpg.com.au/adsln4yb/K9Toolkit/nicstat_example.txt
I kinda prefer Brendan’s Perl script since it doesn’t require building software. Cool post!
September 22nd, 2005 at 10:59 am
Hey Thanks, and good point.
December 18th, 2006 at 9:13 pm
Great, i needed something like it
i’m using it on linux box running as nat router for 300 machines.