[Orca-dev] Re: [Orca-users] re: more info: dead zone on all graphs atsame time

Blair Zajac blair at orcaware.com
Tue Jan 21 16:59:59 PST 2003


Sean O'Neill wrote:
> 
> At 11:53 AM 1/20/2003 -0800, Blair Zajac wrote:
> 
> >The real solution to the problem is to apply the following patch
> >to include/live_rules.se in the SE distribution:
> >
> >
> >--- 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;
> >  }
> 
> Blair, now that the Orca subversion repos has a lib/SE subdirectory
> structure, is there any reason why a patched version of live_rules.se can't
> be put into there and accessed the way orca_p_vmstat_class.se is now accessed ?

Revision 199 added the modified live_rules.se file.

Best,
Blair

-- 
Blair Zajac <blair at orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/


More information about the Orca-dev mailing list