netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 net-next 0/4] af_unix: Random improvements for GC.
@ 2023-11-22  1:36 Kuniyuki Iwashima
  2023-11-22  1:36 ` [PATCH v1 net-next 1/4] af_unix: Do not use atomic ops for unix_sk(sk)->inflight Kuniyuki Iwashima
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Kuniyuki Iwashima @ 2023-11-22  1:36 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Ivan Babrou, Kuniyuki Iwashima, Kuniyuki Iwashima, netdev

If more than 16000 inflight AF_UNIX sockets exist on a host, each
sendmsg() will be forced to wait for unix_gc() even if a process
is not sending any FD.

This series tries not to impose such a penalty on sane users.


Kuniyuki Iwashima (4):
  af_unix: Do not use atomic ops for unix_sk(sk)->inflight.
  af_unix: Return struct unix_sock from unix_get_socket().
  af_unix: Run GC on only one CPU.
  af_unix: Try to run GC async.

 include/linux/io_uring.h |  4 +-
 include/net/af_unix.h    |  6 +--
 include/net/scm.h        |  1 +
 io_uring/io_uring.c      |  5 ++-
 net/core/scm.c           |  3 ++
 net/unix/af_unix.c       | 10 +++--
 net/unix/garbage.c       | 84 ++++++++++++++++++----------------------
 net/unix/scm.c           | 34 ++++++++--------
 8 files changed, 72 insertions(+), 75 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2023-11-22 20:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-22  1:36 [PATCH v1 net-next 0/4] af_unix: Random improvements for GC Kuniyuki Iwashima
2023-11-22  1:36 ` [PATCH v1 net-next 1/4] af_unix: Do not use atomic ops for unix_sk(sk)->inflight Kuniyuki Iwashima
2023-11-22  1:36 ` [PATCH v1 net-next 2/4] af_unix: Return struct unix_sock from unix_get_socket() Kuniyuki Iwashima
2023-11-22  1:36 ` [PATCH v1 net-next 3/4] af_unix: Run GC on only one CPU Kuniyuki Iwashima
2023-11-22  1:36 ` [PATCH v1 net-next 4/4] af_unix: Try to run GC async Kuniyuki Iwashima
2023-11-22 15:45   ` kernel test robot
2023-11-22 20:23   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).