ufsstat implementation

Giorgos Keramidas keramida at linux.gr
Thu Sep 29 11:58:39 PDT 2005


On 2005-09-29 13:21, Eric Anderson <anderson at centtech.com> 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 :-)



More information about the freebsd-hackers mailing list