1832212 Members
2393 Online
110041 Solutions
New Discussion

how to increase maxdsiz

 
SOLVED
Go to solution
szhiyong
Frequent Advisor

how to increase maxdsiz

Hi,

I meet some problem in malloc, I have to malloc 6 40MB structure array. But when I malloc the second 40MB, the malloc fails. I think this is because my hp/ux 10.20 maxdsiz is too small, it is just 64MB. I try to use command "ulimit -d unlimited", but there is error message "the specified value exceeds the user' allowable limit".

Can anyone help me to solve this problem?

Thanks!

Zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
4 REPLIES 4
Michael Tully
Honored Contributor
Solution

Re: how to increase maxdsiz

Hi,

You need to increase the size of parameter
in your kernel. To do this use either 'sam'
or do it from the command line. Unfortunately
this will require you to generate a new
kernel which will require a reboot for it to
be loaded and used.

sam --> Kernel Configuration --> change the
value and select process new kernel from the
drop down menu.

-OR-
# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system (make your changes and save the file)
# mk_kernel -s system
# cd /stand
# mv vmunix vmunix_prev
# mv system system.save
# mv /stand/build/vmunix.test /stand/vmunix
# mv /stand/build/system /stand/system
# cd /
Reboot your system
# shutdown -r -y 0

HTH
-Michael
Anyone for a Mutiny ?
szhiyong
Frequent Advisor

Re: how to increase maxdsiz

Hi,Michael,

Thanks for your reply and help.

I check the sam, I have a another question. If I want to increase maxdsiz as 700MB, how to represents as 32 bit number.

Have a good day!

Zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
Santosh Nair_1
Honored Contributor

Re: how to increase maxdsiz

Hi,

You can enter the value for maxdsiz in hex (0x700000) or in decimal (7340032).

-Santosh
Life is what's happening while you're busy making other plans
szhiyong
Frequent Advisor

Re: how to increase maxdsiz

Hi,Santosh

Thanks for your help!

I will try this.

Have a good night!

Zhiyong
My life is now asking and learning, I wish It can change into replying and discussing