Public bug reported:
Under high load, tirpc server exhausts all file descriptors available for the
process.
To reproduce this issue, a simple program can try to access a tirpc server
simultaneously more than 1024 (default number of available file
descriptors/process) times. After a request is sent, each thread should wait
several seconds before destroying the client. See the attachments for a sample
code (Makefile, eho.x, echo_client.c, echo_server.c). When executed the
requests are sometimes successful, but sometimes they fail with different
errors, for example the error from the title: "RPC: Remote system error - Too
many open files". I would expect, that also in this case all the requests are
successful.
Furthermore, from the strace output one can see that the file descriptors are
used mainly on opening /etc/netconfig:
...
openat(AT_FDCWD, "/etc/netconfig", O_RDONLY) = 1022
fstat(1022, {st_mode=S_IFREG|0644, st_size=767, ...}) = 0
read(1022, "#\n# The network configuration fi"..., 4096) = 767
close(1022)
...
openat(AT_FDCWD, "/etc/netconfig", O_RDONLY) = 1023
fstat(1023, {st_mode=S_IFREG|0644, st_size=767, ...}) = 0
read(1023, "#\n# The network configuration fi"..., 4096) = 767
close(1023)
...
openat(AT_FDCWD, "/etc/netconfig", O_RDONLY) = -1 EMFILE (Too many open files)
...
Further info:
Package: libtirpc
Version: 1.3.4+ds-1.1build1
Description: Ubuntu 24.04.4 LTS
Release: 24.04
** Affects: libtirpc (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "repro.tar"
https://bugs.launchpad.net/bugs/2152168/+attachment/5969622/+files/repro.tar
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2152168
Title:
RPC: Remote system error - Too many open files
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libtirpc/+bug/2152168/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs