linux_dsm_epyc7002/include/linux/sunrpc
Chuck Lever ff8399709e SUNRPC: Replace jiffies-based metrics with ktime-based metrics
Currently RPC performance metrics that tabulate elapsed time use
jiffies time values.  This is problematic on systems that use slow
jiffies (for instance 100HZ systems built for paravirtualized
environments).  It is also a problem for computing precise latency
statistics for advanced network transports, such as InfiniBand,
that can have round-trip latencies significanly faster than a single
clock tick.

For the RPC client, adopt the high resolution time stamp mechanism
already used by the network layer and blktrace: ktime.

We use ktime format time stamps for all internal computations, and
convert to milliseconds for presentation.  As a result, we need only
addition operations in the performance critical paths; multiply/divide
is required only for presentation.

We could report RTT metrics in microseconds.  In fact the mountstats
format is versioned to accomodate exactly this kind of interface
improvement.

For now, however, we'll stay with millisecond precision for
presentation to maintain backwards compatibility with the handful of
currently deployed user space tools.  At a later point, we'll move to
an API such as BDI_STATS where a finer timestamp precision can be
reported.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2010-05-14 15:09:33 -04:00
..
auth_gss.h
auth.h SUNRPC: Defer the auth_gss upcall when the RPC call is asynchronous 2009-09-15 20:49:33 -04:00
bc_xprt.h SUNRPC: Fix a use after free bug with the NFSv4.1 backchannel 2010-03-22 05:32:44 -04:00
cache.h SUNRPC: Add an rpc_pipefs front end for the sunrpc cache code 2009-08-09 15:14:30 -04:00
clnt.h nfsd41: sunrpc: add new xprt class for nfsv4.1 backchannel 2009-09-13 15:46:15 -04:00
debug.h sunrpc: Clean never used include files 2009-12-14 18:12:08 -05:00
gss_api.h gss_krb5: Add upcall info indicating supported kerberos enctypes 2010-05-14 15:09:17 -04:00
gss_asn1.h
gss_err.h
gss_krb5.h gss_krb5: Add support for rc4-hmac encryption 2010-05-14 15:09:20 -04:00
gss_spkm3.h
Kbuild
metrics.h SUNRPC: Replace jiffies-based metrics with ktime-based metrics 2010-05-14 15:09:33 -04:00
msg_prot.h
rpc_pipe_fs.h nfs: fix compile error in rpc_pipefs.h 2009-08-20 18:20:25 -04:00
rpc_rdma.h sunrpc: Clean never used include files 2009-12-14 18:12:08 -05:00
sched.h SUNRPC: Replace jiffies-based metrics with ktime-based metrics 2010-05-14 15:09:33 -04:00
stats.h
svc_rdma.h
svc_xprt.h nfsd41: sunrpc: Added rpc server-side backchannel handling 2009-09-11 15:04:16 -04:00
svc.h nfsd: remove unused field rq_reffh 2009-12-15 15:01:46 -05:00
svcauth_gss.h
svcauth.h
svcsock.h nfsd41: sunrpc: Added rpc server-side backchannel handling 2009-09-11 15:04:16 -04:00
timer.h
types.h
xdr.h SUNRPC: Trivial cleanups in include/linux/sunrpc/xdr.h 2010-05-14 15:09:31 -04:00
xprt.h SUNRPC: Replace jiffies-based metrics with ktime-based metrics 2010-05-14 15:09:33 -04:00
xprtrdma.h nfsd41: sunrpc: add new xprt class for nfsv4.1 backchannel 2009-09-13 15:46:15 -04:00
xprtsock.h nfsd41: sunrpc: add new xprt class for nfsv4.1 backchannel 2009-09-13 15:46:15 -04:00