<?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: Oracle and memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662776#M797466</link>
    <description>You could use the "top" command to  verify that your system sees all the physical and virtual memory.</description>
    <pubDate>Sat, 05 Nov 2005 10:49:42 GMT</pubDate>
    <dc:creator>Ted Buis</dc:creator>
    <dc:date>2005-11-05T10:49:42Z</dc:date>
    <item>
      <title>Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662760#M797450</link>
      <description>I have an rp8400 w/40GB or ram but the DBA is only using 1/4 of the memory.&lt;BR /&gt;&lt;BR /&gt;Q. Does not the philosophy the more memory for oracle the happier it will be still apply?&lt;BR /&gt;&lt;BR /&gt;I am being told by the dba that the more memory for oracle = the more memory oracle has to manage so that does not mean better performance.  Does everyone agree w/this analysis?</description>
      <pubDate>Wed, 02 Nov 2005 06:42:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662760#M797450</guid>
      <dc:creator>Stafford Hyacinth</dc:creator>
      <dc:date>2005-11-02T06:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662761#M797451</link>
      <description>There are limits as to what is good setting. But in most cases the more memory for oracle the better it performs.&lt;BR /&gt;&lt;BR /&gt;What are you settings for oracle SGA, shared memory-shmmax??&lt;BR /&gt;&lt;BR /&gt;Also other kernel tunables??</description>
      <pubDate>Wed, 02 Nov 2005 06:47:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662761#M797451</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-11-02T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662762#M797452</link>
      <description>A. Yes&lt;BR /&gt;&lt;BR /&gt;Are you running 32 bit or 64 bit Oracle.&lt;BR /&gt;&lt;BR /&gt;In general, without any known limits, Oracle will perform better with more memory.&lt;BR /&gt;&lt;BR /&gt;If its a small database and performance is maxing out you gain nothing by adding memory.&lt;BR /&gt;&lt;BR /&gt;However the last paragraph has never happened to anyone I know.&lt;BR /&gt;&lt;BR /&gt;Assuming there is no plans long term to increase your machines workload, increasing certain parts of the Oracle SGA might provide some performance impact.&lt;BR /&gt;&lt;BR /&gt;To analyze os performance:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/system.perf.sh" target="_blank"&gt;http://www.hpux.ws/system.perf.sh&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HP-UX only.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 02 Nov 2005 06:51:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662762#M797452</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-02T06:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662763#M797453</link>
      <description>Hi Stafford,&lt;BR /&gt;&lt;BR /&gt;I fully agree with your DBA. &lt;BR /&gt;&lt;BR /&gt;See Metalink Note 1012046.1 to calculate the shared_pool_size requirements&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Wed, 02 Nov 2005 06:52:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662763#M797453</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-11-02T06:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662764#M797454</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;from Oracle9i you have advisory utilities and you should use them to tune your memory usage on the server.&lt;BR /&gt;&lt;BR /&gt;see attachment&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 02 Nov 2005 07:24:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662764#M797454</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2005-11-02T07:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662765#M797455</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;See Metalink Note 62143.1 (Understanding and Tuning the Shared Pool) witch has the reference to Note 1012046.1...&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Wed, 02 Nov 2005 07:56:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662765#M797455</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-11-02T07:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662766#M797456</link>
      <description>Depending on the size of the database and the number of users being supported 10G may be enough memory for Oracle.  If there are no performance issues and the user community is happy, then their is no reason to increase Oracle's memory usage.  &lt;BR /&gt;There can be performance problems if the dba just throws memory at a problem.  For example making the shared_pool very large instead of pinning packages and using bind variables will not help performance.  Lots of memory for the buffer cache is no subsitute for a well tuned application that accesses few block to complete a query. &lt;BR /&gt;&lt;BR /&gt;In general Oracle does like a lot of memory, but if the database is using 10G then it may be performing well.&lt;BR /&gt;&lt;BR /&gt;As a DBA I do like it when the Unix admin "wants" the database to have lots of memory :) &lt;BR /&gt;&lt;BR /&gt;Patti</description>
      <pubDate>Wed, 02 Nov 2005 09:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662766#M797456</guid>
      <dc:creator>Patti Johnson</dc:creator>
      <dc:date>2005-11-02T09:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662767#M797457</link>
      <description>Thanks for the information it has been most helpful.  The database is ~ 900GB on Oracle 9i.</description>
      <pubDate>Wed, 02 Nov 2005 10:44:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662767#M797457</guid>
      <dc:creator>Stafford Hyacinth</dc:creator>
      <dc:date>2005-11-02T10:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662768#M797458</link>
      <description>Oops 64-bit</description>
      <pubDate>Wed, 02 Nov 2005 10:46:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662768#M797458</guid>
      <dc:creator>Stafford Hyacinth</dc:creator>
      <dc:date>2005-11-02T10:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662769#M797459</link>
      <description>10g is pretty good size, unless you're still seeing very high I/O.  In that case, EVEN if you've got a 97% hit ratio, increasing the size of db_block_buffers *could* greatly increase throughput.  However, it may not.  Increasing the size of the SGA is not NEARLY as effective as tuning the code that is doing lots of reads to and from disk.  But, if that is already done to a reasonable level, then increasing the buffer cache could deliver great benefits, but then again maybe not.  You'd have to get some benchmarks, make the change and see.&lt;BR /&gt;&lt;BR /&gt;What people don't generally grasp is that when your buffer cache hit ratio is 97% - the remaining three percent represents just about 70% - 90% of your disk i/o (except redo logs and archive logs).  So, theoretically a 1% increase in the hit ratio to 98% from 97% which looks small, represents as much as 1/3 reduction of total i/o (except for redo and arch logs)!&lt;BR /&gt;From my experience this is largely true and accurate.&lt;BR /&gt;&lt;BR /&gt;The problem is, that the increase in SGA that got you from say 96% to 97% may cost you as little as 1G more or so, while the jump from 97% to 98% may cost you 6G more, and the jump to 99% may cost you another 15Ggig!&lt;BR /&gt;&lt;BR /&gt;In other words, it follows the law of diminishing returns.  Now, at that point of getting another 1% reduction in I/O you've now got an offset in performance from the brand-new CPU load that you've got from now maintaining, let's say 6 G more of 8k blocks - that's housekeeping and maintenance for 786,432 more blocks!  Well, if you weren't CPU bound(per process and in total) before - then you may be much better off now.  Glance, or even better - perfview will tell you this now, along with your DBA's help by using statspack.  The next question is, does the next increment of 1% or so, which would require even more blocks to achieve get you going forward?&lt;BR /&gt;&lt;BR /&gt;Someone mentioned the shared pool.  This is where the executing code lives.  It is vitally important that the cache hit ratio for this area remains high too.  Make sure that is checked.  Keep in mind that a 1% increase in this area is MUCH easier in terms of commmitted memory to achieve than db_buffer_cache.  So, check this, and resolve it first.&lt;BR /&gt;&lt;BR /&gt;Overall, I agree with the others who say more memory is better.  In general it is, but it would be best to know what you're doing and why.  Then, measure the system to make that the intended effects are positive, because you could be trading in your i/o problems for cpu ones.</description>
      <pubDate>Wed, 02 Nov 2005 10:54:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662769#M797459</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-11-02T10:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662770#M797460</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;also before you make any change you should take a few statspack reports (ask the DBA) along with OS monitoring.&lt;BR /&gt;Then apply the changes (usually one at a time), monitor again (OS + Oracle) and compare with the baseline.&lt;BR /&gt;&lt;BR /&gt;The baseline is important for this exercise as well as when users will(!) complain about performance. At least you will have something to go back too. Most of time it's either the increase in load (average number of users /transactions) and/or new transactions.&lt;BR /&gt;Your perfstats reports will help you (and DBA).&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 02 Nov 2005 11:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662770#M797460</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2005-11-02T11:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662771#M797461</link>
      <description>You haven't really told us much about your environment.  Do you have OnLineJFS?  Do you have GlancePlus?  What is your buffer cache kernel parameters.  Is your swapchunks/maxswapchunks value high enough to address all your virtual memory.&lt;BR /&gt;&lt;BR /&gt;Your buffer cache is likely wasting memory if you still have the default for the maximum dynamic buffer cache of 50%.  Also, you can avoid double buffering from Oracle and the HP-UX OS if you select the proper mount options if you have OnLineJFS, which would waste memory and create extra memory to memory transfers.&lt;BR /&gt;&lt;BR /&gt;GlancePlus can show you your peak and average memory usage, so it will allow you to see how much unused memory you really have.&lt;BR /&gt;&lt;BR /&gt;Since RAM access is 1000 times faster than disk access, I still think that more RAM is a great asset, but just adding it doesn't optimize performance.  Optimization requires looking at the system to see what is the precise bottleneck for your particular case.  You might want to get a copy of the book "HP-UX 11i Tuning and Performance" by Robert F. Sauers to better understand the tools available for examining system performance.</description>
      <pubDate>Thu, 03 Nov 2005 18:33:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662771#M797461</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2005-11-03T18:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662772#M797462</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;I have onlineJFS &amp;amp; GlancePlus.&lt;BR /&gt;&lt;BR /&gt;The kernel params are as follows:&lt;BR /&gt;bufpages: 0&lt;BR /&gt;dbc_max_pct: 7&lt;BR /&gt;dbc_min_pct: 5&lt;BR /&gt;maxfiles: 4000&lt;BR /&gt;maxfiles_lim: 1024&lt;BR /&gt;nfile: 123000&lt;BR /&gt;nflocks: 2000&lt;BR /&gt;ninone: 34816&lt;BR /&gt;maxswapchunks: 8192&lt;BR /&gt;swapmem_on: 1&lt;BR /&gt;swchunks: 2048&lt;BR /&gt;vps_ceiling: 64&lt;BR /&gt;maxdsiz: 2415919104&lt;BR /&gt;maxdsiz_64bit: 2415919104&lt;BR /&gt;maxssiz: 401604608&lt;BR /&gt;maxsxiz_64bit: 1073741824&lt;BR /&gt;maxtsiz: 1073741824&lt;BR /&gt;maxtsiz_64bit: 1073741824&lt;BR /&gt;maxuprc: 3000&lt;BR /&gt;max_thread_proc: 4096&lt;BR /&gt;ntkthread: 7184&lt;BR /&gt;nproc: 4096&lt;BR /&gt;msgmap: 4098&lt;BR /&gt;msgmni: 4096&lt;BR /&gt;msgseg: 32767&lt;BR /&gt;msgtql: 4096&lt;BR /&gt;semmap: 4098&lt;BR /&gt;semmni: 4096&lt;BR /&gt;semmns: 16384&lt;BR /&gt;semmnu: 4092&lt;BR /&gt;semvmx: 32767&lt;BR /&gt;shmmax: 12884901888&lt;BR /&gt;shmmni: 1024&lt;BR /&gt;shmseg: 1024</description>
      <pubDate>Fri, 04 Nov 2005 11:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662772#M797462</guid>
      <dc:creator>Stafford Hyacinth</dc:creator>
      <dc:date>2005-11-04T11:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662773#M797463</link>
      <description>If the swap page is 4K (I think, maybe someone can help here, since I don't have time to look it up right now), then you only have 32GB covered.  In that case the system will deallocate 8GB of your 40GB memory.  What does swapinfo -tam say?</description>
      <pubDate>Fri, 04 Nov 2005 18:18:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662773#M797463</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2005-11-04T18:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662774#M797464</link>
      <description>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        4096       0    4096    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        4096       0    4096    0%       0       -    1  /dev/vg00/swap2&lt;BR /&gt;dev        4096       0    4096    0%       0       -    1  /dev/vg00/swap3&lt;BR /&gt;dev        4096       0    4096    0%       0       -    1  /dev/vg00/swap4&lt;BR /&gt;reserve       -   12915  -12915&lt;BR /&gt;memory    31561   16789   14772   53%&lt;BR /&gt;total     47945   29704   18241   62%       -       0    -</description>
      <pubDate>Fri, 04 Nov 2005 18:26:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662774#M797464</guid>
      <dc:creator>Stafford Hyacinth</dc:creator>
      <dc:date>2005-11-04T18:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662775#M797465</link>
      <description>Actually, the maximum swap space is determined by the formula maxswapchunks*swapchunks*1024. So, your 8192*2048*1024=16GB which is the physical device swap that you have.  You may wish to consider increasing maxswapchunks to 2-3X the current value, so you wouldn't have to do that if you decided to add more device swap, but I don't think it is necessary now.  I was thinking that the this formula needs to cover the virtual address space of physical device swap space plus pseudoswap which in your case is 75% of RAM or ~30GB for a total of 46GB, but that doesn't appear to be the case. It seems to only have to cover the physical device swap space.</description>
      <pubDate>Sat, 05 Nov 2005 10:42:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662775#M797465</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2005-11-05T10:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662776#M797466</link>
      <description>You could use the "top" command to  verify that your system sees all the physical and virtual memory.</description>
      <pubDate>Sat, 05 Nov 2005 10:49:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662776#M797466</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2005-11-05T10:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662777#M797467</link>
      <description>Few things occurred to me.&lt;BR /&gt;&lt;BR /&gt;1) There is a limit on how much swap the OS will use. I can't remember if it was 16 GB or 32 GB but beyond that there is not more.&lt;BR /&gt;&lt;BR /&gt;2) Powerful system you got, love working with big hardware.&lt;BR /&gt;&lt;BR /&gt;3) Your shmmax might be a little light for Oracle.  You can go up to 25% of memory which HP-UX defines as ram plus swap. 1.2 GB of shmmax isn't going to be enough to run the kind of database a system this powerful is likely to run.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sat, 05 Nov 2005 13:36:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662777#M797467</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-05T13:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662778#M797468</link>
      <description>Shmmax is not 1.2GB but 12GB and for most applications that's plenty. Your situation may not be too dissimilar to this scenario: Consider a systems doing thousands of logical i/o's per seconds but only a very small number of physical i/o's per seconds. I have seen exactly that kind of situation in Oracle and Informix. Admittedly my example involves buffer cache but the situation is exactly the same in doing i/o in the SGA. The problem is that the system is doing tons and tons of reads (albeit logical ones) and the performance can be terrible. In cases like this, the answer is not more resources and faster hardware but better algorithms. In many, many cases one index exceeded all the resources and tuning by an order of magnitude.&lt;BR /&gt;&lt;BR /&gt;You and your DBA's really need to get a handle on where the bottlenecks are and attack the problem in the order of the biggest bottlenecks.&lt;BR /&gt;&lt;BR /&gt;I'll leave you with one other whackball thought. Convince your management to do development and test on an intentionally resource limited box with less than warp-speed hardware. When the algoritms are good enough to work well in that environment then they almost always scale up very well in production environments. The fact that this may greatly annoy your developers is an added bonus.&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Nov 2005 20:48:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662778#M797468</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-05T20:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle and memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662779#M797469</link>
      <description>Always good to have a proofreader.&lt;BR /&gt;&lt;BR /&gt;Thanks A. Clay.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 06 Nov 2005 02:38:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-memory/m-p/3662779#M797469</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-06T02:38:37Z</dc:date>
    </item>
  </channel>
</rss>

