--- sys/sys/namei.h.orig Wed May 27 20:43:31 2009 +++ sys/sys/namei.h Wed May 27 20:49:08 2009 @@ -196,14 +196,14 @@ * Stats on usefulness of namei caches. */ struct nchstats { - long ncs_goodhits; /* hits that we can really use */ - long ncs_neghits; /* negative hits that we can use */ - long ncs_badhits; /* hits we must drop */ - long ncs_falsehits; /* hits with id mismatch */ - long ncs_miss; /* misses */ - long ncs_long; /* long names that ignore cache */ - long ncs_pass2; /* names found with passes == 2 */ - long ncs_2passes; /* number of times we attempt it */ + uint64_t ncs_goodhits; /* hits that we can really use */ + uint64_t ncs_neghits; /* negative hits that we can use */ + uint64_t ncs_badhits; /* hits we must drop */ + uint64_t ncs_falsehits; /* hits with id mismatch */ + uint64_t ncs_miss; /* misses */ + uint64_t ncs_long; /* long names that ignore cache */ + uint64_t ncs_pass2; /* names found with passes == 2 */ + uint64_t ncs_2passes; /* number of times we attempt it */ }; extern struct nchstats nchstats; --- sys/kern/vfs_cache.c.orig Wed May 27 19:51:38 2009 +++ sys/kern/vfs_cache.c Wed May 27 19:58:22 2009 @@ -201,7 +201,7 @@ static u_long numupgrades; STATNODE(CTLFLAG_RD, numupgrades, &numupgrades); SYSCTL_OPAQUE(_vfs_cache, OID_AUTO, nchstats, CTLFLAG_RD | CTLFLAG_MPSAFE, - &nchstats, sizeof(nchstats), "LU", "VFS cache effectiveness statistics"); + &nchstats, sizeof(nchstats), "Q", "VFS cache effectiveness statistics"); --- usr.bin/vmstat/vmstat.c.orig Wed May 27 20:02:58 2009 +++ usr.bin/vmstat/vmstat.c Wed May 27 20:42:37 2009 @@ -864,7 +864,7 @@ dosum(void) { struct nchstats lnchstats; - long nchtotal; + uint64_t nchtotal; fill_vmmeter(&sum); (void)printf("%9u cpu context switches\n", sum.v_swtch); @@ -918,7 +918,7 @@ nchtotal = lnchstats.ncs_goodhits + lnchstats.ncs_neghits + lnchstats.ncs_badhits + lnchstats.ncs_falsehits + lnchstats.ncs_miss + lnchstats.ncs_long; - (void)printf("%9ld total name lookups\n", nchtotal); + (void)printf("%9jd total name lookups\n", nchtotal); (void)printf( "%9s cache hits (%ld%% pos + %ld%% neg) system %ld%% per-directory\n", "", PCT(lnchstats.ncs_goodhits, nchtotal),