CPU used under Resource Manager.

Hi,
in 10g R2, I have created a Plan for DBMS resource manager :
EXEC DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
EXEC DBMS_RESOURCE_MANAGER.CREATE_SIMPLE_PLAN(SIMPLE_PLAN => 'simple_plan1',CONSUMER_GROUP1 => 'mygroup1', GROUP1_CPU => 80,CONSUMER_GROUP2 => 'mygroup2', GROUP2_CPU => 20);
ALTER SYSTEM SET RESOURCE_MANAGER_PLAN ='simple_plan1';
EXEC DBMS_RESOURCE_MANAGER.SWITCH_CONSUMER_GROUP_FOR_USER ('SCOTT', 'MYGROUP2');
EXEC DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP ('SCOTT', 'MYGROUP2', TRUE);
EXEC DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA;
EXEC DBMS_RESOURCE_MANAGER.CLEAR_PENDING_AREA;Now SCOTT runs the following ( exemple from 24 Using the Database Resource Manager) :
DECLARE
m NUMBER;
BEGIN
FOR i IN 1..100000 LOOP
FOR j IN 1..100000 LOOP
* The following query does a cartesian product without
* a predicate and takes up significant CPU time.
select count(*) into m from v$sysstat, v$system_event;
END LOOP;
END LOOP;
END;
END;
/And CPU comsumption goes up to 100%. Why ? According to his consummer group shouldn't he just have 20% of CPU ?
Any explanation ?
Thank you.

Thanks to all.
Ok, we will run the same script by SYS to have CPU load to 100%. Then SCOTT will run that script. How much CPU will he have ? And where can I see it ?
And of course , SCOTT is just waiting :
SQL> SELECT se.sid sess_id, co.name consumer_group,
  2   se.state, se.consumed_cpu_time cpu_time, se.cpu_wait_time, se.queued_time
  3   FROM v$rsrc_session_info se, v$rsrc_consumer_group co
  4   WHERE se.current_consumer_group_id = co.id
  5  and sid=137;
   SESS_ID CONSUMER_GROUP                   STATE
  CPU_TIME CPU_WAIT_TIME QUEUED_TIME
       137 MYGROUP2                         WAITING FOR CPU
   3473688     130618354           0I created another user for MYGROUP1 and he runs the same script, now both are waiting :
SQL> SELECT se.sid sess_id, co.name consumer_group,
  2   se.state FROM v$rsrc_session_info se, v$rsrc_consumer_group co
  3   WHERE se.current_consumer_group_id = co.id
  4  and sid=108;
   SESS_ID CONSUMER_GROUP                   STATE
       108 MYGROUP1                         WAITING FOR CPU
SQL> SELECT se.sid sess_id, co.name consumer_group,
  2   se.state FROM v$rsrc_session_info se, v$rsrc_consumer_group co
  3   WHERE se.current_consumer_group_id = co.id
  4  and sid=137;
   SESS_ID CONSUMER_GROUP                   STATE
       137 MYGROUP2                         WAITING FOR CPU

Similar Messages

  • Over of using Database Resource Manager

    Hi All,
    I am currently, doing a research on Database Resource Manager for implementing it in one of the Warehouse project database. Before, implementing it I would like to know few things. My Question is:
    Q. Does using Database Resource Manager cause any overhead? Any extra background process? any extra CPU Usage overhead? Any resource cost of using Database Resource Manager? Does it have any impact on resources and does it impact performance of the database?

    Hi Madrid,
    Thank you for your reply. Currently, we are looking into to implement Resource Manager in a dataware house environment because there are some ad-hoc users who execute really bad queries which puts lot of load on the database server which in turn slows down the performance. And there are few other reasons too. I not the primary for that environment though. This Resource Manager came up we thought that it might help us in controlling the ad-hoc users bad queries and also the environment.
    I have one more question in regards to resource manager. I have written a shell script which generates a report for stats of a resource plan from V$RSRC_CONSUMER_GROUP - which has stats data. But my concern is it stores historical stats too. For example, I have implemented resource manager and ran some queries and generated report and terminated all the sessions.
    Next day when I again run some queries and generate a report it gives stats combined with previous days stats. Is there any solution for this? So, that I can generate a report for stats at a point of time. For OEM I can reset the stats and get most current stats but this is not the case with the view I mentioned above. Please let me know if there is any other alternative for this. Hope you got my question.

  • Apps use of Resource Manager

    We have a client that would like to limit system resources utilized within the Apps (11.5.10.2) so that a group of users does not run a request that brings the system to a standstill. I know that the individual request should be setup to minimize this possibility, but I'm wondering if the database Resource Manager can be utilized to limit resource for users in Apps?
    Thanks,
    Brian

    You are supposed to be able to use the Database Resource Manager Integration for this, page 69 of Ahmed Alomari's Open World talk. When configured, set the FND: Resource Consumer Group profile option for certain responsibilities or users.
    Database Resource Manager Integration
    • Define Resource Consumer Groups and associate specific concurrent programs with a resource group.
    • Allows an administrator to constrain the amount of CPU resources used by a concurrent program.
    • Resource Groups can also be defined for online users and concurrent requests using the profile:
    • "FND: Resource Consumer Group".
    • Useful for Discoverer users or ad-hoc reporting users.
    Tuning Oracle E-Business Suite
    http://www28.cplan.com/cbo_export/PS_S281393_281393_139-1_FIN_v1.pdf
    Session Abstract:
    This presentation offers tips and techniques on tuning all the layers of the Oracle E-Business Suite stack, including the suite's various tiers, namely, the data server and the middle-tier services, such as Oracle Forms, Oracle's concurrent managers, Apache JServ, Oracle Java virtual machine, and Oracle Discoverer. The presentation also covers applications-level-tuning solutions, such as Oracle Workflow, Oracle Order Management, and Oracle Payroll.
    Speakers: Ahmed Alomari, Oracle
    Username: cboracle
    Password: oraclec6

  • Syslogd cpu use and Update Manager

    Hello,
    Forgive me if I missed this elsewhere, however I'm experiencing syslogd using 50% to 190% cpu time on a dual processor v280R system. Is this normal behavior or am I missing a patch?
    Thanks,
    Matt

    Could you provide us with the output from prstat
    I could understand if you were getting this problem from a process that was related to updatemanager, but unless updatemanager was causing entries to be logged then I wouldn't expect this behaviour.
    Do you see the same behaviour when running smpatch (or other applications) ?

  • Hiding/Disabling the resources tab under project management.

    Hi,
    We need to hide/disable the resources tab in project management screen. We are not using project resource management module and also the Profile Option "PA: Licensed to use Project Resource Management" has been set to "No".
    Can someone suggest a solution for the same.
    Regards,
    Rakesh Menon

    I already got an response to the issue from Julia through Oracle Community...
    Below is the solution -
    For the Project Management Responsibility where you want your Resource Tab to be disabled:
    Go to a System Administrator responsibility - Security - Responsibility-Define.
    Look for your resposibility of Project Management.
    Under Menu Exclusion Tab add a line with Type Menu and name "Project Resource Sub Tab".
    Click Save button and then go to check in your responsibility if the Resources Tab is disabled. (it should be).

  • Oracle Profile Vs Oracle Resource Manager in Oracle 11g

    Hi Friends,
    Whats is the Avantages / Dis advantages of using Oracle Profile and Oracle Resource Manager to limit the oracle resources to oracle users in Oracle 11.2.0.1
    Regards,
    DB

    If you have a single database servicing multiple Services / Applications / Schemas (e.g. a typical database consolidation), you could use Profiles and Resource Manager to place limits on resource usage by Service / Application / Schema. That way, for example, a 32 CPU database server running a single database can still limit the number of cores for each Service / Application / Schema using the Resource Manager.
    Hemant K Chitale

  • Resource manager and images being rewritten in the project root

    Hi everybody,
    I began using the Resource Manager, and I created two folders, one with HTML files (topics), and another one with pictures present in those topics.
    As I transferred the topics to the HTML shared folder the pictures references remained the old ones, i.e. the ones inside the project folder, right?
    Therefore I began reassigning the pictures to the ones copied in the pictures shared folder, and here begins to be a little bit illogical and difficult.
    I deleted the pictures from the original project folder as I want to save the space and have, of course, the pictures only in the shared folder, however after I reassign the pictures to one of the topics, and I sync it, the pictures I deleted appear in the root folder of the project.
    I wanted to have the "common" pictures (they appear in 2 different projects) only in the shared folder (declared as pictures folder in Resource Manager) because if I do a modification of one picture, I would like to have this modification propagated in the second project, right?
    And also save some space, as it does not make any sense to me to have the same pictures in 2 places (double space consumed) when I can have them in only one folder.
    I would like to know how I can avoid this recopying of the picture files in my project folder, if possible.
    The procedure I used was:
    1. Found out which are the common topics for the 2 projects and copied them in the Resource Manager shared folder for HTML files.
    2. Found out which pictures were on those topics and copied them in the Resource Manger shared folder for pictures
    3. I included the shared topics into the project, and reassigned the pictures to the ones that are in the Resource Manager shared pictures folder
    4. I saved the topic, and did a sync in the Resource Manger
    Did I do something wrong here?
    Thank you.

    The repository has all the images you may want to use in any of your projects or elsewhere.
    Each time you link in a project, that image only is copied to the project, not the whole repository. If either copy changes, you are notified. You then have the choice of updating the out of date copy or breaking the link because for some reason you now want the difference.
    Your statement "I saw that if I use an external directory to the actual project where I have pictures, RoboHelp will copy those into the project's folder" is not correct. The Resource pod will show all the images available in the repository but only the ones in used in the project are copied locally.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Resource Management tab: Net Availability

    HI,
    xRPM: Under resource management: we can see the resources and their net availablity.
    Can anybody guide me: where these net availablity get stored..? (any table:where i can find the net availbility)
    our client want these data as a report on excel sheet or in BI reports.
    Thanks,
    Regards,
    Nitin Bhagat

    Hi Nitin,
    Actually the net availibility is not stored, it's calculated based on the total availibility and the staffed hours.
    Staffing data is in: DPR_BUPA_DIST
    BR
    Matthias

  • XRPM Resource Management issue

    Gurus,
    In xRPM under Resource Management Tab. I am not able to find any resources under resource view.TAble is empty.
    Although I have created Resource pool and assinged a resources to administrator.
    Please let me know if i am missing any settings
    Thanks in advance.

    Hello Riya,
    Here are the steps to assign the Resource Manager to a Resource Pool:
    1) Create a Resource Pool
    2) Add resources based on the selection criteria.
    3) Add a Resource (BP in employee Role) as Resource Manager to this Resource Pool.
    NOTE: this resource manager should be attached to your User.
    to see which User this Resource Manager is attached to, go to Portfolio Management -> Administration -> Resources
    find the resource with its Name or Resource ID (BP) and Display. you will see the linked user. If it is not linked to any user you can assign the user to this resource manager.
    4) when you login with this Resource Manager's User, and navigate to Resource Management -> Resources, you will see all the resources under the Resource Pool where this current user is Resource Manager.
    Hope this will help.
    Thanks and Regards,
    Piyusha

  • Resource Management and Solaris Zones Developer Guide

    Solaris Information Products ("Pubs") is creating a
    developer guide for resource management and Solaris Zones.
    The department is seeking input on content from application
    developers and ISVs.
    We plan to discuss the different categories of applications
    that can take advantage of Solaris resource management
    features, and provide implementation examples that discuss
    the particular RM features that can be used.
    Although running in a zone poses no differences to most
    applications, we will describe any possible limitations and
    offer appropriate workarounds. We will also provide
    information needed by the ISV, such as determining
    the appropriate system calls to use in a non-global zone.
    We plan to use case studies to document the zones material.
    We would like to know the sorts of topics that you would
    like to see covered. We want to be sure that we address
    your specific development concerns with regard to these
    features.
    Thank you for your comments and suggestions.

    Hi there, i'm using solaris resource management in a
    server with more thant 2thousand acounts.
    Created profiles for users, defaul, staff, root and
    services.Seeing the contents of your /etc/project file could be helpful.
    But while using rctladm to enable syslog'ing, I set up
    global flags of "deny" and "no-local-action" in almos
    everything.The flags on the right hand side of the rctladm(1M) output are read-only:
    they are telling you the characteristics of the resource control in question (what
    operations the system will allow the resource control to take).
    Now, many aplications don't work because they are
    denied enough process.max-stack-size and
    process.max-file-descriptor for them to work.
    Applications such has prstat.If prstat(1) is failing due to the process.max-file-descriptor control value, that's
    probably a bug. prstat(1) is more likely bumping into the limit to assess how many file
    descriptors are available, and then carrying on--you're just seeing a log message since
    prstat(1) tested the file descriptor limit, and you've enabled syslog for that control. Please
    post the prstat(1) output, and we'll figure out if something's breaking.
    I don't find a way to disable the global flags. You can't. I would disable the syslog action on the process.max-stack-size control first;
    there is an outstanding bug on this control, in that it will report a false triggering event--
    no actual effect to the process. (If you send me some mail, I will add you as a call record
    on the bug.)
    Can anyone tell me:
    how to disable global flags?
    how to disable and enable solaris resource management
    all together?You could raise all of the control values, but the resource control facility (like the resource
    limit facility it superseded) is always active. Let's figure out if you're hitting the bug I mentioned,
    and then figure out how to proceed.
    - Stephen
    Stephen Hahn, PhD Solaris Kernel Development, Sun Microsystems
    [email protected]

  • Resource Manager Understanding

    Hi DBA,
    While going through the documents of Oracle Resource Manager , I have a Resource Plan execution can be based on CPU or Forcefully. Means Once the CPU utilization reaches 100% only then resource plan comes into the picture or we can forced it even it is not 100%.
    My doubt is if I allocate a 100% CPU to resource manager plan by creating the consumer group and we are forcing that resource plan,
    If some other application is running on the servers what will be impact on that application, does that application get the CPU.What will the impact on internal system processing (Kernels). How the CPU is going to be distributed ?
    I understand that 100% CPU utilization on a server is different thing and that causes the performance issue.
    Regards
    Sourabh Gupta

    Hi,
    During the month end activity , In our Project CPU and IO utilization increases( Almost Doubled) , since some reports required by business fired.
    We want to implement resource plan for that users.
    Suppose I create two Consumer group Full_MONTH and Month_end and create a plan.
    If I assign 80% CPU to full_month consumer and 20% to Month_end Consumer and forcing this plan to run as mentioned yesterday .
    So I want to understand if I implement above plan in the Resource Manager , What will be the impact on Other application and Server Processing.
    Since I forcing to Give 100% CPU to my resource manager plan.
    Thanks and Regards
    Sourabh Gupta

  • RH10: Snippets from resource manager show in search results

    I'm new to using the resource manager, so there's a good chance I've done something stupid here... but...
    I have 2 projects (I am the only tech writer, so running off one PC, no version control). I want to share snippets between the projects, so I'm using the resource manager to keep them synched up. Both are compiled as CHMs.
    When I search, I'm getting search results that appear to be the snippets in the results. When you double click them, they don't open.
    Here's a screenshot of what I'm seeing.
    Has anyone else seen this before? I'm using RH10.

    I have set up a test and cannot get snippets to show in search results.
    I am a little puzzled by the fact that you say they appear to be snippets, thus casting some doubt.
    Do you have snippets with those names and do the snippets contain the term being searched.
    Do you have topics with those names?
    Does it happen in a new project?
    Try creating a new SSL, not a duplicate.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Solaris Resource Management.

    Hi there, i'm using solaris resource management in a server with more thant 2thousand acounts.
    Created profiles for users, defaul, staff, root and services.
    But while using rctladm to enable syslog'ing, I set up global flags of "deny" and "no-local-action" in almos everything.
    Now, many aplications don't work because they are denied enough process.max-stack-size and process.max-file-descriptor for them to work.
    Aplications such has prstat.
    I have warnings like this all over dmesg:
    Sep 21 16:01:13 thor genunix: [ID 883052 kern.notice] basic rctl process.max-file-descriptor (value 256) exceeded by process 15080
    Sep 21 16:01:13 thor genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8388608) exceeded by process 15081
    Sep 21 16:01:13 thor genunix: [ID 883052 kern.notice] basic rctl process.max-file-descriptor (value 256) exceeded by process 15081
    Sep 21 16:01:13 thor genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8388608) exceeded by process 15082
    Sep 21 16:01:13 thor genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8388608) exceeded by process 15083
    Sep 21 16:01:13 thor genunix: [ID 883052 kern.notice] basic rctl process.max-file-descriptor (value 256) exceeded by process 15083
    Sep 21 16:01:14 thor genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8388608) exceeded by process 15084
    Sep 21 16:01:14 thor genunix: [ID 883052 kern.notice] basic rctl process.max-file-descriptor (value 256) exceeded by process 15084
    Sep 21 16:01:17 thor genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8388608) exceeded by process 15085
    Sep 21 16:01:17 thor genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8388608) exceeded by process 15088
    Sep 21 16:01:17 thor genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8388608) exceeded by process 15089
    Sep 21 16:01:17 thor genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8388608) exceeded by process 15090
    Sep 21 16:01:17 thor genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8388608) exceeded by process 15091
    Sep 21 16:01:24 thor genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8388608) exceeded by process 15092
    Sep 21 16:01:24 thor genunix: [ID 883052 kern.notice] basic rctl process.max-file-descriptor (value 256) exceeded by process 15092
    I don't find a way to disable the global flags.
    Can anyone tell me:
    how to disable global flags?
    how to disable and enable solaris resource management all together?

    Hi there, i'm using solaris resource management in a
    server with more thant 2thousand acounts.
    Created profiles for users, defaul, staff, root and
    services.Seeing the contents of your /etc/project file could be helpful.
    But while using rctladm to enable syslog'ing, I set up
    global flags of "deny" and "no-local-action" in almos
    everything.The flags on the right hand side of the rctladm(1M) output are read-only:
    they are telling you the characteristics of the resource control in question (what
    operations the system will allow the resource control to take).
    Now, many aplications don't work because they are
    denied enough process.max-stack-size and
    process.max-file-descriptor for them to work.
    Applications such has prstat.If prstat(1) is failing due to the process.max-file-descriptor control value, that's
    probably a bug. prstat(1) is more likely bumping into the limit to assess how many file
    descriptors are available, and then carrying on--you're just seeing a log message since
    prstat(1) tested the file descriptor limit, and you've enabled syslog for that control. Please
    post the prstat(1) output, and we'll figure out if something's breaking.
    I don't find a way to disable the global flags. You can't. I would disable the syslog action on the process.max-stack-size control first;
    there is an outstanding bug on this control, in that it will report a false triggering event--
    no actual effect to the process. (If you send me some mail, I will add you as a call record
    on the bug.)
    Can anyone tell me:
    how to disable global flags?
    how to disable and enable solaris resource management
    all together?You could raise all of the control values, but the resource control facility (like the resource
    limit facility it superseded) is always active. Let's figure out if you're hitting the bug I mentioned,
    and then figure out how to proceed.
    - Stephen
    Stephen Hahn, PhD Solaris Kernel Development, Sun Microsystems
    [email protected]

  • Preparing to use resource manager

    Hi, we would like to use resource manager to help manage resources on the database server. We currently do not have grid control running in this environment which is 10g rac on unix.
    I was looking for suggestions on the best method to understand current resource usage by session on the database server. I have looked at awr reports but I do not see the data I would need to decide how I would configure resource groups and what limits I should put on them.
    Is there a best practice method for collecting data to help in designing an affective resource manager configuration? Maybe some collection scripts?
    I know this is probably vague.
    Thanks.

    Two quick ways to do this. In finder pick your Macbooks Icon for the drive. Then right click and choose get info. This will bring up a window and you will see the capacity , how much is available, and how much is used.
    The other way is to click the Apple in the upper left corner and choose *About This Mac* A window will open. Now look under Hardware and choose Serial-ATA You will then see something like this as you scroll the info window.
    Capacity: 297.77 GB
    Available: 179.58 GB
    Writable: Yes
    File System: Journaled HFS+

  • How to configure ex90 for use with polycom resource manager GAB

    My customer has a Polycom infrastructure, including using Resource Manager for the GAB server. I also have several Cisco endpoints deployed (EX90 and C40) and I need to get these units configured to use the GAB. Polycom documentation sucks and only says:
    1. At the endpoint, enter the information required for directory set up including the Polycom Global Address Book/RealPresence Resource Manager system IP address and the path.
    For example, http://<RPRM_IP_ADDRESS>/TMS/Public/external/phonebook/PhoneBookService.asmx.
    To do this on Cisco endpoints, go to System Configuration> Phone Book Server.
    2. Wait for the connections to take effect
    When I go to the EX90 phone book server setup page, I only have ID, Type and URL fields. The type field has a drop down that only has Cisco options available (VCS, TMS, Callway and CUCM)
    No matter what combination I use, I haven't been able to get the EX90 to pickup the Polycom directory.
    Any suggestions? Thanks

    What happens when you try that URL (http://<RPRM_IP_ADDRESS>/TMS/Public/external/phonebook/PhoneBookService.asmx) from a Web Browser - do you see anything, or get an error?
    You'll need to make sure that's accessible first before trying to configure your endpoints to use it.

Maybe you are looking for