- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to find total physical memory on a system
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 12:17 PM
04-02-2001 12:17 PM
How to find total physical memory on a system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 12:20 PM
04-02-2001 12:20 PM
Re: How to find total physical memory on a system
Here are three of my favorite ways:
# dmesg
# grep -i physical grep -i physical /var/adm/syslog/OLDsyslog.log
# echo "selclass qualifier memory;info;wait;infolog"|cstm > /tmp/meminfo
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 12:20 PM
04-02-2001 12:20 PM
Re: How to find total physical memory on a system
dmesg | grep -i phy
SAM will detail the info as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 05:43 PM
04-02-2001 05:43 PM
Re: How to find total physical memory on a system
SAM -> Performance Monitor -> System Properties -> Memory
Rgds,
Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 06:05 PM
04-02-2001 06:05 PM
Re: How to find total physical memory on a system
/opt/ignite/bin/print_manifest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 10:43 PM
04-02-2001 10:43 PM
Re: How to find total physical memory on a system
For version 10.20:
echo "physmem/D"| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '[print $2/256 }'
For versin 11.00 you should use the parameter "phys_mem_pages" in the command shown upon.
federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2001 07:03 AM
04-03-2001 07:03 AM
Re: How to find total physical memory on a system
command?
RESOLUTION
The adb command provides a way to gain useful information about a number of
the systems configuration areas.
To determine the physical memory (RAM) :
for HP-UX 10x
example:
echo physmem/D | adb -k /stand/vmunix /dev/kmem
physmem:
physmem: 24576
for HP-UX 11.x systems running on 32 bit architecture:
example:
echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem
phys_mem_pages:
phys_mem_pages: 24576
for HP-UX 11.x systems running on 64 bit architecture:
example:
echo phys_mem_pages/D | adb64 -k /stand/vmunix /dev/mem
phys_mem_pages:
phys_mem_pages: 262144
The results of these commands are in memory pages, multiply by 4096
to obtain the size in bytes.
To determine the amount of lockable memory:
example:
echo total_lockable_mem/D | adb -k /stand/vmunix /dev/mem
total_lockable_mem:
total_lockable_mem: 185280
To determine the number of free swap pages :
example:
echo swapspc_cnt/D | adb -k /stand/vmunix /dev/kmem
swapspc_cnt:
swapspc_cnt: 216447
This will display the number of free swap pages.
Multiply the number returned by 4096 for the number of free swap bytes.
To determine the processor speed:
example:
echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
itick_per_usec:
itick_per_usec: 360
To determine the number of processors in use:
example:
echo "runningprocs/D" | adb -k /stand/vmunix /dev/mem
runningprocs:
runningprocs: 2
To determine the number of pages of buffer cache ( 4Kb in size)
example:
echo bufpages/D | adb -k /stand/vmunix /dev/mem
bufpages:
bufpages: 18848
To display kernel parameters using adb use the parameter name :
example:
echo nproc/D | adb -k /stand/vmunix /dev/mem
nproc:
nproc: 276
To determine the kernel your booted from:
example:
10.x
echo 'boot_string/S' | adb /stand/vmunix /dev/mem
boot_string:
boot_string: disc(52.6.0;0)/stand/vmunix
11.x
echo 'boot_string/S' | adb /stand/vmunix /dev/mem
boot_string:
boot_string: disk(0/0/2/0.6.0.0.0.0.0;0)/stand/vmunix
Good Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2001 08:00 PM
04-03-2001 08:00 PM
Re: How to find total physical memory on a system
/sbin/init.d/diagnostic start
then:
cstm
sel all
info
il
and there is all kinds of useful info... although that print_manifest thing is pretty cool!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2001 08:01 PM
04-03-2001 08:01 PM
Re: How to find total physical memory on a system
/sbin/init.d/diagnostic start
then:
cstm
sel all
info
il
and there is all kinds of useful info... although that print_manifest thing is pretty cool!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2001 04:13 PM
04-08-2001 04:13 PM
Re: How to find total physical memory on a system
#include
main()
{
struct pst_static buf;
pstat(PSTAT_STATIC, &buf, sizeof(buf), 0, 0);
printf("Physical RAM = %ld MB\n", buf.physical_memory/256);
}
Cheers,
Joseph.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2001 04:36 PM
04-08-2001 04:36 PM
Re: How to find total physical memory on a system
And another pretty simple way to display physical memory:
/usr/sam/lbin/getmem