Operating System - HP-UX
1847814 Members
4772 Online
104021 Solutions
New Discussion

Kernel Parameter Question !!

 
SOLVED
Go to solution
rveri
Super Advisor

Kernel Parameter Question !!

Hi All ,

Can anyone tell ,

What is the parameter that defines how many files OS will allow to be opened simultaniously, and how to know its value.

I hv checked # mktune | grep -i max , its givning maxfiles and maxfiles_lim , does this are the parameters related to that. And its confusing , which one for what.?

Appriciate ,If any one can explain .

Thank you,
R.Veri.
7 REPLIES 7
Robert Salter
Respected Contributor

Re: Kernel Parameter Question !!

rveri,

Read this: http://www.docs.hp.com/en/TKP-90202/ch05s03.html

I'm having problems replying, hope you get this.
Time to smoke and joke
RAC_1
Honored Contributor

Re: Kernel Parameter Question !!

nfile is system wide open files limit. maxfiles and maxfiles_lim are soft and hard limits for user processes.

Anil
There is no substitute to HARDWORK
A. Clay Stephenson
Acclaimed Contributor

Re: Kernel Parameter Question !!

The answer is neither. The system-wide limit is determined by 'nfile'; maxfiles and maxfiles_lim determine the soft and hard (respectively) per process file limits.
If it ain't broke, I can fix that.
Robert Bennett_3
Respected Contributor

Re: Kernel Parameter Question !!

Check out this cookbook:

http://www.peoplesoft-hp.com/salestools/whitepapers/%5Bfiles%5D/Technical/HPUX%20Performance%20Cookbook.pdf

I always refer to this - easy reading for a difficult subject.

Also check these kernel parms: maxuprc, maxusers, nfile and nproc.

Had trouble getting this in - hope it helps.

B
"All there is to thinking is seeing something noticeable which makes you see something you weren't noticing which makes you see something that isn't even visible." - Norman Maclean
TwoProc
Honored Contributor

Re: Kernel Parameter Question !!

maxfiles is the soft file limit per process.
maxfiles_lim is the hard file limit process.
nfile is the OS limit for number of open files.

pay attention also to the following as they will somewhat scale the above relevant to the items below - meaning, that in general if you're raising the above numbers, then these below will need review also.

nflocks is the OS limit for number of open file locks.
nproc - max number of processes.
maxuprc - max number of user processes.

We are the people our parents warned us about --Jimmy Buffett
Patrick Wallek
Honored Contributor

Re: Kernel Parameter Question !!

There are 3 parameters nfile, maxfiles, maxfiles_lim.

There is documentation about kernel parameters here:

PDF File: http://docs.hp.com/en/TKP-90202/TKP-90202.pdf

HTML: http://docs.hp.com/en/TKP-90202/index.html

nfile - Max. number of open files for the entire system.

maxfiles - Soft limit on how many files a single process can have opened or locked at any given time.

maxfiles_lim - Hard limit on how many files a single process can have opened or locked at any given time

If you are on HP-UX 11.11, then do a 'man 5 kernel_parm_name'

# man 5 nfile
# man 5 maxfiles
# man 5 maxfiles_lim
harry d brown jr
Honored Contributor
Solution

Re: Kernel Parameter Question !!


This is what I tried posting yesterday :-)

Go into sam->kernel configuration->configurable parameters->help-> configuratble kernel parameters


or read this:

Mass-Storage Subsystem

* Overview of File System Kernel Parameters
* Configurable File System Buffer-Cache Parameters:

bufpages Pages of static buffer cache
dbc_min_pct Minimum dynamic buffer cache
dbc_max_pct Maximum dynamic buffer cache
nbuf Number of static buffer headers

* Configurable Open or Locked Files Parameters:

maxfiles soft limit for open files
maxfiles_lim hard limit for open files
nfile system-wide open-files limit
nflocks system-wide file-lock limit
ninode Maximum open inodes in memory

* Configurable Asynchronous Write Parameter:

fs_async Enable/disable asynchronous disk writes

* Configurable VxFS (Journaled) File-System Parameter:

vx_ncsize Memory space reserved for VxFS directory path-name cache


live free or die
harry d brown jr
Live Free or Die