1 / 6

execution of a remote method

s. time. time. time. s,i. s,i. i. e. e. e. decomposed (no benefit for one module). asynchronous. synchronous. s. setup / set attributes. invoke a method. i. extract results. e. Scheduler - Decomposed Execution. execution of a remote method. available for other methods.

bwang
Download Presentation

execution of a remote method

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. s time time time s,i s,i i e e e decomposed (no benefit for one module) asynchronous synchronous s setup / set attributes invoke a method i extract results e Scheduler - Decomposed Execution execution of a remote method available for other methods CHAIMS

  2. i1 i3 a i1 c (>a+b) i4 e1 a d (<a+b) i2 e1 b i2 b time e4 e2 i3 e3 c e2 time i5 e e5 exploring parallelism based on dataflow dependencies, according to estimates or run-time scheduling e3 i4 d e4 i5 e e5 non-optimized, or handprogrammed invoke a method i extract results e Scheduling - Exploit Parallelism data dependencies execution of a method CHAIMS

  3. Scheduling - Possible Actions (1) SETUP: make SETUPs take place in parallel to method executions • call SETUPs well in advance before methods of that megamodule are invoked INVOKE: call INVOKEsas soon as possible • move INVOKEs as far up as possible, considering data dependencies ==> what if INVOKE is in an if-block? • moving it outside of an if-block: depending on cost-function concerning fees and execution times (using ESTIMATE for the method concerned and for all eventual following methods up to if-block). CHAIMS

  4. Scheduling - Possible Actions (2) EXTRACT: call EXAMINEs and EXTRACTs when results could be ready and are needed • use ESTIMATE to estimate earliest availability of result, only start using EXAMINE then • move EXAMINE/EXTRACT as far down as possible ==> in contradiction to moving up INVOKEs • for overall optimization run-time scheduling is necessary: polling of all active invocations and issuing of next possible invocation as soon as data is ready CHAIMS

  5. Scheduling - Possible Actions (3) Pre-scheduling: create optimized invocation plan at compile-time • use ESTIMATE to determine most reasonable order of INVOKEs and EXTRACTs • refine at run-time by run-time scheduling TERMINATE: terminate invocations that are no longer needed (save resources) • not every method invocation has an extract (e.g. print-like functions) CHAIMS

  6. Scheduling - Simple Example 1 cost_ground_ih = cost_mmh.INVOKE ("Cost_for_Ground", 1 List_of_City_Pairs = city_pairs,Goods = info_goods) 2 WHILE (cost_ground_ih.EXAMINE() != DONE) {} 3 (cost_list_ground = cost_ground) = cost_ground_ih.EXTRACT() 3 cost_air_ih = cost_mmh.INVOKE ("Cost_for_Air", 2 List_of_City_Pairs = city_pairs,Goods = info_good) 4WHILE (cost_air_ih.EXAMINE() != DONE) {} 4 cost_list_air = cost_air_ih.EXTRACT() 5 cost_air_ih = opt_mmh.INVOKE (”Optimum", 5 cost1 = cost_list_ground, cost2 = cost_list_air) order in unscheduled megaprogram order in automatically scheduled megaprogram CHAIMS

More Related