- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle and memory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2005 10:42 PM
11-01-2005 10:42 PM
Q. Does not the philosophy the more memory for oracle the happier it will be still apply?
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2005 10:47 PM
11-01-2005 10:47 PM
Re: Oracle and memory
What are you settings for oracle SGA, shared memory-shmmax??
Also other kernel tunables??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2005 10:51 PM
11-01-2005 10:51 PM
SolutionAre you running 32 bit or 64 bit Oracle.
In general, without any known limits, Oracle will perform better with more memory.
If its a small database and performance is maxing out you gain nothing by adding memory.
However the last paragraph has never happened to anyone I know.
Assuming there is no plans long term to increase your machines workload, increasing certain parts of the Oracle SGA might provide some performance impact.
To analyze os performance:
http://www.hpux.ws/system.perf.sh
HP-UX only.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2005 10:52 PM
11-01-2005 10:52 PM
Re: Oracle and memory
I fully agree with your DBA.
See Metalink Note 1012046.1 to calculate the shared_pool_size requirements
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2005 11:24 PM
11-01-2005 11:24 PM
Re: Oracle and memory
from Oracle9i you have advisory utilities and you should use them to tune your memory usage on the server.
see attachment
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2005 11:56 PM
11-01-2005 11:56 PM
Re: Oracle and memory
See Metalink Note 62143.1 (Understanding and Tuning the Shared Pool) witch has the reference to Note 1012046.1...
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 01:16 AM
11-02-2005 01:16 AM
Re: Oracle and memory
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.
In general Oracle does like a lot of memory, but if the database is using 10G then it may be performing well.
As a DBA I do like it when the Unix admin "wants" the database to have lots of memory :)
Patti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 02:44 AM
11-02-2005 02:44 AM
Re: Oracle and memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 02:46 AM
11-02-2005 02:46 AM
Re: Oracle and memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 02:54 AM
11-02-2005 02:54 AM
Re: Oracle and memory
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)!
From my experience this is largely true and accurate.
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!
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?
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 03:03 AM
11-02-2005 03:03 AM
Re: Oracle and memory
also before you make any change you should take a few statspack reports (ask the DBA) along with OS monitoring.
Then apply the changes (usually one at a time), monitor again (OS + Oracle) and compare with the baseline.
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.
Your perfstats reports will help you (and DBA).
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 10:33 AM
11-03-2005 10:33 AM
Re: Oracle and memory
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.
GlancePlus can show you your peak and average memory usage, so it will allow you to see how much unused memory you really have.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2005 03:51 AM
11-04-2005 03:51 AM
Re: Oracle and memory
I have onlineJFS & GlancePlus.
The kernel params are as follows:
bufpages: 0
dbc_max_pct: 7
dbc_min_pct: 5
maxfiles: 4000
maxfiles_lim: 1024
nfile: 123000
nflocks: 2000
ninone: 34816
maxswapchunks: 8192
swapmem_on: 1
swchunks: 2048
vps_ceiling: 64
maxdsiz: 2415919104
maxdsiz_64bit: 2415919104
maxssiz: 401604608
maxsxiz_64bit: 1073741824
maxtsiz: 1073741824
maxtsiz_64bit: 1073741824
maxuprc: 3000
max_thread_proc: 4096
ntkthread: 7184
nproc: 4096
msgmap: 4098
msgmni: 4096
msgseg: 32767
msgtql: 4096
semmap: 4098
semmni: 4096
semmns: 16384
semmnu: 4092
semvmx: 32767
shmmax: 12884901888
shmmni: 1024
shmseg: 1024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2005 10:18 AM
11-04-2005 10:18 AM
Re: Oracle and memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2005 10:26 AM
11-04-2005 10:26 AM
Re: Oracle and memory
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 4096 0 4096 0% 0 - 1 /dev/vg00/swap2
dev 4096 0 4096 0% 0 - 1 /dev/vg00/swap3
dev 4096 0 4096 0% 0 - 1 /dev/vg00/swap4
reserve - 12915 -12915
memory 31561 16789 14772 53%
total 47945 29704 18241 62% - 0 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2005 02:42 AM
11-05-2005 02:42 AM
Re: Oracle and memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2005 02:49 AM
11-05-2005 02:49 AM
Re: Oracle and memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2005 05:36 AM
11-05-2005 05:36 AM
Re: Oracle and memory
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.
2) Powerful system you got, love working with big hardware.
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.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2005 12:48 PM
11-05-2005 12:48 PM
Re: Oracle and memory
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2005 06:38 PM
11-05-2005 06:38 PM
Re: Oracle and memory
Thanks A. Clay.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 08:49 AM
11-08-2005 08:49 AM
Re: Oracle and memory
Either way, it's a big win!
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 11:03 AM
11-08-2005 11:03 AM
Re: Oracle and memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 08:25 PM
11-08-2005 08:25 PM
Re: Oracle and memory
The MINIMUM Shared Pool is calculated by this formula:
select sum(sharable_mem) from v$db_object_cache; -- Sharable Objects
+
select sum(sharable_mem) from v$sqlarea where executions > 5; -- Sharable SQL
+
select sum(250 * users_opening) from v$sqlarea; -- Cursors
+
20-30% Overhead
= ...
Best Regards,
Eric Antunes