<?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: system and buffer memory increase in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/system-and-buffer-memory-increase/m-p/2972811#M927962</link>
    <description>Bill,&lt;BR /&gt;  I appreciate what you say about the design of shared libraries.  Our application does have multiple copies of the same program running.  This explained to me why the user memory usage decreased when I ran the shared library only version.  I am happy as to why the buffer cache usage rose but I still do not know why the system memory usage increased by so much.</description>
    <pubDate>Wed, 14 May 2003 11:42:56 GMT</pubDate>
    <dc:creator>Ian Lochray</dc:creator>
    <dc:date>2003-05-14T11:42:56Z</dc:date>
    <item>
      <title>system and buffer memory increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-and-buffer-memory-increase/m-p/2972808#M927959</link>
      <description>We produce a large application that comprises a number of executables and shared libraries.  Some of our "core" code is built into small archive libraries (about 1/100th of the entire product size) and these are linked into the executables.  The idea is that the "core" code is always available within the executables.&lt;BR /&gt;I have just tried relinking these archive libraries as shared libraries and relinking the executables.  I then ran a benchmark for the before and after code and measured memory usage using glance.  I saw that the user memory decreased by about 5% (50Mb) but system memory increased by 100% (220Mb) and buffer cache increased by 250% (180Mb).  Total memory usage for the archive version was 80% (of 1500Mb) and 100% for the entirely shared version.&lt;BR /&gt;Can someone explain the large increase in system memory and buffer cache.</description>
      <pubDate>Wed, 14 May 2003 09:34:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-and-buffer-memory-increase/m-p/2972808#M927959</guid>
      <dc:creator>Ian Lochray</dc:creator>
      <dc:date>2003-05-14T09:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: system and buffer memory increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-and-buffer-memory-increase/m-p/2972809#M927960</link>
      <description>The shared libraries are designed for multiple copies of the same program. Run 10 copies of the same program using archive libraries and you'll see a very large amount of additional RAM now being used. Depending on the structure of the shared library, some unused routines may be loaded into RAM when a specific application does not need them and this will take system memory as the libraries are systemn resources.&lt;BR /&gt;&lt;BR /&gt;The buffer cache is not directly by shared libraries except as the file are read into RAM, they will also be stored in the buffer cache in anticipation of future reads. Since an archived executable is self-contained, the library code is read directly from the executable.&lt;BR /&gt;&lt;BR /&gt;The concept of archived libraries is to be self-contained (a good thing in single user mode when /usr is not mounted) but wastes RAM when dozens of copies of the same program are run at the same time. If the app is never run as multiple instances, then there is little difference except as you've seen.</description>
      <pubDate>Wed, 14 May 2003 11:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-and-buffer-memory-increase/m-p/2972809#M927960</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-05-14T11:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: system and buffer memory increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-and-buffer-memory-increase/m-p/2972810#M927961</link>
      <description>Very nice document under /usr/share/docs/mem_mgt.txt.</description>
      <pubDate>Wed, 14 May 2003 11:19:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-and-buffer-memory-increase/m-p/2972810#M927961</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-05-14T11:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: system and buffer memory increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-and-buffer-memory-increase/m-p/2972811#M927962</link>
      <description>Bill,&lt;BR /&gt;  I appreciate what you say about the design of shared libraries.  Our application does have multiple copies of the same program running.  This explained to me why the user memory usage decreased when I ran the shared library only version.  I am happy as to why the buffer cache usage rose but I still do not know why the system memory usage increased by so much.</description>
      <pubDate>Wed, 14 May 2003 11:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-and-buffer-memory-increase/m-p/2972811#M927962</guid>
      <dc:creator>Ian Lochray</dc:creator>
      <dc:date>2003-05-14T11:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: system and buffer memory increase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-and-buffer-memory-increase/m-p/2972812#M927963</link>
      <description>Hi Ian,&lt;BR /&gt;&lt;BR /&gt;Several things to remember about dynamic buffer cache:&lt;BR /&gt;&lt;BR /&gt;1) The minimum (dbc_min_pct) is of course a static amount of memory, but it is also part of the kernel memory. Therefore great care should be taken to not set it too large as it will increase kernel size as well as lockable memory size.&lt;BR /&gt;&lt;BR /&gt;2) The maximum (dbc_max_pct) is a "floating" value &amp;amp; will be pushed towards it's limit by heavy disk I/O - especially large reads &amp;amp; writes. But it will ONLY go down when RAM usage pressures it down. So again great care should be taken to poperly size it as well. &lt;BR /&gt;&lt;BR /&gt;3) There is an overhead cost for using buffer cache &amp;amp; it's CPU usage. The CPU has to monitor &amp;amp; manipulate the cache, so there will be times when it's better to not use the buffer - mainly when reads &amp;amp; writes are in LARGE chunks.&lt;BR /&gt;&lt;BR /&gt;My 2 cents,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 14 May 2003 11:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-and-buffer-memory-increase/m-p/2972812#M927963</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-05-14T11:52:04Z</dc:date>
    </item>
  </channel>
</rss>

