- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- maxfiles is very high
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
тАО01-11-2005 12:03 AM
тАО01-11-2005 12:03 AM
maxfiles is very high
I Have an Ingress database. When i call the CA Support Analyst, he solicit to resize the maxfiles. The old value is 2048. The new value is 25000.
Is this value very high???
/oping2/ingres/files-ingres->ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 25000
/oping2/ingres/files-ingres->ulimit -aH
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 2048
Wait
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 12:26 AM
тАО01-11-2005 12:26 AM
Re: maxfiles is very high
sar -v 1
to see how many files are currently open. Run this command several times during the day to see the highest value for nfile usage. If it is only 5000, then set nfiles to 8000 to give extra room when necessary.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 12:34 AM
тАО01-11-2005 12:34 AM
Re: maxfiles is very high
Your value indeed looks a way too high. Instead of setting it to a number, use the formulae for maxfiles. Check /usr/conf/master.d/core-hpux file for formulae.
If you do not want to use a formulae, start by setting it aroung 4096. This depends on how may files a process opens. This should be fine.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 12:38 AM
тАО01-11-2005 12:38 AM
Re: maxfiles is very high
The setting of 15000 is used on an L3000 server with 2 iidbms processes, and 30 iislave processes). Under normal operation, 11000 of the available file slots are in use.
What model of server are you using, and what is your current ingres patch level (you can find this by looking in the /ingres_system/ingres/files/version.rel file).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 12:47 AM
тАО01-11-2005 12:47 AM
Re: maxfiles is very high
maxfiles defines the soft limit for the number of file descriptors per process while maxfiles_lim defines the hard limit.
You should always keep maxfiles < or = maxfiles_lim.
In you case if the value 25000 is justified, you should modify maxfiles_lim too.
maxfiles_lim = 25000 or better 30000 for example. It is better to keep maxfiles lower than maxfiles_lim.
nfiles needs to be greater than both of maxfiles and maxfiles_lim .
Is 25000 very high? Yes in general, but this will depend on the application. I personaly find it too high.
Did you ever seen the message "Too many open files"? If yes then you should increase maxfiles and maxfiles_lim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 12:57 AM
тАО01-11-2005 12:57 AM
Re: maxfiles is very high
I suspect this is a DB server, and an application server. If it is also an application server that may be a reasonable parm. How many files are in your database for tables, etc. I am not asking the core, which is much higher. Add 20 files/user plus any unusual number for your application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 01:01 AM
тАО01-11-2005 01:01 AM
Re: maxfiles is very high
Lets say you have 10,000 files in one directory.
Then you do an ls or a find command in there.
That burns a lot of resources and can slow your response time system wide.
The answer is subdirectories. For other performance problems:
See my attached script set.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com