1843997 Members
2302 Online
110226 Solutions
New Discussion

system memory

 
Jon Thomas_1
Occasional Contributor

system memory

Do you know a cmd other than dmesg that provides the amount of system memory?
8 REPLIES 8
Marvin Strong
Honored Contributor

Re: system memory

glance -m
James A. Donovan
Honored Contributor

Re: system memory

$ grep Phys /var/adm/syslog/syslog.log
Remember, wherever you go, there you are...
Patrick Wallek
Honored Contributor

Re: system memory

If you have diagnostics installed do this:

# echo "selclass qualifier memory ; il" | cstm | grep -i "Total Physical Memory"
A. Clay Stephenson
Acclaimed Contributor

Re: system memory

echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem

That will yield the number of 4K pages of memory installed.
If it ain't broke, I can fix that.
Todd McDaniel_1
Honored Contributor

Re: system memory

Got this from someone who posted it here...


--------------------------------cut here ----------------------

# cat hpmem
#!/bin/ksh
#
# Taken from the HP/UniGraphics FAQ
# You must be ROOT to execute this since it uses adb to
# examine the running kernel
#
GetKernelSymbol()
{
echo "$1/D" | \
adb -k $hpux /dev/kmem | \
tr "\012" " " | \
read junk junk2 kval
}
hpux=/hp-ux
rev=$(uname -r | cut -d. -f2)
if ((rev > 9)); then hpux=/stand/vmunix ;fi
/bin/uname -a
GetKernelSymbol "processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_tick"
let speed=kval/10000
print CPU Speed: $speed MHz
if ((rev > 10)); then
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
else
GetKernelSymbol "physmem"
fi
let mb=kval*4/1024 # convert pages to MB
print RAM Size: $mb MB
GetKernelSymbol "bufpages"
let mb=kval*4/1024 # convert pages to MB
print bufpages: $mb MB
GetKernelSymbol "maxuprc"
print maxuprc: $kval
GetKernelSymbol "maxvgs"
print maxvgs: $kval
GetKernelSymbol "maxfiles"
print maxfiles: $kval
GetKernelSymbol "max_thread_proc"
print max_thread_proc: $kval
GetKernelSymbol "nfile"
print nfile: $kval
GetKernelSymbol "nflocks"
print nflock: $kval
GetKernelSymbol "nproc"
print nproc: $kval
GetKernelSymbol "ninode"
print ninode: $kval
GetKernelSymbol "vfd_cw"
print shmmax: $kval
GetKernelSymbol "shmmni"
print shmmni: $kval
GetKernelSymbol "dbc_max_pct"
print dbc_max_pct: $kval

--------------------------------cut here ----------------------

gives output like this:

# ./hpmem
HP-UX B.11.11 U 9000/800 624379313 unlimited-user license
CPU Count: 8
CPU Speed: 550 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 24576 MB
bufpages: 983 MB
maxuprc: 4000
maxvgs: 255
maxfiles: 500
max_thread_proc: 256
nfile: 29539
nflock: 1024
nproc: 16020
ninode: 18468
shmmax: 1073741824
shmmni: 200
dbc_max_pct: 4
Unix, the other white meat.
Steve Post
Trusted Contributor

Re: system memory

On my hpux11.0 box.
go to sam
go to performance monitors
go to system information
There is a tab about memory.
RAC_1
Honored Contributor

Re: system memory

echo "memory_installed_in_machine/D"|adb -k /stand/vmunix /dev/kmem

Anil
There is no substitute to HARDWORK
Geoff Wild
Honored Contributor

Re: system memory

If you want more then memory - check out sysinfo301.

I run it from cron like:

0 6 1 * * /usr/local/sysinfo/sysinfo -a -b -o /usr/tmp/`hostname`.sysinfo >/tmp/sysinfo.cron 2>&1

Here's some of the utput:

SysInfo 3.01 by HP ESSO

Configuration data for svr003
Collected on Fri Mar 12 13:02:58 MST 2004


SYSTEM DATA
===========

HOSTNAME: svr003
SYSTEM: 9000
MODEL: 9000/800/rp7410
SERIAL #: USRXXXXXX
SYSTEM ID: 2504392627
CPU SPEED: 750 MHz
CPUS: 6 active processor(s)
MEMORY: 10080 Mbytes of memory.
HP-UX VERSION: B.11.11 64 Bit
USER LICENSE: unlimited-user license
LAST BOOT: Jan 31 20:24
LAST PATCH: Aug 31 2003
VOLUME MANAGER: Logical Volume Manager (LVM)


=== END Basic System Data ===


System H/W data
===============
Processor data
--------------
H/W PDC Cache Size TLB Size
path slot rev level Inst Data Inst Data
-----------------------------------------------------
0/10 0 16.9 768 1536 240 240
0/11 1 16.9 768 1536 240 240
1/10 4 16.9 768 1536 240 240
1/11 5 16.9 768 1536 240 240
1/12 6 16.9 N/A N/A N/A N/A
1/13 7 16.9 768 1536 240 240

=== END System H/W data ===


Memory Information
==================
Basic Memory Description
Module Type: MEMORY
Total Configured Memory : 10240 MB
Page Size: 4096 Bytes
Memory interleaving is supported on this machine and is ON.
Memory Board Inventory
CAB/CELL: 0/1
DIMM A DIMM B DIMM C DIMM D
Slot Size (MB) Size (MB) Size (MB) Size (MB)
---- --------- --------- --------- ---------
0 512 512 512 512
1 512 512 512 512
2 512 512 512 512
3 0 0 0 0
4 0 0 0 0
5 0 0 0 0
6 0 0 0 0
7 0 0 0 0
Cell Total (MB): 6144
-------------------------------------------------
CAB/CELL: 0/0
DIMM A DIMM B DIMM C DIMM D
Slot Size (MB) Size (MB) Size (MB) Size (MB)
---- --------- --------- --------- ---------
0 512 512 512 512
1 512 512 512 512
2 0 0 0 0
3 0 0 0 0
4 0 0 0 0
5 0 0 0 0
6 0 0 0 0
7 0 0 0 0
Cell Total (MB): 4096
-------------------------------------------------
System Total (MB): 10240
Memory Error Log Summary
Error
CAB/CELL DIMM Error Address Error Type Page Count
------------- ----------------- ---------- --------- -----
0/0 0C 0x00000000b760ca00 Single-Bit 0x00b760c 1
System start: Fri Aug 30 10:01:28 2002.
Last error check: Fri Mar 12 12:32:42 2004.
Logging interval: 3600 seconds.
1 address(es) with errors logged by memory logging daemon.
The Logtool Utility provides full details about the memory error log.
Page Deallocation Table (PDT)
PDT Entries Used: 0
PDT Entries Free: 100
PDT Total Size: 100
=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=
-- Information Tool Log for MEMORY on path 1/5 --
Log creation time: Fri Mar 12 13:03:12 2004
Hardware path: 1/5
Basic Memory Description
Module Type: MEMORY
Total Configured Memory : 10240 MB
Page Size: 4096 Bytes
Memory interleaving is supported on this machine and is ON.


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.