public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/10] SUNRPC thread management changes
@ 2023-08-30  2:54 NeilBrown
  2023-08-30  2:54 ` [PATCH 01/10] SQUASH: revise comments in SUNRPC: change service idle list to be an llist NeilBrown
                   ` (9 more replies)
  0 siblings, 10 replies; 20+ messages in thread
From: NeilBrown @ 2023-08-30  2:54 UTC (permalink / raw)
  To: Chuck Lever, Jeff Layton; +Cc: linux-nfs

Here is an updated set of patches against topic-sunrpc-thread-scheduling.

There are two patches to be squashed into the current top of that topic,
though an llist patch needs to be moved earlier for the second to work.

All the llist changes are no in separate patches.  lwq is now added to lib/

NeilBrown


 [PATCH 01/10] SQUASH: revise comments in SUNRPC: change service idle
 [PATCH 02/10] llist: add interface to check if a node is on a list.
 [PATCH 03/10] SQUASH use new llist interfaces in SUNRPC: change
 [PATCH 04/10] llist: add llist_del_first_this()
 [PATCH 05/10] lib: add light-weight queuing mechanism.
 [PATCH 06/10] SUNRPC: only have one thread waking up at a time
 [PATCH 07/10] SUNRPC: use lwq for sp_sockets - renamed to sp_xprts
 [PATCH 08/10] SUNRPC: change sp_nrthreads to atomic_t
 [PATCH 09/10] SUNRPC: discard sp_lock
 [PATCH 10/10] SUNRPC: change the back-channel queue to lwq


^ permalink raw reply	[flat|nested] 20+ messages in thread
* [PATCH 00/10] SUNRPC: remainder of srv queueing work
@ 2023-08-15  1:54 NeilBrown
  2023-08-15  1:54 ` [PATCH 07/10] SUNRPC: use lwq for sp_sockets - renamed to sp_xprts NeilBrown
  0 siblings, 1 reply; 20+ messages in thread
From: NeilBrown @ 2023-08-15  1:54 UTC (permalink / raw)
  To: Chuck Lever, Jeff Layton; +Cc: linux-nfs

This series is on top of topic-sunrpc-thread-scheduling (4fa42add1a7)

It includes a fixup for an earlier patch in that topic, revised versions
of patches that have been sent but are yet to land, and the remainder of
what I have been working on.

With the full set enqueueing and dequeueing of the list of idle threads
is completely lockless following a LIFO discipline.  Threads are woken
gradually without the possibility of a thundering herd.  If lots of work
becomes ready only one thread is woken and once it dequeues the first
work item, it will dequeue another thread if there is more work to do.

Queueing and dequeueing for work-items for these threads is partially
lockless following a FIFO discipline.  Enqueueing, which can happen in
bh context, is lockless. Dequeueing in the server threads still
requires a spinlock, but does not need to disable 'bh'.

NeilBrown

 [PATCH 01/10] SQUASH: SUNRPC: rename and refactor svc_get_next_xprt()
 [PATCH 02/10] SUNRPC: add list of idle threads
 [PATCH 03/10] SUNRPC: discard SP_CONGESTED
 [PATCH 04/10] SUNRPC: change service idle list to be an llist
 [PATCH 05/10] SUNRPC: only have one thread waking up at a time
 [PATCH 06/10] SUNRPC/svc: add light-weight queuing mechanism.
 [PATCH 07/10] SUNRPC: use lwq for sp_sockets - renamed to sp_xprts
 [PATCH 08/10] SUNRPC: change sp_nrthreads to atomic_t
 [PATCH 09/10] SUNRPC: discard sp_lock
 [PATCH 10/10] SUNRPC: change the back-channel queue to lwq


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

end of thread, other threads:[~2023-09-04  0:35 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-30  2:54 [PATCH 00/10] SUNRPC thread management changes NeilBrown
2023-08-30  2:54 ` [PATCH 01/10] SQUASH: revise comments in SUNRPC: change service idle list to be an llist NeilBrown
2023-08-30  2:54 ` [PATCH 02/10] llist: add interface to check if a node is on a list NeilBrown
2023-08-30  2:54 ` [PATCH 03/10] SQUASH use new llist interfaces in SUNRPC: change service idle list to be an llist NeilBrown
2023-08-30  2:54 ` [PATCH 04/10] llist: add llist_del_first_this() NeilBrown
2023-08-30  2:54 ` [PATCH 05/10] lib: add light-weight queuing mechanism NeilBrown
2023-08-30 15:21   ` Chuck Lever
2023-09-03 23:57     ` NeilBrown
2023-08-30 15:35   ` Chuck Lever
2023-09-03 23:59     ` NeilBrown
2023-08-30 16:03   ` Chuck Lever
2023-09-04  0:02     ` NeilBrown
2023-08-30  2:54 ` [PATCH 06/10] SUNRPC: only have one thread waking up at a time NeilBrown
2023-08-30 15:28   ` Chuck Lever
2023-09-04  0:35     ` NeilBrown
2023-08-30  2:54 ` [PATCH 07/10] SUNRPC: use lwq for sp_sockets - renamed to sp_xprts NeilBrown
2023-08-30  2:54 ` [PATCH 08/10] SUNRPC: change sp_nrthreads to atomic_t NeilBrown
2023-08-30  2:54 ` [PATCH 09/10] SUNRPC: discard sp_lock NeilBrown
2023-08-30  2:54 ` [PATCH 10/10] SUNRPC: change the back-channel queue to lwq NeilBrown
  -- strict thread matches above, loose matches on Subject: below --
2023-08-15  1:54 [PATCH 00/10] SUNRPC: remainder of srv queueing work NeilBrown
2023-08-15  1:54 ` [PATCH 07/10] SUNRPC: use lwq for sp_sockets - renamed to sp_xprts NeilBrown

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