cancel
Showing results for 
Search instead for 
Did you mean: 

What mean

SOLVED
Go to solution
Slawek Ksiazek
Regular Advisor

What mean

What mean switch 2D or 2U, 3U ... in command "echo phys_mem_pages/2D | adb -o /stand/vmunix /dev/kmem" and if is correct, my addition question is if exist universal script to check phisical memory on HPUX 11.23, HPUX 11.31 /ia/parisc ?Thanks for help

Slawek
8 REPLIES
Dennis Handly
Acclaimed Contributor
Solution

Re: What mean

>What mean switch 2D or 2U, 3U?

I doubt you really want to know the arcane syntax for the old adb. :-(

2D means format 2 32 bit words as signed decimal. U for unsigned.
http://docs.hp.com/en/B2355-60130/adb.1.html#d0e4152
James R. Ferguson
Acclaimed Contributor

Re: What mean

Hi Slawek:

The 'adb' manpages will help you decipher things a bit. The "2D" specifies two (2) occurances of a D(ecimal) number.

There are better (at more universal) ways of obtaining kernel information, among the various releases, especially as you move to the current releases. Use 'kctune' or 'kmtune'. For physical memory:

On Itanium servers:

# machinfo

On PA-RISC servers:

# echo "selclass qualifier memory;info;wait;infolog"|cstm

Regards!

...JRF...
smatador
Honored Contributor

Re: What mean

Hi,
Some command are very good like
glance -m, or you can use cstm too.
there is a utility in perl, ok first write for solaris named memconf
http://www.4schmidts.com/memconf.html
Slawek Ksiazek
Regular Advisor

Re: What mean

How can I check memory on Itanium
I want use command adb,if is it possible?

Slawek
Slawek Ksiazek
Regular Advisor

Re: What mean

I'd like add that now i have situation

bash-3.2# machinfo | grep '^Memory'
Memory: 1018 MB (0.99 GB)

bash-3.2# echo phys_mem_pages/D | adb -o /stand/vmunix /dev/kmem
phys_mem_pages:
phys_mem_pages: 0

bash-3.2# echo phys_mem_pages/2U | adb -o /stand/vmunix /dev/kmem
phys_mem_pages:
phys_mem_pages: 0 260752


Why phys_mem_pages return value 0?

Thanks for help

Slawek
Dennis Handly
Acclaimed Contributor

Re: What mean

>How can I check memory on Integrity? I want use command adb, if is it possible?

adb is the last command you want to use. machinfo(1) works on Integrity.
James R. Ferguson
Acclaimed Contributor

Re: What mean

Hi (again) Slawek:

> How can I check memory on Itanium. I want use command adb,if is it possible?

Why? If you build scripts to use 'adb' you are at the mercy of the kernel architecture and the internals of 'adb' as releases change and/or you try to run on older versus newer operating systems and/or hardware architectures.

Use a supported, standard interface like 'machinfo' on Itanium and parse out the memory information:

# machinfo|grep ^Memory

Regards!

...JRF...
Slawek Ksiazek
Regular Advisor

Re: What mean

yes i want use adb in script