mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
SUNRPC: Count ingress RPC messages per svc_pool
svc_xprt_enqueue() can be costly, since it involves selecting and waking up a process. More than one enqueue is done per incoming RPC. For example, svc_data_ready() enqueues, and so does svc_xprt_receive(). Also, if an RPC message requires more than one call to ->recvfrom() to receive it fully, each one of those calls does an enqueue. To get a sense of the average number of transport enqueue operations needed to process an incoming RPC message, re-use the "packets" pool stat. Track the number of complete RPC messages processed by each thread pool. Reviewed-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: NeilBrown <neilb@suse.de> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
@@ -39,6 +39,7 @@ struct svc_pool {
|
||||
struct list_head sp_all_threads; /* all server threads */
|
||||
|
||||
/* statistics on pool operation */
|
||||
struct percpu_counter sp_messages_arrived;
|
||||
struct percpu_counter sp_sockets_queued;
|
||||
struct percpu_counter sp_threads_woken;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user