To limit Cpu consumption [message #420389] |
Fri, 28 August 2009 16:27 |
dasuwal@gmail.com
Messages: 20 Registered: June 2009
|
Junior Member |
|
|
Hi Forum
I have a application which run with 12 threads (can) and put a lot of load on database (Oracle 10.2.0.4, Solaris 9). The cpu consumtions hit 95% during peak times.
I can limit the CPU time by CPU_per_session, but
Is there anyhow I can limit the cpu utilization of oracle sessions to 30%.
Thanks in advance.
|
|
|
|
|
|
Re: To limit Cpu consumption [message #421247 is a reply to message #420447] |
Sun, 06 September 2009 21:32 |
trantuananh24hg
Messages: 744 Registered: January 2007 Location: Ha Noi, Viet Nam
|
Senior Member |
|
|
dasuwal@gmail.com wrote on Sun, 30 August 2009 08:28 |
I need to limit the CPU consumption of certain application to 30 %, otherwise it choke the cpu with consumption of resources.
If Resource manager comes into play when CPU reaches 100 %, then what is fun of having resource manager. Doesnt that nullify the concept of managing resources.
Thanks for your advice.
|
As my opinion, it is not necessary to limit CPU resource at OS level. Of course, I can use Zone in Solaris to limit CPU, I/O,.. resource, but I do not want.
Imagine, you have got 14 concurrent sessions doing DML at table(s) level, you'll got more contentions than you want: CPU, I/O, queuing,.. If you limit CPU ratio per sessions by both of Resource_Manager level and OS level, you'll achieve your purpose, but Waiting and Queuing will increase more and more, the Wait level you will get at Perfstat & AWR show you incredibility.
Tuning at SQL or PL/SQL level is always the best method.
I believe, Zoning at Solaris have been a best way to decrease Oracle license or if you've got App and DB at one server.
|
|
|