On 2005-09-29 13:21, Eric Anderson <[EMAIL PROTECTED]> wrote: > I've been looking at the ufs code, and thinking about wedging in some > statistic gathering pieces pretty much copied from the nfs code (and > nfsstat) to provide nearly the same functionality. > > I realize that adding statistic gathering code would techinically reduce > filesystem performance, so should I put a wrapper around the code pieces > checking a sysctl, or use #ifdef's around it, or neither?
It would take running an implementation with and without ufsstats to see what the impact on filesystem performance is, so it seems to me the natural choise for early stages of development is an #ifdef that can easily be turned on/off and control where all of the code goes in or nothing at all :-) _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"