CpuGraph Entwicklung

Hintergrund

> cat /proc/stat
cpu  2255 34 2290 22625563 6290 127 456 

The very first "cpu" line aggregates the numbers in all of the other "cpuN" lines. These numbers identify the amount of time the CPU has spent performing different kinds of work. Time units are in USER_HZ (typically hundredths of a second). The meanings of the columns are as follows, from left to right:

( aus http://www.linuxhowtos.org/System/procstat.htm?ref=news.rdf )

also ergibt die user Prozesse:

cat /proc/stat | grep "cpu " | awk '{print $2}' 

Nice

cat /proc/stat | grep "cpu " | awk '{print $3}' 

System

cat /proc/stat | grep "cpu " | awk '{print $4}' 

Idle

cat /proc/stat | grep "cpu " | awk '{print $5}' 

IOwait

cat /proc/stat | grep "cpu " | awk '{print $6}' 

Man Pages

http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html

Beispiel

rrdtool create process.rrd --step 60 \ 
 DS:processes:GAUGE:120:U:U RRA:AVERAGE:0.5:1:2160 \
 RRA:AVERAGE:0.5:5:2016 RRA:AVERAGE:0.5:15:2880 \
 RRA:AVERAGE:0.5:60:8760 RRA:MAX:0.5:1:2160 \
 RRA:MAX:0.5:5:2016 RRA:MAX:0.5:15:2880 \
 RRA:MAX:0.5:60:8760

http://www.arbeitsplatzvernichtung-durch-outsourcing.de/marty44/rrdtool.html

CpuGraph (last edited 2007-04-17 19:16:48 by p5487a74e)