- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- can not increase maxfiles and makfiles_lim
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
04-20-2006 09:08 PM
04-20-2006 09:08 PM
i have to solve this problem urgently.Pls reply asap.
#sysdef | egrep "NAME|nfile|maxfiles*"
NAME VALUE BOOT MIN-MAX
maxfiles 4096 - 30-2048
maxfiles_lim 4096 - 30-2048
nfile 65546 - 14-
i would like to incerase the MAX to 4096.
i try to change like as following;
#kmtune -s maxfiles=4096
#config -u /stand/system
after rebooting there is nothing to change.
mustafa
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 09:12 PM
04-20-2006 09:12 PM
Re: can not increase maxfiles and makfiles_lim
the max value of the maxfiles and maxfile_lim is 2048... it show in the sysdef output.
GOOD LUCK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 09:16 PM
04-20-2006 09:16 PM
Re: can not increase maxfiles and makfiles_lim
thanks..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 09:19 PM
04-20-2006 09:19 PM
Re: can not increase maxfiles and makfiles_lim
What does following say?
echo "mod_initialized/D" | adb -k /stand/vmunix /dev/kmem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 09:22 PM
04-20-2006 09:22 PM
Re: can not increase maxfiles and makfiles_lim
# echo "mod_initialized/D" | adb -k /stand/vmunix /dev/kmem
mod_initialized:
mod_initialized: 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 09:24 PM
04-20-2006 09:24 PM
Re: can not increase maxfiles and makfiles_lim
# cd /stand/build
# /usr/lbin/sysadm/system_prep -v -s system
# /usr/sbin/kmtune -s maxfiles=xxx -S /stand/build/system
# /usr/sbin/mk_kernel -s ./system
# mv /stand/system /stand/system.prev
# mv /stand/vmunix /stand/vmunix.prev
# /usr/sbin/kmupdate
# shutdown -r -y 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 09:25 PM
04-20-2006 09:25 PM
Re: can not increase maxfiles and makfiles_lim
the maxfiles is a static parameter, did you try to change in sam and rebuild the kernel and reboot??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 09:33 PM
04-20-2006 09:33 PM
Re: can not increase maxfiles and makfiles_lim
Reboot will cause such problems. it has to be a shutdown -ry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 09:42 PM
04-20-2006 09:42 PM
Re: can not increase maxfiles and makfiles_lim
i did all the steps but the MAX value is still 2048
# sysdef | egrep "NAME|ninode|nfile|maxfiles*"
NAME VALUE BOOT MIN-MAX
maxfiles 4096 - 30-2048
maxfiles_lim 4096 - 30-2048
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 09:45 PM
04-20-2006 09:45 PM
Re: can not increase maxfiles and makfiles_lim
should i install the PHNE_27217 patch?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 10:00 PM
04-20-2006 10:00 PM
Re: can not increase maxfiles and makfiles_lim
?? from your output, the value is already 4096.
in 11.0 or later the range is 30-60000, it specify in the /usr/conf/master.d/core-hpux.
GOOD LUCK!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 10:08 PM
04-20-2006 10:08 PM
Re: can not increase maxfiles and makfiles_lim
MAX value is 2048.
thanks..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 10:09 PM
04-20-2006 10:09 PM
Re: can not increase maxfiles and makfiles_lim
echo "maxfiles_lim/D" | adb -k /stand/vmunix /dev/kmem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 10:14 PM
04-20-2006 10:14 PM
Re: can not increase maxfiles and makfiles_lim
echo "maxfiles_lim/D" | adb -k /stand/vmunix /dev/kmem ;
for maxfiles and maxfiles_lim are both: 4096
but the output of sysdef;
#sysdef | egrep "NAME|nfile|maxfiles*"
NAME VALUE BOOT MIN-MAX
maxfiles 4096 - 30-2048
maxfiles_lim 4096 - 30-2048
nfile 65546 - 14-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 10:20 PM
04-20-2006 10:20 PM
Re: can not increase maxfiles and makfiles_lim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 10:23 PM
04-20-2006 10:23 PM
SolutionThe field "MIN-MAX" is just a informational field that says minimum value that can be configured is 32 and default max is 2048. Actually you output suggests that you maxfiles and maxfiles_max is actually configured to 4096. You can't modify the "MIN-MAX" field values as I said it is just informational and has no bearing with the actual operation.
The user has a limitation to configure maxfiles upto - 1048576. Also if you consult the man page of maxfiles there is another condition to this which I have pasted below..
QOUTE:
The minimum value is 32. The maximum value is 1048576, or 1M. The
value is further constrained in that it must be equal to or less than
the hard limit, maxfiles_lim.
END QUOTE
If you want to increase maxfiles further first make sure you increase maxfiles_lim first and then later maxfiles.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 10:24 PM
04-20-2006 10:24 PM
Re: can not increase maxfiles and makfiles_lim
and i checked by myself.it is;
NAME VALUE BOOT MIN-MAX UNITS FLAGS
maxfiles 4096 - 30-2048 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 10:27 PM
04-20-2006 10:27 PM
Re: can not increase maxfiles and makfiles_lim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 10:44 PM
04-20-2006 10:44 PM
Re: can not increase maxfiles and makfiles_lim
it is already 30.but could you pls explain what is the advantages ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 11:03 PM
04-20-2006 11:03 PM
Re: can not increase maxfiles and makfiles_lim
MIN-MAX : 30 - 2048 Just means minimum and maximum value you can set the maxfiles value to. But unfortunately sysdef command does not reflect the new max value which is 1048576. Hence it is always suggested to query the values using "kmtune" instead of sysdef, because it does not show the correct max and min values. Anyway MIN-MAX has no signification for running kernel. Only the VALUE field has the significance. In your case it shows that is is already configured to "4096". I don't see there is any reason to increase this value, unless there is some application that requires to open more than 4096 file descriptor at a time. Better you analyzed the value using the command "kcusage" to see whether the limits are reached and then decide to increase.
command is
kcusage -m maxfiles_lim
The above output will be usage for month.
If it is hardly any percentage..in my case it does not cross more than 4% of configured value. So I leave it safe with my current configured value, in my case it is 4096 aswell.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 11:36 PM
04-20-2006 11:36 PM
Re: can not increase maxfiles and makfiles_lim
Now maxfiles is normally set to a reasonable value, perhaps 200 or maybe 500. That's because most programs open just a few files at the same time. But maxfiles is a soft limit -- it can be changed inside the program with setrlimit, and any programmer that writes code opening thousands of files should have done this already. If not, it is simply a bad program design.
Now if you are stuck with a bad program and no programmer to fix the problem, you can still leave maxfiles at a sane value and adjust the limit before starting the program with ulimit -n.
NOTE: Many application packages tell you to set maxfiles=maxfiles_lim=4096 (or some other large value. This is simply a bad recommendation that bypasses the very reason that there are two limits. And in many cases, the application never has a need to open more than a few hundred files at the same time.
Bill Hassell, sysadmin