<?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: Understanding HP-UX memory usage? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-hp-ux-memory-usage/m-p/2488512#M800554</link>
    <description>Hi Rui:&lt;BR /&gt;&lt;BR /&gt;The memory stats given by 'top' are confusing at best.  Document #A3940339 ("9000: An explanation of top(1) memory values") is an oldie-but-goodie explaining them.&lt;BR /&gt;&lt;BR /&gt;For a detailed discussion of memory, you can take a look at "HP-UX Memory Management (HP-UX 10.x)" in PDF or HTML format:&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/os/10.x/index.html" target="_blank"&gt;http://docs.hp.com/hpux/os/10.x/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Since you indicate that you want to monitor memory usage in a script(s), I would suggest using 'vmstat' and 'sar'.  For interactive monitoring, I'd use 'glance'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 31 Jan 2001 19:51:15 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2001-01-31T19:51:15Z</dc:date>
    <item>
      <title>Understanding HP-UX memory usage?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-hp-ux-memory-usage/m-p/2488510#M800552</link>
      <description>Greetings,&lt;BR /&gt; &lt;BR /&gt;I am trying to create a simple script to monitor the memory usage of our system&lt;BR /&gt; &lt;BR /&gt;I can get the information about physical memory using the command:&lt;BR /&gt; &lt;BR /&gt;# grep Physical /var/adm/syslog/syslog.log&lt;BR /&gt;Jan 11 18:12:42 prcc64 vmunix:     Physical: 1310708 Kbytes, lockable: 1048500 K&lt;BR /&gt;bytes, available: 1083316 Kbytes&lt;BR /&gt; &lt;BR /&gt;==&amp;gt; This means that I have:&lt;BR /&gt;Physical memory = 1280 Mbytes = 1310720 Kbytes&lt;BR /&gt; &lt;BR /&gt;I can get the information about swap using the command:&lt;BR /&gt; &lt;BR /&gt;# swapinfo -mt&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      14    1010    1%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        1024      14    1010    1%       0       -    1  /dev/vg00/lvol11&lt;BR /&gt;reserve       -     719    -719&lt;BR /&gt;total      2048     747    1301   36%       -       0    -&lt;BR /&gt; &lt;BR /&gt;==&amp;gt; This means that I have:&lt;BR /&gt;Total swap = 2048 Mbytes&lt;BR /&gt; &lt;BR /&gt;Total Virtual Memory = RAM + swap = 1280 + 2048 = 3328 Mbytes&lt;BR /&gt;                                                = 3407872 Kbytes&lt;BR /&gt; &lt;BR /&gt;Now I want to get information about the memory in use. Using the top command:&lt;BR /&gt; &lt;BR /&gt;Memory: 295504K (246596K) real, 552700K (492828K) virtual, 107516K free  Page# 1&lt;BR /&gt;/5&lt;BR /&gt; &lt;BR /&gt;From the man pages I can learn that "Memory Data" Includes virtual and real&lt;BR /&gt;memory in use (with the amount of memory considered "active" in parentheses) and&lt;BR /&gt;the amount of free memory.&lt;BR /&gt; &lt;BR /&gt;What I can not understand is 1310720 Kbytes Physical memory and 747 Mb swap in&lt;BR /&gt;use (resorved+in use), how is it possible that I have only 295504K memory in use&lt;BR /&gt;and  that only 107516K are free...&lt;BR /&gt; &lt;BR /&gt;Thanks in advance for your help,&lt;BR /&gt; &lt;BR /&gt;Kind Regards,&lt;BR /&gt; &lt;BR /&gt;Rui.</description>
      <pubDate>Wed, 31 Jan 2001 15:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-hp-ux-memory-usage/m-p/2488510#M800552</guid>
      <dc:creator>Rui Vilao</dc:creator>
      <dc:date>2001-01-31T15:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding HP-UX memory usage?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-hp-ux-memory-usage/m-p/2488511#M800553</link>
      <description>Rui, I think you would be better off keeping an eye on vmstat values especially the paging out statistics. HP-UX is a virtual memory operating system and by that definition, memory parameters will change often based on the kernel's built-in approach to managing memory. This is normal stuff. Sometimes it will reach high utilization points and low utilization points but this is not a problem. What you want to watch out for is paging out activity. If you see vhand running often, this is normal too. Its just doing its job of keeping the free list (free memory pages) at a decent level. However, when you start seeing the swapper daemon running, you may have a memory pressure problem that you need to look into. The swapper deamon will do its things based on minfree value. Read the mem_mgt.txt file in /usr/share/doc for more info.&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Wed, 31 Jan 2001 16:08:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-hp-ux-memory-usage/m-p/2488511#M800553</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2001-01-31T16:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding HP-UX memory usage?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-hp-ux-memory-usage/m-p/2488512#M800554</link>
      <description>Hi Rui:&lt;BR /&gt;&lt;BR /&gt;The memory stats given by 'top' are confusing at best.  Document #A3940339 ("9000: An explanation of top(1) memory values") is an oldie-but-goodie explaining them.&lt;BR /&gt;&lt;BR /&gt;For a detailed discussion of memory, you can take a look at "HP-UX Memory Management (HP-UX 10.x)" in PDF or HTML format:&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/os/10.x/index.html" target="_blank"&gt;http://docs.hp.com/hpux/os/10.x/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Since you indicate that you want to monitor memory usage in a script(s), I would suggest using 'vmstat' and 'sar'.  For interactive monitoring, I'd use 'glance'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 31 Jan 2001 19:51:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-hp-ux-memory-usage/m-p/2488512#M800554</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-01-31T19:51:15Z</dc:date>
    </item>
  </channel>
</rss>

