- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: nfile kernel parameter
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 05:46 PM
тАО08-17-2005 05:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 05:58 PM
тАО08-17-2005 05:58 PM
Re: nfile kernel parameter
nfile
= maximum number of open file
= (16*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+NSTRTEL))
GOOD LUCK!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 06:04 PM
тАО08-17-2005 06:04 PM
Re: nfile kernel parameter
nfile defines the max. no. of open files in the system. The files are opened by vaious applications running in the system
Note: nfile may need to be raised, under this scenario take out the forumula and put in a number.
Also check maxuprc
That is the max number of processes for a given user. That defaults to 75 and I commonly need to bnump that up to 200 to accommodate complex Oracle products.
In a growing system, it is very normal to need nfile and nproc increased. To avoid unnecessary reboots, I would replace the formulae with a fixed value. As mentioned, MAXUSERS will affect other parameters so it is useful to break this link. If nfile is currently 15000, make it 30000. In other words, double or triple the value once you reach about 75% usage. 2x or 3x changes will allow for more growth without reboots.
In a growing system, it is very normal to need nfile and nproc increased. To avoid unnecessary reboots, you could replace the formulae with a fixed value. If nfile is currently 15000, make it 30000. In other words, double or triple the value once you reach about 75% usage. 2x or 3x changes will allow for more growth without reboots.
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 06:06 PM
тАО08-17-2005 06:06 PM
Re: nfile kernel parameter
you can use 'kmtune -q nfile' for current value of nfile.
Minimum : 14
Maximum : Memory limited
Default :
((16*(Nproc+16+MaxUsers)/10)+32+2*(Npty+Nstrpty)
also the nfile formula is ((16*(Nproc+16+MaxUsers)/10)+32+2*(Npty+Nstrpty)
you can use 'sam' to adjust nfile value in kernel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 06:11 PM
тАО08-17-2005 06:11 PM
Re: nfile kernel parameter
Below a quote from: http://docs.hp.com/en/939/KCParms/KCparam.Nfile.html
nfile defines the maximum number files that can be open at any one time, system-wide.
It is the number of slots in the file descriptor table. Be generous with this number because the required memory is minimal, and not having enough slots restricts system processing capacity.
Note that you can use glance to view nfile (option t). You can also use the 'F' option in glance to see Process Open Files.
Alternatively 'lsof' is an excellenet utility for viewing open files.
e.g.
# lsof -p
also, you can run:
'sar -v 1 10' and see the value of file-sz.
Also see, Jeff's post at this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=686554
hope this helps too!
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 06:14 PM
тАО08-17-2005 06:14 PM
Re: nfile kernel parameter
When using formulas to specify a parameter value, the formula must be an integer expression. In other words, every element in the expression must be an integer value as defined for the C programming language.
Configurable parameter names are usually lowercase but the values assigned to them are specified in formulas as the same name with initial capitals. For example, the value assigned to npty (by a C-language #define statement) is Npty. Thus, a typical formula for nfile in the kernel description file resembles:
nfile = ((16*(Nproc+16+MaxUsers)/10)+32+2*Npty)
where Nproc represents the defined value of nproc, MaxUsers represents the defined value of maxusers, and Npty represents the defined value for npty. There are a few isolated exceptions to the uppercase/lowercase rule on certain systems, but they are few.
White space (spaces and tabs) are not allowed in the kernel description file. If any are present in the formula value typed into the value box, SAM removes the white-space characters where necessary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 06:17 PM
тАО08-17-2005 06:17 PM
Re: nfile kernel parameter
attached an extract from metalink note: 1008376.6 Subject: INSTALLING ORACLE 7.0.X - 7.2.X ON UNIX PLATFORMS
which describes nfiles as:
NFILES - The maximum number of open files that a user can have. On some systems, this parameter may need to be increased in order to allow the oracle user to open the files that it needs in order to bring up multiple instances.
hope this helps too!
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 06:25 PM
тАО08-17-2005 06:25 PM
Re: nfile kernel parameter
nfile is maximum no of files which can be opened simultaneously in the system. Following link may be of help
http://docs.hp.com/en/939/KCParms/KCparam.Nfile.html
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 06:33 PM
тАО08-17-2005 06:33 PM
SolutionFurthermore, mail, database, and other applications often require simultaneous access to a given file by two or more processes. To prevent file or data corruption, a process that is altering the contents of a file must be able to lock the file against conflicting uses until it is safe to release control of the file.
Open and locked files require memory and other system resources. These resources must be balanced against other system needs to maintain optimum overall system performance. Use nflocks to limit the combined total number of file locks that are available system-wide to all processes at any given time.
Two parameters, maxfiles and maxfiles_lim, respectively, govern the soft and hard limits on the number of files a process can open simultaneously. nfile governs the maximum number of files that can be open on the entire system at any given time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 09:15 PM
тАО08-17-2005 09:15 PM
Re: nfile kernel parameter
another useful threads as below;
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=686554
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=945249
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=745539
Good Luck,