1832566 Members
5544 Online
110043 Solutions
New Discussion

Re: maxdsiz

 
Danny Crisp
Frequent Advisor

maxdsiz

how do i change the value of maxdsiz from 2 to 65536? i find the output from sysdef | grep maxdsiz and kmtune -q maxdsiz misleading and confusing.

Output from sysdef: -
maxdsiz 2 - 0-655360 Pages -

Output from kmtune: -
maxdsiz 0xc0000000 - 0XC0000000

The formula displayed in the kmtune output is 3GB I believe but the value displayed in the sysdef output is 2. Can someone please explain?
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: maxdsiz

Shalom,

You can change it with kmtune.

You can change it with sam kernel configuration.

I'm not sure if this is a dynamic parmameter, you may need to either compile a new kernel manually or let sam do it for you.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: maxdsiz

Premature submission, how embarassing.

You must follow a procedure to get your setting changes from the kmtune commandline into actual use.

http://docs.hp.com/en/TKP-90202/index.html?jumpid=reg_R1002_USEN

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1025683

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=105739

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: maxdsiz

sysdef is deprecated for finding out about kernel parameters. Use kmtune to see the current value and get the details with kmtune -lq maxdsiz. The value 0xc0000000 is hexadecimal for the number 201326592 or 201,326,592 or 200 megs. To set maxdsiz to 3Gb, just type in the number 3 followed by 9 zeros as in 3000000000 in SAM. Whether a parameter is hex, decimal or a formula does not matter as the value is converted as required.

Note that maxdsiz is just a limit for 32 bit programs. Without chatr options, your program can malloc up to apx 960 megs maximum or apx 1750 megs with EXEC_MAGIC compile options -Wl -N.


Bill Hassell, sysadmin