Operating System - HP-UX
1745823 Members
4023 Online
108722 Solutions
New Discussion

need to chage the file value

 
SOLVED
Go to solution
Sreer
Valued Contributor

need to chage the file value

Hi Gurus,

 

Could you please guide me how to   "Increase the number of maximum files opened files to 8000" in my server box 11.11 ?

 

is it be done via SAM? I guess its for ulimit?

I need to do it for my Oracle user. Any reboot is needed for this modification?

 

existing values

 

server1 $ root:/root# ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         1048576
stack(kbytes)        32768
memory(kbytes)       unlimited
coredump(blocks)     4194303
nofiles(descriptors) 2048
server1 $ root:/root#

 

waiting for your advice.Thank you.

 

Rgds
Sree

5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: need to chage the file value

Hi:

 

You will need to modify the kernal parameter 'nfile' and perhaps 'maxfiles_lim'.  The 'maxfiles_lim' governs the hard limit for the number of open files any one process is allowd.  The 'nfile' parameter controls the overall system limit for the number of open files.  The value of 'nfile' must be nfile >= 2*maxfiles_lim,

 

Regards!

 

...JRF...

Sreer
Valued Contributor

Re: need to chage the file value

Hi James ,

thanks for reply.

 

Hope we can change the value via sam?  any reboot needed?

 

And I want to assign points to you urus..  dunno how?  Any idea?

 

Rgds

Sree

James R. Ferguson
Acclaimed Contributor
Solution

Re: need to chage the file value


@Sreer wrote:

Hope we can change the value via sam?  any reboot needed?

 

And I want to assign points to you urus..  dunno how?  Any idea?


Hi (again):

 

Yes SAM will be fine on 11.11 and yes, as I recall, a reboot will be needed.

 

As for points, they are now "kudos".  You may assign them as you see fit.  They are like the old ITRC "bunny".  Marking the post that solved your problem is also helpful for future readers, though marking a reply as solved does not generate a kudo.  See:

 

http://h30499.www3.hp.com/t5/help/faqpage/faq-category-id/kudos#kudos

 

http://h30499.www3.hp.com/t5/help/faqpage/faq-category-id/solutions#solutions

 

Regards!

 

...JRF...

Sreer
Valued Contributor

Re: need to chage the file value

Hi All,

 

Again,,

 

I need to set  the max open file value for a particular user!  eg. want to set it as 8000

How it can be done?

 

Is it possible to do it as root?

 

And another case is , from history o/p is it possible to get the time stamp of the commands issued?

 

eg.

 

ls -l

reboot

cat file ..

 

is it possible to get the execution date/time?

 

Rgds

Sree

 

Rgds

Sree

 

 

 

Dennis Handly
Acclaimed Contributor

Re: need to change maxfiles_lim

>I need to set  the max open file value for a particular user!  eg. want to set it as 8000

 

There is one kernel parm for everyone.  If you want the max to be 8000 and then reduce it for everyone else, you can add logic in /etc/profile to set the limit smaller to any posix shell user.

(But ksh doesn't have this ulimit -n option.)

 

Any reason you don't want just give 8000 to everyone?

 

>Is it possible to do it as root?

 

Root can do anything.  ;-)

The trick is to automate it so you don't have to do it manually more than once.

 

>from history o/p is it possible to get the time stamp of the commands issued?

 

Not after the fact.  See this topic:

http://h30499.www3.hp.com/t5/Languages-and-Scripting/How-To-Timestamp-the-KORN-Shell-History-File/m-p/4763299/message-uid/4763299