Open File Descriptors Current vs. Max

Hello all,

I have been tasked with finding the current open file descriptors versus the limit set. In Linux, this can be done like so:

cat /proc/sys/fs/file-nr
3391    969     52427
|	 |       |
|	 |       |
|        |       maximum open file descriptors
|        total free allocated file descriptors
total allocated file descriptors
(the number of file descriptors allocated since boot)

Is there a similar way to do this in Solaris???

You can run this command:

# echo ::kmastat | mdb -k | grep file_cache
file_cache                    56    337   1015      57344B   3009207     0 

Here, 337 is the number of file descriptors in use while 1015 the number of file descriptors allocated.

There is no maximum open file descriptors setting with Solaris. They are simply allocated on demand as long as there is free RAM available.

1 Like

Thank you!