- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unable to change of nofiles value
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
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
тАО04-29-2011 02:33 AM
тАО04-29-2011 02:33 AM
unable to change of nofiles value
I have HPUX 11.31, would like to change nofiles value to 65536 from 4096. I used some steps used to change it, but none of that works. I use ulimit -a for verification of my change.Steps are given below:
1. ulimit -Hn 65536
2. ulimit -Sn 65536
3. Added ulimit -n 65536 in /etc/profile.
All this I performed as root.
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 3145728
stack(kbytes) 65536
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 4096
Is any changes I need to make in maxfiles or maxfiles_lim parameter to get it worked. Current values are given below:
# kctune -q maxfiles maxfiles_lim
Tunable Value Expression Changes
maxfiles 4096 4096
maxfiles_lim 65536 65536 Immed
Please help me. I appreciate any reply
Thanks,
Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 03:02 AM - last edited on тАО07-11-2011 10:45 AM by Kevin_Paul
тАО04-29-2011 03:02 AM - last edited on тАО07-11-2011 10:45 AM by Kevin_Paul
Re: unable to change of nofiles value
Hi Sahir,
perhaps this thread clarify it a little bit:
http://h30499.www3.hp.com/t5/General/Increasing-nofiles-in-ulimit/m-p/2963493#M68577
hth
Stephan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 03:08 AM
тАО04-29-2011 03:08 AM
Re: unable to change of nofiles value
There is no confusion about shell. I did all changes and checking from POSIX shell. /usr/bin/sh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 03:25 AM
тАО04-29-2011 03:25 AM
Re: unable to change of nofiles value
Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 03:40 AM
тАО04-29-2011 03:40 AM
Re: unable to change of nofiles value
what shell exactly are you using?
#echo $SHELL ; POSIX should be /sbin/sh
Are you running it under root?
Maybe you have some local /root/.profile or just /.profile ,depending on your root home dir, where the 'nofiles' gets overwritten?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 04:11 AM
тАО04-29-2011 04:11 AM
Re: unable to change of nofiles value
step by step:
/root # whoami
root
/root # ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048
/root # kctune -q maxfiles maxfiles_lim
Tunable Value Expression Changes
maxfiles 2048 Default
maxfiles_lim 65536 65536 Immed
/root # echo ulimit -n 65536 >> /etc/profile
/root # tail -n 1 /etc/profile
ulimit -n 65536
/root # ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048
/root #
logout root
login root again
/root # ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 65536
That's it.
hth
Stephan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 03:29 PM
тАО04-29-2011 03:29 PM
Re: unable to change of nofiles value
>3. Added ulimit -n 65536 in /etc/profile.
No need to do that, unless you want to make it smaller than maxfiles_lim. And if you ever want to make it bigger, you'll have to remember you put it there.