SUMMARY:File Descriptors Current Count

From: Lau, Victoria H (vlau@msmail2.hac.com)
Date: Fri Nov 01 1996 - 10:23:50 CST


Thank you very much to the following Sun Managers who kindly responded to my
inquiry on file descriptors:

- Kevin Sheehan
- J. Pritchard
- Bleary@state.ma.us
- Markus Weber
- Michael Sullivan
- Trevor Paquette

Original Question:
=================
Is there a way to track the current count of file descriptors used for a
process? I'd placed the line "limit descriptors 256" (sunos) and
"limit descriptors 1024" (Solaris) in a global .cshrc for all the users.
Some of my users keep running out of file descriptors. I'd like to
know how to track their current file descriptor count in order to fine tune
the system.

Responses:
=========
- lsof (lsof <user> | wc to find out how many fd's the user uses)
- proctool
- sps (search for sps-sol2 via ftpsearch)
- /usr/proc/bin/pfiles (first available in Solaris 2.5)

Brian Leary also added the following comment:
As for Solaris ...

Have you also raised the number of open file descriptors in the kernel?
The default is 64. The 'limit descriptors 1024' will not work if limit is
not raised in kernel. If not, put following line into /etc/system
        set rlim_fd_cur=1024
and do a boot -r.

NOTE: Sun Solve srdb doc #11112 says ... "Stdio routines are limited to
using file desriptors 0 - 255. Even though you can set the limit higher
than 256, if fopen() cannot get a file descriptor lower than 256, the fopen()
fails."

Brion Leary <bleary@state.ma.us>

Appreciate greatly all your help.

Vicky Lau
vlau@msmail2.hac.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:14 CDT