<?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: Calculating free memory. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558942#M918320</link>
    <description>Memory Stat      total    used   avail   %used&lt;BR /&gt;physical         192.0   183.0     9.0     95%&lt;BR /&gt;active virtual    63.4    20.5    42.9     32%&lt;BR /&gt;active real       19.3    10.2     9.1     53%&lt;BR /&gt;memory swap      135.0   122.6    12.4     91%&lt;BR /&gt;device swap      764.0   139.4   624.6     18%&lt;BR /&gt;&lt;BR /&gt;I compiled the attach program and runs fine on my test/devel machine H50 192K memory.  Now a silly question, I am a slow learner, I know what the 192 Physical memory is, but could you provide a brief laymen's terms with is the active/virtural and active/real memory with above numbers.  &lt;BR /&gt;&lt;BR /&gt;I want to thank the other submission.  I have been using vmstat every 20 seconds for about 16 hours a day piping into one log for a week and then using awk to parse out and do a average and trying to find the peak.  Just trying to find a easier and quicker way.</description>
    <pubDate>Tue, 31 Jul 2001 13:36:45 GMT</pubDate>
    <dc:creator>Belinda Dermody</dc:creator>
    <dc:date>2001-07-31T13:36:45Z</dc:date>
    <item>
      <title>Calculating free memory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558938#M918316</link>
      <description>Is there any way using unix commands like vmstat to figure out how much free memory is available during periods of time.   I have a K200 running 10.20 with 894K of memory and 4 CPU's.  I have to report each week average memory usage and peak memory usage.  I am pretty proficient with script writing, but I am not sure were to get the numbers to work with.</description>
      <pubDate>Mon, 30 Jul 2001 19:00:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558938#M918316</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2001-07-30T19:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating free memory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558939#M918317</link>
      <description>you could use vmstat, or glance if you have it to get this information.&lt;BR /&gt;I think Glance would be your best bet, with perfview you can store data in files forever if you want, then graph historic data. You could also do this yourself with sar, you'll probably find more info on this in this very forum.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jul 2001 19:22:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558939#M918317</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-07-30T19:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating free memory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558940#M918318</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;'vmstat' will report the active virtual pages and size of the free memory list.  See the man pages for more details.  You could periodically 'cron' command like:&lt;BR /&gt;&lt;BR /&gt;# (date;vmstat -n 5 1) &amp;gt;&amp;gt; /tmp/myvmstats&lt;BR /&gt;&lt;BR /&gt;This would take one snapshot everytime your cron task runs, appending it, with the current date to your log.&lt;BR /&gt;&lt;BR /&gt;Obviously, I'd use 'awk' to dissect the output.  This could (better) be done before piping the result into the log.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 30 Jul 2001 19:25:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558940#M918318</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-07-30T19:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating free memory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558941#M918319</link>
      <description>Howdy,&lt;BR /&gt;&lt;BR /&gt;I was in a similar situation and finally decided to write a C program to report memory usage details.  I've compiled and run this program with no problems on HP-UX versions 10.20 and 11.00.  YMMV&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jul 2001 20:46:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558941#M918319</guid>
      <dc:creator>Scott Robertson</dc:creator>
      <dc:date>2001-07-30T20:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating free memory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558942#M918320</link>
      <description>Memory Stat      total    used   avail   %used&lt;BR /&gt;physical         192.0   183.0     9.0     95%&lt;BR /&gt;active virtual    63.4    20.5    42.9     32%&lt;BR /&gt;active real       19.3    10.2     9.1     53%&lt;BR /&gt;memory swap      135.0   122.6    12.4     91%&lt;BR /&gt;device swap      764.0   139.4   624.6     18%&lt;BR /&gt;&lt;BR /&gt;I compiled the attach program and runs fine on my test/devel machine H50 192K memory.  Now a silly question, I am a slow learner, I know what the 192 Physical memory is, but could you provide a brief laymen's terms with is the active/virtural and active/real memory with above numbers.  &lt;BR /&gt;&lt;BR /&gt;I want to thank the other submission.  I have been using vmstat every 20 seconds for about 16 hours a day piping into one log for a week and then using awk to parse out and do a average and trying to find the peak.  Just trying to find a easier and quicker way.</description>
      <pubDate>Tue, 31 Jul 2001 13:36:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558942#M918320</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2001-07-31T13:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating free memory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558943#M918321</link>
      <description>Check this HP white paper on memory management, a few sections cover virutal memory.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/hpux/onlinedocs/5965-4641/5965-4641.html" target="_blank"&gt;http://www.docs.hp.com/hpux/onlinedocs/5965-4641/5965-4641.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Jul 2001 19:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558943#M918321</guid>
      <dc:creator>Scott Robertson</dc:creator>
      <dc:date>2001-07-31T19:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating free memory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558944#M918322</link>
      <description>HI&lt;BR /&gt;If you have measureware agents running on your system, you can use extract command to capture required data (cpu/memory..) in text or xls format.&lt;BR /&gt;I use following command in script to extract global memory data for specified time period in 3 shifts for a day.&lt;BR /&gt;&lt;BR /&gt;#extract -xp -G -b &lt;START_DATE&gt; &lt;START-TIME&gt; -e &lt;END_DATE&gt; &lt;END_TIME&gt; -s &lt;SHIFT_START_TIME-SHIFT_END_TIME&gt; -r /var/opt/perf/rept.mem -f &lt;OUTPUTFILE&gt;&lt;BR /&gt;&lt;BR /&gt;Copy the /var/opt/perf/reptfile as rept.mem and unmask only memory related parameters. The format of output file (ASCII or WK1) is also specified in this file.&lt;BR /&gt;&lt;BR /&gt;As long as measureware agents are running, you can use above command when ever you want to produce reports.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant Deshpande.&lt;/OUTPUTFILE&gt;&lt;/SHIFT_START_TIME-SHIFT_END_TIME&gt;&lt;/END_TIME&gt;&lt;/END_DATE&gt;&lt;/START-TIME&gt;&lt;/START_DATE&gt;</description>
      <pubDate>Tue, 31 Jul 2001 19:54:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558944#M918322</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2001-07-31T19:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating free memory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558945#M918323</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;I noted a small 'glitch' with that c program.&lt;BR /&gt;&lt;BR /&gt;It should be noted that the device swap line also takes into account the 'reserved' quantity of device/filesystem swap (ie reserve line of swapinfo).&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;Memory Stat      total    used   avail   %used&lt;BR /&gt;device swap     1024.0   752.8   271.2     74%&lt;BR /&gt;&lt;BR /&gt;Consists of:&lt;BR /&gt;swapinfo -atm&lt;BR /&gt;&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         512      27     485    5%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev         512      27     485    5%       0       -    1  /dev/vg00/swap2&lt;BR /&gt;reserve       -     699    -699&lt;BR /&gt;memory      360      93     267   26%&lt;BR /&gt;total      1384     846     538   61%       -       0    -&lt;BR /&gt;&lt;BR /&gt;699 + 27 + 27 = 753 (as above with memdetail)&lt;BR /&gt;&lt;BR /&gt;Glenn Stewart</description>
      <pubDate>Thu, 02 Aug 2001 05:10:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-free-memory/m-p/2558945#M918323</guid>
      <dc:creator>Glenn L. Stewart</dc:creator>
      <dc:date>2001-08-02T05:10:04Z</dc:date>
    </item>
  </channel>
</rss>

