I want to graph (graphical output would be great, i.e. a .png file) the following situation: I have users A, B, and C. I limit their resources so that when all users run a CPU intensive task at the same time, those processes will use 25%, 25%, and 50% of CPU. I know I can get the real-time stats using top but have no idea what to do with them. I've searched through the huge top man page but haven't found much on the subject of outputting data that can be graphed. Ideally, the graph would show a span of maybe 30 seconds. Any ideas how to achieve this?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
|||
migrated from stackoverflow.com Jun 5 '12 at 16:46
|
Perhaps you could use |
|||
|
|
Batch mode could be useful:
For example:
Ganglia Gmetric can be used to plot a graph for this.
and here's the result:
|
|||
|
|
|
Try |
|||
|

virt-top(something likevirt-top -d $DELAY --csv $CSVFILE --script) but haven't found the equivalent fortop– mart1n Jun 5 '12 at 15:54