1833184 Members
3191 Online
110051 Solutions
New Discussion

Re: 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.
Con O'Kelly
Honored Contributor

Re: kmtune

Hi

This is only a guess but I think its because some of the default kernel parameter settings (eg maxdsiz) are defined in hex. If you change this paramter and specify a decimal value, then it will be displayed in decimal when you use kmtune.
So if maxdsiz is at the default setting or was changed using a hex value, then kmtune displays in hex. If on another system it was changed and a decimal value was used, then kmtune displays decimal.

You could try changing your script to add a check to determine if the value is in hex. If yes then convert to decimal, then do your comparison.

Cheers
Con

Steven E. Protter
Exalted Contributor

Re: kmtune

The answer to the question in your last post is.

It defaults to not hex on 11.11(11i) and you can flip hex display on and off.

In sam there is a menu item display in hex or not.

I've just read the manpage and can't figure out in kmtune how to turn hex dipsplay on and off. Perhaps its a switch in the system file.

No, I just looked at that and some values are stored in hex.

This sounds like a case in need of Bill Hassel.

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