Subject: nfstat -c shows negative values on amd64
To: NetBSD current <current-users@netbsd.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: current-users
Date: 02/25/2004 18:58:06
--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


Hi,

During some NFS benchs on our amd64 box running NetBSD 1.6ZK (-current
20040225), i noticed that `nfstat -c' can report negative values for
cache reads.

This behaviour appears while copying a set of 367 files for a total of
about 18GB from a NFS directory to another NFS directory (both on the
same filesystem, from a NetApp R200 filer).

njoly@calimero [embl/copy]> grep ' nfs ' /etc/fstab
nfs.xxx.pasteur.fr:/vol/bordel/calimero /mount/calimero nfs rw
njoly@calimero [~]> cd /mount/calimero/banks/embl/copy 
njoly@calimero [embl/copy]> nfsstat -c >~/nfsstat.0 
njoly@calimero [embl/copy]> cp ../ftp/* .
njoly@calimero [embl/copy]> nfsstat -c >~/nfsstat.1 

nfsstat files attached.

Thanks in advance,
Regards.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.

--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nfsstat.0"

Client Info:
RPC Counts: (39 calls)
      null         getattr         setattr          lookup          access
         0  0%          12 30%           0  0%           9 23%          10 25%
  readlink            read           write          create           mkdir
         0  0%           0  0%           0  0%           0  0%           0  0%
   symlink           mknod          remove           rmdir          rename
         0  0%           0  0%           0  0%           0  0%           0  0%
      link         readdir     readdirplus          fsstat          fsinfo
         0  0%           2  5%           0  0%           5 12%           1  2%
  pathconf          commit        getlease         vacated         evicted
         0  0%           0  0%           0  0%           0  0%           0  0%
      noop
         0  0%
RPC Info:
   timeout         invalid      unexpected         retries        requests
         0               0               0               0              39
Cache Info:
 attrcache     lookupcache            read           write        readlink
        51 80%          33 78%           0  0%           0  0%           0  0%
   readdir     direofcache
        11 84%           8 66%

--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nfsstat.1"

Client Info:
RPC Counts: (1158460 calls)
      null         getattr         setattr          lookup          access
         0  0%        1923  0%           0  0%        2552  0%         725  0%
  readlink            read           write          create           mkdir
         0  0%      576420 49%      576420 49%         367  0%           2  0%
   symlink           mknod          remove           rmdir          rename
         0  0%           0  0%           0  0%           1  0%           0  0%
      link         readdir     readdirplus          fsstat          fsinfo
         0  0%          14  0%           0  0%          35  0%           1  0%
  pathconf          commit        getlease         vacated         evicted
         0  0%           0  0%           0  0%           0  0%           0  0%
      noop
         0  0%
RPC Info:
   timeout         invalid      unexpected         retries        requests
         0               0             198            1349         1158460
Cache Info:
 attrcache     lookupcache            read           write        readlink
    294344 99%        4175 62%       -1227  0%     1728704 74%           0  0%
   readdir     direofcache
       107 88%          68 66%

--zYM0uCDKw75PZbzx--