Subject: namei/nchstats signedness
To: None <tech-kern@netbsd.org>
From: Jeff <jeffi@rcn.com>
List: tech-kern
Date: 10/10/2004 14:10:32
I noticed some of the name lookup statistics that 'vmstat -s' returned
were negative.

-1927650792 total name lookups
          cache hits (-105% pos + -7% neg) system -2% per-process
          deletions 0%, falsehits 0%, toolong 0%

The numbers that these stats are derived from, are in the nchstats
struct within namei.h.

My question is, is there any reasoning, standard, etc. that dictates
that these are signed?  Looking through various code (i.e.
vfs_cache.c) suggests that these values are never decremented.

Any comments appreciated.

Thank you,

Jeff