[Orca-users] re: more info: dead zone on all graphs at same time
Blair Zajac
blair at orcaware.com
Tue Jan 21 11:13:53 PST 2003
jeffrey.p.miller at kodak.com wrote:
>
> >> jeffrey.p.miller at kodak.com wrote:
> >>
> >> I seem to have missed these responses to the thread (which I
> initiated!).
> >> Can someone re-cap
> >> what the recommended solution is? Should I stop/start orcallator (on
> the
> >> clients that
> >> have the dead zones in the graphs) a few minutes prior to when the
> >> "server" runs orca?
> >> Should I load a patch?
> >
> >Depends upon the symptoms. Is it all plots that show the problem or
> >just the CPU usage one?
> >
> >Best,
> >Blair
>
> It appears to be only the CPU plots, and mostly (with one exception) on
> the systems that have very low (almost nill) CPU usage (newly set-up
> systems).
>
> In another other case, the blank space (again on the CPU plot) only
> appears at the top of the graph. Usually, the white blank space extends
> from the top to the bottom of the graph and appears to last for a few
> minutes.
Jeff,
Try this patch to live_rules.se in the SE include directory. It
prevents a problem where the total CPU time is greater than 100%,
causing Orca not to plot the data:
--- include/live_rules.se.0 2002-07-16 18:02:54.000000000 -0700
+++ include/live_rules.se 2002-12-28 21:39:26.000000000 -0800
@@ -121,7 +121,7 @@
/* function to total up global per_cpu data into vmstat form */
p_vmstat vmglobal_total() {
int i;
- int total;
+ double total;
p_vmstat pvm;
pvm = GLOBAL_pvm[0];
@@ -151,8 +151,15 @@
#endif
}
total = pvm.user_time + pvm.system_time + pvm.wait_time + pvm.idle_time;
- if (total < 100) {
- pvm.idle_time += (100 - total);
+ if (total < 100.0) {
+ pvm.idle_time += (100.0 - total);
+ }
+
+ /* Make sure that total is never greater than 100%. Better less
+ * than 100% than greater than 100%. */
+ total = pvm.user_time + pvm.system_time + pvm.wait_time + pvm.idle_time;
+ if (total > 100.0) {
+ pvm.idle_time -= (total - 100.0);
}
return pvm;
}
Best,
Blair
--
Blair Zajac <blair at orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
More information about the Orca-users
mailing list