]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Make RTT measurement more precise (Receive)
authorChuck Lever <chuck.lever@oracle.com>
Mon, 5 Mar 2018 20:13:02 +0000 (15:13 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 10 Apr 2018 20:06:22 +0000 (16:06 -0400)
commiteb756bc0ca27212d9983ca64a1436f95691ab20b
treeacfa846d81e0fe929df5a85fef988dfa7a4d8324
parent375e0fe1ebe0f0cdc71a07bb1ed25890ac67fedf
SUNRPC: Make RTT measurement more precise (Receive)

Some RPC transports have more overhead in their reply handlers
than others. For example, for RPC-over-RDMA:

- RPC completion has to wait for memory invalidation, which is
  not a part of the server/network round trip

- Recently a context switch was introduced into the reply handler,
  which further artificially inflates the measure of RPC RTT

To capture just server and network latencies more precisely: when
receiving a reply, compute the RTT as soon as the XID is recognized
rather than at RPC completion time.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprt.c