1833059 Members
2476 Online
110049 Solutions
New Discussion

number of files opened

 
Mario_88
Advisor

number of files opened

Hello:

When I check file table usage it gives me about 55% of utilization

uoppalbd:/usr/hpsupport#cat files-adviser.txt
primer_bucle = primer_bucle
if primer_bucle == 0 then {
PRINT "Maquina ",
" ",gbl_osname,
" ",gbl_nodename,
" ",gbl_machine_model,
" ",gbl_osrelease,
" ",gbl_osversion,
" ",gbl_oskerneltype,
" ",gbl_num_cpu,
""
PRINT "Start ",
" ",gbl_startdate,
" ",gbl_starttime,
""
primer_bucle = 1
}
print " TBL", tbl_file_table_util|8|0
if tbl_file_table_util > 90 then {


XXXX:#/opt/perf/bin/glance -adviser_only -syntax files-advi>

Welcome to GlancePlus


Maquina HP-UX XXXX ia64 hp superdome se B.11.23 U 64 bits 40
Start 07/31/2007 13:34:09
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55
TBL 55

As nfile is 100000 I thought it would be about 55000 files opened but if I run lsof it appears have opened more than
100000 files

XXXX#lsof -n

101578


3 REPLIES 3
paolo barila
Valued Contributor

Re: number of files opened

man lsof

An open file may be a regular file, a directory, a block special file, a character special file, an executing text reference, a library, a stream or a network file
(Internet socket, NFS file or UNIX domain socket.)
share share share
Court Campbell
Honored Contributor

Re: number of files opened

I think you are comparing apples to oranges. One thing you need to consider is when a fork occurs. The child process would get a copy of the the file descriptor table. This would allow the child access to the files of the parent.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
A. Clay Stephenson
Acclaimed Contributor

Re: number of files opened

You are making a fundamental error in your thinking. From the perspective of the NFILE tunable, n instances of the same file being open count as only 1. For example, if 50 people were vi'ing /etc/passwd (which would not be smart for a number of reasons), that would only count as 1 file to the kernel.
If it ain't broke, I can fix that.