Article 5PSQR Open desc. count by app and faster method to discover used count than lsof?

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 youlatest?d=yIl2AUoC8zA latest?i=8ypYi2-utZg:-bOJgx-AQ14:F7zBnMy latest?i=8ypYi2-utZg:-bOJgx-AQ14:V_sGLiP latest?d=qj6IDK7rITs latest?i=8ypYi2-utZg:-bOJgx-AQ14:gIN9vFw8ypYi2-utZg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments