- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Determine processes using nfile
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
тАО07-14-2000 04:50 PM
тАО07-14-2000 04:50 PM
1) How do I determine which processes are using the nfile ?
2) How can I be notified through email when the used nfile reach a value (e.g. 80% of the available value).
Thanks in advance,
YC
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2000 05:15 PM
тАО07-14-2000 05:15 PM
Solutionhttp://hpux.cae.wisc.edu/
However, every process will open a minimum of 3 files, more typically, 5 to 10 files. If 500 processes are running, from 2500 to 5000 file handles (nfile) will be needed. There isn't any problem unless some process is in a runaway state. Inn that case, check the maxfiles and maxfiles_lim kernel parameters.
As far as monitoring the value, you can use sar -v 1 and look at the file column. However, simply doubling the value of the kernel parameter nfile should work well for a while. nfile (and nproc) will always have to be adjusted upwards in a growing system. SAM can handle this task quite easily. Your system will have to be rebooted to take effect.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2000 06:38 PM
тАО07-14-2000 06:38 PM
Re: Determine processes using nfile
1) Thanks for your pointer about lsof. Had downloaded and will be using it.
2) My system has a copy of measureware, how can I define a notification in there for the utilisation of the nfile.
Thanks in advance again,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2000 05:47 AM
тАО07-17-2000 05:47 AM
Re: Determine processes using nfile
Glance will give you a global value. Select the 'system table' view with the
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2000 08:53 AM
тАО07-17-2000 08:53 AM
Re: Determine processes using nfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2000 02:29 PM
тАО07-17-2000 02:29 PM
Re: Determine processes using nfile
Bill Hassell
July 15, 2000 01:15 AM GMT [ 10 pts ]
nfile is the maximum number of files that can be
opened at the same time. There is no simple HP-UX
nfile is the total number of file descriptors in use for the system
maxfiles and maxfiles_lim are per process and if you want to
go higher than 2048 you'll need to re-compile your program
with some special flags.
tool to list all the processes and their open files.
However, a free program called lsof can do this. Get a
copy from:
http://hpux.cae.wisc.edu/
However, every process will open a minimum of 3
files, more typically, 5 to 10 files. If 500 processes
are running, from 2500 to 5000 file handles (nfile) will
be needed. There isn't any problem unless some
process is in a runaway state. Inn that case, check
the maxfiles and maxfiles_lim kernel parameters.
As far as monitoring the value, you can use sar -v 1
and look at the file column. However, simply doubling
the value of the kernel parameter nfile should work
well for a while. nfile (and nproc) will always have to
be adjusted upwards in a growing system. SAM can
handle this task quite easily. Your system will have
to be rebooted to take effect.
sam will not allow you to go above some value for nfile I don't remember
the value but I know I have had to re-build the kernel by hand
because sam can't set high values for nfile. And nproc and nfile
don't always have to be chnaged together. Only if you need to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 04:58 AM
тАО07-18-2000 04:58 AM
Re: Determine processes using nfile
Tony