<?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: 100% memory utilization in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955570#M414577</link>
    <description>No, you either use dynamic buffer cache by setting bufpages to a zero value or a static (fixed-size) buffer cache by setting bufpages to a non-zero value. In that case, the xxx_dbc_pct values are ignored. Your suggested value for buffers (sic) is much too small. Go with something near 100MB, a reasonable value for your box (bufpages=25600). I would at least use a 64MB buffer cache (bufpages=16384).&lt;BR /&gt;&lt;BR /&gt;You prevent multiple 500MB shm segments by discipline. Simply don't allow it to happen. Reducing shmmax to 600MB reduces the ability of an overzealous DBA to grab all your resources but he can still make requests for multiple 600MB segments until virtual memory is exhausted. In your case, I would actually turnoff pseudoswap (swapmem_on=0) because it is really intended for use with machines that have much more memory than swapspace. It's actually safer for you to operate with swapmem=0.&lt;BR /&gt;</description>
    <pubDate>Fri, 27 Jan 2006 12:19:41 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2006-01-27T12:19:41Z</dc:date>
    <item>
      <title>100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955564#M414571</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;I have read all the issues posted related to memory and swap usage. They did not address my issue, so this post.&lt;BR /&gt;&lt;BR /&gt;Here is my server configuration:&lt;BR /&gt;HP-UX 11.00 trusted&lt;BR /&gt;rp5430 2 CPUs&lt;BR /&gt;1250 MB RAM&lt;BR /&gt;2000 MB of swap space&lt;BR /&gt;Kernel parameters:&lt;BR /&gt;swapmemory_on =1&lt;BR /&gt;maxswapchunks=2048&lt;BR /&gt;swapchunk=2048&lt;BR /&gt;dbc_max=50&lt;BR /&gt;dbc_min=5&lt;BR /&gt;shmmax=1,073,741,824&lt;BR /&gt;&lt;BR /&gt;This server runs Oracle DB 9i with ~530 MG SGA&lt;BR /&gt;This is a standby server with no users on&lt;BR /&gt;The vmstat returns the following:&lt;BR /&gt;&lt;BR /&gt;       procs           memory                   page&lt;BR /&gt;   faults       cpu&lt;BR /&gt;   r     b     w      avm    free   re   at    pi   po    fr   de    sr     in&lt;BR /&gt;   sy    cs  us sy id&lt;BR /&gt;   0     0     0     1546   22858    0    0     0    0   &lt;BR /&gt;&lt;BR /&gt; # swapinfo&lt;BR /&gt;The swapinfo returns the following:&lt;BR /&gt;&lt;BR /&gt;            Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev      524288       0  524288    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -   41508  -41508&lt;BR /&gt;memory   945664  945664       0  100%&lt;BR /&gt; 0    0     0    485&lt;BR /&gt;  547    83   0  0 100&lt;BR /&gt;&lt;BR /&gt;A little bit history:&lt;BR /&gt;When I re-boot the server and bring up Oracle&lt;BR /&gt;the swapinfo shows the following:# swapinfo&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev      524288       0  524288    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -   36032  -36032&lt;BR /&gt;memory   945664   33224  912440    4%&lt;BR /&gt;&lt;BR /&gt;We re-boot the Oracle DB from cron every night. After 2 nights we are running out of memory.&lt;BR /&gt;&lt;BR /&gt;Can you help?&lt;BR /&gt;Thanks&lt;BR /&gt;Babu Yalamanchi &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jan 2006 10:56:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955564#M414571</guid>
      <dc:creator>Babu Yalamanchi</dc:creator>
      <dc:date>2006-01-27T10:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955565#M414572</link>
      <description>Hi Babu:&lt;BR /&gt;&lt;BR /&gt;You wrote that, "We re-boot the Oracle DB from cron every night".  &lt;BR /&gt;&lt;BR /&gt;Exactly what do you mean?  Are you gracefully shutting down Oracle or are you doing a 'kill' of it.&lt;BR /&gt;&lt;BR /&gt;If you are sending 'kill -9' then you are probably leaving shared memory segments all over and this is causing you to run out of memory.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 27 Jan 2006 11:04:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955565#M414572</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-27T11:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955566#M414573</link>
      <description>..JRF...&lt;BR /&gt;Thx for quick response.&lt;BR /&gt;&lt;BR /&gt;We 'dbshut' and 'dbstart' from cron using oracle as the owner.</description>
      <pubDate>Fri, 27 Jan 2006 11:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955566#M414573</guid>
      <dc:creator>Babu Yalamanchi</dc:creator>
      <dc:date>2006-01-27T11:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955567#M414574</link>
      <description>You are reading something into the "memory" line of swapinfo that is not there. That does not mean that all of your memory is used. Note that your pageouts are zero. This is the real indication of swap usage. Swapinfo's "memory" line is the memory reserved by pseudoswap -- except that it really isn't reserved. You are running Oracle on a box with little memory and more physical memory would be better but as long as you keep the size of the SGA relatively small and the number of processes relatively small then you should be okay. The very first thing that that you should do is reduce your max_dbc_pct to no more than about 10% --- and setting a static buffer cache of about 100MB would be better still. You do this by setting bufpages to a non-zero value indicating the number of 4K pages (25600 = 100MB). 11.0 is not nearly as good as 11.11 in ramping down the dynamic buffer cache quickly. In your case, I would also reduce shmmax to about 600MB because on your box is someone does allocate a 1GB shared memory segment then you are really going to be in trouble. You also need to take care that multiple 500MB segments don't get allocated.</description>
      <pubDate>Fri, 27 Jan 2006 11:18:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955567#M414574</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-01-27T11:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955568#M414575</link>
      <description>Hi Babu:&lt;BR /&gt;&lt;BR /&gt;Good.  Well, I missed the fact too that you have your Unix buffer cache far too high for an Oracle environment.  I'd reduce your 'dbc_max' to perhaps 5% and 'dbc_min' to about 2%.&lt;BR /&gt;&lt;BR /&gt;With only 1.2GB RAM and an SGA of 0.5GB you don't have a great amount of memory.  If performance is acceptable, then you're seeing about what you can expect.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 27 Jan 2006 11:22:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955568#M414575</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-27T11:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955569#M414576</link>
      <description>Clay, James&lt;BR /&gt;&lt;BR /&gt;I will combine ypur responses and try the&lt;BR /&gt;following config changes:&lt;BR /&gt;dbc_max=5&lt;BR /&gt;dbc_min=2&lt;BR /&gt;buffers=1992(I have this on another machine)&lt;BR /&gt;&lt;BR /&gt;How do I avoid 'You also need to take care that multiple 500MB segments don't get allocated.' ? This certainly appears to be our case.&lt;BR /&gt;I will run this config a few times(days).</description>
      <pubDate>Fri, 27 Jan 2006 12:10:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955569#M414576</guid>
      <dc:creator>Babu Yalamanchi</dc:creator>
      <dc:date>2006-01-27T12:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955570#M414577</link>
      <description>No, you either use dynamic buffer cache by setting bufpages to a zero value or a static (fixed-size) buffer cache by setting bufpages to a non-zero value. In that case, the xxx_dbc_pct values are ignored. Your suggested value for buffers (sic) is much too small. Go with something near 100MB, a reasonable value for your box (bufpages=25600). I would at least use a 64MB buffer cache (bufpages=16384).&lt;BR /&gt;&lt;BR /&gt;You prevent multiple 500MB shm segments by discipline. Simply don't allow it to happen. Reducing shmmax to 600MB reduces the ability of an overzealous DBA to grab all your resources but he can still make requests for multiple 600MB segments until virtual memory is exhausted. In your case, I would actually turnoff pseudoswap (swapmem_on=0) because it is really intended for use with machines that have much more memory than swapspace. It's actually safer for you to operate with swapmem=0.&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jan 2006 12:19:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955570#M414577</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-01-27T12:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955571#M414578</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You need to check &lt;BR /&gt;dbc_min_pct &lt;BR /&gt;dbc_min_pct defines the minimum percentage of memory to be used by dynamic buffer cache. There can be performance problems from having dbc_max_pct different than dbc_min_pct. If  dbc_max_pct and dbc_min_pct are too far apart problems can arise.&lt;BR /&gt;&lt;BR /&gt;If you are running large processes you should consider using a fixed buffer cache size, and possibly setting the chatr +pd attribute (Large pages can increase the amount of RAM a program needs by rounding up to bigger pages, so don't go too far with it.) and dbc_min_pct 5 and dbc_max_pct 10 should be fine for this . &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Simon</description>
      <pubDate>Fri, 27 Jan 2006 12:29:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955571#M414578</guid>
      <dc:creator>Simon Wickham_6</dc:creator>
      <dc:date>2006-01-27T12:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955572#M414579</link>
      <description>All who responded&lt;BR /&gt;&lt;BR /&gt;Thank you all for your inputs. I have set the following parameters:&lt;BR /&gt;dbc_max=5&lt;BR /&gt;dbc_min=2&lt;BR /&gt;bufpages=16384(redundant)&lt;BR /&gt;swapmen_on=1&lt;BR /&gt;&lt;BR /&gt;It works and is now stable. The solution has solved my problems.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Babu Yalamanchi</description>
      <pubDate>Thu, 02 Feb 2006 11:26:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955572#M414579</guid>
      <dc:creator>Babu Yalamanchi</dc:creator>
      <dc:date>2006-02-02T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955573#M414580</link>
      <description>This works!</description>
      <pubDate>Thu, 02 Feb 2006 11:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955573#M414580</guid>
      <dc:creator>Babu Yalamanchi</dc:creator>
      <dc:date>2006-02-02T11:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955574#M414581</link>
      <description>You might get even more stability, although peak activity would be slow, by increasing the device swap to a 4GB to give you even more virtual address space. When you run out of virtual address space, no more new processes can start, since there is no room to page out to and get more space in RAM to run the process.</description>
      <pubDate>Fri, 03 Feb 2006 22:35:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955574#M414581</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2006-02-03T22:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955575#M414582</link>
      <description>Ted&lt;BR /&gt;Thanks for the idea. I was keeping some device swap space for Oracle 10g we're expecting soon.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Babu</description>
      <pubDate>Mon, 06 Feb 2006 08:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955575#M414582</guid>
      <dc:creator>Babu Yalamanchi</dc:creator>
      <dc:date>2006-02-06T08:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: 100% memory utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955576#M414583</link>
      <description>See previous</description>
      <pubDate>Mon, 06 Feb 2006 08:13:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/100-memory-utilization/m-p/4955576#M414583</guid>
      <dc:creator>Babu Yalamanchi</dc:creator>
      <dc:date>2006-02-06T08:13:27Z</dc:date>
    </item>
  </channel>
</rss>

