Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
benchmark is in interesting term as it can mean a lot of things to a lot of people.
as previously mentioned loadavg can produce interesting numbers but if you don't really understand what it's telling you it can be more misleading than anything else. I first found this when it was reporting a load of over 80 on a perfectly normal running nfs server.
sar can be helpful but not at a 10 minute interval. personally I think to get an accurate picture of what an application is doing to your system you want to look at everything from cpu, to disk, to memory to network and perhaps other things as well like the number of sockets in use, files open, etc... probably plot them over a reasonable period of time. then you run your application (whatever that means) for some period of time and take measurements and plot them again to compare the two. Also, if the application does some sort of transaction processing, or reading/processig of data, etc, of course you want to load it and see where it falls over. this can all be very complex.
of course I use collectl which I designed for this very type of thing and then pump its output through colplot to get very detailed plots. I use it every day and collect data samples once a second on a ton of servers and make the data available as text through collectl's cli as well as graphics via colplot.
I have Ubuntu server and apache2 installed on it. I want to benchmark it using ab tool from another machine.
Not knowing the least about apache, a quick search found this little gem
ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.
The loadavg thing is a bit of a side-track here - possibly true of all loadavg discussions.