> From [EMAIL PROTECTED] Thu Sep 10 09:55:21 1998
> From: Paul Brown <[EMAIL PROTECTED]>
> To: "'David Ross'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: open file descriptors
> Date: Thu, 10 Sep 1998 13:54:46 +0200
> X-Priority: 3
> Sender: [EMAIL PROTECTED]
> Reply-To: Paul Brown <[EMAIL PROTECTED]>
>
> Hi,
>
> Thanks for the response, but I meant how many are open at the time of
> running the program/script.
>
> Ie, the more files open, the higher the number, etc.
>
>
> > Does anyne know how to find out how many open file descriptors
> there are
> > at any one time on a linux box?
> > Any help would be appreciated..
>
>
> Try this one!
>
> $ cat /proc/sys/kernel/file-nr
> 360
> $
This is what you are looking for to the best of my knowledge. Glynn has posted a
message agreeing. "kernel/file-max" is the maximum. I believe the max can be
change just by writing to it.
I have found the proc file system to be one of the less well documented parts of
linux. From what I have seen it is one of the more recent major additions. The
"half life" of the what there is seems short, because of what it is, a wide open
window into every process on a rapidly evolving platform.
There are some exellent postings I found searching on Dejanus (I think thats the
way its spelled). If you want the "last word" you have the go to the "Source".
The kernel of course. Wasn't there some song on a TV show like that.
<GRONE BEGIN>
.
.
.
<GRONE END>
(uncomfortable silence)
Greping in the kernel source tree will point you to the source files. The ones I
have looked at had really good comments for programs, but they can be sparse
when there explicit and implicit relationships with other proc file system data
and sub-system dependecies.
It should be easy for you to monitor that number cating it in a script loop,
with a sleep N "up close and personal", as a reality test.
Hope this is helpful.
regards
david
--
David Ross
[EMAIL PROTECTED]
Toad Technologies
"I'll be good! I will, I will!"