1753692 Members
6224 Online
108799 Solutions
New Discussion юеВ

kmtune

 
ricky_8
Frequent Advisor

kmtune

Hi All,

I was chekcing kernel parameters on hpux 11.x with 64 bits enabled.Iam getting hex values not sure why e.g
kmtune -q maxdsiz
Parameter Value
===============================================================================
maxdsiz 0X50000000

Any Idea why this is so?

Rgds,
11 REPLIES 11
twang
Honored Contributor

Re: kmtune

If you re running hpux 11.x 64-bit, then 64 bit application is uses the other kernel
parameter 'maxtsiz_64bit'.

svr_erp# kmtune |grep maxdsiz
maxdsiz 0x10000000 - 0x10000000
maxdsiz_64bit 0x40000000 - 0X40000000

And the maxdsiz_64 controls the maximum data size of a 64bit program.
Ravi_8
Honored Contributor

Re: kmtune

Hi,

if you see thru SAM you get the same value(hex), you change it to any value (say 500, after a reboot kmtune -1 maxdsiz will return the value 500.
In one of my machine it's like this.

# kmtune|grep maxdsiz
maxdsiz 3221225472
maxdsiz_64bit 4294967296
# kmtune -q maxdsiz
Parameter Value
===============================================================================
maxdsiz 3221225472
never give up
T G Manikandan
Honored Contributor

Re: kmtune

These values are by hex default.
To help you check the script by Procura here

http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0x08f9585fae8bd711abdc0090277a778c,00.html
Steve Steel
Honored Contributor

Re: kmtune

Hi

It just uses a format it can represent in simple arithmetic

your maxdsiz = 1342177280

You can see that is sam . Kernel config Kernel parameters
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Pete Randall
Outstanding Contributor

Re: kmtune

Ricky,

I have to ask: This is a computer, after all - how else would you expect it to represent it's settings? (though binary might make even more sense).


Pete


Pete
RAC_1
Honored Contributor

Re: kmtune

printf "%d\n" 0x00000 (hex value)

This gives value in decimal. check man page of printf
There is no substitute to HARDWORK
David Child_1
Honored Contributor

Re: kmtune

If you just want to see the values in more human readable form, you can use 'sysdef'. Many, if not all (I haven't checked), of the size values are in pages so there is still some arithmetic that must be done.

Example:
(name curval boot min-max units flags)
$ sysdef
...
maxdsiz_64bit 16384 - 256-1048576 Pages -
...

It's probably best to just get comfortable with working in hex.

David
ricky_8
Frequent Advisor

Re: kmtune

Hi Guys,

I might have got u all wrong, what i wanted to know is why kmtune shows hex for some machines and decimal for some others for same kernel parameter.
The reason was i had a script which checked these para's for my existing servers and compared values with decimal.But it failed on this new server as it gave values in hex.

Rgds,
James Murtagh
Honored Contributor

Re: kmtune

Hi Ricky,

The values shown by kmtune and presented by how they are represented in the kernel config files. For example, if you set one of the parameters in /stand/system to a decimal value kmtune will report decimal. If it is not specified here it will take the format from the default mapping in /usr/conf/master.d/core-hpux. I'll show you an example....I'll dynamically tune maxtsiz on my 11i system although leaving the value the same:

# kmtune|grep maxtsiz
maxtsiz 0x4000000 Y 0X4000000
# echo 0x4000000=D|adb
67108864
# kmtune -u -s maxtsiz=67108864
The kernel's value of maxtsiz has been set to 67108864 (0x4000000).
# kmtune|grep maxtsiz
maxtsiz 67108864 Y 67108864

Note this wasn't mapped via a config file but the same rules apply.

Regards,

James.