]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: add sending,pending queue and max slot to xprt stats
authorAndy Adamson <andros@netapp.com>
Tue, 14 Feb 2012 21:19:18 +0000 (16:19 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Feb 2012 19:55:27 +0000 (14:55 -0500)
commit0fbe6ae5d1cc691f313cd9068603203efa3346b3
tree0ff258cf98774c72793ece98f2605f3fe132e352
parenta285142373c42ff2ce01c645ed26d7872c2e838e
SUNRPC: add sending,pending queue and max slot to xprt stats

With static RPC slots, the xprt backlog queue stats were useful in showing
when the transport (TCP) was starved by lack of RPC slots. The new dynamic
RPC slot code, commit 45ce2ead1b35c626273f4401525073cb96b78eeb, always
provides an RPC slot and so only uses the xprt backlog queue when the
tcp_max_slot_table_entries value has been hit or when an allocation error
occurs. All requests are now placed on the xprt sending or pending queue which
need to be monitored for debugging.

The max_slot stat shows the maximum number of dynamic RPC slots reached which is
useful when debugging performance issues.

Add the new fields at the end of the mountstats xprt stanza so that mountstats
outputs the previous correct values and ignores the new fields. Bump
NFS_IOSTATS_VERS.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/nfs_iostat.h
include/linux/sunrpc/xprt.h
net/sunrpc/xprt.c
net/sunrpc/xprtsock.c