At 12:00 PM -0800 3/12/00, Jordan K. Hubbard wrote:
> > I'm definitely for it... If I can get permission from Jordan,
> > perhaps the attached patches can make it into upcoming release.
>
>I think it's a fine idea, I'm just not sure one day before release
>is the time to be talking about it. It s
> On Linux this is what I do to get this value: Measure the number of
> scheduled jiffies (hundreths of second), measure elapsed time since last
> measurement, divide.
I ran into the same problem as you - and took the time to implement it.
My patches fix the SMP case as well as getting it via sy
On Sun, 12 Mar 2000, Jordan K. Hubbard wrote:
> > I'm definitely for it... If I can get permission from Jordan, perhaps the
> > attached patches can make it into upcoming release.
>
> I think it's a fine idea, I'm just not sure one day before release
> is the time to be talking about it. It sho
> I'm definitely for it... If I can get permission from Jordan, perhaps the
> attached patches can make it into upcoming release.
I think it's a fine idea, I'm just not sure one day before release
is the time to be talking about it. It should have been raised
before now. :(
- Jordan
To Unsubs
On Sun, 12 Mar 2000, Oliver Fromme wrote:
> Kris Kennaway <[EMAIL PROTECTED]> wrote in list.freebsd-hackers:
> > On Sun, 12 Mar 2000, Oliver Fromme wrote:
> > > Then look up the definition of kread() in the same file, and
> > > how the contents of cur.cp_time are used in the cpustats()
> > >
Kris Kennaway <[EMAIL PROTECTED]> wrote in list.freebsd-hackers:
> On Sun, 12 Mar 2000, Oliver Fromme wrote:
> > Then look up the definition of kread() in the same file, and
> > how the contents of cur.cp_time are used in the cpustats()
> > function. Note that "cur" is a "struct statinfo", wh
On Sat, 11 Mar 2000, Kris Kennaway wrote:
> On Sun, 12 Mar 2000, Oliver Fromme wrote:
>
> > Then look up the definition of kread() in the same file, and
> > how the contents of cur.cp_time are used in the cpustats()
> > function. Note that "cur" is a "struct statinfo", which is
> > defined in /
|o|... Sat, Mar 11, 2000 at 11:56:30PM -0800, Kris Kennaway ...|o| wrote:
> On Sun, 12 Mar 2000, Pedro A M Vazquez wrote:
>
> > > We probably should make this into a sysctl to divorce the binaries from
> > > having to read kvm.
> >
> > it's already there:
> >
> > vm.loadavg: { 1.40 1.33 1.2
On Sun, 12 Mar 2000, Pedro A M Vazquez wrote:
> > We probably should make this into a sysctl to divorce the binaries from
> > having to read kvm.
>
> it's already there:
>
> vm.loadavg: { 1.40 1.33 1.23 }
Thats the system load average. The question referred to CPU usage
percentages.
Kri
|o|... Sat, Mar 11, 2000 at 11:37:18PM -0800, Kris Kennaway ...|o| wrote:
> On Sun, 12 Mar 2000, Oliver Fromme wrote:
>
> > Then look up the definition of kread() in the same file, and
> > how the contents of cur.cp_time are used in the cpustats()
> > function. Note that "cur" is a "struct stati
On Sun, 12 Mar 2000, Oliver Fromme wrote:
> Then look up the definition of kread() in the same file, and
> how the contents of cur.cp_time are used in the cpustats()
> function. Note that "cur" is a "struct statinfo", which is
> defined in /usr/include/devstat.h. The CPU states are defined
> in
Felipe Paulo Guazzi Bergo <[EMAIL PROTECTED]> wrote in list.freebsd-hackers:
> I am the author of gPS (http://gps.seul.org) and I'm trying to finish the
> FreeBSD native poller. All I need now is a routine to get the CPU usage.
> [...]
> I've already looked at the source of top but couldn't ge
Hi Felipe,
(You should probably be targeting -current for software under development)
Perhaps consulting /usr/src/usr.bin/top/machine.c might offer up
some clues.
Cheers,
Jerry Hicks
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the b
Hi,
I am the author of gPS (http://gps.seul.org) and I'm trying to finish the
FreeBSD native poller. All I need now is a routine to get the CPU usage.
My program needs it every quarter of second, so the loadavg value is not
enough accurate for me. (the objective is the CPU/memory history window
14 matches
Mail list logo