Fedora/Linux에서 "열린 파일/감시자가 너무 많습니다"

Fedora/Linux에서 "열린 파일/감시자가 너무 많습니다"

Fedora 31이 설치된 "베어 메탈" 머신이 있습니다.

VSCode 원격을 사용할 때 1~2시간마다 명령을 실행 tail -f하거나 journalctl기다릴 수 없습니다 podman. (VSCode 터미널 및 SSH)

이 문제를 해결하기 위해 (일시적으로) vscode 서버를 종료할 수 있습니다. vscode 서버에서 fds가 유출되는 것 같은데 이유를 찾을 수 없습니다.

Google에서 찾은 모든 기사를 따랐지만 이 문제를 해결하지 못했습니다.

sysctl fs.file-nr:

fs.file-nr = 10512      0       2000000

이 명령은 다음과 같습니다.https://stackoverflow.com/questions/21752067/counting-open-files-per-process/21752125#21752125

194 fds (PID = 4313), command: /usr/libexec/mysqld --basedir=/usr
141 fds (PID = 1), command: /usr/lib/systemd/systemd --switched-root --system --deserialize 29
119 fds (PID = 3448), command: /usr/bin/qbittorrent --profile=/opt
90 fds (PID = 18100), command: /usr/sbin/smbd --foreground --no-process-group
72 fds (PID = 1180), command: /usr/lib/systemd/systemd-journald
57 fds (PID = 8781), command: /usr/sbin/smbd --foreground --no-process-group
52 fds (PID = 3976), command: /usr/lib/systemd/systemd
47 fds (PID = 3785), command: /usr/bin/mongod -f /etc/mongod.conf
43 fds (PID = 1758), command: dbus-broker --log 4 --controller 9 --machine-id 48d17ca8e2184a66b9043781fdc8f037 --max-bytes 536870912 --max-fds 4096 --max-matches 16384 --audit
40 fds (PID = 1766096), command: /root/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/node /root/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0/out/vs/server/main.js --host=127.0.0.1 --enable-remote-auto-shutdown --port=0

ulimit -n

500000

lsof | awk '{print $9}' | sort | uniq | wc -l

2003

그리고 메모리는 충분히 큽니다. free -g

              total        used        free      shared  buff/cache   available
Mem:             59           8           6           0          44          50
Swap:            63           0          63

vscode 서버를 종료한 후:
sysctl fs.file-nr

fs.file-nr = 10320      0       2000000

열려 있는 파일의 총 개수가 일부 고부하 서버에 비해 "작은" 숫자임을 알 수 있습니다.
vscode 서버는 40개의 fd만 ​​사용했는데, 내가 종료한 후 file-nr이 200개 이상 감소했습니다. 가능합니까?

저는 이 root사용자를 사용하고 있으며 SELinux를 비활성화했습니다. 리소스 사용량을 제한하기 위해 할 수 있는 다른 방법이 있습니까?

관련 정보