Operating System - HP-UX
1820636 Members
1910 Online
109626 Solutions
New Discussion юеВ

how to check installed memory

 
mukesh_a
Advisor

how to check installed memory

in hp-ux we dont have CSTM,
how can we check installed physical memory and
processor
10 REPLIES 10
Shashi Bhargava
Advisor

Re: how to check installed memory

hi,

To check the install memory you can use the command

dmesg

At the end of this command output it'll show memory Physical size- This is installed memory in system



Rajeev  Shukla
Honored Contributor

Re: how to check installed memory

use /usr/sam/lbin/getmem
this returns the memory in MB
Yogeeraj_1
Honored Contributor

Re: how to check installed memory

hi,

you can use Glance and go to the memory report by pressing "M". The values are displayed as such:

Total VM : 3.55gb Sys Mem : 1.22gb User Mem: 2.38gb Phys Mem: 8.00gb
Active VM: 1.73gb Buf Cache: 819.2mb Free Mem: 3.60gb Page 1 of 1


the "Phys mem" value should give you the answer.

hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: how to check installed memory

hi,

you can use Glance and go to the memory report by pressing "m". The values are displayed as such:

Total VM : 3.55gb Sys Mem : 1.22gb User Mem: 2.38gb Phys Mem: 8.00gb
Active VM: 1.73gb Buf Cache: 819.2mb Free Mem: 3.60gb Page 1 of 1


the "Phys mem" value should give you the answer.

hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
mukesh_a
Advisor

Re: how to check installed memory

i checked through cstm as well as getmem but out put of both are diffrence , if any option to know about processor please let me know,
out put of cstm and getmem is below,
cstm>info
Module Type: MEMORY
Total Configured Memory : 12288 MB
Page Size: 4096 Bytes

# /usr/sam/lbin/getmem
40
Shashi Bhargava
Advisor

Re: how to check installed memory

hi

For processor and memory(if ignite-UX installed)
you can use this command

print_manifest

You can see the o/p like this

System Hardware

Model: 9000/800/rp8420
Main Memory: 8165 MB
Processors: 4
OS mode: 64 bit_manifest
Sandman!
Honored Contributor

Re: how to check installed memory

Total system memory installed...

# echo 'phys_mem_pages/D' | adb -k /stand/vmunix /dev/kmem

...the above will give you the no. of 4K pages on the system. Multiply the above output with 4096 to get the total bytes of memory installed on your system.

Num of CPUs...

# echo "runningprocs/D" | adb -k /stand/vmunix /dev/mem

~hope it helps
Mridul Shrivastava
Honored Contributor

Re: how to check installed memory

You have cstm then you can try the following command and the output will give you all the hw information abt the box ( PDC FW details as well):

echo "map selall info;wait infolog" | cstm > /tmp/cstm.txt


We don't mind if you assign the points to the responses you get If they really helps. I could see in ur profile that no points have been assigned to any of the responses...
Time has a wonderful way of weeding out the trivial
Yogeeraj_1
Honored Contributor

Re: how to check installed memory

hi,

you can also try this C program.

# vi phys_mem.c
static char SCCSid[] = "@(#)phys_mem 1.1";

#include

void main() {
struct pst_static stat_buf;
struct pst_dynamic dyn_buf;

pstat(PSTAT_STATIC,&stat_buf,sizeof(stat_buf),0,0);
pstat(PSTAT_DYNAMIC,&dyn_buf,sizeof(dyn_buf),0,0);

printf(" Physical memory = %ld MB\n",stat_buf.physical_memory/256);
printf(" Virtual memory = %ld MB\n",dyn_buf.psd_vm/256);
printf("Active Virtual memory = %ld MB\n",dyn_buf.psd_avm/256);
printf(" Real memory = %ld MB\n",dyn_buf.psd_rm/256);
printf(" Active Real memory = %ld MB\n",dyn_buf.psd_arm/256);
printf(" Free Memory = %ld MB\n",dyn_buf.psd_free/256);

return; }
~
~
~
~
"phys_mem.c" [New file] 19 lines, 649 characters
# cc -o phys_mem phys_mem.c
# ./phys_mem
Physical memory = 7168 MB
Virtual memory = 5944 MB
Active Virtual memory = 2769 MB
Real memory = 4457 MB
Active Real memory = 1616 MB
Free Memory = 758 MB
#

/usr/sam/lbin/getmem
This did not seem to work for me. We have 7168MB and getmem reported 40.

hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Rashid Hamid
Regular Advisor

Re: how to check installed memory

A few method.

glance, pring_manifest, dmesg
I'm Parit Madirono/Parit Betak Boyz