Open desc. count by app and faster method to discover used count than lsof?
by postcd from LinuxQuestions.org on (#5PSQR)
Hello,
i am wondering how to quickly discover currently used desc. more quickly than using lsof which is too slow.
cat /proc/sys/fs/file-max
...quintillion high number here...
ulimit -Sn
1024
ulimit -Hn
90000
grep nofile /etc/security/limits.conf
# - nofile - max number of 0pen file descript0rs
* hard nofile 900000
$ cat /proc/sys/fs/file-nr
36480 0 quintillion_high_value_here
$ sudo ls -l /proc/*/fd|sort -h|grep -v total|wc -l
18970
lsof|wc -l
1591966
and correct location to modify the limit is likely that limits.conf file on Arch? and btw any clever command or script to output top descript0r usage apps with the count of desc. used by these? I have found only this one. Thank you
i am wondering how to quickly discover currently used desc. more quickly than using lsof which is too slow.
cat /proc/sys/fs/file-max
...quintillion high number here...
ulimit -Sn
1024
ulimit -Hn
90000
grep nofile /etc/security/limits.conf
# - nofile - max number of 0pen file descript0rs
* hard nofile 900000
$ cat /proc/sys/fs/file-nr
36480 0 quintillion_high_value_here
$ sudo ls -l /proc/*/fd|sort -h|grep -v total|wc -l
18970
lsof|wc -l
1591966
and correct location to modify the limit is likely that limits.conf file on Arch? and btw any clever command or script to output top descript0r usage apps with the count of desc. used by these? I have found only this one. Thank you