Linux NFS development
 help / color / mirror / Atom feed
* contention on pwq->pool->lock under heavy NFS workload
@ 2023-06-21 15:26 Chuck Lever III
  2023-06-21 21:28 ` Tejun Heo
  0 siblings, 1 reply; 10+ messages in thread
From: Chuck Lever III @ 2023-06-21 15:26 UTC (permalink / raw)
  To: Tejun Heo; +Cc: open list, Linux NFS Mailing List

Hi Tejun-

lock_stat reports that the pool->lock kernel/workqueue.c:1483 is the highest
contended lock on my test NFS client. The issue appears to be that the three
NFS-related workqueues, rpciod_workqueue, xprtiod_workqueue, and nfsiod all
get placed in the same worker_pool, so they have to fight over one pool lock.

I notice that ib_comp_wq is allocated with the same flags, but I don't see
significant contention there, and a trace_printk in __queue_work shows that
work items queued on that WQ seem to alternate between at least two different
worker_pools.

Is there a preferred way to ensure the NFS WQs get spread a little more fairly
amongst the worker_pools?

Thanks in advance.

--
Chuck Lever



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

end of thread, other threads:[~2023-06-26 20:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-21 15:26 contention on pwq->pool->lock under heavy NFS workload Chuck Lever III
2023-06-21 21:28 ` Tejun Heo
2023-06-22 14:38   ` Chuck Lever III
2023-06-22 15:45   ` Chuck Lever III
2023-06-22 19:23     ` Tejun Heo
2023-06-22 19:39       ` Chuck Lever III
2023-06-23 14:37         ` Chuck Lever III
2023-06-24  1:44           ` Tejun Heo
2023-06-25 16:01             ` Chuck Lever III
2023-06-26 20:21               ` Tejun Heo

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