- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to find out which process cause the n-file...
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
Forums
Discussions
Discussions
Discussions
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
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-27-2006 08:03 AM
07-27-2006 08:03 AM
We have a production system which has the n-file parameter reached the threshold .The server is having oracle DB . Is it possible to know which process is causing the n-file parameter bump
15:55:22 text-sz ov proc-sz ov inod-sz ov file-sz ov
15:55:25 N/A N/A 485/16404 0 6148/19012 0 30563/30870 0
15:55:28 N/A N/A 485/16404 0 6148/19012 0 30566/30870 0
1# sar -v 2 2
Thanks in advance
Ajeesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2006 08:38 AM
07-27-2006 08:38 AM
SolutionI suppose that you could craft a C program using 'pstat(2)' to ascertain each process's contribution to the overall count.
However, why bother? Increasing 'nfile' doesn't consume much memory. The parameter controls the maximum number of slots in the process table at minimal memory cost.
The *default* value of 'nfile' is 64K on systems with 1GB memory or more. I would simply set your value much higher -- at least double what you currently have.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2006 08:57 AM
07-27-2006 08:57 AM
Re: how to find out which process cause the n-file to cross the limit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2006 09:01 AM
07-27-2006 09:01 AM
Re: how to find out which process cause the n-file to cross the limit
Question here is the server has some critical production job running .hence i won't able to bumb the parameter .I would like to know which is the process holding more memory so that i can free sme n-file .so that my production job keep running with out issue .
Also i have rp8400 server running 12 GB and 12 CPU .Can i bubm to 100000.
Thanks
ajeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2006 09:46 AM
07-27-2006 09:46 AM
Re: how to find out which process cause the n-file to cross the limit
Why not just kill off all other reports, database connections, etc. that are not critical to the system? Do that in order of least importance of what you're killing off until you're back down below the nfile threshold. For example a user that is looking to see if his expense report from last week has been approved is (at least at this moment) less important than a sales or customer-facing user. Likewise attendance reports, quality reports, etc are more-killable than your critical job, and could be killed off.
But going after a criteria of "memory footprint" isn't going to get you were you want to be.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2006 10:20 AM
07-27-2006 10:20 AM
Re: how to find out which process cause the n-file to cross the limit
finaly the Database crashed and we have rebooted the server and restarted the DB .now everything looks ok .Now i need to increase the n-file parameter on this server .Is there any way/formula (i mean the value of maximum n file can be configured on the server based on the configuration ) .I have an rp8400 with 12 GB ram and 12 CPU and oracle 8i is running on this.Could you pls suggest the maximum value of n-file that i can bump to with out having other issue (performance ,etc).
Thanks
Ajeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2006 10:40 AM
07-27-2006 10:40 AM
Re: how to find out which process cause the n-file to cross the limit
First, disread any formula used with 'nfile' and simply set it to the value you want.
The manpages below come from 11.23 but will be appropriate information for 11.11 too. You have an upper limit of 2^31. As noted, make sure that you follow this constraint, too:
nfile >= 2*maxfiles_lim
http://www.docs.hp.com/en/B2355-60105/nfile.5.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2006 12:44 PM
07-27-2006 12:44 PM
Re: how to find out which process cause the n-file to cross the limit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2006 09:46 PM
07-27-2006 09:46 PM
Re: how to find out which process cause the n-file to cross the limit
Max Number of simultaneously Open files system-wide at any given time. Total number of slots it the file descriptor table
For Oracle installations with a high number of data files this might be not enough, than use the >= ((number of oracle processes) * (number of Oracle data files) + 2048)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2006 10:14 PM
07-27-2006 10:14 PM
Re: how to find out which process cause the n-file to cross the limit
The fatc that it is a production machine means that hitting a limit like nfiles means a mandatory reboot to double nfiles to 60000. Otherwise, you'll just have endless problems. You should never allow the system to use more that 85% of a critical parameter like nfiles without scheduling a reboot.
Bill Hassell, sysadmin