Operating System - HP-UX
1834163 Members
2641 Online
110064 Solutions
New Discussion

Re: vmunix: file: table is full

 
DESMOND KOH
Occasional Contributor

vmunix: file: table is full

Hi,

I am receiving "crt0: ERROR couldn't open /usr/lib/dld.sl errno: 000000023" message when I tried to perform any command on a HPUX 11.00 machine.
According to the replies in this forum, it's due to the file table is full and need to increase the "nfile" parameter in kernel.

I also checked the "file-sz" value using sar -v command and found it's true that the number is reaching the limit.

Just wondering before I re-tune the nfile parameter, is there a way for me to find out which processes is causing the number of file open increase so much?

Your help is much appreciated. Thanks!
4 REPLIES 4
Michael Tully
Honored Contributor

Re: vmunix: file: table is full

Your best bet with this type of problem is installing 'lsof' and finding which files could be affected.

You can get 'lsof' here:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/

Here are some examples on it's usage.
# lsof -p

To see all the open files associated with a particular command.

# lsof -c midaemon

User name.

# lsof -u
# lsof -u

processes being used via a socket.

# lsof -i tcp:23
# lsof -i udp:123



Is something that has just occurred? WHat is the current setting?
Anyone for a Mutiny ?
DESMOND KOH
Occasional Contributor

Re: vmunix: file: table is full

Hi Michael,

This problem has just occurred recently (2-3 days) ago. When I perform the sar command, I got the following result:

# sar -v 2 5

HP-UX S34KLJ74 B.11.00 U 9000/800 04/16/03

15:15:58 text-sz ov proc-sz ov inod-sz ov file-sz ov
15:16:00 N/A N/A 436/1600 0 2189/8318 0 5299/6583 0
15:16:02 N/A N/A 437/1600 0 2185/8318 0 5305/6583 0
15:16:04 N/A N/A 437/1600 0 2184/8318 0 5305/6583 0
15:16:06 N/A N/A 437/1600 0 2184/8318 0 5305/6583 0
15:16:08 N/A N/A 438/1600 0 2184/8318 0 5315/6583 0

The current setting is:
(35*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+NSTRTEL))
which is equals to around 6500.

I also downloaded the lsof binary and executed the lsof -u command with different user id (pls find the attached output files). How do I determine the 5000+ openned files belongs to which process/user?
Ramkumar Devanathan
Honored Contributor

Re: vmunix: file: table is full

hi,

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd97719434a69d711abdc0090277a778c,00.html

Try the one liner that i'd pasted. using lsof, it gives count of files opened by each process. you may sort it in descending order using sort command with -n option.

- ramd.
HPE Software Rocks!
Ramkumar Devanathan
Honored Contributor

Re: vmunix: file: table is full

sorry - read that as posted instead of pasted, what a vast change it makes to the meaning. ;-)

Also this -
sort -n is used for numeric sorting. for sorting in descending order you would use -r option and so the command would be -

$ | tr -s " " | sort -t" " -n -r -k 2,2

- ramd.
HPE Software Rocks!