On Thu, 22 Nov 2001, Harti Brandt wrote: > What's bad about using files? Just to be different? Isn't it easier to > select, poll, kqueue, what ever on files than on sysctls?
/proc files are horrible if you sample at reasonable rates, say 10-100 hz. We found (on Linux, maybe fbsd is better) that sampling rpc.rstatd at 10 hz. ate 10% of a 500 Mhz. PII. ouch. We also found that sampling rpc.rstatd took > 10 MILLISECONDS on the same machine. Moving to sysctl we found we could sample at 1Khz. with no significant load on the machine. See the Supermon paper at ALS2001 for more info. ron To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message