[Orca-users] Re: page scan rate always zero -- sar says otherwise (Solaris 2.5.1)
Blair Zajac
blair at akamai.com
Sat Mar 25 13:01:20 PST 2000
OK. We were close. Here's the real solution. Change
put_output("scanrate", sprintf("%8.3f", pvm.scan));
to
put_output("scanrate", sprintf("%8.3f", pvm.scan + 0.0));
I've tested this and compared the output of
se -DWATCH_CPU orcallator.se 5 with sar -g 5 1000
and they are very similar.
I'll put out a new orcallator.se release with this fix.
Blair
Rick Tessner wrote:
> From: Rick Tessner <rick at dingle.myra.com>
>
> On Fri, 24 Mar 2000 10:08:33 PST, Blair Zajac wrote:
>
> >From: Blair Zajac <blair at akamai.com>
> >
> >I think I found the problem. In SE for Solaris 2.5.1 the p_vmstat
> >object has an "int scan" structure and in SE for Solaris 2.6 and
> >above it is a "double scan". So the printf is failing for the
> >Solaris 2.5.1. I haven't tried this yet, but the fix is simple,
> >change
> >
> > put_output("scanrate", sprintf("%8.3f", pvm.scan));
> >
> >to
> >
> > put_output("scanrate", sprintf("%8.3f", (double) pvm.scan));
>
> Nope, that didn't do it ... When the orcallator.se started up, it
> said that it was "an unecessary cast" (I s'pose cause it's inside
> the sprintf())
>
> I've been looking at it more this morning and trying to write a
> "scanrate.se" script. I've had some minor success in forcing a
> call to "pvm_update(time(0))" prior to calling the vmglobal_total().
>
> [ pvm_update is in the live_rules.se file and seems to be the puppy
> that tracks the last-updated time ]
>
> Unfortunately, that's not giving me consistent results across 2.5.1 & 2.6
>
> I'll keep plugging away at this and see what I can find ...
>
> --
> Rick Tessner rick at myra.com
> MYRA Systems Corp. Fone: (250) 381 1335 x125 Phax: (250) 381 1304
> Cell: (250) 885 9452
>
> "If you can't think of something nice to say, come sit beside me."
>
> ------------------------------------------------------------------------
> You have a voice mail message waiting for you at iHello.com:
> http://click.egroups.com/1/2377/7/_/_/_/953922195/
> ------------------------------------------------------------------------
More information about the Orca-users
mailing list