1833710 Members
2410 Online
110063 Solutions
New Discussion

ulimit error

 
Gus Fernandez
Occasional Advisor

ulimit error

Hi,
I am getting follwoing error whilr running ulimit command. How we can proceed further.

I want to set it for unlimited.

gwh210d7 # ulimit -d

2097152

gwh210d7 # ulimit -d unlimited

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

gwh210d7 # ulimit -s

131072

gwh210d7 # ulimit -s unlimited

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

Please help me. How i can set these two values to unlimited.

Thanks & Regards,
Ravikant Bhagat.
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: ulimit error

>How i can set these two values to unlimited.

You can't. The size of your data area is limited by the kernel parm maxdsiz. The size of your stack is limited by maxssiz.

The only useful purpose of ulimit is to tell you the value or to make them smaller! Unless you are root.

You can only increase maxdsiz to about 1 Gb, unless you link with -N. And if you want almost up to 4 Gb, you have to use chatr(1).

As far as the stacksize, increasing it will decrease maxdsiz, so you don't want to go crazy.

You can also exceed these limits by compiling for 64 bit mode. And making sure the *_64bit kernel parms are big enough.