Graphing per-user CPU usage on a Linux machine

Posted by mart1n on Server Fault See other posts from Server Fault or by mart1n
Published on 2012-06-05T15:27:37Z Indexed on 2012/06/05 22:42 UTC
Read the original article Hit count: 185

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?

© Server Fault or respective owner

Related posts about linux

Related posts about graph