fstat - total file descriptor count on freebsd system?
-
17-06-2021 - |
문제
How to get the current count of file descriptors in the system?
I know how to get the maximum.
% sysctl kern.maxfiles
kern.maxfiles: 8232
Ref:
해결책
Are you looking for kern.openfiles
?
[ghoti@pc ~]$ sysctl -ad | grep 'kern.*files:'
kern.maxfiles: Maximum number of files
kern.openfiles: System-wide number of open files
[ghoti@pc ~]$
다른 팁
cat /proc/sys/fs/file-nr
Three columns are total file descriptors allocated since boot
, free allocated file descriptors
, maximum open file descriptors
.
Additional info here.
제휴하지 않습니다 StackOverflow