Operating System - HP-UX
1827293 Members
3149 Online
109717 Solutions
New Discussion

Re: ulimit configuration for users

 
SOLVED
Go to solution
Alex Almaraz
Regular Advisor

ulimit configuration for users

Someone could tellme how can I set the ulimit parametes permanently and dinamically?

HP-UX B.11.00 U 9000/800

output:
#ulimit
4194303
#ulimit -a
ksh: ulimit: bad option(s)

# /usr/bin/ulimit -a

time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 262144
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048

I need to change the (data, stack and nofiles)parameters.

Someone knows if the change applies for all the users? e.g. oracle? What do I need to do?

Hoping your response.
Best regards



8 REPLIES 8
RAC_1
Honored Contributor

Re: ulimit configuration for users

The changes won't apply to all users.
Applies to user you logged in as. Also you can not set it more than what kernel says. (e.g. maxdsiz, maxssiz and maxtsiz)

Anil
There is no substitute to HARDWORK
Devender Khatana
Honored Contributor

Re: ulimit configuration for users

Hi,

Also the nofiles(descriptors) parameter depends on nfile kernel parameter. You would require to increase that if you want to increase this.

HTH,
Devender
Impossible itself mentions "I m possible"
Joel Girot
Trusted Contributor
Binu_2
Advisor
Tim Sanko
Trusted Contributor

Re: ulimit configuration for users

Being lazy, I would set it in the users .profile. To set groups I would dot in
(. /xxx/limits) to common sets of limits.

Then again, there may be better ways, but none easier.

Tim
Bill Hassell
Honored Contributor
Solution

Re: ulimit configuration for users

First, ulimit -a does not work at all with ksh unless you are up to date on patches. /usr/bin/ulimit is not a command (executable), it is a script that invokes the HP POSIX shell. The Korn shell is also a POSIX shell but it is not as full-featured as the HP shell. NOTE: /usr/bin/sh is not the Bourne shell.

To make the same changes to all user, simply put the ulimit value in /etc/profile since all shell users (except csh which is very non-standard) will go through /etc/profile. NOTE: patch ksh or switch everyone to use the standard HP POSIX shell.

Now, the data and stack values shown above look very much like the default kernel parameters and you cannot increase either of these beyond the kernel limits. If you need the data area to be 1500megs, change the maxdsiz and maxdsiz_64 kernel parameters. ulimit will default to those values. Note: maxdsiz_64 should always be larger than maxdsiz. maxdsiz is only for 32 bit programs.

Now if you have problem users that may use up too much memory, you can adjust ulimit -d for specific users by testing in /etc/profile. Normally, you never need to change the stack size, especially for Oracle and related programs.


Bill Hassell, sysadmin
Alex Almaraz
Regular Advisor

Re: ulimit configuration for users

Joel,

The link you gave me I think applies for Tru64 only. But thanks.

Thanks all for the responses you gave me, they helped me in great manner.

I find I can change the values by using the sam also, and is a good idea to configure it in /etc/profile for all users. Thanks Bill for clarify me some doubts.

Thanks again
Alex Almaraz
Regular Advisor

Re: ulimit configuration for users

Considering tha responses of all users, the problem has been solved by setting the values required. Thanks for the links Bino.


Best regards