<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: physical memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664723#M921822</link>
    <description>I'd do like the following:&lt;BR /&gt;&lt;BR /&gt;for 10.20 &lt;BR /&gt;REAL_MEM=`echo "physmem/D"| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{ print $2/256} '`&lt;BR /&gt;for 11.00 &lt;BR /&gt;REAL_MEM=`echo "phys_mem_pages/D"| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{ print $2/256} '`&lt;BR /&gt;&lt;BR /&gt;The value upon are in MBs&lt;BR /&gt;&lt;BR /&gt;Ciao&lt;BR /&gt;Federico&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 14 Feb 2002 11:21:00 GMT</pubDate>
    <dc:creator>federico_3</dc:creator>
    <dc:date>2002-02-14T11:21:00Z</dc:date>
    <item>
      <title>physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664720#M921819</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have just been browsing the thread below regarding finding the physical memory on a system.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x93f6a12d6d27d5118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x93f6a12d6d27d5118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;I have also got other disparate results.&lt;BR /&gt;&lt;BR /&gt;Could anyone explain this fluctuation of executable methods?&lt;BR /&gt;&lt;BR /&gt;thanks for your help,&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Thu, 14 Feb 2002 10:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664720#M921819</guid>
      <dc:creator>u856100</dc:creator>
      <dc:date>2002-02-14T10:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664721#M921820</link>
      <description>1- getmem dont work for systems upper 512M?&lt;BR /&gt;&lt;BR /&gt;2-Unix systems must be loaded on memory, so ther is differences among Physical and usable, and lockable memory.&lt;BR /&gt;&lt;BR /&gt;3- See man pstat. Pay atention to examples.&lt;BR /&gt;&lt;BR /&gt;4- Search "how much memory"... lots of questions have been answered.</description>
      <pubDate>Thu, 14 Feb 2002 10:53:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664721#M921820</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-02-14T10:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664722#M921821</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;getmem returns a number used in a larger calculation and the other disparencies can be caused by many things.&lt;BR /&gt;&lt;BR /&gt;Use SAM or this 2 line script for a quick guide.&lt;BR /&gt;&lt;BR /&gt;There as well you will see discrepencies caused by rounding.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;typeset -i mem=$(grep Physical /var/adm/syslog/syslog.log | awk '{print $7}')&lt;BR /&gt;echo $(hostname) has $mem bytes memory.+- $(( $mem /1024 )) mb&lt;BR /&gt;&lt;BR /&gt;               Steve Steel&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Feb 2002 10:54:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664722#M921821</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-02-14T10:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664723#M921822</link>
      <description>I'd do like the following:&lt;BR /&gt;&lt;BR /&gt;for 10.20 &lt;BR /&gt;REAL_MEM=`echo "physmem/D"| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{ print $2/256} '`&lt;BR /&gt;for 11.00 &lt;BR /&gt;REAL_MEM=`echo "phys_mem_pages/D"| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{ print $2/256} '`&lt;BR /&gt;&lt;BR /&gt;The value upon are in MBs&lt;BR /&gt;&lt;BR /&gt;Ciao&lt;BR /&gt;Federico&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Feb 2002 11:21:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664723#M921822</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2002-02-14T11:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664724#M921823</link>
      <description>All methods described above work well.  Here are 2 others:&lt;BR /&gt;&lt;BR /&gt;1. wc -c /dev/mem gives physical memory in bytes.&lt;BR /&gt;&lt;BR /&gt;2. Example code using pstat&lt;BR /&gt;&lt;BR /&gt;/* pysmem.c */&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;struct pst_pstatic buf;&lt;BR /&gt;pstat_getstatic(&amp;amp;buf, sizeof(buf), 0, 0);&lt;BR /&gt;printf("Physical RAM = %ld MB\n", buf.physical_memory/256);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Compile this by running&lt;BR /&gt;&lt;BR /&gt;cc physmem.c -o physmem&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Joseph.&lt;/SYS&gt;</description>
      <pubDate>Fri, 15 Feb 2002 11:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664724#M921823</guid>
      <dc:creator>Joseph A Benaiah_1</dc:creator>
      <dc:date>2002-02-15T11:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664725#M921824</link>
      <description>error  pst_static and no pst_pstatic</description>
      <pubDate>Wed, 21 May 2003 11:12:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664725#M921824</guid>
      <dc:creator>SysAdm Milano</dc:creator>
      <dc:date>2003-05-21T11:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664726#M921825</link>
      <description>Here's one more - a script called hpmem - uses adb...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 21 May 2003 12:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physical-memory/m-p/2664726#M921825</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2003-05-21T12:52:43Z</dc:date>
    </item>
  </channel>
</rss>

