Skip to content

Commit f515f86

Browse files
olgakorntrondmypd
authored andcommitted
fix parallelism for rpc tasks
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 <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent 90ea9f1 commit f515f86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sunrpc/sched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ static int rpciod_start(void)
11041104
* Create the rpciod thread and wait for it to start.
11051105
*/
11061106
dprintk("RPC: creating workqueue rpciod\n");
1107-
wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM, 0);
1107+
wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM | WQ_UNBOUND, 0);
11081108
if (!wq)
11091109
goto out_failed;
11101110
rpciod_workqueue = wq;

0 commit comments

Comments
 (0)