Operating System - HP-UX
1754265 Members
2803 Online
108813 Solutions
New Discussion юеВ

Re: How to increase hard limit values at user level?

 
SOLVED
Go to solution
Phani kumar V
Advisor

How to increase hard limit values at user level?

We are facing the following error

ulimit -n 65535
sh: ulimit: The specified value exceeds the user's allowable limit.

at root it set to 65535 but at user level we are unable to do that.

do we need to reboot?

os version: hp-ux 11iv3

Regards,
Phani
5 REPLIES 5
Tarun Kumra
Esteemed Contributor

Re: How to increase hard limit values at user level?

Why don't you try setting it to unlimited.

ulimit -n unlimited
Michal Kapalka (mikap)
Honored Contributor

Re: How to increase hard limit values at user level?

Ganesan R
Honored Contributor
Solution

Re: How to increase hard limit values at user level?

Hi,

hardlimit of file descriptor value is limited to kernel parameter value maxfiles_lim. You cannot set the hard limit value more than maxfiles_lim value.

To view the hard limit values for a particular user.

$ulimit -Ha

To set the hard limit value for a particular user

$ulimit -Hn

You cannot set this to unlimited for non-root users.

Check the current value of maxfiles_lim.

# kmtune -q maxfiles_lim

Also read this..
http://docs.hp.com/en/B3921-60631/maxfiles_lim.5.html
Best wishes,

Ganesh.
Dennis Handly
Acclaimed Contributor

Re: How to increase hard limit values at user level?

>How to increase hard limit values at user level?

You can't. That's why it's a hard limit.

>do we need to reboot?

No, it's a dynamic tunable. But you will have to relogin.

>Ganesan: # kmtune -q maxfiles_lim

That's kctune(1m) for 11.23/11.31.
Phani kumar V
Advisor

Re: How to increase hard limit values at user level?

Thanks to all