Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to measure the system load on my Ubuntu media center computer. What commands and utilities are available? I've explored the w, top, iostat, and uptime commands. Anything else I could use?

share|improve this question

migrated from Jun 6 '11 at 5:46

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

try "sar" from the sysstat package. It'll record every 10 mins and give you a historical view.

share|improve this answer
+1 for sar, it has a multitude of options and, as well as showing regular snapshots throughout the day you can use it interactively to show a specified number of snapshots at specified intervals (e.g 5 at 10 sec intervals). There are also 3rd party tools that (I think) make recommendations based on sar. E.g. sarcheck – RedGrittyBrick Jun 6 '11 at 10:25

htop is a bit more interactive way for viewing your processes. It is almost like an improved version of top.

share|improve this answer

Use top.

share|improve this answer
Thats it ? Just one option? – abc Jun 6 '11 at 4:52
Yep, because it's the right tool for measuring system load, which was your question. Now that you've edited your question to be more specific about what you've already tried, you could explain why something like top isn't sufficient for your needs. – Brian Kelly Jun 6 '11 at 4:55

uptime is maybe the simplest way to get the CPU load. This information is mirrored in the special file /proc/loadavg.

iostat tells you the load on the IO subsystem.

Load can mean many different things, however. Depending on what you need, it could be the amount of thrashing in the virtual memory system, the load on the network interface, etc. But if all you want is an aggregate, the above two utilities are a good start.

share|improve this answer

The vmstat program can get you a time-series record of system performance.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .