Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Physical Memory size unit differs from platform to platform

 
SOLVED
Go to solution
Vineet Deshpande
Frequent Advisor

Physical Memory size unit differs from platform to platform

I want to find the total physical memory. For that I am using "show memory/full" or "show memory/physical_pages" command.

However on OpenVMS VAX & OpenVMS Alpha I am getting the physical memory size in MB while on OpenVMS I64 I am getting it in GB.

Is there any way I can find the physical memory size in a standard unit on all 3 Platforms?

The command "show memory/units=bytes" is not working on VAX and Alpha

Please help
14 REPLIES 14
RBrown_1
Trusted Contributor

Re: Physical Memory size unit differs from platform to platform

Which versions of VMS?

SHOW MEMORY/UNITS=BYTES is an addition in some recent version of VMS. You can probably get a new enough version of VMS to support that command on Alpha. You might not be able to ever get it on VAX.

Why not set it to megabytes on the itanium and use megabytes as your standard unit.

For your convenience, here are the conversions if you need to do it by hand:

1 GB = 1024 MB
1 MB = 1024 KB
1 KB = 1024 B
Vineet Deshpande
Frequent Advisor

Re: Physical Memory size unit differs from platform to platform

Thanks for the reply ..

How do I set the units ?

I executed the command "set process/units=bytes" on I64 but even then the memory capacity was displayed in GB when I executed "show memory/full" or "show memory/physical_pages"

- Vineet
Martin Vorlaender
Honored Contributor

Re: Physical Memory size unit differs from platform to platform

Vineet,

take the total number of pages displayed by SHOW MEMORY /PHYSICAL, and multiply by the value returned by F$GETSYI("PAGE_SIZE").

cu,
Martin
Hoff
Honored Contributor

Re: Physical Memory size unit differs from platform to platform

Options include SNMP; the following is from a Unix box aimed at an OpenVMS box:

$ snmpwalk -c public 10.1.2.1 | grep -i memorysize
HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 1048576 KBytes
$

or the direct request:

$ snmpget -c public 10.1.2.1 HOST-RESOURCES-MIB::hrMemorySize.0
HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 1048576 KBytes
$

Or mayhap the following DCL lexical functions might be of interest (assuming your OpenVMS version is new enough; the older OpenVMS VAX boxes tend to lack some of these (and you'll often have to assume 512 for these):

f$getsyi("MEMSIZE") * f$getsyi("PAGE_SIZE")

Or dig around over at the mvb.saic.com archives or at dcl.openvms.org or other such sites (the FAQ has some pointers) and find yourself existing tools such as:

http://dcl.openvms.org/print.php?story=05/04/04/7482362

As a rather more general suggestion, parsing and then interpreting the output of DCL commands isn't the best solution here. That output is intended to be human readable and not machine readable and -- as you've already discovered -- the command output can change from release to release.



Vineet Deshpande
Frequent Advisor

Re: Physical Memory size unit differs from platform to platform

Thanks a lot for your answers!

Is there any DCL SHOW command which will give me the Page Size ?? The lexical function approach may not work for me so a SHOW command will be very helpful.

Unfortunately right now I have no option than running show commands on OpenVMS and finding out the information on hardware. Is there any other better approach ? Lexical functions are much better right ? I can't change things right now but in the future I might. I am interested in finding information like IP, MAC, Devices, Size of Devices, Processor info etc etc ...

- Vineet