<?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 Utilization check using ps in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590959#M32883</link>
    <description>&lt;BR /&gt;The RES field from ps does indeed show memory used/utilised but it does NOT show shareable memory. ie. multiple copies of the same program running - their instruction code will all be shareable - but ps will show them all in the RES field for each copy, which means you cant use the RES field from ps to work out memory usage - it just wont add up - as youve found out. &lt;BR /&gt;&lt;BR /&gt;For proper memory usage you really need to use glance/gpm - you can get a free trial to run it when you install if for the first time.&lt;BR /&gt;</description>
    <pubDate>Mon, 08 Oct 2001 08:55:15 GMT</pubDate>
    <dc:creator>Stefan Farrelly</dc:creator>
    <dc:date>2001-10-08T08:55:15Z</dc:date>
    <item>
      <title>Memory Utilization check using ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590957#M32881</link>
      <description>Hi All&lt;BR /&gt;A question on memory utilisation.  I have used the following command to sort the top memory processes on the system.&lt;BR /&gt;export UNIX95=1 ; ps -el -o pid -o sz -o vsz -o comm| grep -i -v "pid" | sort -nr -k 2,2.&lt;BR /&gt;&lt;BR /&gt;I have a couple of questions related to this:&lt;BR /&gt;1. Am I correct to assume that the if I multiply the the sz field by 4 &amp;amp; divide by 1024 this gives me the size of the process resident in memory in MB  (it seems to equate roughly to RSS field in glance ).&lt;BR /&gt;&lt;BR /&gt;2. I have also totalled this column (sz) and the figure is 3843.  My system only has 3GB of memory.  I thought resident in memory meant it was currently loaded into memory?&lt;BR /&gt;&lt;BR /&gt;3.  Finally what is the difference between sz &amp;amp; vsz fields in ps listing.  Do these columns relate to RSS/VSS in glance or RES &amp;amp; SIZE in top.&lt;BR /&gt;&lt;BR /&gt;Thanks for any help.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Oct 2001 05:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590957#M32881</guid>
      <dc:creator>Conal O'Kelly</dc:creator>
      <dc:date>2001-10-08T05:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Utilization check using ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590958#M32882</link>
      <description>Hi Con,&lt;BR /&gt;&lt;BR /&gt;If you are looking at checking your system performance, look at the threads below for some helpful reading.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=93f51dd2190dd52819/screen=ckiDisplayDocument?docId=200000056493259" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=93f51dd2190dd52819/screen=ckiDisplayDocument?docId=200000056493259&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=93f51dd2190dd52819/screen=ckiDisplayDocument?docId=200000009254450" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=93f51dd2190dd52819/screen=ckiDisplayDocument?docId=200000009254450&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/iv/bin/doc.pl/sid=195ee8681d70fbfa11/screen=ivHome/?NODEID=English_SHW::WW_SW_UX_SYSADM_EN_E/Q1.7&amp;amp;WARP=1" target="_blank"&gt;http://us-support.external.hp.com/iv/bin/doc.pl/sid=195ee8681d70fbfa11/screen=ivHome/?NODEID=English_SHW::WW_SW_UX_SYSADM_EN_E/Q1.7&amp;amp;WARP=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Oct 2001 06:24:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590958#M32882</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-10-08T06:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Utilization check using ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590959#M32883</link>
      <description>&lt;BR /&gt;The RES field from ps does indeed show memory used/utilised but it does NOT show shareable memory. ie. multiple copies of the same program running - their instruction code will all be shareable - but ps will show them all in the RES field for each copy, which means you cant use the RES field from ps to work out memory usage - it just wont add up - as youve found out. &lt;BR /&gt;&lt;BR /&gt;For proper memory usage you really need to use glance/gpm - you can get a free trial to run it when you install if for the first time.&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Oct 2001 08:55:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590959#M32883</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-10-08T08:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Utilization check using ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590960#M32884</link>
      <description>Hi&lt;BR /&gt;Thanks alot for your help.  Im a bit clearer now on what the sz field is showing in ps.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con</description>
      <pubDate>Mon, 08 Oct 2001 21:53:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590960#M32884</guid>
      <dc:creator>Conal O'Kelly</dc:creator>
      <dc:date>2001-10-08T21:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Utilization check using ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590961#M32885</link>
      <description>One very import note:&lt;BR /&gt;&lt;BR /&gt;export UNIX95=1 ; ps ...&lt;BR /&gt;&lt;BR /&gt;is definitely NOT recommended.  UNIX95, whenever it is defined (doesn't matter what value it has, just defined), will change the behavior of several commands and libraries. This is called XPG4 behavior, and when needed (like certain options in ps) is very useful. But defining it as an exported variable means that all subsequent commands and processes can inherit the variable and behave differently.&lt;BR /&gt;&lt;BR /&gt;Instead, set UNIX95 as a temporary variable on the command line as in:&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -eH&lt;BR /&gt;&lt;BR /&gt;which causes ps to see UNIX95 as a defined value (in this case, null) and produce a hierarchical list of processes.</description>
      <pubDate>Mon, 08 Oct 2001 22:38:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590961#M32885</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-10-08T22:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Utilization check using ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590962#M32886</link>
      <description>Thanks very much Bill.  &lt;BR /&gt;I hadn't thought about the implication of setting the UNIX95 variable.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con</description>
      <pubDate>Tue, 09 Oct 2001 00:49:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-check-using-ps/m-p/2590962#M32886</guid>
      <dc:creator>Conal O'Kelly</dc:creator>
      <dc:date>2001-10-09T00:49:11Z</dc:date>
    </item>
  </channel>
</rss>

