A while ago there was talk of including the new linux 2.6.x cpu states into ganglia and making a new wio metric, including stubs for those systems which so not have that metric. Well, since we are almost exclusively using Sun and RHEL3 now, which both have this wio cpu state, I created a quick hack that sort of adds this to the webfrontend.
Actually, it just calculates the percentage of unaccounted cpu time and adds this to the cpu_report graph using the $cpu_wio_color that was added to the 2.5.7 config. I did this because the default cpu_idle color was changed, which made it quite obvious that some of the cpu time was unaccounted for in the current version of ganglia. Since this unaccounted cpu time is almost always iowait, I labeled it WIO in the graph. Until this extra cpu time can be officially added to ganglia, which might not be until 2.6/3.0 or whatever it will be called, it would be nice to do something like this instead of leaving it blank in the graph. ~Jason -- /------------------------------------------------------------------\ | Jason A. Smith Email: [EMAIL PROTECTED] | | Atlas Computing Facility, Bldg. 510M Phone: (631)344-4226 | | Brookhaven National Lab, P.O. Box 5000 Fax: (631)344-7616 | | Upton, NY 11973-5000 | \------------------------------------------------------------------/
diff -uNr ganglia-webfrontend-2.5.7-dist/graph.php ganglia-webfrontend-2.5.7/graph.php --- ganglia-webfrontend-2.5.7-dist/graph.php 2004-10-05 19:46:28.000000000 -0400 +++ ganglia-webfrontend-2.5.7/graph.php 2004-12-10 17:30:31.000000000 -0500 @@ -84,9 +84,11 @@ ."CDEF:'ccpu_system'=cpu_system,num_nodes,/ " ."DEF:'cpu_idle'='${rrd_dir}/cpu_idle.rrd':'sum':AVERAGE " ."CDEF:'ccpu_idle'=cpu_idle,num_nodes,/ " + ."CDEF:'ccpu_wio'=100,ccpu_idle,-,ccpu_system,-,ccpu_nice,-,ccpu_user,- " ."AREA:'ccpu_user'#$cpu_user_color:'User CPU' " ."STACK:'ccpu_nice'#$cpu_nice_color:'Nice CPU' " ."STACK:'ccpu_system'#$cpu_system_color:'System CPU' " + ."STACK:'ccpu_wio'#$cpu_wio_color:'WIO CPU' " ."STACK:'ccpu_idle'#$cpu_idle_color:'Idle CPU' "; } else @@ -95,9 +97,11 @@ ."DEF:'cpu_nice'='${rrd_dir}/cpu_nice.rrd':'sum':AVERAGE " ."DEF:'cpu_system'='${rrd_dir}/cpu_system.rrd':'sum':AVERAGE " ."DEF:'cpu_idle'='${rrd_dir}/cpu_idle.rrd':'sum':AVERAGE " + ."CDEF:'cpu_wio'=100,cpu_idle,-,cpu_system,-,cpu_nice,-,cpu_user,- " ."AREA:'cpu_user'#$cpu_user_color:'User CPU' " ."STACK:'cpu_nice'#$cpu_nice_color:'Nice CPU' " ."STACK:'cpu_system'#$cpu_system_color:'System CPU' " + ."STACK:'cpu_wio'#$cpu_wio_color:'WIO CPU' " ."STACK:'cpu_idle'#$cpu_idle_color:'Idle CPU' "; } }