Operating System - HP-UX
1748165 Members
3719 Online
108758 Solutions
New Discussion юеВ

Re: How do you change the ulimit parameter

 
SOLVED
Go to solution
Sachin Patel
Honored Contributor

How do you change the ulimit parameter

Hi
My ulimit shows me following
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2015464
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048

I want to change data to unlimited. How can I do that?

Thanks
Sachin
Is photography a hobby or another way to spend $
3 REPLIES 3
Anthony Goonetilleke
Esteemed Contributor
Solution

Re: How do you change the ulimit parameter

ulimit -dH unlimited
Minimum effort maximum output!
Jason Luginbuhl
Frequent Advisor

Re: How do you change the ulimit parameter

The functionality is of ulimit is shell dependent.

POSIX shell (/usr/bin/sh):
Use ulimit -a to display all ulimit parameters. The first letter of each of parameter is the option that you use to change the limit of that parameter. For example for "file(blocks)" make this unlimited by:
ulimit -f unlimited

K-shell (usr/bin/ksh):
Ulimit for ksh only refers to filesize. There is no "unlimited" value, although the maximum value of 4194304 is interpreted as unlimited. To change it:
ulimit 4194304

C-Shell (/usr/bin/csh)
Ulimit is not used. Instead "limit" is used and it has much the same functionality as the POSIX version of ulimit.
"Unfortunately you can't out-program stupidity"
Scott Pattinson
Occasional Advisor

Re: How do you change the ulimit parameter

The max data size is related to the kernel parameter "maxdsiz" (and "maxdsiz_64bit" for 11.00/64bit only)
It relates to the maximum data segment for a process. Unless you are running on a 64bit 11.00 system you will have trouble getting much larger. for a 32bit app on 11.00/64 you can get 3GB data if you have a set of patches for "large private data" installed. You will have to change maxdsiz kernel parameter, rebuild the kernel and reboot. The limits for 64bit are much higher, and I dont think they are displayed by ulimit.