Operating System - HP-UX
1748199 Members
2571 Online
108759 Solutions
New Discussion юеВ

configuring maxfiles &nofiles

 
SOLVED
Go to solution
Vic006
Frequent Advisor

configuring maxfiles &nofiles

I need to increase nofiles(descritpors) from 512 to 1024.
#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?

10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: configuring maxfiles &nofiles

Hi:

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...
Dennis Handly
Acclaimed Contributor

Re: configuring maxfiles &nofiles

>I need to increase nofiles (descriptors) from 512 to 1024. Is there any relation between 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.
Vic006
Frequent Advisor

Re: configuring maxfiles &nofiles

The OE is 11.11
Dennis Handly
Acclaimed Contributor

Re: configuring maxfiles &nofiles

What are your values for maxfiles & maxfiles_lim?
Vic006
Frequent Advisor

Re: configuring maxfiles &nofiles

Model: 9000/800/rp7420
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

Dennis Handly
Acclaimed Contributor

Re: configuring maxfiles &nofiles

>maxfiles_lim 1536 Y 1536

You should be able to increase it to 1024:
ulimit -n 1024
Vic006
Frequent Advisor

Re: configuring maxfiles &nofiles

>Can I increase the value of nofiles in user level without changing the value of maxfiles in Kernel?
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
Dennis Handly
Acclaimed Contributor
Solution

Re: configuring maxfiles &nofiles

>Can I increase the value of nofiles in user level without changing the value of maxfiles in Kernel?
>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.
Vic006
Frequent Advisor

Re: configuring maxfiles &nofiles

One last question

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 ?