- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: physical memory
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
02-14-2002 02:39 AM
02-14-2002 02:39 AM
I have just been browsing the thread below regarding finding the physical memory on a system.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x93f6a12d6d27d5118fef0090279cd0f9,00.html
The range of varying answers that I have got is plentiful. For example using SAM to display memory presented 4Gig which is about right for my system. However, when I use the /usr/sam/lbin/getmem command I get 120 (meg I assume as it does not display a metric).
I have also got other disparate results.
Could anyone explain this fluctuation of executable methods?
thanks for your help,
John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 02:53 AM
02-14-2002 02:53 AM
Re: physical memory
2-Unix systems must be loaded on memory, so ther is differences among Physical and usable, and lockable memory.
3- See man pstat. Pay atention to examples.
4- Search "how much memory"... lots of questions have been answered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 02:54 AM
02-14-2002 02:54 AM
Solutiongetmem returns a number used in a larger calculation and the other disparencies can be caused by many things.
Use SAM or this 2 line script for a quick guide.
There as well you will see discrepencies caused by rounding.
typeset -i mem=$(grep Physical /var/adm/syslog/syslog.log | awk '{print $7}')
echo $(hostname) has $mem bytes memory.+- $(( $mem /1024 )) mb
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 03:21 AM
02-14-2002 03:21 AM
Re: physical memory
for 10.20
REAL_MEM=`echo "physmem/D"| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{ print $2/256} '`
for 11.00
REAL_MEM=`echo "phys_mem_pages/D"| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{ print $2/256} '`
The value upon are in MBs
Ciao
Federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2002 03:16 AM
02-15-2002 03:16 AM
Re: physical memory
1. wc -c /dev/mem gives physical memory in bytes.
2. Example code using pstat
/* pysmem.c */
#include
main()
{
struct pst_pstatic buf;
pstat_getstatic(&buf, sizeof(buf), 0, 0);
printf("Physical RAM = %ld MB\n", buf.physical_memory/256);
}
Compile this by running
cc physmem.c -o physmem
Cheers,
Joseph.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 04:12 AM
05-21-2003 04:12 AM
Re: physical memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 05:52 AM
05-21-2003 05:52 AM
Re: physical memory
Rgds...Geoff