1847099 Members
5025 Online
110263 Solutions
New Discussion

Re: ULIMIT

 
Stephen Kozlowski
Occasional Advisor

ULIMIT

When I run
ulimit -d unlimited

receive error
ulimit: The specified value exceeds the user's allowable limit

In AIX, I can set default users ULIMIT via the /etc/security/limits file. What is HPs equivilant?
10 REPLIES 10
RAC_1
Honored Contributor

Re: ULIMIT

maxdsiz, maxdsiz_64bit.

kmtune -lq maxdsiz
kmtune -lq maxdsiz_64bit

Anil
There is no substitute to HARDWORK
David de Beer
Valued Contributor

Re: ULIMIT


You can change all the values to unlimited, except data and stack. You 'can' change them, but they are related to maxdsiz (data) and maxssiz_64bit (stack), also nofiles (nfile).

To set data to max, do:
-----------------------

$ /usr/sbin/kmtune -lq maxdsiz
Parameter: maxdsiz
Current: 2063835136
Planned: 2063835136
Default: 0x10000000
Minimum: -
Module: -
Version: -
Dynamic: No
$ ulimit -d 2063835136
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 237568
stack(kbytes) 131072
memory(kbytes) 131072
coredump(blocks) unlimited


To set stack to max, do:
------------------------

$ /usr/sbin/kmtune -lq maxssiz_64bit
Parameter: maxssiz_64bit
Current: 0x8000000
Planned: 0X8000000
Default: 0x00800000
Minimum: -
Module: -
Version: -
Dynamic: No
$ bc
8 * 1024
8192
8192 * 10
81920
$ ulimit -s 81920
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 237568
stack(kbytes) 81920
memory(kbytes) 131072
coredump(blocks) unlimited


To set values to unlimited, do: (coredump)
-------------------------------

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
$ ulimit -c unlimited
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) unlimited

David.
Stephen Kozlowski
Occasional Advisor

Re: ULIMIT

Still get :
The specified value exceeds the user's allowable limit."

Set maxdsize to 4294963200

Ran
$ ulimit -d 4194300
sh: ulimit: The specified value exceeds the user's allowable limit.
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 10529
Ermin Borovac
Honored Contributor

Re: ULIMIT

After changing maxdsiz, you have recompiled the new kernel and rebooted, haven't you?

After reboot data(kbytes) value in the output of 'ulimit -a' will increase according to maxdsiz value (i.e. you should see 4194300).

Otherwise check /etc/profile (and/or this user's profile) and look for line similar to 'ulimit -d 1048576' ...
David de Beer
Valued Contributor

Re: ULIMIT


Static Paramaters, you need to reboot your machine for it to take, after you have increased them in Sam.

David de Beer.
Stephen Kozlowski
Occasional Advisor

Re: ULIMIT

Changed the size via SAM, recreated a kernel and re-booted...

I not sure where to go from here... This should be easy... Have done it on other UNIX operating systems without a problem...

Don Morris_1
Honored Contributor

Re: ULIMIT

What version of HP-UX are you running? (And what patches are on it?)
Stephen Kozlowski
Occasional Advisor

Re: ULIMIT

11.11i

Since HP does not have a Maint Level, what are you looking for as far as Patches?
Ermin Borovac
Honored Contributor

Re: ULIMIT

Have you also increased maxdsiz_64bit (used for 64-bit processes)?

I think that 'ulimit -d' will be set to minimum of maxdsiz and maxdsiz_64bit. On 64-bit kernel maxdsiz_64bit also affects 32-bit processes.
Stephen Kozlowski
Occasional Advisor

Re: ULIMIT

That was it...

cipt0010(root)# kmtune | grep maxd
maxdsiz 4294963200 - 4294963200
maxdsiz_64bit 0x40000000 - 0X40000000

0X40000000 = 1073741824

or 1048576K....

I miss caculated the 0x4 and came up with 10Gig rather the 1Gig...

Thanks