Message ID | 157588565669.223723.2766246342567340687.stgit@localhost.localdomain |
---|---|
Headers | show |
Series | unix: Show number of scm files in fdinfo | expand |
From: Kirill Tkhai <ktkhai@virtuozzo.com> Date: Mon, 09 Dec 2019 13:03:34 +0300 > v2: Pass correct argument to locked in patch [2/2]. > > Unix sockets like a block box. You never know what is pending there: > there may be a file descriptor holding a mount or a block device, > or there may be whole universes with namespaces, sockets with receive > queues full of sockets etc. > > The patchset makes number of pending scm files be visible in fdinfo. > This may be useful to determine, that socket should be investigated > or which task should be killed to put a reference counter on a resourse. > > $cat /proc/[pid]/fdinfo/[unix_sk_fd] | grep scm_fds > scm_fds: 1 Series applied.
On 13.12.2019 04:05, David Miller wrote: > From: Kirill Tkhai <ktkhai@virtuozzo.com> > Date: Mon, 09 Dec 2019 13:03:34 +0300 > >> v2: Pass correct argument to locked in patch [2/2]. >> >> Unix sockets like a block box. You never know what is pending there: >> there may be a file descriptor holding a mount or a block device, >> or there may be whole universes with namespaces, sockets with receive >> queues full of sockets etc. >> >> The patchset makes number of pending scm files be visible in fdinfo. >> This may be useful to determine, that socket should be investigated >> or which task should be killed to put a reference counter on a resourse. >> >> $cat /proc/[pid]/fdinfo/[unix_sk_fd] | grep scm_fds >> scm_fds: 1 > > Series applied. Thanks, David.
v2: Pass correct argument to locked in patch [2/2]. Unix sockets like a block box. You never know what is pending there: there may be a file descriptor holding a mount or a block device, or there may be whole universes with namespaces, sockets with receive queues full of sockets etc. The patchset makes number of pending scm files be visible in fdinfo. This may be useful to determine, that socket should be investigated or which task should be killed to put a reference counter on a resourse. $cat /proc/[pid]/fdinfo/[unix_sk_fd] | grep scm_fds scm_fds: 1 --- Kirill Tkhai (2): net: Allow to show socket-specific information in /proc/[pid]/fdinfo/[fd] unix: Show number of pending scm files of receive queue in fdinfo include/linux/net.h | 1 + include/net/af_unix.h | 5 ++++ net/socket.c | 12 +++++++++++ net/unix/af_unix.c | 56 +++++++++++++++++++++++++++++++++++++++++++++---- 4 files changed, 69 insertions(+), 5 deletions(-) -- Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>