<?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: memory usage commands in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3242998#M173992</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  vmstat is the perfect tool for memory usage collection from the command line&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;Sundar.</description>
    <pubDate>Wed, 07 Apr 2004 18:59:49 GMT</pubDate>
    <dc:creator>Sundar_7</dc:creator>
    <dc:date>2004-04-07T18:59:49Z</dc:date>
    <item>
      <title>memory usage commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3242996#M173990</link>
      <description>Does anyone know any GOOD tools (sar or vmstat,&lt;BR /&gt;etc.) to gather memory usage stats ? I need the&lt;BR /&gt;actual command syntax. Thanks........ :&amp;gt;)</description>
      <pubDate>Wed, 07 Apr 2004 17:55:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3242996#M173990</guid>
      <dc:creator>Jerry L. Sims</dc:creator>
      <dc:date>2004-04-07T17:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3242997#M173991</link>
      <description>Hi Jerry&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;Cheers&lt;BR /&gt;Con&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Apr 2004 18:59:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3242997#M173991</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2004-04-07T18:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3242998#M173992</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  vmstat is the perfect tool for memory usage collection from the command line&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;Sundar.</description>
      <pubDate>Wed, 07 Apr 2004 18:59:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3242998#M173992</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-04-07T18:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3242999#M173993</link>
      <description>Here's a script for you called memdetail - just compile it...&lt;BR /&gt;&lt;BR /&gt;# memdetail&lt;BR /&gt;Memory Stat    total    used   avail %used&lt;BR /&gt;physical       10080.0 9737.5  342.5    97%&lt;BR /&gt;active virtual 9586.4  4655.6 4930.8    49%&lt;BR /&gt;active real    7257.5  3446.8 3810.7    47%&lt;BR /&gt;memory swap    7697.1  1664.7 6032.5    22%&lt;BR /&gt;device swap    26528.0 9298.5 17229.5   35%&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Apr 2004 19:20:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3242999#M173993</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-04-07T19:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3243000#M173994</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;glancePlus is very useful.&lt;BR /&gt;but not free.&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt;vmstat | tail -1 | awk '{printf("%6.2f\n",$4*100/($4+$5))}'&lt;BR /&gt;&lt;BR /&gt;but, vmstat show virtual + real memory.&lt;BR /&gt;(include disk swap)&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 07 Apr 2004 23:25:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3243000#M173994</guid>
      <dc:creator>Kiyoshi Miyake</dc:creator>
      <dc:date>2004-04-07T23:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3243001#M173995</link>
      <description>Get the trial version of glance. Glance will give you more accurate data than sar / top / vmstat .&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Apr 2004 00:55:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3243001#M173995</guid>
      <dc:creator>PVR</dc:creator>
      <dc:date>2004-04-08T00:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3243002#M173996</link>
      <description>Hi Jerry,&lt;BR /&gt;&lt;BR /&gt;I am attaching a wonderful tool to collect the memory information. Given below is the procedure to install and sample output.&lt;BR /&gt;&lt;BR /&gt;Procdure to use:&lt;BR /&gt;#chmod 777 kmeminfo.bin&lt;BR /&gt;#./kmeminfo.bin&lt;BR /&gt;#kmeminfo&lt;BR /&gt;&lt;BR /&gt;Sample Output:&lt;BR /&gt;--------------------------&lt;BR /&gt;Physical memory usage summary (in page/byte/percent):&lt;BR /&gt;&lt;BR /&gt;Physmem             =  1572864    6.0g 100%  Physical memory&lt;BR /&gt;  Freemem           =   293069    1.1g  19%  Free physical memory&lt;BR /&gt;  Used              =  1279795    4.9g  81%  Used physical memory&lt;BR /&gt;    System          =   396296    1.5g  25%  By kernel:&lt;BR /&gt;      text          =     1977    7.7m   0%   text&lt;BR /&gt;      data          =      282    1.1m   0%   data&lt;BR /&gt;      bss           =     1596    6.2m   0%   bss&lt;BR /&gt;      Static        =    81101  316.8m   5%   for text/static data&lt;BR /&gt;      Dynamic       =   154798  604.7m  10%   for dynamic data&lt;BR /&gt;      Bufcache      =   157286  614.4m  10%   for buffer cache&lt;BR /&gt;      Eqmem         =       39  156.0k   0%   for equiv. mapped memory&lt;BR /&gt;      SCmem         =     3072   12.0m   0%   for critical memory&lt;BR /&gt;    User            =   887688    3.4g  56%  By user processes:&lt;BR /&gt;      Uarea         =     6104   23.8m   0%   for thread uareas&lt;BR /&gt;    Disowned        =        8   32.0k   0%  Disowned pages&lt;BR /&gt;&lt;BR /&gt;Total Memory : 6GB&lt;BR /&gt;&lt;BR /&gt;Free Memory : 1.1g&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Amit</description>
      <pubDate>Fri, 09 Apr 2004 07:50:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3243002#M173996</guid>
      <dc:creator>Chauhan Amit</dc:creator>
      <dc:date>2004-04-09T07:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: memory usage commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3243003#M173997</link>
      <description>As to a previous suggestion....&lt;BR /&gt;I NEVER recommend chmod 777 on executable.  To easy for a trojan horse.  Especially a item that you know that root is going to use.&lt;BR /&gt;&lt;BR /&gt;For 11X OS &lt;BR /&gt;echo 'phys_mem_pages/D'|&lt;BR /&gt;      adb /stand/vmunix /dev/kmem|&lt;BR /&gt;        grep pages | tail -1 | &lt;BR /&gt;       awk '{print $2}'&lt;BR /&gt;For 10.2 OS&lt;BR /&gt;echo 'physmem/D'|&lt;BR /&gt;     adb /stand/vmunix /dev/kmem |&lt;BR /&gt;       tail -1 | &lt;BR /&gt;        awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;swapinfo is aslo helpful to see if your are swaping.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Apr 2004 16:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage-commands/m-p/3243003#M173997</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2004-04-09T16:21:51Z</dc:date>
    </item>
  </channel>
</rss>

