- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- configuring maxfiles &nofiles
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
тАО05-30-2009 09:56 AM
тАО05-30-2009 09:56 AM
#Is there any relation between maxfiles &nofiles ?
# Can i increase the value of nofiles in user level without changing the value of maxfiles in Kernel?
If yes how we can do? and what will be the impact if we increase nofiles from 512 to 1024?
Does it requires reboot?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 02:36 PM
тАО05-30-2009 02:36 PM
Re: configuring maxfiles &nofiles
Knowing what release you are running would allow better answers.
First, "nofiles' should be 'nfile'. The manpages (beginning with 11.23) offer excellent insight into each of these kernel parameters:
http://www.docs.hp.com/en/B2355-60130/maxfiles.5.html
http://www.docs.hp.com/en/B2355-60130/maxfiles_lim.5.html
http://www.docs.hp.com/en/B2355-60130/nfile.5.html
Kernel tuning changed in 11.23. A good overview of pre 11.23 versus 11.23 and later is here:
http://www.docs.hp.com/en/B2355-90950/ch03.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 04:25 PM
тАО05-30-2009 04:25 PM
Re: configuring maxfiles &nofiles
One is a ulimit name the others are kernel parms. nofiles must not be greater than maxfiles_lim and its initial value is maxfiles.
>Can I increase the value of nofiles in user level without changing the value of maxfiles in Kernel?
The value can be increased to the current hard limit, which starts at maxfiles_lim.
>Does it requires reboot?
For 11.23, you have to reboot to change maxfiles but maxfiles_lim is dynamic.
JRF's nfile is the kernel parm for the total number of open files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 06:16 PM
тАО05-30-2009 06:16 PM
Re: configuring maxfiles &nofiles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 06:59 PM
тАО05-30-2009 06:59 PM
Re: configuring maxfiles &nofiles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 07:19 PM
тАО05-30-2009 07:19 PM
Re: configuring maxfiles &nofiles
Main Memory: 10189 MB
Processors: 6
OS mode: 64 bit
# kmtune |grep -i maxfiles
maxfiles 512 - 512
maxfiles_lim 1536 Y 1536
Current Value
--> /usr/bin/ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 976560
stack(kbytes) 195312
memory(kbytes) unlimited
coredump(blocks) 0
nofiles(descriptors) 512
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 07:25 PM
тАО05-30-2009 07:25 PM
Re: configuring maxfiles &nofiles
You should be able to increase it to 1024:
ulimit -n 1024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 07:34 PM
тАО05-30-2009 07:34 PM
Re: configuring maxfiles &nofiles
should i do like this
For individual users edit there .profile file in their home directories.
to change for all users change the /etc/profile file.
>Does it requires reboot?
do i require a reboot, this is 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 08:45 PM
тАО05-30-2009 08:45 PM
Solution>For individual users edit their .profile file >in their home directories.
>to change for all users change the /etc/profile file.
Yes to all three.
>Does it requires reboot?
No, you aren't changing kernel parms, just a soft limit in ulimit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 08:48 PM
тАО05-30-2009 08:48 PM
Re: configuring maxfiles &nofiles
1. If i need to change this ulimit value to 1024 for the user, what i need to add in .profile ( or start script ) ?
2. If i change this value to 1024, will it impact any other user / Applications ?