<?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: Command to find memory usage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801113#M266597</link>
    <description>Check out this thread as well,&lt;BR /&gt;&lt;BR /&gt;"Easy command line way to check memory usage"&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xa56442308663d611abdb0090277a778c%2C00.html&amp;amp;admit=-682735245+1149740463211+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xa56442308663d611abdb0090277a778c%2C00.html&amp;amp;admit=-682735245+1149740463211+28353475&lt;/A&gt;</description>
    <pubDate>Wed, 07 Jun 2006 23:22:17 GMT</pubDate>
    <dc:creator>Chauhan Amit</dc:creator>
    <dc:date>2006-06-07T23:22:17Z</dc:date>
    <item>
      <title>Command to find memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801105#M266589</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to know the command to find out the total use of memory (RAM) without using the Glance or GlancePlus ?&lt;BR /&gt;&lt;BR /&gt;Is there a command available for this ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Tue, 06 Jun 2006 13:44:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801105#M266589</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-06-06T13:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Command to find memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801106#M266590</link>
      <description>hi;&lt;BR /&gt;&lt;BR /&gt;To Show Free memory on system:&lt;BR /&gt;# vmstat 1 2 | tail -1 | awk '{printf "%d%s\n", ($5*4)/1024, "MB" }'&lt;BR /&gt;&lt;BR /&gt;To Show Top Memory Processes:&lt;BR /&gt;# UNIX95= ps -el -o pid,comm,sz | grep -i -v pid | sort -nr -k 3,3 | head -15&lt;BR /&gt;&lt;BR /&gt;This shows the top 15 processes for memory utilisation.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# vmstat 1 1000 &amp;gt;&amp;gt; /tmp/vm.out&lt;BR /&gt;&lt;BR /&gt;This will collect 1000 samples of vmstat output with an interval of 1 sec&lt;BR /&gt;&lt;BR /&gt;# vmstat 1 &amp;gt;&amp;gt; /tmp/vmstat.out&lt;BR /&gt;&lt;BR /&gt;The above command keeps collecting the vmstat output infinitely&lt;BR /&gt;&lt;BR /&gt;regards;&lt;BR /&gt;mustafa&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2006 13:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801106#M266590</guid>
      <dc:creator>Mustafa Gulercan</dc:creator>
      <dc:date>2006-06-06T13:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Command to find memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801107#M266591</link>
      <description>Shalom Shiv,&lt;BR /&gt;&lt;BR /&gt;I respectfully submit swapinfo -tam as an alternative.&lt;BR /&gt;&lt;BR /&gt;sar can be used to monitor various figures concerning memory use.&lt;BR /&gt;&lt;BR /&gt;I also know I owe you an email. Personal situation is a bit hairy right now. Don't worry, I'll get to it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 06 Jun 2006 15:20:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801107#M266591</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-06-06T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Command to find memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801108#M266592</link>
      <description>I exexuted both commands and got the below output:-&lt;BR /&gt;&lt;BR /&gt;# swapinfo -tam&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev        1024       0    1024    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        1024       0    1024    0%       0       -    1  /dev/vg00/swap02&lt;BR /&gt;dev         512       0     512    0%       0       -    1  /dev/vg00/swap03&lt;BR /&gt;reserve       -     130    -130&lt;BR /&gt;memory     1469     533     936   36%&lt;BR /&gt;total      4029     663    3366   16%       -       0    -&lt;BR /&gt;&lt;BR /&gt;# vmstat 1 2 | tail -1 | awk '{printf "%d%s\n", ($5*4)/1024, "MB" }'&lt;BR /&gt;1130MB&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;Why there is too much difference between 2 command output ?&lt;BR /&gt;&lt;BR /&gt;In the output of "swapinfo -tam" Is 4.029GB total available RAM or 1.469GB ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2006 15:40:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801108#M266592</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-06-06T15:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Command to find memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801109#M266593</link>
      <description>Shiv,&lt;BR /&gt;&lt;BR /&gt;swapinfo will show swap space usage.&lt;BR /&gt;Also sar will not show memory usage in HP [ In solaris sar -r shows memory usage :) ]&lt;BR /&gt;So you have only the following options&lt;BR /&gt;Glance - which you do not want to use [ I dont know why ]&lt;BR /&gt;vmstat - as suggested above or&lt;BR /&gt;UNIX95= ps -e -o "sz" | awk 'BEGIN {tot=0} {tot+=$1} END {print tot*4/1024,"MB"}'&lt;BR /&gt;I dont remember if there is any text appearing in the first line in output of&lt;BR /&gt;UNIX95= ps -e -o "sz"&lt;BR /&gt;Please check - if text appears in 1st line then modify above as&lt;BR /&gt;UNIX95= ps -e -o "sz" | tail +2 | awk 'BEGIN {tot=0} {tot+=$1} END {print tot*4/1024,"MB"}'&lt;BR /&gt;&lt;BR /&gt;But again as there are shared memory segments which may be shared by multiple processes the memory calculated as above is approximate. You can compare with Glance once.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2006 15:57:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801109#M266593</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-06-06T15:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Command to find memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801110#M266594</link>
      <description>Hi Shiv, &lt;BR /&gt;&lt;BR /&gt;You should read this paper to understand how memory is used by HP-UX, &lt;BR /&gt;&lt;BR /&gt; ftp://eh:spear9@hprc.external.hp.com/memory.htm&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun &lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2006 22:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801110#M266594</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-06-06T22:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Command to find memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801111#M266595</link>
      <description>&lt;BR /&gt;# echo "freemem/D" | adb -k /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;The output is the free memory in pages. Multiply the resulting number with 4 to get the free memory in Kbytes.&lt;BR /&gt;&lt;BR /&gt;# echo "phys_mem_pages/D" | adb -k /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;The output is the total memory in pages.Multiply the resulting number with 4 to get the free memory in Kbytes.&lt;BR /&gt;&lt;BR /&gt;Used memory=Total memory-Free memory&lt;BR /&gt;&lt;BR /&gt;grep -i physical /var/adm/syslog/syslog.log ---&amp;gt; To get physical RAM on system.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can use this tool also:&lt;BR /&gt;/usr/contrib/Q4/bin/kmeminfo &lt;BR /&gt;&lt;BR /&gt;-AMit&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2006 23:46:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801111#M266595</guid>
      <dc:creator>Chauhan Amit</dc:creator>
      <dc:date>2006-06-06T23:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Command to find memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801112#M266596</link>
      <description>Arun,&lt;BR /&gt;&lt;BR /&gt;Thanks for the link provided to me. It is very useful.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shiv</description>
      <pubDate>Wed, 07 Jun 2006 20:12:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801112#M266596</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-06-07T20:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Command to find memory usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801113#M266597</link>
      <description>Check out this thread as well,&lt;BR /&gt;&lt;BR /&gt;"Easy command line way to check memory usage"&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xa56442308663d611abdb0090277a778c%2C00.html&amp;amp;admit=-682735245+1149740463211+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xa56442308663d611abdb0090277a778c%2C00.html&amp;amp;admit=-682735245+1149740463211+28353475&lt;/A&gt;</description>
      <pubDate>Wed, 07 Jun 2006 23:22:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-find-memory-usage/m-p/3801113#M266597</guid>
      <dc:creator>Chauhan Amit</dc:creator>
      <dc:date>2006-06-07T23:22:17Z</dc:date>
    </item>
  </channel>
</rss>

