Operating System - HP-UX
1748285 Members
3812 Online
108761 Solutions
New Discussion юеВ

File descriptors/open files

 
Pavel Krumnikl
Occasional Contributor

File descriptors/open files

Hello,

I would like to ask, how can I check for the current value of the used file descriptors on the running HP-UX (11.11)?

What is defining the limit of it?

Thanks
Pavel
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: File descriptors/open files

The easiest way is to use Glance, if you have it. GPM > Reports > System Info > System Tables Report will show you the values for the File Table among others. The number of entries are governed by the kernel parameter, nfile.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: File descriptors/open files

Hi Pavel:

The kernel parameters 'maxfiles' (the "soft" limit defines the per-process limit. The "hard" limit (per process) is defined by 'maxfiles_lim' and the overall per system limit is bounded by 'nfile'.

The 'sar' or 'glace' utilities will show you the 'nfile' watermarks.

See the manpages for more information on each.

Regards!

...JRF...
Ganesan R
Honored Contributor

Re: File descriptors/open files

Hi,

Use sar -v like below. It will give nproc/ninode/nfile configured value and current used value like below.

# sar -v 2 2

HP-UX motign02 B.11.11 U 9000/800 08/08/08

06:57:22 text-sz ov proc-sz ov inod-sz ov file-sz ov
06:57:24 N/A N/A 243/4768 0 743/5716 0 653/10296 0
06:57:26 N/A N/A 243/4768 0 743/5716 0 653/10296 0

Hope this helps
Best wishes,

Ganesh.