<?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 advice in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051125#M813263</link>
    <description>9.8MB of buffer cache is much too small. That doesn't allow much buffer for often used files. I would increase it to at least 200MB (bufpages=51200) and double that would not be bad at all.&lt;BR /&gt;&lt;BR /&gt;The way he can "grab" all that memory is that he is allowed to. You as sysadmin can limit his per process grabs by restricting maxdsiz, maxdsiz_64bit, (and to a lesser extent) maxssiz and maxssiz_64bit, and shmmax. &lt;BR /&gt;&lt;BR /&gt;You can restrict those values (it's probably just shmmax) and when he attempts to start the database he will fail and be forced to reduce his init.ora parameters.&lt;BR /&gt;</description>
    <pubDate>Mon, 18 Aug 2003 18:26:06 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2003-08-18T18:26:06Z</dc:date>
    <item>
      <title>memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051118#M813256</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We had 4GB of RAM and 6GB of swap configured on N class. I monitored the situation for some time and figured that we want to add memory in order to get rid of swapping. So, 2GB has been added, now we have 6GB RAM, 6GB swap, swapmem_on=1. But the swapping is still here because my DBA did changes to Oracle ( increased SGA?) and we are back to where we were before memory upgrade in terms of swapping. &lt;BR /&gt;&lt;BR /&gt;Any comments/advice?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Elena.</description>
      <pubDate>Mon, 18 Aug 2003 15:59:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051118#M813256</guid>
      <dc:creator>Elena Leontieva</dc:creator>
      <dc:date>2003-08-18T15:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051119#M813257</link>
      <description>Elena,&lt;BR /&gt;&lt;BR /&gt;Approaching things from the simple side, can you get your DBA to change things back so you can at least see what effect your RAM increase had by itself and then tune from there?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Aug 2003 16:08:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051119#M813257</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-08-18T16:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051120#M813258</link>
      <description>This is my swapinfo -tam output:&lt;BR /&gt;cocn03(root):/var/adm/perf&amp;gt; swapinfo -tam&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        1024       0    1024    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        1024     194     830   19%       0       -    0  /dev/vg00/lvol10&lt;BR /&gt;dev        4096     193    3903    5%       0       -    0  /dev/vg03/lvol1&lt;BR /&gt;reserve       -    4825   -4825&lt;BR /&gt;memory     5044     654    4390   13%&lt;BR /&gt;total     11188    5866    5322   52%       -       0    -&lt;BR /&gt;&lt;BR /&gt;DBA is saying that the reserved area for the OS ( 4825mb from a total of 11188mb ) is significantly higher than Oracle's utilization, so that we should consider reducing the reserved area. My understanding is that reserved is needed for processes (not OS) and I have no control on how much goes in reserve. &lt;BR /&gt;Pete, I do not think we can go back, SGA is 1.7GB. &lt;BR /&gt;&lt;BR /&gt;Elena.&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Aug 2003 16:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051120#M813258</guid>
      <dc:creator>Elena Leontieva</dc:creator>
      <dc:date>2003-08-18T16:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051121#M813259</link>
      <description>Assuming you're running 64 bit Oracle. (otherwise SGA limit is around 2 gig) you could consider lowering (very low) your disk buffers. If the SGA is large, you may not need them, since Oracle will keep them in memory anyway.&lt;BR /&gt;&lt;BR /&gt;We've seen great improvements when raising SGA. (I wonder if the improvement is enough to tolorate the swapping)</description>
      <pubDate>Mon, 18 Aug 2003 16:28:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051121#M813259</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-08-18T16:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051122#M813260</link>
      <description>It is possible that you are running dynamic buffer cache and the default value of 50% is in play. 11.11 boxes typically perform best when buffer cache is limited to about 800-1200MB; 11.0 boxes typically optimize at somewhere between 400-800 MB -- and that is generous. Tune your kernel accordingly. My preference is to hard set the buffer cache by setting bufpages to a non-zero value but that's just my blind and simple approach. Silly me, I actually bother to measure these things.&lt;BR /&gt;&lt;BR /&gt;If this were me, I would reduce shmmax so that the DBA can't pull this stunt again -- at least without letting you know beforehand. &lt;BR /&gt;&lt;BR /&gt;I can absolutely assure you that any gains the DBA might have thought he achieved by increasing his cache are more than offset (by about 2 orders of magnitude) by the penalty of swapping.&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Aug 2003 17:17:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051122#M813260</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-08-18T17:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051123#M813261</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It is 11.00. Buffer cache is hard set to 9.8MB (nbuf = 0, bufpages = 2400). I wish I can understand how he grabbed the memory. &lt;BR /&gt;&lt;BR /&gt;Elena.</description>
      <pubDate>Mon, 18 Aug 2003 17:39:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051123#M813261</guid>
      <dc:creator>Elena Leontieva</dc:creator>
      <dc:date>2003-08-18T17:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051124#M813262</link>
      <description>Elena,&lt;BR /&gt;&lt;BR /&gt;is this a standalone database server or is there additional application server software on it ? If yes, what (i.e. SAP ?)&lt;BR /&gt;&lt;BR /&gt;If not, how many clients connect to the database and are these connections either handed by dedicated or multithreaded server processing ?&lt;BR /&gt;&lt;BR /&gt;Check the output of top for the number of oracleSID processes and allocated memory for each process. Also compare the number to &lt;BR /&gt;&lt;BR /&gt;select count(*) form v$session;&lt;BR /&gt;&lt;BR /&gt;If they are close and high, you run dedicated and may consider to change to multithreaded configuration, which will reduce the number of oracle processes and the related process/context switching on OS level. Check your application documentation, if this change is permitted (with SAP it is not !).&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Aug 2003 18:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051124#M813262</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2003-08-18T18:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051125#M813263</link>
      <description>9.8MB of buffer cache is much too small. That doesn't allow much buffer for often used files. I would increase it to at least 200MB (bufpages=51200) and double that would not be bad at all.&lt;BR /&gt;&lt;BR /&gt;The way he can "grab" all that memory is that he is allowed to. You as sysadmin can limit his per process grabs by restricting maxdsiz, maxdsiz_64bit, (and to a lesser extent) maxssiz and maxssiz_64bit, and shmmax. &lt;BR /&gt;&lt;BR /&gt;You can restrict those values (it's probably just shmmax) and when he attempts to start the database he will fail and be forced to reduce his init.ora parameters.&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Aug 2003 18:26:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051125#M813263</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-08-18T18:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051126#M813264</link>
      <description>It is Oracle 8.1.7 and a purchasing application (KPMG) on top of it. &lt;BR /&gt;&lt;BR /&gt;shmmax = 1700000000&lt;BR /&gt;maxdsiz=maxdsiz_64bit=1073741824&lt;BR /&gt;&lt;BR /&gt;and were setup this way as per DBA request at the Oracle/application upgrade.&lt;BR /&gt;&lt;BR /&gt;Elena.</description>
      <pubDate>Mon, 18 Aug 2003 19:00:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051126#M813264</guid>
      <dc:creator>Elena Leontieva</dc:creator>
      <dc:date>2003-08-18T19:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051127#M813265</link>
      <description>Your shmmax is 1.7GB so you can't support many large instances without swapping. There is nothing wrong with even much larger shmmax settings as long as you don't have users which abuse memory usage. NEVER listen to DBA's about memory usage; his comment about the reserve swap area being for the OS is a prime example. Reserve is not reserved for the OS but rather memory that might be needed by currently running processes but has not yet been allocated from one of the swap areas.&lt;BR /&gt;&lt;BR /&gt;The fundamental answer to your problem is:&lt;BR /&gt;1) add more memory&lt;BR /&gt;2) reduce the current SGA usage&lt;BR /&gt;3) reduce the number of currently running processes&lt;BR /&gt;4) tolerate the swapping.&lt;BR /&gt;&lt;BR /&gt;Any combination of the above can apply but 4) would be my least favorite.&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Aug 2003 19:48:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051127#M813265</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-08-18T19:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051128#M813266</link>
      <description>Gentlemen,&lt;BR /&gt;&lt;BR /&gt;DBA is going to reduce ora.init parameters, probably to pre-upgrade values. &lt;BR /&gt;&lt;BR /&gt;I appreciate all your thoughts! &lt;BR /&gt;Elena.</description>
      <pubDate>Mon, 18 Aug 2003 20:04:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051128#M813266</guid>
      <dc:creator>Elena Leontieva</dc:creator>
      <dc:date>2003-08-18T20:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051129#M813267</link>
      <description>Hi Elena,&lt;BR /&gt;&lt;BR /&gt;I know I have come in on the end of this thread, but thought I would offer my 2 cents worth.  If you dont want it, donate it to charity if you like :-)&lt;BR /&gt;&lt;BR /&gt;As mentioned the buffer cache is WAY to small.  By setting bufpages (or nbuf) to non-default values, you are not using dynamic bufer cache (ie, dbc_max_pct and dbc_min_pct are NOT used).  The buffer cache is set to the bufpages value.  I would recommend a buffer cache of at least 400Mb (and possibly higher).  You would need to monitor things and increase it if necessary.  I would also set bufpages back to the default (NBUF * 2) and use dynamic buffer cache but set dbc_max_pct to say 10 (this would mean a maximum buffer cache of 600Mb).&lt;BR /&gt;&lt;BR /&gt;Secondly, I would add more swap.  If you have lots of processes and they are reserving all your swap, then add more swap.  The machine is there for people to use, not to be restricted.&lt;BR /&gt;&lt;BR /&gt;The value of shmmax is quite large.  Does it really need to be so big?  It should be set to a value that is larger than the largest request the system should grant.  By setting shmmax to a large value, you risk having a&lt;BR /&gt;process erroneously try to allocate a huge segment and consume all available swap space, only to be denied the request.  Maybe this is what is happening in your case.  Does the DBA really understand shmmax?  Maybe he is confusing it with shared memory.&lt;BR /&gt;&lt;BR /&gt;Anyway, just a few points.  I'm sure I've added to the confusion and will keep a watch for the 2 cents when it is thrown back at me ;-)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Aug 2003 23:17:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051129#M813267</guid>
      <dc:creator>Tim Adamson_1</dc:creator>
      <dc:date>2003-08-18T23:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: memory utilization advice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051130#M813268</link>
      <description>&lt;BR /&gt;The amount of memory (reserved) show by swapinfo is only 4825, so in fact, it is enought memory. Maybe at any time, any process has used lots of memory. &lt;BR /&gt;&lt;BR /&gt;I think you must change the point of view:&lt;BR /&gt;&lt;BR /&gt;1-) Check the memory use: see how it grows and fall in a day basis. You will see any peaks, at online time or/and bacth time. How long are they?. At these times are you experienced performance issues?. &lt;BR /&gt;&lt;BR /&gt;2-) There are some patches for memory leaks. One of them is mib2agt. It can consume lots of memory. &lt;BR /&gt;&lt;BR /&gt;3-) I am surprised. Anybody has write about the use of :&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -aef -o "pid,user,comm,sz,vsz" | sort -k 4n .&lt;BR /&gt;&lt;BR /&gt;It is very useful to see the per process used memory. See man ps, or better, search UNIX95= in the forums.&lt;BR /&gt;&lt;BR /&gt;Now you can see if your DBA is right or not.&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Aug 2003 06:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-utilization-advice/m-p/3051130#M813268</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2003-08-19T06:00:21Z</dc:date>
    </item>
  </channel>
</rss>

