1833784 Members
2408 Online
110063 Solutions
New Discussion

ulimit settings

 
SOLVED
Go to solution
ManojK_1
Valued Contributor

ulimit settings

In HP-UX11.23.Is it possible to set the value of ulimit parameters 'stack' and 'data' to "unlimited"?
I have checked the 'maxdsiz_64bit' & 'maxssiz_64bit' Kerenel Parameters both tunables are showing limit in Value.
Thanks and Regards,
Manoj K
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: ulimit settings

While it may be possible to set the values in ulimit to unlimited, you are still limited by hardware and the kernel parms you listed. Especially if your application is still 32 bit.
rajdev
Valued Contributor
Solution

Re: ulimit settings

Hi Manoj,

As mentioned by Dennis, even if you set the ulimit to "unlimited", you are still limited by the system wide limits maxdsiz,maxdsiz_64bit etc and you cannot go beyond them.

For 11.23 the defaults ( 32bit - 1gb and 64bit - 4gb) should be enough for most applications. Check if you application is 32bit or 64bit

For 32bit the range is 256 KB - 4 GB
For 64bit the range is 256 KB - 4 TB

you may want to change this only if you are getting an ENOMEM error when exec(2) ....

check man maxdsiz or man 5 maxdsiz for details.

Thanks
RD
ManojK_1
Valued Contributor

Re: ulimit settings

Thanks Dennis and Raidev for your's immediate response.

My server is 64 bit Itanium (rx7640). My core banking application is running on this system and they want the ulimit to be unlimited for 'stack' and 'data'.If i am making maxdsiz,maxdsiz_64bit to 4GB , will am able to make the ulimit value unlimited.
Thanks and Regards,
Manoj K
Dennis Handly
Acclaimed Contributor

Re: ulimit settings

>My core banking application is running on this system and they want the ulimit to be unlimited for 'stack' and 'data'.

Anyone using over 80 Mb or so for stack should have their heads examined. (Unless using F90.)
Is this a 64 bit app?

>If I am making maxdsiz, maxdsiz_64bit to 4GB, will am able to make the ulimit value unlimited.

4GB isn't large at all for a 64 bit app.
Basically if you don't set ulimit, it is only limited by the kernel parms.
ManojK_1
Valued Contributor

Re: ulimit settings

As i found there is no suggestion to make the ulimit settings unlimited as of my request am closing this thread.
Thanks and Regards,
Manoj K