Linux NFS development
 help / color / mirror / Atom feed
* [PATCH 1/2] SUNRPC: Adjust rpciod workqueue parameters
@ 2015-01-25  0:18 Trond Myklebust
  2015-01-25  0:18 ` [PATCH 2/2] SUNRPC: Allow waiting on memory allocation Trond Myklebust
  2015-01-26 23:33 ` [PATCH 1/2] SUNRPC: Adjust rpciod workqueue parameters Shirley Ma
  0 siblings, 2 replies; 11+ messages in thread
From: Trond Myklebust @ 2015-01-25  0:18 UTC (permalink / raw)
  To: linux-nfs

Increase the concurrency level for rpciod threads to allow for allocations
etc that happen in the RPCSEC_GSS layer. Also note that the NFSv4 byte range
locks may now need to allocate memory from inside rpciod.

Add the WQ_HIGHPRI flag to improve latency guarantees while we're at it.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
---
 net/sunrpc/sched.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
index d20f2329eea3..4f65ec28d2b4 100644
--- a/net/sunrpc/sched.c
+++ b/net/sunrpc/sched.c
@@ -1069,7 +1069,8 @@ 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, 1);
+	/* Note: highpri because network receive is latency sensitive */
+	wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM | WQ_HIGHPRI, 0);
 	rpciod_workqueue = wq;
 	return rpciod_workqueue != NULL;
 }
-- 
2.1.0


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

end of thread, other threads:[~2015-01-27 15:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-25  0:18 [PATCH 1/2] SUNRPC: Adjust rpciod workqueue parameters Trond Myklebust
2015-01-25  0:18 ` [PATCH 2/2] SUNRPC: Allow waiting on memory allocation Trond Myklebust
2015-01-25 20:11   ` Chuck Lever
2015-01-25 21:29     ` Trond Myklebust
2015-01-26 23:33 ` [PATCH 1/2] SUNRPC: Adjust rpciod workqueue parameters Shirley Ma
2015-01-27  0:34   ` Trond Myklebust
2015-01-27  2:30     ` Shirley Ma
2015-01-27  3:17       ` Trond Myklebust
2015-01-27  6:20         ` Shirley Ma
2015-01-27  6:34           ` Trond Myklebust
2015-01-27 15:09             ` Shirley Ma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox