Can I control how often the scheduler wakes up?

We're experimenting with parallelizing long running jobs by breaking them up into smaller mutually exclusive jobs. The majority of the small jobs run in a subsecond timeframe. When I send these jobs to the job queue via dbms_job, I get respectable throughput -- along the lines of hundreds per second. When I converted this to run with dbms_scheduler, the throughput is horrible. It will run 12 jobs in subsecond timeframe but then not run the next set for 5 seconds (run 12, 5 seconds later run 12 more, etc.) even though there are many jobs queued up to run (hundreds). I seem to remember a way to govern how long the job queue processor "sleeps" in the dbms_job scenario although I can't seem to find it in the 10g documentation (going to check the 9i documentation next). Is there a way to configure the job scheduler similarly as to how long it should sleep after it runs a set of jobs?

What version are you running?
There are 2 reasons why this is happening:
1)
To is designed to run jobs in max throughput, i.e it will throttle jobs to let the ones
that are running finish quicker. So it is a little conservative in scheduling jobs in parallel.
2) Scheduler works in conjunction with resource manager. Resource manager
throttles resource groups. If you have don't have resource manager running you will
effectively have a single consumer group. This also limits the number of jobs you can run in parallel.
To run many jobs in parallel you need to make a resource plan with many resource groups.
Example:
The following is an example how you can get 80 slaves to run (assuming cpu_count = 2)
alter system set resource_manager_plan = '';
grant create job to scott;
Rem Drop objects if they exist
connect scott/tiger
BEGIN
   for i in 0..19 loop
   for j in 0..3 loop       /* 2 + cpu_count jobs per class */
   begin
   DBMS_SCHEDULER.DROP_JOB(
      JOB_NAME => 'MANY_ACTIVE_JOBS_'||i||'_'||j);
   exception when others then null;
   end;
   end loop;
   end loop;
END;
connect / as sysdba
BEGIN
   for i in 0..19 loop
   DBMS_SCHEDULER.DROP_JOB_CLASS(
      JOB_CLASS_NAME => 'MANY_ACTIVE_JOBS_CLASS_'||i);
   end loop;
END;
BEGIN
   DBMS_RESOURCE_MANAGER.CLEAR_PENDING_AREA();
   DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
   DBMS_RESOURCE_MANAGER.DELETE_PLAN_CASCADE ('MANY_JOBS');
   DBMS_RESOURCE_MANAGER.VALIDATE_PENDING_AREA();
   DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA();
END;
begin
   DBMS_RESOURCE_MANAGER.CLEAR_PENDING_AREA();
   DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
  for i in 0..19 loop
  begin
    DBMS_RESOURCE_MANAGER.DELETE_CONSUMER_GROUP(
     CONSUMER_GROUP=>'many_active_jobs_group_'||i);
   exception when others then null;
  end;
  end loop;
  DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA;
end;
commit;
Rem --- END DROP OBJECTS
Rem -- CREATE OBJECTS
begin
   DBMS_RESOURCE_MANAGER.CLEAR_PENDING_AREA();
   DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
  for i in 0..19 loop
  begin
    DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(
     CONSUMER_GROUP=>'many_active_jobs_group_'||i, comment=>'consumer group for job scheduling many active jobs');
   exception when others then null;
  end;
  end loop;
  DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA;
end;
commit;
BEGIN
   DBMS_RESOURCE_MANAGER.CLEAR_PENDING_AREA();
   DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
   DBMS_RESOURCE_MANAGER.CREATE_PLAN
      ('MANY_JOBS', 'PLAN TO SUPPORT MANY ACTIVE JOBS');
   for i in 0..19 loop
   DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(
      PLAN => 'MANY_JOBS',
      GROUP_OR_SUBPLAN => 'many_active_jobs_group_' || i,
      COMMENT=>'none',
      CPU_P1 => 5
   end loop;
   DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE(
      PLAN => 'MANY_JOBS',
      GROUP_OR_SUBPLAN => 'OTHER_GROUPS',
      CPU_P1 => 0,
      CPU_P2 => 100,
      COMMENT=>'Required'
   DBMS_RESOURCE_MANAGER.VALIDATE_PENDING_AREA();
   DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA();
END;
BEGIN
   for i in 0..19 loop
   DBMS_SCHEDULER.CREATE_JOB_CLASS(
      JOB_CLASS_NAME => 'MANY_ACTIVE_JOBS_CLASS_'||i,
      LOGGING_LEVEL => DBMS_SCHEDULER.LOGGING_FULL,
      LOG_HISTORY => 5,
      RESOURCE_CONSUMER_GROUP => 'MANY_ACTIVE_JOBS_GROUP_'||i
  end loop;
END;
BEGIN
  for i in 0..19 loop
  DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP(
      'SCOTT','MANY_ACTIVE_JOBS_GROUP_'||i, TRUE);
  end loop;
END;
alter system set resource_manager_plan = 'MANY_JOBS';
connect scott/tiger
create or replace procedure call_fib(n number) is
i number;
begin
    if n = 1 then null; return; end if;
    if n = 2 then null; return; end if;
    if n = 20 then select 0 into i from dual; end if;
    call_fib(n-1);
    call_fib(n-2);
end;
show errors procedure call_fib;
BEGIN
   for i in 0..19 loop
   for j in 0..3 loop
   DBMS_SCHEDULER.CREATE_JOB(JOB_NAME => 'MANY_ACTIVE_JOBS_' || i || '_'||j,
      JOB_TYPE=>'PLSQL_BLOCK', JOB_ACTION=>'call_fib(23);',
      JOB_CLASS=>'MANY_ACTIVE_JOBS_CLASS_'||i,
      REPEAT_INTERVAL=>'FREQ=SECONDLY',
      ENABLED=>true);
  end loop;
  end loop;
END;
/

Similar Messages

  • How Does the scheduler works with ODI engine

    Hi All,
    I am new to the ODI and I was going through the documents over the web regarding the scheduling.
    Can anyone please let me know how does the Scheduler in ODI is coupled with the ODI engine.
    How does the internal scheduler works and how does the external one works. What are the processes the it calls while invoking the scheduler.
    Your help will be highly appreciated.
    Thanks,
    Sumit

    Scheduling in ODI is controlled by a special type of ODI agent, strangley called the ODI scheduling agent. This agent is installed as a service and as well as being responsible for all tasks associated with a normal agent is also responsible for managing ODI jobs based on any scheduling information associated with an ODI scenario. All scheduling information is stored in the ODI repository and the scheduler agent reads from this to determine which jobs/scenarios need to be executed and when.

  • Controlling how often my Q10 syncs with my Gmail account

    I cannot seem to control how often my Q10 syncs with my Gmail account. I have adjusted the settings for Gmail, Calendar, and Contacts several times, but it seems to pull the emails frequently (within an hour) regardless of the setting. I want to control the syncing manually. What am I missing? The phone is brand new and unlocked, running on AT&T, and this happens regardless of whether I am using WiFi or not.
    Thanks!
    Solved!
    Go to Solution.

    Hi and Welcome to the Community!
    A few possible variables...
    1) What do you have set for "Use Push if Available"
    2) How exactly is GMail integrated? EAS? IMAP? POP?
    If the answer to item 1 is yes AND you have GMail integrated as IMAP, then the time interval setting is ignored. If integrated as EAS, it may also be ignored as well as the "Use Push..." setting might also be ignored. If integrated as POP, then there is no Push, so your time interval settings would be utilized.
    So, depending on the combination of factors, it may or may not be doing exactly now what it should be.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT1476 How often the charging cycle to be done before the replacement of the battey. Likewise, is it ok to use the iphone while charging such as playing and watching movies. Please give me a reliable answer because this is my first time to use iphone.

    Is it ok to use iphone while charging? Such as playing and wathing videos, or performing internet? How often the charging cycle to be done before the replacement of the battery? Can u please give me reliable answer because this is my first time to use iphone. I've wondering about the battery, since its built-in i wanted to care about the battery.

    Roelt wrote:
    Is it ok to use iphone while charging? Such as playing and wathing videos, or performing internet? ...
    Yes.
    How often the charging cycle to be done before the replacement of the battery?
    Read this:
    http://www.apple.com/batteries/iphone.html

  • How often the backing  of itouch

    I have been putting some new apps 2 my Itouch but now its says Backing up and its taking too long how often the system have to make that??

    clcnaz wrote:
    Maybe you are not at liberty to say, or know
    This is a user-to-user forum. I don't work for Apple. There are occasional Apple employees who post here. I believe they are identified by a purple apple (or maybe that's the mods and the employees are the silver apple....)
    but has anyone heard officially if Apple is looking into or taking the nurmerous ipod touch issues serious? My touch worked perfectly fine before the 2.2, i have gen 1 and I am really disappointed.
    Don't know what to tell you. I have both a 1st gen and 2nd gen Touch running 2.2 and working perfectly. I'm especially excited about the ability to download podcasts directly. I have no problems with WiFi.
    but not if this is how they run customer support, genius bar and others all act like they dont know a darn thing and i find that impossible.
    As I mentioned above this isn't customer support, it's a user-to-user forum. The contact information for customer and technical support can be found by using the link at the bottom right of every page labeled "Contact Us".
    I understand if they are working on it and arent ready to state a fix, but come on at least acknowledge we ALL arent crazy or thinking its our internet provider, router or something else.....
    Given the number of variables involved (ISP, router, thickness of walls, etc), it may take some time to isolate problems. Since not everyone who is using 2.2 is having problems, it's obviously not a complete failure of the software.
    Best of luck.

  • SPM 2.1 Scheduling Option - Daily. How can I control when during the day?

    Hi All,
    I understand that when you enable the "scheduling" option in the report, the report runs in the background and this caches the data to table opmdm_precalc_a.
    You can set scheduling to daily or weekly runs. The weekly load can be set in the "Application Properties" menu e.g. to Sunday.
    If I chose "daily", what time is it run then? The same time as the alert in "Application Properties"?
    I've had a quick look at OPM* and RSXA* tables but couldnt see anything obvious as a clue.
    Many thanks for any help
    Neil

    Hi Neil,
    Yes, you are right.  The time of execution is the same as the one for alerts.
    Regards,
    Rohit

  • How can I see how often and where an image is used in the site?

    Just realized the post appeared twice as at first sending I
    got an error page (contains no data...).
    So, please do all answer to the other post, so that all
    replies get collected at one post only.
    Hello,
    please excuse my maybe dumb question but converting from
    GoLive I am still trying to find several practical effective
    workflow features in DW ...
    1. where in the sitewindow/assets or files panel can I see an
    indication at each image if and how often it is used in a site?
    2. and where can I see/check on which pages it is used?
    Thanks in advance for guiding me there ...
    bye,
    Beate

    > How do DW users know how often and where an image is
    used on the site
    > then?
    I'm not sure what the benefit is of knowing how often an
    image is used, but
    a search for the image by filename would do the trick.
    And just so you'll know, this is a peer forum, not an
    official communication
    vehicle to Adobe. We are all just users here, not Adobe
    employees.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "beatrice" <[email protected]> wrote in
    message
    news:[email protected]...
    > OK. I sent the below feature request.
    > How do DW users know how often and where an image is
    used on the site
    > then?
    > always doing a find/search?
    > in GoLive there was an simple window where all the files
    a page consisted
    > of
    > were listed plus all the files that were pointing to
    that page. such,
    > without
    > having to open a page links and image and componentes
    etc. could be
    > changed via
    > point&shoot.
    >
    > Couldn't you all think of this a being great and helpful
    and making site
    > management easy? Then send in a feature request as well,
    please.
    >
    > ...............
    > How can one know by the assets or files list if an image
    is used at all on
    > the
    > site?
    > and how many times? and on which pages?
    > This is very useful to know especially in larger sites.
    > e.g. an image should get changed on one page, now it
    would be very good to
    > see
    > if when it was used on other pages as well if it would
    make still sense
    > there
    > when changed.
    > as DW can update files (when e.g. an image name gets
    changed) there is a
    > way
    > this is already recorded. why not take this records and
    send this back
    > into a
    > list/column in the files panel to indicated that the
    image is used and
    > how
    > many times.
    > plus to have another window that can display all the
    pages the image is
    > used
    > in.
    > so one could click through all those pages and open them
    to check the
    > image
    > there.
    > in GoLive that feature was called 'In and Out links' and
    one could see a
    > page
    > in the middle and left and right from it many
    branches/lines at which ends
    > the
    > filenames were visible used in that page.
    > so one e.g. could also point and shoot from this list
    and change a file or
    > image or component simply by point and shooting to the
    files panel without
    > having to open the pages.
    > These features were so practical for an effective daily
    workflow that I
    > don't
    > understand why they haven't been put into cool DW yet.
    Please, please do
    > so in
    > the next release. I can test it thoroughly if you need
    testers for it.
    > bye,
    > beate
    >

  • How can I control how many times an individual photo is shown?

    How can I control the frequency of each photo on apple tv?

    Welcome to the Apple Community.
    Photos in slideshows will only be showed once until the slideshow repeats. If you want it to show more than once you will need to duplicate it.
    Photos in screensavers show randomly.

  • When/how do the scheduled packages switch status from 'scheduled' to 'ready' in the package Scheduler Status?

    Hi,
    I've scheduled FX Restatement packages to run each day in two different versions (6 times a day starting at 0615) for a year or so. However when I check out the 'View Package Status' the jobs I set up in the first version doesn't run when they are supposed to. I checked out the 'Package Scheduler Status' and I found that the jobs that DIDN'T run was stuck in a status called 'scheduled' while the jobs running had status 'ready'.
    So the question is how can I make sure all the jobs are running? Do I have to or can I do something about this myself? If I try to set up a package in two different versions, can the fact that I set them both to run at 0615 generate a conflict resulting in just one of them running?
    Hope someone has answers to these questions, would be so great to get this out of the way. Thanks!
    K

    Hi Kristoffer,
    remember to click on enable schedule when you schedule a package.
    To know if a scheduled package is ok you can see first if present in the tblschedule of your appset and also if present in the windows task schedulerif with status "ready".
    After you just have to check the view status if you found the package execution completed you're sure it's running. " version at the same time can cause issues also with different packages better to schedule with a sufficient delay to be sure that the first has ended, in your case 1 package is ok.
    I would delete the 2 packages from bpc, checking also the windows scheduler to be sure that no packages are running and rebuild one from scratch setting repeat every 4 hours and checking "enable schedule".
    Regards
         Roberto

  • Can I see how long the longest entry has been in the sticky table ?

    Hi,
    I have a customer who has a possible issue with the sticky inactivity timeout on the CSS. At the moment we are using no timeout, just relying on the CSS to purge the entries.
    However, is it possible to see how long the longest entry has been in the sticky table. I can see the 'elapsed time' with the 'show sticky' command but this only shows 100 entries per time and not in time order ?
    Thanks in advance for any help

    Michael,
    You can use the command "show sticky-table" with L3 or L4 options, depending on what you have configured, then add ip addressing to the command, to focus down to where the oldest sticky entries are likely to be, but theres no other way. If your problem is having too many entries, configure a sticky timeout, as the default of 0 will keep then forever, or until overwritten due to the table being full. If the problem is sticky entries timing out too early, you can use the timeout parameter to increase their life, but the sticky table is limited to 32k entries.
    Peter

  • Can't find how make the menu bar on Safari 6 larger so I can actually see it on my new 27" display.  Help!

    I have new 27" Thunderboldt display with my new 15" retina MacBook Pro.  On my last 27" display, I could see the menu bar within Safari and the apple menu bar on the main screen.  Now the text is too small and I can't seem to find where to make it larger in my Safri preferences and in my Apple settings.  Can someone help, especially with the Safari menu....my eyes are sore.

    Check your settings in System Preferences > Displays > Display > Scaled
    Try a different resolution.
    If nothing there helps, try Sysem Preferences > Accessibillity

  • IPod Shuffle 3rd Gen fully charged, blinks orange five times and I can't control it with the remote (I used 3 different remotes), volume is low and is iPod is unresponsive... any ideas on how to fix it?

    The iPod was working fine, then after about 45 minutes of use i looked as if battery drained.
    I charged it fully again (until green light) and then turned it on, green light and then orange light blinks five times...
    I can't play /pause, or turn volume up or down from the remote... tried with original Apple earphones, and two Bose MIE2i (original and sports models)...
    Any ideas of what can be wrong? or how can I fix it?
    Already tried restoring it to factory settings.... it didn't solved the problem...

    Hey there PakoArreola!
    I have a website here for you that can help you troubleshoot this issue with your iPod shuffle:
    Apple - Support - iPod - iPod shuffle (3rd generation) Troubleshooting
    http://www.apple.com/support/ipod/five_rs/shuffle3gen/
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • How can I control VCXO or the NCO?

    hi,
    I am working on a HDTV receiver project. I did some PLL loop code in the FPGA to find the carrier frequency of the input signal. Then I want to use the control signal out of the FPGA to control the  VCXO. Can I do that? Is there a sample code for that? 
    The other choice is use this control voltage to control the NCO on ADC.  Can I do that? Is there a sample code for that?
    Guang CHEN
    University of Illinois at Urbana Champaign
    Message Edited by yakgg on 09-09-2007 01:11 PM

    Hi
    The module’s VCXO does not have a method of control from the FPGA.  The calibration data when running the module on internal calibration data is configured outside the access that is available when programming the FPGA.  The module’s PLL circuit is not accessible from the FPGA as well.
    For configuring the NCO frequency on the fly, I believe it is technically possible, but not easy.  There is no example at this time nor has it been attempted as far as I know.  I say this as the control of the NCO frequency passes through the ni5640R Template Config ADC (FPGA).vi in the Configuration Timed Loop in the LV FPGA VI.  The hard part is adding all the logic and required factors that is implemented in the ni5640R ADC Configure NCO.vi that runs on the Host and creates the actual data input that is written to the FPGA and on to the ni5640R Template Config ADC (FPGA).vi.
    Jerry

  • DAQ Assistant: How Can I Control this at the lowest Level?

    DAQ Assistant:
    I have the PCI slot version of this which I use to generate specific signatures. However I would like to get down to the very low level of this block to see what makes it tick if only to add some other features such as have it dynamically change high and low times after "N" number of pluses/bursts.
    At the current state I can't seem to get any further than the GUI that I work with right now. I can give you a VI upon request however this VI is included with labview from what I understand I have version 8.2. If anyone wants a copy of the vi which contains the DAQ Assistant block I will be more than happy to include.
    DAQ Assistant Location: Right click on the block diagram of a VI --> Measurement I/O --> NI-DAQmx --> DAQ Assist (This is an icon in itself)
    I see the read,write nodes however I have played and tried to see what they do but I have had no such luck. If anyone can point me in the right direction I would be grateful.
    Thank You.
    Solved!
    Go to Solution.

    You've got a couple of misconceptions about the DAQ Assistant. First, there is no such thing as a pci version. There are some slight differences between versions of the DAQmx driver. Second, the DAQ Assistant is a code generator. When you start it up, it will create custom code for the type of task you want (digital i/o, analaog i/o, etc.) so the VI you eventually have on the block diagram is not included in any version of LabVIEW.
    Once you have configured the assistant, you can right click on it and select 'Open Front Panel' this will convert the assistant task to a normal subVI that you can opne and view the block diagram. You can also right click and select 'Create DAQmx Code'. This will place the low level DAQmx functions on your block diagram. You could also skip the whole assistant and just start with the low level DAQmx functions in the first place. There is help associated with each and you have all of the shipping examples to look at. There is also the Getting Started with NI-DAQmx page.

  • How can i add the "Most Visited" tab back to my bookmarks? I deleted it by accident and i want to put it back but i can't find how in the bookmarks menu/toolbar settings.

    I just want to add the "Most visited" tab back into my bookmarks toolbar but i can't figure out how.

    Si vous avez utilisé la commande Save As Template depuis Pages, il y a forcément un dossier
    iWork > Pages
    contenant Templates > My Templates
    comme il y a un dossier
    iWork > Numbers
    contenant Templates > My Templates
    Depuis le Finder, tapez cmd + f
    puis configurez la recherche comme sur cette recopie d'écran.
    puis lancez la recherche.
    Ainsi, vous allez trouver vos modèles personnalisés dans leur dossier.
    Chez moi, il y en a une kyrielle en dehors des dossiers standards parce que je renomme wxcvb.template quasiment tous mes documents Pages et wxcvb.nmbtemplate à peu près tous mes documents Numbers.
    Ainsi, quand je travaille sur un document, je ne suis pas ralenti par Autosave.
    Désolé mais je ne répondrai plus avant demain.
    Pour moi il est temps de dormir.
    Yvan KOENIG (VALLAURIS, France)  mercredi 23 janvier 2011 22:39:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

Maybe you are looking for