1834462 Members
2901 Online
110067 Solutions
New Discussion

Kernel Formula

 
Danny Crisp
Frequent Advisor

Kernel Formula

I have some documentation which outlines some specific kernel configuration. Would someone please it breakdown and help me understand the formula? Ive just pasted the below straight out of the documentation. Or if the below is un-readable, here is the URL.

http://h20331.www2.hp.com/Hpsub/cache/285140-0-0-225-121.html

maxdsiz =
HP-UX 10.20 2063835136 (decimal)
UX 11x for 32 bits apps using +q3p: 0xC0000000

maxssiz= 1024*1024*80 (corresponds to 80MB)

maxtsiz= 1024*1024*1024 (corresponds to 1GB)
6 REPLIES 6
Peter Godron
Honored Contributor

Re: Kernel Formula

Danny,
if you are running 10.20 on the machine set maxdsiz (datasegment) to 2063835136

If you are running any version of HPUX 11, like 11.11 etc., and are running 32 bit applications and want to use link to use shared memory in the third quadrant (+q3p) you can set the maxdsiz to 3GB (C0000000 in hex)
Steven E. Protter
Exalted Contributor

Re: Kernel Formula

Shalom Danny,

In practice, Bill Hassell and therefore also me removes formulas from the kernel when possible. The formulas often do not refrect reality.

So if you are planning on using a formula I recommend you calcucate the hard number you wish to use with a formula and thne use the number straight up not permitting future changes to change this parameter.

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
Danny Crisp
Frequent Advisor

Re: Kernel Formula

Please, could you provide the figures i need for all three parameters i specified. Im a total novice with kernel config. I normally dont like asking for the answer but in this circumstance, i really dont have a choice. The customer is border line smashing my keyboard around my head.
Victor Fridyev
Honored Contributor

Re: Kernel Formula

Hi,


m32=mem;if(mem>1024)m32=1024; maxdsiz=m32*1024*1024
m64=mem;if(mem>4048)m64=4048; maxdsiz_64bit=m64*1024*1024

Sorry, but I don't have any formula for maxtsize.
Look at http://docs.hp.com/en/939/KCParms/KCparams.OverviewAll.html

HTH
Entities are not to be multiplied beyond necessity - RTFM
Patrick Wallek
Honored Contributor

Re: Kernel Formula

I don't quite understand your question.

The maxdsiz, you just take whichever is appropriate for your system. You can enter the value in either decimal or hex format, so either value you list will work.

I'm not sure what you are asking on the maxssiz and maxtsiz. I should think that the formula are simple. You do know multiplication, right?

maxssiz = 1024*1024*80 = 83886080
maxtsiz = 1024*1024*1024 = 1073741824

Is that what you are asking?
Danny Crisp
Frequent Advisor

Re: Kernel Formula

Thanks to all for efforts thus far. However, theres still something a foot. When attempting to install a certain application the following error is apearing: -

HP-UX PREREQS: maxdsiz HP-UX kernel parameter is incorrect
maxdsiz should be greater than or equal to 65536 Pages
current maxdsiz value is: 2 Pages
HP-UX PREREQS: maxtsiz HP-UX kernel parameter is incorrect
maxtsiz should be greater than or equal to 32768 Pages
current maxtsiz value is: 20403 Pages
HP-UX PREREQS: Please use sysdef(1M) command to get additional information
Please use sam(1M) command to modify kernel parameters

Despite modifying the kernel parameters as advised in the documentation I have the above is correct. when I sysdef | grep maxdsiz, i get the following output: -

maxdsiz 2 - 0-655360 Pages -

Any help will be greatly appreciated.