At http://www.boblycat.org/~malc/apc/ you will find CPU load monitor
written in OCaml (sans some C glue).
New things since last announcement include:
The site was updated with a bit more sane documentation along with
few links to Linux kernel mailing list discussions on the subject that
would explain why sometimes native accounting can not be trusted (since
2.6.21 you can find a summary in Documentation/cpu-load.txt) There's
also a small test application that showcases the problem.
Mac OS X (only UP/PPC tested)
Solaris (only X86 tested).
While Solaris' CPU accounting seems accurate the same can not be said
about Mac OS X and NT. With a help of third party application one can
even begin to trust the accounting on NT (consult README.windows). So
Mac OS X is in the most dire state at the moment. I'd imagine that
writing XNU/X86 kernel extension to do more or less what's done under
NT/X86 would be rather easy (alas i don't have access to this kind of
system), XNU/PPC it seems would require completely different approach.
Any help with NT, XNU would be greatly appreciated.
Caml-list mailing list. Subscription management:
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs