1846480 Members
2176 Online
110256 Solutions
New Discussion

Re: Memory check

 
SOLVED
Go to solution
M. Tariq Ayub
Regular Advisor

Memory check

Hi,

How can i check what is the physical memory of my HP9000 system. OS is 11i
12 REPLIES 12
twang
Honored Contributor

Re: Memory check

# dmesg |grep -i physical
Michael Tully
Honored Contributor

Re: Memory check

Here's a simple way from the command line:

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

or

echo phys_mem_pages/D | adb64 -k /stand/vmunix /dev/mem
Multiply the output by 4 to get the number.

Anyone for a Mutiny ?
Tim Adamson_1
Honored Contributor
Solution

Re: Memory check

Hi,

Check the syslog file. There is a line that states the amount of physical memory just after the line stating "Memory Information"

Cheers!
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
M. Tariq Ayub
Regular Advisor

Re: Memory check

Hi,

I have 6 server. In 4 of them i can see the memory using dmesg |grep -i physical but with two rp8400 it shows nothing. There are a lot of other message there.
Michael Tully
Honored Contributor

Re: Memory check


You can only get it from 'dmesg' if it is still in the message buffer. You can of course flush the dmesg buffer and place it in the /var/adm/syslog/syslog.log anyway.
The amount of memory can be found in the syslog.log from the system boot if it (syslog.log) hasn't been flattened.
Anyone for a Mutiny ?
twang
Honored Contributor

Re: Memory check

#include
#include
#include

main()
{
struct pst_static pst1;
struct pst_dynamic pst2;

if (pstat_getstatic(&pst1, sizeof(pst1), (size_t)1, 0) != -1)
printf( "Physical Memory is %ld MB\n", pst1.physical_memory * 4 / 1024 );
else
perror("pstat_getstatic");

}


Above C code can get your physical mem, you may take a try.
Rajeev  Shukla
Honored Contributor

Re: Memory check

Hi,
One more way
run
/usr/sam/lbin/getmem

That will tell you memory in MB

Rajeev
Vasikaran Venkatesan
Frequent Advisor

Re: Memory check

grep Phys /var/adm/syslog/syslog.log
twang
Honored Contributor

Re: Memory check

If "dmesg |grep -i physical" fails to show memory info, try to have a look at syslog.log:

# grep -i "physical page size" /var/adm/syslog/syslog.log
Anders Gullberg
Frequent Advisor

Re: Memory check

Hi,

Try swapinfo -m
Then you see both physical and swap.

regards
Anders
Fragon
Trusted Contributor

Re: Memory check

Hi,
I think "swapinfo -m" show not exactly the physical memory!
The Ignite-UX tool "print_manifest" work fine!
#/opt/ignite/bin/print_manifest

-ux
Caesar_3
Esteemed Contributor

Re: Memory check

Hello!

Run this:

echo "phys_mem_pages/D" | adb64 /stand/vmunix /dev/kmem | grep "phys_mem_pages: *." | awk '{printf "%.0f MB\n",$2/256}'

Caesar