Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: controlling CPU usage through Oracle

RE: controlling CPU usage through Oracle

From: Cary Millsap <cary.millsap_at_hotsos.com>
Date: Wed, 28 Aug 2002 06:58:34 -0800
Message-ID: <F001.004C167B.20020828065834@fatcity.com>


Trying to accomplish it through the OS will do what you want on rare occasion, but on many other occasions, it will cause performance problems that will, for all outward appearances, seem to be deadlocks. The behavior will be random. There's lots of discussion about this on the list from a few months ago (check the archive).  

Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- Hotsos Clinic <http://www.hotsos.com/training/clinic> , Oct 1-3 San Francisco, Oct 15-17 Dallas, Dec 9-11 Honolulu - 2003 Hotsos Symposium <http://www.hotsos.com/events/symposium> on OracleR System Performance, Feb 9-12 Dallas - Next event: Miracle Database Forum <http://www.miracleas.dk> , Sep 20-22 Middlefart Denmark

-----Original Message-----
Sent: Wednesday, August 28, 2002 8:13 AM To: Multiple recipients of list ORACLE-L  

Raj,

    Thanks for your input.

>From what I understand with profiles,

the session will be terminated once a

threshold is reached.

    In this particular case, I cannot

terminate the session. I need to be able

to control the CPU usage of a session, without

ending it.

     If this cannot be done within Oracle, then

maybe it can be accomplished through the OS.  

        thanks.

                        ed

 

 

                 

To: Multiple <mailto:ORACLE-L_at_fatcity.com> recipients of list ORACLE-L

Sent: Tuesday, August 27, 2002 4:48 PM  

You could use profiles to control CPU usage as well, more info is in manuals.  

Raj


Rajendra Jamadagni MIS, ESPN Inc.

Rajendra dot Jamadagni at ESPN dot com

Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!

-----Original Message-----
Sent: Tuesday, August 27, 2002 4:18 PM
To: Multiple recipients of list ORACLE-L

Hi,

    I'm looking for a way to control CPU usage of

particular queries on a database.

    After exploring, and implementing ways of optimizing the code,

these queries can run anywhere from 45 seconds

to 2 minutes.

    This database is 1 of 5 on this box. So, although it's important

to build effective queries, it's also important in this

environment that these queries do not impact the other

4 databases.

    What I want to do is place a limit on CPU usage

without terminating the query. I've looked at profiles

with the "cpu_per_call" and "cpu_per_session" settings.

I have never used profiles, but from what I understand,

these will kill the session once they reach a threshold.

    I'm also looking at database resource management.

This may be more appropriate for this situation.

    Has anyone used this, and if so what are you

experiences ? Would you recommend it ?

    Would the only way to control CPU usage on this

box, be through the operating system ?  

I welcome any suggestions. I appreciate your time.  

The environment is Oracle 8.1.7.2, AIX 4.3.3.  

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Cary Millsap
  INET: cary.millsap_at_hotsos.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Aug 28 2002 - 09:58:34 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US