Monitor Linux Performance With The Tools At Hand
Jan Stafford writes "Need to monitor Linux performance without purchasing a pricey diagnostic package? Try these simple, built-in command line tools. This article was written by site expert and author (Rapid Application Development with Mozilla) Nigel McFarlane."
Slashdot is pointing links to tip-of-the-day sites?
Eek.
maybe we should have a daily link to the latest dilbert
Most utilities mentioned are really great, but mostly realtime stats
sometimes it's nice to see historic view on the machine as well.
sysstat does just that.
Now if only I can remember the thing that also use that statistics do
draw graphs (with gnuplot iirc.) Anyone ?
The article mentions there is a difference between paging a swap. Can someone enlighten me on what that difference is? Whys is one OK and the other bad?
(+5 informative for the best answer)
I won't even start on our network performance problems, which are around 15M/s transfers (our network is capable of 100M/s).
1. Setup a Linux web server
2. Host an interesting story on Slashdot with large JPEGs.
3. Post the story on Slashdot
4. Watch your server being Slashdotted!
Maybe someone can answer this. I primarily use Gnome at home, and like it's system monitor for CPU and memory statistics. However, it only seems to work locally. Is there anyway to get it to display statistics for remote computers, possibly using something like RPC.statd (internal network, so insecurity isn't as much of an issue)?
I know at work, I can use Solaris' perfmon tool to monitor our Linux server's current stats, but I can't seem to find anything like that for Linux on the client side. Anyone know of a way to do it?
"Save the whales, feed the hungry, free the mallocs" -- author unknown
# find /proc | xargs cat
main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
These utilities are explained better in the man pages themselves or the various system administration guides and howtos at the linux documentaion project.
Oh yeah, and he is missing one of the best tools for this type of thing: namely 'sar', the system activity reporter, which is enabled by default on all redhat distros. (I have an xpostit note dedicated to all the flags to sar for various things)
As for the graphing/monitoring questions people are asking in other posts; look for tools like nagios and mrtg and sysmon and mon or just search freshmeat.net. It's quite a common task which has been done many ways. My personal monitoring/graphs are perl scripts I wrote to fetch stats via ssh which I plug into mrtg.
The version iostat I have on RH Linux doesn't give you disk IO in bytes/s or MB/s. Have to work it out from the blocks/sec. Where the man says a block is of indeterminate size.
Haven't figured out how to use netstat or some other built-in command to check the bandwidth usage for each network interface. I had to write a little snippet of perl to do that. Any suggestions?
Seems a lot easier to do stuff like that on FreeBSD or even Windows 2000.
This is a good summary of available performance/test tools for Linux:
Linux Test Tool Matrix
You just tested the pipe size rather than the box's 1337-ness.