<?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 Management in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-management/m-p/2686433#M932285</link>
    <description>&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The size (in KB) of resident memory for the process.  This consists of text, data, stack, as well as the process' portion of shared memory regions (such as, shared libraries, text segments, and shared data).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Resident memory (RSS) is calculated as&lt;BR /&gt;&lt;BR /&gt;RSS = sum of private region pages +&lt;BR /&gt;&lt;BR /&gt;      (sum of shared region pages /&lt;BR /&gt;&lt;BR /&gt;       number of references)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The number of references is a count of the number of attachments to the memory region.  Attachments, for shared regions, may come from several processes sharing the same memory, a single process with multiple attachments, or combinations of these.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This value is only updated when a process uses CPU.  Thus, under memory pressure, this value may be higher than the actual amount of resident memory for processes which are idle.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On HP-UX 10.20, the kernel instrumentation doubles the reported size of private regions.  To compensate for this, the total reported RSS for each process is halved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On HP-UX 11.0 and beyond, this metric accurately reports the resident memory for the process.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note, a value of "na" may be shown for the swapper process.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This metric is specific to a process.  If this metric is reported for a kernel thread, the value for its associated process is given.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;from the help pages of glance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Tue, 19 Mar 2002 20:51:24 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-03-19T20:51:24Z</dc:date>
    <item>
      <title>Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-management/m-p/2686432#M932284</link>
      <description>While analyzing application processes, the process stat shows a process size (vsz) of 24mb, but if I view the same process in Glance it reports RSS/VSS of 39.8mb/96.4mb respectively.  I have also seen the RSS higher than the VSS.  If the VSS is the total memory requirement should the entire process reside in memory, how could the RSS be higher if it reflects the amount occupied by the process.  I'm running 10.20 on a K570.  What can I check to get a clear picture of the memory actually in use by a particular process and why the ?discrepancies? between output?  Thanks!</description>
      <pubDate>Tue, 19 Mar 2002 20:41:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-management/m-p/2686432#M932284</guid>
      <dc:creator>Mike Bradley</dc:creator>
      <dc:date>2002-03-19T20:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-management/m-p/2686433#M932285</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The size (in KB) of resident memory for the process.  This consists of text, data, stack, as well as the process' portion of shared memory regions (such as, shared libraries, text segments, and shared data).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Resident memory (RSS) is calculated as&lt;BR /&gt;&lt;BR /&gt;RSS = sum of private region pages +&lt;BR /&gt;&lt;BR /&gt;      (sum of shared region pages /&lt;BR /&gt;&lt;BR /&gt;       number of references)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The number of references is a count of the number of attachments to the memory region.  Attachments, for shared regions, may come from several processes sharing the same memory, a single process with multiple attachments, or combinations of these.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This value is only updated when a process uses CPU.  Thus, under memory pressure, this value may be higher than the actual amount of resident memory for processes which are idle.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On HP-UX 10.20, the kernel instrumentation doubles the reported size of private regions.  To compensate for this, the total reported RSS for each process is halved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On HP-UX 11.0 and beyond, this metric accurately reports the resident memory for the process.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note, a value of "na" may be shown for the swapper process.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This metric is specific to a process.  If this metric is reported for a kernel thread, the value for its associated process is given.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;from the help pages of glance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 19 Mar 2002 20:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-management/m-p/2686433#M932285</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-03-19T20:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-management/m-p/2686434#M932286</link>
      <description>ps -efl and glance show different rss and vsz &lt;BR /&gt;because they interpret process size differently. Ps only calculates the "core image", where as glance sums up the shared memory bits as well. Also, ps shows rss (sz column) in 4k pages and vsz in kilobytes.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Mar 2002 09:19:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-management/m-p/2686434#M932286</guid>
      <dc:creator>Tore_1</dc:creator>
      <dc:date>2002-03-21T09:19:40Z</dc:date>
    </item>
  </channel>
</rss>

