Operating System - HP-UX
1753546 Members
5561 Online
108795 Solutions
New Discussion юеВ

Re: No more free slots in kernel's process-table error.

 
SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

No more free slots in kernel's process-table error.

Hi,


HP-UX 11.0 L2000 OVO 6.14 NNM 6.2 Oracle 8.1.7.3 4GB Memory.

We received these messages a short while ago.
What kernel parameters do we need to adjust to
resolve this problem?

"fork(2) failed; no more free slot in kernel's process-table - Resource temporarily unavailable (OpC20-412)"

/var/adm/syslog/syslog.log:
Dec 6 11:37:54 vmunix: file: table is full
Dec 6 11:37:55 inetd[797]: hacl-cfg/tcp: accept: File table overflow
Dec 6 11:39:18 vmunix: proc: table is full


10 points to any good answer.
Thank you
Gino

9 REPLIES 9
Pete Randall
Outstanding Contributor
Solution

Re: No more free slots in kernel's process-table error.

Gino,

nproc


Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: No more free slots in kernel's process-table error.

Nproc and nfile need increasing.
If it ain't broke, I can fix that.
Pete Randall
Outstanding Contributor

Re: No more free slots in kernel's process-table error.

Possibly nfiles, too.


Pete

Pete
Jeff Schussele
Honored Contributor

Re: No more free slots in kernel's process-table error.

Hi Gino,

Or maxuprc

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
RAC_1
Honored Contributor

Re: No more free slots in kernel's process-table error.

Kernel parameters

nfile
nproc
maxuprc
nflocks
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: No more free slots in kernel's process-table error.

I'm late.

I don't need points.

I'm attaching a script that will collect data nd allow you to spot any kernel parameters that are being stressed out.

I think the list is pretty complete here, but I find that a little pit of analysis will make sure that you don't have to fiddle with the kernel three or four times and reboot the machine.

See attachment.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gino Castoldi_2
Honored Contributor

Re: No more free slots in kernel's process-table error.

Hi,

Any recommendations as to what values
that I should set the kernel to?

10 points to any good answer.
Thank you
Gino
jerry1
Super Advisor

Re: No more free slots in kernel's process-table error.

Start with number of users and/or processes you expect to have on the system since the kernel parameter

nproc = ((20+8*MAXUSERS)+500)

and then nproc is then used in other kernel
params in the same way. Check out the formulas and you can get an idea of what might change by changing on param.

Use:

sysdef -to get kernel params ranges.
kmtune -to get the kernel params with formulas.


There is no easy way to determine what the best settings should be. It depends on what you entend to run on the system and the resources available on the system. Some params are dynamic now with 11i and do not require changing.









Con O'Kelly
Honored Contributor

Re: No more free slots in kernel's process-table error.

Hi Gino

Check the current value of your 'maxusers' kernel parameter (kmtune -lq maxusers). This parameter is normally used to size the nproc & nfile parameters. I normally set maxusers to about 200 (which also sizes nproc & nfile), however it does depend on what your system is doing. Also note that some systems are setup with hardcoded values for nproc & nfile, rather than using a formulae.

Once you have increased the value, you can check the file & proc table utilisation using:
# sar -v 2 5

I normally like to see the the file & proc table utilisation at about 70%-80%. If you're proc or file table utilisation is consistently above 90% then I'd look at increasing the value of nproc & nfile further.
If you are collecting sar data you can check back through the sar data and get an idea of your proc & file table utilisation over the last few weeks.

The Kernel Tuning Guide by Stephen Ciullo provides excellent advice on tuning kernel params:
http://docs.hp.com/hpux/onlinedocs/os/11.0/tuningwp.html

Cheers
Con