1834707 Members
2566 Online
110069 Solutions
New Discussion

data size in ulimit

 
Ricky_4
Frequent Advisor

data size in ulimit

Hi All,

We would like to modify the data size in ulimit to 1Gb and its default is only 500mb. This configuration is required by the application during installation. So we used ulimit -d 1000000 but it prompts us exceeding the limit. By the way we're using K class and hpux 11.00.

Is there a way to modify the data size in ulimit and why we can't adust it to 1Gb?



3 REPLIES 3
harry d brown jr
Honored Contributor

Re: data size in ulimit

Have a look at these, regarding maxdsiz:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x170d6049dbb6d611abdb0090277a778c,00.html

or

$ ulimit -aS
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 65536 max determined by maxdsiz
stack(kbytes) 8192 max determined by maxssiz
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 60 max determined by maxfiles

Hard Limit Relevant Kernel Params

from http://www.faqs.org/faqs/hp/hpux-faq/section-142.html

live free or die
harry
Live Free or Die
Evert Ladrak
Advisor

Re: data size in ulimit

Hi,

You have to change this in the kernel. The parameters you would have to change are maxdsize and maxdsiz_64bit. The only thing I'm not sure about is the maximum size allowed for these parameters.

--ETL
Evert
Baldeo Prasad_1
Occasional Contributor

Re: data size in ulimit

Hi,

Have you tried modifying the /var/adm/cron/.proto file to resolve the ulimit warning.
Your /var/adm/cron/.proto file should contain this information:

# @(#) $Revision: 27.1 $
cd $d
if [ "$l" = "4194304" ]; then
ulimit unlimited
echo was number
else
ulimit $l
echo was unlimited
fi
ulimit
umask $m
$<

Thanks
Baldeo