cvs commit: src/sys/compat/linprocfs linprocfs.c src/sys/kern
kern_clock.c src/sys/sys pcpu.h resource.h
Joe Marcus Clarke
marcus at FreeBSD.org
Thu Nov 29 09:18:11 PST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Peter Wemm wrote:
> peter 2007-11-29 06:34:30 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/compat/linprocfs linprocfs.c
> sys/kern kern_clock.c
> sys/sys pcpu.h resource.h
> Log:
> Move the shared cp_time array (counts %sys, %user, %idle etc) to the
> per-cpu area. cp_time[] goes away and a new function creates a merged
> cp_time-like array for things like linprocfs, sysctl etc. The
> atomic ops for updating cp_time[] in statclock go away, and the scope
> of the thread lock is reduced.
>
> sysctl kern.cp_time returns a backwards compatible cp_time[] array.
> A new kern.cp_times sysctl returns the individual per-cpu stats.
>
> I have pending changes to make top and vmstat optionally show per-cpu
> stats.
>
> I'm very aware that there are something like 5 or 6 other versions "out
> there" for doing this - but none were handy when I needed them.
>
> I did merge my changes with John Baldwin's, and ended up replacing a
> few chunks of my stuff with his, and stealing some other code.
libgtop uses the cp_time interface. Can __FreeBSD_version be bumped for
this? And thanks for doing this work.
Joe
- --
Joe Marcus Clarke
FreeBSD GNOME Team :: gnome at FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHTvHVb2iPiv4Uz4cRApN5AJ9OXOOicAnbEs41XoxZiYci0VTnhQCdE6j7
02j4z12cfDT3xDTfuorGBTk=
=3ipu
-----END PGP SIGNATURE-----
More information about the cvs-src
mailing list