All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] fix parallelism for rpc tasks
@ 2017-06-29 13:25 Olga Kornievskaia
  2017-07-03 14:58 ` Trond Myklebust
  0 siblings, 1 reply; 10+ messages in thread
From: Olga Kornievskaia @ 2017-06-29 13:25 UTC (permalink / raw)
  To: linux-nfs

Hi folks,

On a multi-core machine, is it expected that we can have parallel RPCs
handled by each of the per-core workqueue?

In testing a read workload, observing via "top" command that a single
"kworker" thread is running servicing the requests (no parallelism).
It's more prominent while doing these operations over krb5p mount.

What has been suggested by Bruce is to try this and in my testing I
see then the read workload spread among all the kworker threads.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>

diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
index 0cc8383..f80e688 100644
--- a/net/sunrpc/sched.c
+++ b/net/sunrpc/sched.c
@@ -1095,7 +1095,7 @@ static int rpciod_start(void)
  * Create the rpciod thread and wait for it to start.
  */
  dprintk("RPC:       creating workqueue rpciod\n");
- wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM, 0);
+ wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM | WQ_UNBOUND, 0);
  if (!wq)
  goto out_failed;
  rpciod_workqueue = wq;

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-02-17 18:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-29 13:25 [RFC] fix parallelism for rpc tasks Olga Kornievskaia
2017-07-03 14:58 ` Trond Myklebust
2017-07-05 14:44   ` Olga Kornievskaia
2017-07-05 15:11     ` Chuck Lever
2017-07-05 15:46       ` Trond Myklebust
2017-07-05 16:09         ` Olga Kornievskaia
2017-07-05 16:14           ` Trond Myklebust
2017-07-05 17:33             ` Olga Kornievskaia
2017-07-19 17:59               ` Olga Kornievskaia
     [not found]                 ` <BN6PR06MB35218ABC67EAAF5193E56264E1F50@BN6PR06MB3521.namprd06.prod.outlook.com>
2018-02-17 18:55                   ` Chuck Lever

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.