- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- How to view the memory size (RAM size)
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
04-06-2009 09:26 PM
04-06-2009 09:26 PM
Re: How to view the memory size (RAM size)
1). Through SAM
#sam> Press "Return" to continue...> Performance Monitors> System Properties> Memory.
2). You can get it through kmeminfo (if kmeminfo is installed).
#cd /tmp
#./kmeminfo
Thnx...Farhan
- Tags:
- kmeminfo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-06-2009 09:33 PM
04-06-2009 09:33 PM
Re: How to view the memory size (RAM size)
I always do this below command to check my physical memory.
# dmesg |grep -i physical
or
machinfo
or
nickel
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-06-2009 11:25 PM
04-06-2009 11:25 PM
Re: How to view the memory size (RAM size)
# To get RAM size in KB
perl -e 'local($PSTAT,$PSTAT_STATIC,$mem_info,$PSTAT_STRUCT)=(239,2,"\0"x120,"LI4L");
syscall($PSTAT,$PSTAT_STATIC,$mem_info,length($mem_info),1,0);
print "RAM=".int((unpack($PSTAT_STRUCT,$mem_info))[4]*((unpack($PSTAT_STRUCT,$mem_info))[5])/(1024*1024))."\n";'
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-18-2013 12:32 AM
02-18-2013 12:32 AM
Re: How to view the memory size (RAM size)
Hi,
# glance -m
sh: glance: not found.
Not working.
Regards,
Lokman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-18-2013 01:13 AM
02-18-2013 01:13 AM
Re: How to view the memory size (RAM size)
>sh: glance: not found.
You purchase glance separately.
(Try another of the above suggestions, except for dmesg.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-29-2013 02:07 AM
05-29-2013 02:07 AM
Re: How to view the memory size (RAM size)
I manage a number of legacy HP-UX systems from HP-UX 9 to HP-UX 11 and not all have all toos/commands.
Thus I prefer something which works on all flavors.
dmesg does not give the answer if the system was up a long time and the buffer does not hold the boot information anymore. Kernel tools are different on different versions and support tools are often not installed.
Currently I use a combination of dmesg and syslog lookup and check for the Physical memory lines, which gives me a result in most cases.
[[ -d /usr/adm ]] && SYSLOGdir=/usr/adm
[[ -d /var/adm/syslog ]] && SYSLOGdir=/var/adm/syslog
dmesg | cat - $SYSLOGdir/*syslog* \
| grep Physical: \
| sed -e 's/.*ical: *//' -e 's/ .*//' \
| sort -u | awk '{printf( "%d MB\n", $0/1024 )}'
- « Previous
-
- 1
- 2
- Next »
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP