Hi--

On Aug 19, 2010, at 12:15 PM, Jesse Smith wrote:
> This raises two questions for me:
> 1. Where can I find the equivalent information on FreeBSD? I assume
> there's a function call. Maybe in the kvm_* family? I need to be able to
> get the number of ticks a given PID is using.

Does process accounting described by acct(2) / acct(5) address your 
requirements?

> 2. Any idea on what the conversion rate between ticks and jiffies is?
> Are they the same thing, but with different names? Or is it a kilometres
> and miles issue?

It depends on what the system interrupt quanta are set to:

  http://en.wikipedia.org/wiki/Jiffy_%28time%29

In the case of FreeBSD, the standard interrupt rate and the rate which 
statistical sampling is done are not the same, and the latter is done at 
"fuzzy" times to prevent bad processes that as trying to cheat and avoid their 
time being counted....

Regards,
-- 
-Chuck

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to