<?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: Physcial Memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594669#M231876</link>
    <description>And here's a script called hpmem that uses adb:&lt;BR /&gt;&lt;BR /&gt;# cat /usr/local/bin/hpmem&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;# Taken from the HP/UniGraphics FAQ&lt;BR /&gt;# You must be ROOT to execute this since it uses adb to&lt;BR /&gt;# examine the running kernel&lt;BR /&gt;#&lt;BR /&gt;GetKernelSymbol()&lt;BR /&gt;{&lt;BR /&gt;echo "$1/D" | \&lt;BR /&gt;adb $hpux /dev/kmem | \&lt;BR /&gt;tr "\012" " " | \&lt;BR /&gt;read junk junk2 kval&lt;BR /&gt;}&lt;BR /&gt;hpux=/hp-ux&lt;BR /&gt;rev=$(uname -r | cut -d. -f2)&lt;BR /&gt;if ((rev &amp;gt; 9)); then hpux=/stand/vmunix ;fi&lt;BR /&gt;/bin/uname -a&lt;BR /&gt;GetKernelSymbol "processor_count"&lt;BR /&gt;print CPU Count: $kval&lt;BR /&gt;GetKernelSymbol "itick_per_tick"&lt;BR /&gt;let speed=kval/10000&lt;BR /&gt;print CPU Speed: $speed MHz&lt;BR /&gt;if ((rev &amp;gt; 10)); then&lt;BR /&gt;print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit&lt;BR /&gt;print Kernel Support: `getconf KERNEL_BITS`-bit&lt;BR /&gt;GetKernelSymbol "memory_installed_in_machine"&lt;BR /&gt;else&lt;BR /&gt;GetKernelSymbol "physmem"&lt;BR /&gt;fi&lt;BR /&gt;ver=$(uname -r | cut -d. -f3)&lt;BR /&gt;# if 11iv2 or higher - get memory this way&lt;BR /&gt;if ((ver &amp;gt; 22)); then&lt;BR /&gt;  kernel=$(/usr/sbin/kcpath -x)&lt;BR /&gt;  hexval=$(echo "phys_mem_pages/A" | adb  $kernel /dev/kmem|tail +2|awk '{print $2}')&lt;BR /&gt;  REAL_MEM=$(echo ${hexval}=D|adb)&lt;BR /&gt;  mb=$(expr ${REAL_MEM} / 256)&lt;BR /&gt;else&lt;BR /&gt;  let mb=kval*4/1024 # convert pages to MB&lt;BR /&gt;fi&lt;BR /&gt;print RAM Size: $mb MB&lt;BR /&gt;GetKernelSymbol "bufpages"&lt;BR /&gt;let mb=kval*4/1024 # convert pages to MB&lt;BR /&gt;print bufpages: $mb MB&lt;BR /&gt;GetKernelSymbol "maxuprc"&lt;BR /&gt;print maxuprc: $kval&lt;BR /&gt;GetKernelSymbol "maxvgs"&lt;BR /&gt;print maxvgs: $kval&lt;BR /&gt;GetKernelSymbol "maxfiles"&lt;BR /&gt;print maxfiles: $kval&lt;BR /&gt;GetKernelSymbol "max_thread_proc"&lt;BR /&gt;print max_thread_proc: $kval&lt;BR /&gt;GetKernelSymbol "nfile"&lt;BR /&gt;print nfile: $kval&lt;BR /&gt;GetKernelSymbol "nproc"&lt;BR /&gt;print nproc: $kval&lt;BR /&gt;GetKernelSymbol "ninode"&lt;BR /&gt;print ninode: $kval&lt;BR /&gt;GetKernelSymbol "vfd_cw"&lt;BR /&gt;print shmmax: $kval&lt;BR /&gt;GetKernelSymbol "shmmni"&lt;BR /&gt;print shmmni: $kval&lt;BR /&gt;GetKernelSymbol "dbc_max_pct"&lt;BR /&gt;print dbc_max_pct: $kval&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
    <pubDate>Tue, 02 Aug 2005 09:51:08 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2005-08-02T09:51:08Z</dc:date>
    <item>
      <title>Physcial Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594663#M231870</link>
      <description>Hello:&lt;BR /&gt;&lt;BR /&gt;I have a C3750 system running 11i.  I am trying to figure out how much physical memory I have.  Is there a command that I can use instead of having to go thru SAM?&lt;BR /&gt;&lt;BR /&gt;-Scott</description>
      <pubDate>Tue, 02 Aug 2005 08:18:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594663#M231870</guid>
      <dc:creator>Scott McDade</dc:creator>
      <dc:date>2005-08-02T08:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Physcial Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594664#M231871</link>
      <description>grep Physical /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2005 08:19:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594664#M231871</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2005-08-02T08:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Physcial Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594665#M231872</link>
      <description>dmesg works as well</description>
      <pubDate>Tue, 02 Aug 2005 08:21:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594665#M231872</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2005-08-02T08:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Physcial Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594666#M231873</link>
      <description>hy,&lt;BR /&gt;&lt;BR /&gt;# echo "selclass qualifier memory;info;wait;infolog"|cstm&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;# dmesg |grep Physical&lt;BR /&gt;&lt;BR /&gt;DM.</description>
      <pubDate>Tue, 02 Aug 2005 08:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594666#M231873</guid>
      <dc:creator>mirco_1</dc:creator>
      <dc:date>2005-08-02T08:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Physcial Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594667#M231874</link>
      <description>have a look at this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=943674" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=943674&lt;/A&gt;</description>
      <pubDate>Tue, 02 Aug 2005 08:26:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594667#M231874</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2005-08-02T08:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Physcial Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594668#M231875</link>
      <description>My canned answer for system properties:&lt;BR /&gt;&lt;BR /&gt;If you have Ignite installed, you can use the print_manifest command.&lt;BR /&gt;&lt;BR /&gt;You can also use SAM to display system properties (Sam -&amp;gt; Performance&lt;BR /&gt;Monitors -&amp;gt; System Properties).&lt;BR /&gt;&lt;BR /&gt;There are also utilities like "cfg2html" ( &lt;A href="http://come.to/cfg2html" target="_blank"&gt;http://come.to/cfg2html&lt;/A&gt; ),&lt;BR /&gt;"nickel" ( &lt;A href="ftp://ftp.hp.com/pub/catia/Utils/nickel.shar" target="_blank"&gt;ftp://ftp.hp.com/pub/catia/Utils/nickel.shar&lt;/A&gt; ) and "sysinfo"&lt;BR /&gt;( &lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/&lt;/A&gt; ).&lt;BR /&gt;&lt;BR /&gt;Finally, you can also obtain this information from the command line with a&lt;BR /&gt;series of little scripts like these:&lt;BR /&gt;&lt;BR /&gt;CPU&lt;BR /&gt;&lt;BR /&gt;HPUX=/stand/vmunix&lt;BR /&gt;&lt;BR /&gt;MODEL=$(grep -i $(model | tr "/" " " \&lt;BR /&gt;        | awk '{print $NF}') \&lt;BR /&gt;        /usr/sam/lib/mo/sched.models \&lt;BR /&gt;        | awk '{print $NF}')&lt;BR /&gt;&lt;BR /&gt;MHZ=$(echo itick_per_tick/D \&lt;BR /&gt;        | adb -k $HPUX /dev/kmem \&lt;BR /&gt;        | tail -1 \&lt;BR /&gt;        | awk '{print $2/10000}')&lt;BR /&gt;echo `hostname` has `ioscan -k |grep -n processor \&lt;BR /&gt;        |wc -l` $MODEL $MHZ  "Mhz processor(s)"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Number of CPUs&lt;BR /&gt;&lt;BR /&gt;ioscan -k |grep -n processor |wc -l&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RAM&lt;BR /&gt;&lt;BR /&gt;HPUX=/stand/vmunix&lt;BR /&gt;MAJORREV=$(uname -r | cut -f2 -d .)&lt;BR /&gt;if [ $MAJORREV -ge "11.0" ]&lt;BR /&gt;then&lt;BR /&gt;MYSYMBOL="phys_mem_pages"&lt;BR /&gt;else&lt;BR /&gt;MYSYMBOL="physmem"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;MYMEM=$(echo "${MYSYMBOL}/D" \&lt;BR /&gt;| adb $HPUX /dev/kmem \&lt;BR /&gt;| grep "${MYSYMBOL}: *." \&lt;BR /&gt;| awk '{printf "%.0f MB\n",$2/256}')&lt;BR /&gt;echo $MYMEM&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2005 08:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594668#M231875</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-08-02T08:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Physcial Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594669#M231876</link>
      <description>And here's a script called hpmem that uses adb:&lt;BR /&gt;&lt;BR /&gt;# cat /usr/local/bin/hpmem&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;# Taken from the HP/UniGraphics FAQ&lt;BR /&gt;# You must be ROOT to execute this since it uses adb to&lt;BR /&gt;# examine the running kernel&lt;BR /&gt;#&lt;BR /&gt;GetKernelSymbol()&lt;BR /&gt;{&lt;BR /&gt;echo "$1/D" | \&lt;BR /&gt;adb $hpux /dev/kmem | \&lt;BR /&gt;tr "\012" " " | \&lt;BR /&gt;read junk junk2 kval&lt;BR /&gt;}&lt;BR /&gt;hpux=/hp-ux&lt;BR /&gt;rev=$(uname -r | cut -d. -f2)&lt;BR /&gt;if ((rev &amp;gt; 9)); then hpux=/stand/vmunix ;fi&lt;BR /&gt;/bin/uname -a&lt;BR /&gt;GetKernelSymbol "processor_count"&lt;BR /&gt;print CPU Count: $kval&lt;BR /&gt;GetKernelSymbol "itick_per_tick"&lt;BR /&gt;let speed=kval/10000&lt;BR /&gt;print CPU Speed: $speed MHz&lt;BR /&gt;if ((rev &amp;gt; 10)); then&lt;BR /&gt;print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit&lt;BR /&gt;print Kernel Support: `getconf KERNEL_BITS`-bit&lt;BR /&gt;GetKernelSymbol "memory_installed_in_machine"&lt;BR /&gt;else&lt;BR /&gt;GetKernelSymbol "physmem"&lt;BR /&gt;fi&lt;BR /&gt;ver=$(uname -r | cut -d. -f3)&lt;BR /&gt;# if 11iv2 or higher - get memory this way&lt;BR /&gt;if ((ver &amp;gt; 22)); then&lt;BR /&gt;  kernel=$(/usr/sbin/kcpath -x)&lt;BR /&gt;  hexval=$(echo "phys_mem_pages/A" | adb  $kernel /dev/kmem|tail +2|awk '{print $2}')&lt;BR /&gt;  REAL_MEM=$(echo ${hexval}=D|adb)&lt;BR /&gt;  mb=$(expr ${REAL_MEM} / 256)&lt;BR /&gt;else&lt;BR /&gt;  let mb=kval*4/1024 # convert pages to MB&lt;BR /&gt;fi&lt;BR /&gt;print RAM Size: $mb MB&lt;BR /&gt;GetKernelSymbol "bufpages"&lt;BR /&gt;let mb=kval*4/1024 # convert pages to MB&lt;BR /&gt;print bufpages: $mb MB&lt;BR /&gt;GetKernelSymbol "maxuprc"&lt;BR /&gt;print maxuprc: $kval&lt;BR /&gt;GetKernelSymbol "maxvgs"&lt;BR /&gt;print maxvgs: $kval&lt;BR /&gt;GetKernelSymbol "maxfiles"&lt;BR /&gt;print maxfiles: $kval&lt;BR /&gt;GetKernelSymbol "max_thread_proc"&lt;BR /&gt;print max_thread_proc: $kval&lt;BR /&gt;GetKernelSymbol "nfile"&lt;BR /&gt;print nfile: $kval&lt;BR /&gt;GetKernelSymbol "nproc"&lt;BR /&gt;print nproc: $kval&lt;BR /&gt;GetKernelSymbol "ninode"&lt;BR /&gt;print ninode: $kval&lt;BR /&gt;GetKernelSymbol "vfd_cw"&lt;BR /&gt;print shmmax: $kval&lt;BR /&gt;GetKernelSymbol "shmmni"&lt;BR /&gt;print shmmni: $kval&lt;BR /&gt;GetKernelSymbol "dbc_max_pct"&lt;BR /&gt;print dbc_max_pct: $kval&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 02 Aug 2005 09:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594669#M231876</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-08-02T09:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Physcial Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594670#M231877</link>
      <description>Oh - and here's how to do it with perl - without needing root access:&lt;BR /&gt;&lt;BR /&gt;# cat memttl&lt;BR /&gt;perl -e 'local($PSTAT,$PSTAT_STATIC,$mem_info,$PSTAT_STRUCT)=(239,2,"\0"x120,"LI4L");&lt;BR /&gt;syscall($PSTAT,$PSTAT_STATIC,$mem_info,length($mem_info),1,0);&lt;BR /&gt;print "RAM=".int((unpack($PSTAT_STRUCT,$mem_info))[4]*((unpack($PSTAT_STRUCT,$mem_info))[5])/(1024*1024))." MB\n";'&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 02 Aug 2005 09:52:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594670#M231877</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-08-02T09:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Physcial Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594671#M231878</link>
      <description>you can do simply going thru sam.&lt;BR /&gt;&lt;BR /&gt;Performance Monitor -&amp;gt; System properties&lt;BR /&gt;&lt;BR /&gt;select Memory tab&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;# dmesg |grep -i physical&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;KRS</description>
      <pubDate>Tue, 02 Aug 2005 09:57:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physcial-memory/m-p/3594671#M231878</guid>
      <dc:creator>KRS_1</dc:creator>
      <dc:date>2005-08-02T09:57:57Z</dc:date>
    </item>
  </channel>
</rss>

