In message <[email protected]>, Robert Wats
on writes:

>I have a project along these lines in progress, and will post the proposal to 
>arch@ once I've finished prototyping it.  In particular, it provides common 
>implementations of "reset" and "report" in order to expose a single userspace 
>version of the structure via sysctl.

Please don't export them via sysctl.

Export them via mmap(2) like we already do with the disk I/O statistics.

That way monitoring the counters becomes a no-syscall operation.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to