Many-core process scheduling to maximize cache usage

Information

  • Patent Grant
  • 9417935
  • Patent Number
    9,417,935
  • Date Filed
    Tuesday, May 1, 2012
    12 years ago
  • Date Issued
    Tuesday, August 16, 2016
    8 years ago
Abstract
A process scheduler for multi-core and many-core processors may place related executable elements that share common data on the same cores. When executed on a common core, sequential elements may store data in memory caches that are very quickly accessed, as opposed to main memory which may take many clock cycles to access the data. The sequential elements may be identified from messages passed between elements or other relationships that may link the elements. In one embodiment, a scheduling graph may be constructed that contains the executable elements and relationships between those elements. The scheduling graph may be traversed to identify related executable elements and a process scheduler may attempt to place consecutive or related executable elements on the same core so that commonly shared data may be retrieved from a memory cache rather than main memory.
Description
BACKGROUND

Process scheduling is a general term that may refer to how a computer system utilizes its resources. Different levels of process schedulers may manage high level selections such as which applications to execute, while mid-level or low level process schedulers may determine which sections of each application may be executed. A low level process scheduler may perform functions such as time slicing or time division multiplexing that may allocate processors or other resources to multiple jobs.


SUMMARY

A process scheduler for multi-core and many-core processors may place related executable elements that share common data on the same cores. When executed on a common core, sequential elements may store data in memory caches that are very quickly accessed, as opposed to main memory which may take many clock cycles to access the data. The sequential elements may be identified from messages passed between elements or other relationships that may link the elements. In one embodiment, a scheduling graph may be constructed that contains the executable elements and relationships between those elements. The scheduling graph may be traversed to identify related executable elements and a process scheduler may attempt to place consecutive or related executable elements on the same core so that commonly shared data may be retrieved from a memory cache rather than main memory.


This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.





BRIEF DESCRIPTION OF THE DRAWINGS

In the drawings,



FIG. 1 is a diagram illustration of an embodiment showing a system that schedules executable elements.



FIG. 2 is a diagram illustration of an embodiment showing an example scheduling graph.



FIG. 3 is a diagram illustration of an embodiment showing an example scheduling graph with executing and dependent elements.



FIG. 4 is a diagram illustration of an embodiment showing scheduling of executable elements on multiple cores.



FIG. 5 is a flowchart illustration of an embodiment showing a method for pre-execution analysis.



FIG. 6 is a flowchart illustration of an embodiment showing a method for runtime analysis of dependent elements.





DETAILED DESCRIPTION

Executable elements that have shared memory elements or are otherwise related may be executed on the same processor. A first executable element that creates an output or other shared memory object may cause the object to be stored in cached memory, which may be retrieved by a second executable element that may consume the object.


The relationships between executable elements may be identified by creating a scheduling graph that links executable elements together with their relationships. In some cases, the relationships may identify shared memory objects, such as when the output of a first executable element is consumed as an input to a second executable element.


During normal operation, many processors use one or more levels of cached memory to speed up processing. Objects that are recently accessed may be stored in a level 1 data cache, and as those objects age, they may be moved to levels 2, 3, or other levels. In many processor architectures, the objects accessed in a data cache may be automatically moved from level to level as they age.


Processors that use cached memory generally have a mechanism to store the cached objects in main memory. Such an operation may be performed as a parallel operation to the normal command execution of the processors. In some embodiments, such functions may be implemented in hardware to speed processing.


When a processor accesses object in cached memory, the access time may be on the order of one or two processor clock cycles. In comparison, accesses to the same object when the object is in main memory may be on the order of a hundred or more processor cycles. Because the processor cannot perform an operation without the data present, accesses to main memory result in the processor waiting for the data to arrive before resuming execution.


By executing related executable elements that share one or more memory objects on the same processor and one after the other, the cost of loading the memory object from main memory may be reduced significantly. This may be because the second executable element may access a memory object from cache, rather than having to recall the memory object from main memory.


In another example, some programming paradigms use message passing between executable elements. A message passing relationship may identify certain data objects that are shared between the elements. By executing the two elements in sequence, the data passed in the message may be still in cache memory when the second element is executing, thus saving many process cycles.


Further, in systems that contain many executable elements, the performance benefits of such a system may be significant. Examples of such systems may be applications or executable code that may be written in functional languages or in a functional language style that may create many hundreds, thousands, and sometimes millions of executable elements.


In such systems, the cost of managing the large numbers of executable elements may be compounded when memory objects are accessed from main memory rather than from a cache. By placing related executable elements on the same processor and within a short period of time from each other, there is a higher probability of accessing common memory objects from cache rather than main memory.


For the purposes of this specification and claims, the term “executable element” may define a set of instructions that may be executed by a processor. In a typical embodiment, an executable element may be machine level commands that may be sent to a processor. A single computer application may be made up of many executable elements. An executable element may also be referred to as a job, application, code chunk, or other term.


Throughout this specification, like reference numbers signify the same elements throughout the description of the figures.


When elements are referred to as being “connected” or “coupled,” the elements can be directly connected or coupled together or one or more intervening elements may also be present. In contrast, when elements are referred to as being “directly connected” or “directly coupled,” there are no intervening elements present.


The subject matter may be embodied as devices, systems, methods, and/or computer program products. Accordingly, some or all of the subject matter may be embodied in hardware and/or in software (including firmware, resident software, micro-code, state machines, gate arrays, etc.) Furthermore, the subject matter may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this document, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.


The computer-usable or computer-readable medium may be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. By way of example, and not limitation, computer readable media may comprise computer storage media and communication media.


Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by an instruction execution system. Note that the computer-usable or computer-readable medium could be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, of otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.


When the subject matter is embodied in the general context of computer-executable instructions, the embodiment may comprise program modules, executed by one or more systems, computers, or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Typically, the functionality of the program modules may be combined or distributed as desired in various embodiments.



FIG. 1 is a diagram of an embodiment 100 showing a system that may operate a process scheduler based on input from a scheduling graph. Embodiment 100 is a simplified example of the various software and hardware components that may be used an execution environment for applications that may have many executable elements.


The diagram of FIG. 1 illustrates functional components of a system. In some cases, the component may be a hardware component, a software component, or a combination of hardware and software. Some of the components may be application level software, while other components may be operating system level components. In some cases, the connection of one component to another may be a close connection where two or more components are operating on a single hardware platform. In other cases, the connections may be made over network connections spanning long distances. Each embodiment may use different hardware, software, and interconnection architectures to achieve the functions described.


Embodiment 100 illustrates a computer system 102 that may have a process scheduler that may manage executable elements based on knowledge from a scheduling graph. The system may attempt to place executable elements that access the same memory objects on the same processor so that the executable elements store and retrieve the memory objects from cached memory.


A queue manager may identify related executable elements from a scheduling graph. The scheduling graph may identify the relationships between executable elements and may include memory objects that may be passed from one executable element to another. By identifying these related elements and causing them to execute on the same processor where a memory object may already be in cached memory, the throughput of the overall system may be increased.


A process scheduler may manage executable elements by identifying executable elements that are likely to be executed once dependencies are cleared. The executable elements waiting on dependencies from other executable elements may be identified from a scheduling graph that may include all of the executable elements of an application.


A process scheduler may be an operating system function that schedules executable code on a processor. In many computer systems, a process scheduler may create the illusion of executing several processes concurrently by time slicing or allocating a computing resource to different processes at different time intervals.


The process scheduler may have a queue manager that may analyze a scheduling graph to identify functional elements to add to runnable queues for each processor. The scheduling graph may contain each executable element and relationships between those executable elements. The queue manager may traverse the graph to find the elements that may be executed in the near future.


The scheduling graph may identify the functional elements of one or many applications, where an application may be a program that operates independently of other programs on a computer system. When a scheduling graph includes multiple applications, the scheduling graph may be considered a graph of graphs, with each application contributing a group of functional elements that may or may not have relationships with other applications within the overall scheduling graph.


In some embodiments, a queue scheduler may be implemented as a runtime environment in which applications are executed. Such an environment may be a virtual machine component that may have just in time compiling, garbage collection, thread management, and other features. In such an embodiment, a queue scheduler may interface with the runnable and idle queues of an operating system. When a queue scheduler is implemented in a runtime environment, one or more applications may have functional elements defined in the scheduling graph.


In other embodiments, the queue scheduler may be implemented as a component of an operating system. As an operating system component, some or all of the functional elements that are executed by a computer system may be identified within a scheduling graph. Such a scheduling graph may include functions relating to multiple applications as well as operating system functions. In such an embodiment, each operation that may be performed by a computer system may be added to the scheduling graph prior to any execution of such operation.


The process scheduler may be known as a CPU scheduler and may determine which of the ready, in-memory processes may be executed following a clock interrupt, I/O interrupt, operating system call, or other form of signal. In some embodiments, the process scheduler may be preemptive, which may allow the process scheduler to forcibly remove executing elements from a processor when the processor may be allocated to another process. In some embodiments, the process scheduler may be non-preemptive, which may be known as voluntary or cooperative process scheduler, where the process scheduler may be unable to force executing elements off of a processor.


The device 102 is illustrated having hardware components 104 and software components 106. The device 102 as illustrated represents a conventional computing device, although other embodiments may have different configurations, architectures, or components.


In many embodiments, the device 102 may be a server computer. In some embodiments, the device 102 may still also be a desktop computer, laptop computer, netbook computer, tablet or slate computer, wireless handset, cellular telephone, game console or any other type of computing device.


The hardware components 104 may include many processors 108, random access memory 110, and nonvolatile storage 112. The hardware components 104 may also include a user interface 114 and network interface 116. The processors 108 may be made up of several processors or processor cores in some embodiments. The random access memory 110 may be memory that may be readily accessible to and addressable by the processor 108. The nonvolatile storage 112 may be storage that persists after the device 102 is shut down. The nonvolatile storage 112 may be any type of storage device, including hard disk, solid state memory devices, magnetic tape, optical storage, or other type of storage. The nonvolatile storage 112 may be read only or read/write capable.


The user interface 114 may be any type of hardware capable of displaying output and receiving input from a user. In many cases, the output display may be a graphical display monitor, although output devices may include lights and other visual output, audio output, kinetic actuator output, as well as other output devices. Conventional input devices may include keyboards and pointing devices such as a mouse, stylus, trackball, or other pointing device. Other input devices may include various sensors, including biometric input devices, audio and video input devices, and other sensors.


The network interface 116 may be any type of connection to another computer. In many embodiments, the network interface 116 may be a wired Ethernet connection. Other embodiments may include wired or wireless connections over various communication protocols.


The software components 106 may include an operating system 118 on which various applications and services may operate. An operating system may provide an abstraction layer between executing routines and the hardware components 104, and may include various routines and functions that communicate directly with various hardware components.


The operating system 118 may include a process scheduler 120 which may have runnable queues 122 for each of the processors 108. The process scheduler 120 may be a processor-level scheduler which may switch jobs on and off the processors 108 during execution. In some embodiments, a single process scheduler 120 may assign jobs to multiple processors or cores. In other embodiments, each core or processor may have its own process scheduler.


The runnable queues 122 may include all of the executable elements that are ready for execution. In cases, the runnable executable elements may be held in a queue from which any available processor may pull a job to execute. In an embodiment where each processor may have its own process scheduler, separate runnable queues may be available for each processor.


An execution environment 124 may manage the execution of an application 128. The execution environment 124 may have a queue manager 126 that may manage the executable elements by storing those elements in the runnable queues 122.


The queue manager 126 may identify individual executable elements from a scheduling graph 130. The scheduling graph 130 may define the relationships between executable elements for a specific application. As one set of executable elements is executing, those executable elements that may receive the output of the executing elements may be added to the runnable queues 124.


The scheduling graph 130 may be similar to a control flow graph and may include each block of executable code and the dependencies or other relationships between the blocks. The scheduling graph 130 may be searched and traversed to identify relationships between the executing elements and downstream or dependent elements. Those elements that are dependent on executing elements may be added to the runnable queues of the processors.


The scheduling graph 130 may be created when an application is developed. A development environment 132 may include an editor, 134, compiler 136, and an analyzer 138. A programmer or developer may create a program using the editor 134 and compile the program with the compiler 136. A control flow graph may be created by the compiler 136 or by a secondary analyzer 138 which may be executed after compilation.


From the control flow graph, an analyzer 138 may identify and classify the relationships between executable elements. The relationships may be any type of relationship, including dependencies, parallelism or concurrency identifiers, or other relationships. At compile time, the nature of the relationships may be identified.


The execution environment 124 may be a virtual machine or other mechanism that may manage executing applications. In some cases, the execution environment may provide various management functions, such as just in time compiling, garbage collection, thread management, and other features.


In some embodiments, a queue manager 140 may be part of an operating system 118. In such embodiments, the operating system 118 may operate by receiving a set of functions to perform and a scheduling graph 130. The scheduling graph 130 may include functions that come from many different applications as well as functions that are performed by the operating system itself.



FIG. 2 is a diagram illustration of an embodiment 200 showing an example scheduling graph. Embodiment 200 illustrates several executable elements and the relationships between those elements.


Embodiment 200 illustrates execution elements 202, 204, 206, 208, 210, 212, 214, 216, and 218.


Element 202 is shown having a two-way relationship with element 204, which has a dependent relationship with element 206. Element 206 is illustrated as being dependent on elements 202 or 216.


Element 208 has a dependent relationship with item 204, and element 210 has dependent relationships with elements 204 and 218. Element 212 has a dependent relationship with item 206.


Element 214 has dependent relationships with element 208 and 210. Element 216 has dependent relationships with elements 210 and 212. Lastly, element 218 has dependent relationships with items 214 and 216.


The various elements and relationships in embodiment 200 illustrate different executable elements that may comprise a larger application. As each executable element is completed, control may be passed to another executable element having a relationship with the completed element. In some cases, there may be a branch or other condition that may cause one element to be executed instead of a second. In some cases, two or more elements may be executed simultaneously when a first one completes. Some cases may also have one executing element to spawn dependent elements without stopping the first executing element. Other relationships, situations, and conditions may also be encountered in various embodiments.



FIG. 3 illustrates an embodiment 300 showing an example condition in which the scheduling graph of embodiment 200 is illustrated.


Embodiment 300 illustrates an example of how dependent executable elements may be identified given a set of executing elements. In the example of embodiment 300, items 208 and 210 are illustrated as executing. From the scheduling graph, executable elements 206, 214, and 216 are identified as potential elements that may be executed next.


The dependent elements 206, 214, and 216 may be identified by traversing the graph 300 starting with the executing elements and evaluating the relationships to the other elements. An execution environment may place the dependent elements 206, 214, and 216 into an idle queue, while other items may not be placed in the idle queue.


As new items begin execution, the execution environment may again analyze the scheduling graph to determine which new elements may be dependent, then add the new elements to the idle queue.


Similarly, as the set of executing elements change, the scheduling graph may be analyzed to identify items that are no longer reachable from the executing items. Such items that are no longer reachable may be removed from the idle queue.


The example of embodiment 300 shows an example where a first generation of dependent items may be identified. In other embodiments, a two-generational analysis may identify all of the elements that have two dependent relationships to an executing element. Other embodiments may perform analyses that examine three, four, or more generations of dependent elements.


Embodiments that use multi-generational analysis may perform analyses on a less frequent basis than embodiments that perform analyses on fewer generations. However, multi-generational analyses may create a larger queue of idle elements that may be managed.



FIG. 4 is a diagram illustration showing an embodiment 400 of various components that may operate together to place executable elements in runnable queues for various processors. Embodiment 400 illustrates the components that take a scheduling graph 402 and optimize placement of executable elements 404 on various runnable queues.


Embodiment 400 illustrates several cores 410, 412, 414, and 416 are illustrated. In many embodiments, the number of cores may be 4, 8, 16, 32, or even several hundred or more cores. For each core 410, 412, 414, and 416, a separate runnable queue 418, 424, 430, and 436 are shown. Each core may have a processor 420, 426, 432, and 438, as well as independent cached memory 422, 428, 434, and 440.


The cached memory may be a cached portion of main memory 440, which may be managed by a memory manager 442. The memory manager 442 may retrieve memory objects from main memory 440 and place those objects in cached memory. As the cached memory objects age, the objects may be moved to different stages of cached memory and eventually back to the main memory 440. Similarly, the memory manager 442 may identify newly created or modified memory objects in cache and write those objects to main memory 440.


An execution environment 406 may have a queue manager 408 that may place executable elements 404 in the various runnable queues. In some embodiments, the execution environment 406 may be a virtual machine or other runtime environment in which applications may be executed. The execution environment 406 may provide various other services, such as garbage collection.


The queue manager 408 may attempt to schedule executable elements on the same core where those executable elements share a common memory object. In so doing, the second executable element may be able to access the memory object from cached memory, rather than having to request the memory object from main memory 440.



FIG. 5 is a flowchart illustration of an embodiment 500 showing a method for preparing executable elements using a scheduling graph. Embodiment 500 illustrates a set of operations that a queue manager may perform prior to beginning execution.


Other embodiments may use different sequencing, additional or fewer steps, and different nomenclature or terminology to accomplish similar functions. In some embodiments, various operations or set of operations may be performed in parallel with other operations, either in a synchronous or asynchronous manner. The steps selected here were chosen to illustrate some principles of operations in a simplified form.


Embodiment 500 illustrates how a queue manager or other component may prepare an application or other set of executable elements for execution. The scheduling graph may be used to identify pipelines or groups of executable elements that have related operations. From those related operations, the executable elements may be allocated across the available resources to begin execution.


The scheduling graph may be received in block 502. The scheduling graph may include executable elements and relationships between those elements. In many cases, the relationships may include message passing or common data elements.


In block 504, the available resources may be identified. In a many-core or multi-core system, the available resources for the elements in the scheduling graph may be a subset of the full resources of the system.


In block 506, execution pipelines may be identified from the scheduling graph. Execution pipelines may be executable elements that pass data from one element to the next. In many cases, the relationships of shared data or message passing may indicate that two elements are linked in an execution pipeline.


The execution pipelines may be allocated to the resources in block 508. Once the execution pipelines are known, the elements may be assigned to runnable queues in block 510 and the execution may begin in block 512.


The mechanism of embodiment 500 illustrates one way that executable elements that have common data may be arranged in a sequence or pipeline, then deployed on processors for execution. By keeping executable elements on the same processor and in sequence, the executable elements may have a higher probability of accessing common items from cache rather than from main memory.



FIG. 6 is a flowchart illustration of an embodiment 600 showing a method for runtime analysis of dependent elements. Embodiment 600 illustrates one mechanism by which executing elements may be paired with dependent elements so that shared data may be accessed through cached memory.


Other embodiments may use different sequencing, additional or fewer steps, and different nomenclature or terminology to accomplish similar functions. In some embodiments, various operations or set of operations may be performed in parallel with other operations, either in a synchronous or asynchronous manner. The steps selected here were chosen to illustrate some principles of operations in a simplified form.


Embodiment 600 illustrates a process that may place two related executing elements on the same processor so that shared memory objects may be transferred in cache memory. Embodiment 600 identifies a dependent element that is ready to execute, except that the dependent element is waiting for the output from an executing item. When the executing element finishes processing, the dependent element may be started on the same processor as soon as possible thereafter. Such a condition may give the highest probability that shared memory items may be accessed through cached memory.


In block 602, execution may begin. The execution may start using the pipelined executable elements identified in embodiment 500.


While execution is underway, an executing element may be selected in block 604.


One or more dependent items may be identified in block 606 using the scheduling graph defined for the executing processes. For the purposes of example, the dependencies may be illustrated as message passing dependencies.


Each dependent item may be analyzed in block 608.


For each dependent item in block 608, a determination may be made in block 610 whether or not the dependent element is ready to execute when the executing element has completed. The analysis of block 610 determines if the dependent element is dependent on other processes, input data, or other dependencies. When the dependent element is dependent on other items, that element may continue to wait until those dependencies are fulfilled before execution.


Those items that are ready for execution and are dependent on the executing item in block 612 may be placed in the runnable queue for the same processor as the executing element in block 614. If the dependent element is not ready for immediate processing, the process may return to block 608 to analyze another dependent element.


After processing all of the dependent elements in block 608 and at least one dependent element was found in block 615, the process may proceed to block 616. If no dependent items were found in block 615, the process may return to block 604 to analyze another executing element.


When no dependent elements are found, the processor executing the currently executing element may be freed to execute any element ready for processing. In such a case, the next element may retrieve its memory objects from main memory as opposed to memory cache.


In block 616, if there is only one dependent element in the runnable queue, the executing element and the dependent element may be modified in block 618 to perform a lightweight message passing system. The lightweight message passing system may eliminate or minimize any message passing overhead that may otherwise occur between the executing element and the dependent element. In one example of such a modification, the dependent element may be given a memory identifier for an output value from the executing element.


In block 616, if there are multiple dependent elements that were identified in block 610 and added to the runnable queue, an analysis may be made in block 620 to determine whether or not one or more of the dependent elements may be moved to other queues. Based on such an analysis, the dependent elements may be assigned in block 622.


The foregoing description of the subject matter has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the subject matter to the precise form disclosed, and other modifications and variations may be possible in light of the above teachings. The embodiment was chosen and described in order to best explain the principles of the invention and its practical application to thereby enable others skilled in the art to best utilize the invention in various embodiments and various modifications as are suited to the particular use contemplated. It is intended that the appended claims be construed to include other alternative embodiments except insofar as limited by the prior art.

Claims
  • 1. A system comprising: a plurality of processors;an operating system executing on said plurality of processors;an individual runnable queue for each of said processors, said each runnable queue comprising one or more executable elements ready for execution by a processor; anda queue manager being part of said operating system, said queue manager being configured to perform at least the following: receive a scheduling graph comprising a plurality of executable elements and relationships between said executable elements;schedule a first executable element of the plurality of executable elements to execute on a first processor of the plurality of processors;from said scheduling graph, identify a second executable element and a third executable element of the plurality of executable elements that have one or more generational dependent relationships with said first executable element, and place said second executable element and said third executable element on an idle queue as potential executable elements that may be executed;based at least on determining that any other dependencies of said second executable element have been fulfilled and that said second executable element is ready to execute when the execution of said first executable element is complete, place said second executable element in said runnable queue for said first processor, said first processor being connected to a memory cache, said first executable element placing a memory object in said memory cache upon completion and said second executable element retrieving said memory object from said memory cache upon execution, wherein said first executable element and said second executable element are modified to perform a lightweight message passing based at least on determining that said second executable element is the only dependent element in said runnable queue for said first processor; andbased at least on executing said second executable element on said first processor, determine that said third executable element is no longer reachable from said second executable element, and remove said third executable element from said idle queue.
  • 2. The system of claim 1, said relationships comprising message passing between executable elements.
  • 3. The system of claim 2, said message passing being based on at least one of explicit message passing and implicit message passing.
  • 4. The system of claim 1, said first executable element and said second executable element being functional blocks defined using a functional programming mechanism.
  • 5. The system of claim 4, said functional blocks being originally defined in a functional programming language.
  • 6. The system of claim 1, said queue manager being a function within an execution environment.
  • 7. The system of claim 1, said queue manager being a function within an operating system.
  • 8. The system of claim 1, said scheduling graph comprising executable elements from a plurality of applications.
  • 9. The system of claim 8, said scheduling graph comprising executable elements defining operating system level functions.
  • 10. The system of claim 1, said queue manager also being configured to modify said second executable element by giving it a memory identifier for an output value from the first executable element.
  • 11. A method implemented at a multiple processor computer system, for scheduling executable elements, said method comprising: receiving a scheduling graph comprising a plurality of executable elements and relationships between said executable elements;scheduling a first executable element of the plurality of executable elements to execute on a first processor in said multiple processor system, said first processor being associated with a runnable queue comprising one or more executable elements ready for execution;from said scheduling graph, identifying a second executable element and a third executable element of the plurality of executable elements that have one or more generational dependent relationships with said first executable element, and placing said second executable element and said third executable element on an idle queue as potential executable elements that may be executed;based at least on determining that any other dependencies of said second executable element have been fulfilled and that said second executable element is ready to execute when the execution of said first executable element is complete, placing said second executable element in said runnable queue for said first processor, said first processor being connected to a memory cache, said first executable element placing a memory object in said memory cache upon completion and said second executable element retrieving said memory object from said memory cache upon execution, wherein said first executable element and said second executable element are modified to perform a lightweight message passing based at least on determining that said second executable element is the only dependent element in said runnable queue for said first processor; andbased at least on executing said second executable element on said first processor, determining that said third executable element is no longer reachable from said second executable element, and removing said third executable element from said idle queue.
  • 12. The method of claim 11 further comprising: creating said scheduling graph by identifying said executable elements and said relationships between said executable elements.
  • 13. The method of claim 12 further comprising: receiving an application to execute, said application comprising said executable elements; andidentifying said relationships between said executable elements.
  • 14. The method of claim 13, said second executable element having a dependent relationship with first executable element based on a message passing between said first executable element and said second executable element.
  • 15. The method of claim 13, said second executable element having a dependent relationship with first executable element based on a common memory object shared by said first executable element and said second executable element.
  • 16. The method of claim 12, said creating said scheduling graph being performed at least in part at runtime.
  • 17. The method of claim 11, further comprising determining if one of the first or second executable elements may be moved to a runnable queue for a second processor.
  • 18. The method of claim 11, further comprising modifying said second executable element by giving it a memory identifier for an output value of the first executable element.
  • 19. A computer program product comprising one or more hardware storage devices having stored thereon computer executable instructions that are executable by one or more processors of a multiprocessor system, and that configure the multiprocessor system to perform at least the following: receive a scheduling graph comprising a plurality of executable elements and relationships between said executable elements;schedule a first executable element of the plurality of executable elements to be processed on a first processor of said multiprocessor system, said first processor being associated with a runnable queue comprising one or more executable elements ready for execution;from said scheduling graph, identify a second executable element and a third executable element of the plurality of executable elements that have one or more generational dependent relationships with said first executable element, and place said second executable element and said third executable element on an idle queue as potential executable elements that may be executed;based at least on determining that any other dependencies of said second executable element have been fulfilled and that said second executable element is ready to execute when the execution of said first executable element is complete, placing said second executable element in said runnable queue to be executed on said first processor after said first executable element completes processing, said first processor being connected to a memory cache, said first executable element placing a memory object in said memory cache upon completion and said second executable element retrieving said memory object from said memory cache upon execution, wherein said first executable element and said second executable element are modified to perform a lightweight message passing based at least on determining that said second executable element is the only dependent element in said runnable queue for said first processor; andbased at least on executing said second executable element on said first processor, determine that said third executable element is no longer reachable from said second executable element, and remove said third executable element from said idle queue.
US Referenced Citations (166)
Number Name Date Kind
3643227 Smith et al. Feb 1972 A
4631674 Blandy Dec 1986 A
5423040 Epstein et al. Jun 1995 A
5506987 Abramson et al. Apr 1996 A
5900001 Wolczko et al. May 1999 A
5903900 Knippel et al. May 1999 A
6006235 Macdonald et al. Dec 1999 A
6038572 Schwartz et al. Mar 2000 A
6047295 Endicott et al. Apr 2000 A
6098080 Endicott et al. Aug 2000 A
6104962 Sastry Aug 2000 A
6128642 Doraswamy et al. Oct 2000 A
6230183 Yocom et al. May 2001 B1
6289360 Kolodner et al. Sep 2001 B1
6308319 Bush et al. Oct 2001 B1
6317756 Kolodner et al. Nov 2001 B1
6421704 Waldo et al. Jul 2002 B1
6484188 Kwong et al. Nov 2002 B1
6490599 Kolodner et al. Dec 2002 B2
6490612 Jones et al. Dec 2002 B1
6516461 Ichisugi Feb 2003 B1
6519615 Wollrath et al. Feb 2003 B1
6542978 Goldstein et al. Apr 2003 B2
6560773 Alexander, III et al. May 2003 B1
6564240 Waldo et al. May 2003 B2
6658449 Brenner et al. Dec 2003 B1
6735769 Brenner et al. May 2004 B1
6738875 Wang May 2004 B1
6748593 Brenner Jun 2004 B1
6760736 Waldo et al. Jul 2004 B2
6763520 Seeds Jul 2004 B1
6823515 Livecchi Nov 2004 B2
6832370 Srinivasan et al. Dec 2004 B1
6868488 Garthwaite Mar 2005 B2
6873952 Bailey et al. Mar 2005 B1
6912554 Yuasa Jun 2005 B2
6918111 Damron et al. Jul 2005 B1
6925644 Waldo et al. Aug 2005 B2
6954775 Shanklin et al. Oct 2005 B1
6986140 Brenner et al. Jan 2006 B2
6993767 Brenner et al. Jan 2006 B2
6999979 Garthwaite Feb 2006 B2
7003760 Das Feb 2006 B1
7016923 Garthwaite et al. Mar 2006 B2
7031990 Garthwaite Apr 2006 B2
7035884 Garthwaite Apr 2006 B2
7058670 Garthwaite Jun 2006 B2
7062518 Garthwaite Jun 2006 B2
7062519 Garthwaite Jun 2006 B2
7069279 Rau et al. Jun 2006 B1
7069280 Garthwaite Jun 2006 B2
7069281 Garthwaite Jun 2006 B2
7092978 Garthwaite Aug 2006 B2
7096238 Garthwaite Aug 2006 B2
7136887 Garthwaite et al. Nov 2006 B2
7143124 Garthwaite Nov 2006 B2
7188129 Garthwaite Mar 2007 B2
7209935 Garthwaite Apr 2007 B2
7225439 Garthwaite May 2007 B2
7228541 Gupton et al. Jun 2007 B2
7251815 Donovan et al. Jul 2007 B2
7308466 Houldsworth Dec 2007 B2
7404182 Garthwaite et al. Jul 2008 B1
7412580 Garthwaite Aug 2008 B1
7487237 Lloyd et al. Feb 2009 B2
7565386 Joisha Jul 2009 B2
7565499 Garthwaite Jul 2009 B1
7599973 Detlefs et al. Oct 2009 B2
7613753 Cornet et al. Nov 2009 B2
7640544 Flood et al. Dec 2009 B2
7752417 Manczak et al. Jul 2010 B2
7797670 Bumgarner et al. Sep 2010 B2
7865707 Bittlingmayer et al. Jan 2011 B2
7890712 Bitner et al. Feb 2011 B2
7984083 Bacon et al. Jul 2011 B2
7996446 Bacon et al. Aug 2011 B2
8028277 Breitgand et al. Sep 2011 B2
8055725 Alam et al. Nov 2011 B2
8108863 Rakvic et al. Jan 2012 B2
8595743 Gounares et al. Nov 2013 B2
8607018 Gounares et al. Dec 2013 B2
8615766 Gounares Dec 2013 B2
8650538 Gounares Feb 2014 B2
8656134 Gounares et al. Feb 2014 B2
8656135 Gounares et al. Feb 2014 B2
8656378 Gounares et al. Feb 2014 B2
20010018701 Livecchi Aug 2001 A1
20030061395 Kingsbury Mar 2003 A1
20030200356 Hue Oct 2003 A1
20030212731 Brenner et al. Nov 2003 A1
20040194104 Beresnevichiene et al. Sep 2004 A1
20050071847 Bentley et al. Mar 2005 A1
20050144364 Tu et al. Jun 2005 A1
20050166193 Smith et al. Jul 2005 A1
20050210472 Accapadi et al. Sep 2005 A1
20060070048 Li et al. Mar 2006 A1
20060294167 Borman et al. Dec 2006 A1
20070174837 Wang et al. Jul 2007 A1
20070288911 Martin et al. Dec 2007 A1
20070299980 Amini Dec 2007 A1
20080005719 Morris Jan 2008 A1
20080126453 Cornet et al. May 2008 A1
20080139191 Melnyk et al. Jun 2008 A1
20080271032 Twaddle Oct 2008 A1
20090019449 Choi et al. Jan 2009 A1
20090089552 Inchingolo et al. Apr 2009 A1
20100018701 Peter et al. Jan 2010 A1
20100211953 Wakeling Aug 2010 A1
20100318630 Howell et al. Dec 2010 A1
20100333109 Milnor Dec 2010 A1
20110067030 Isard et al. Mar 2011 A1
20110161978 Jang et al. Jun 2011 A1
20120047514 Seo et al. Feb 2012 A1
20120204189 Eichenberger et al. Aug 2012 A1
20120222019 Gounares et al. Aug 2012 A1
20120222043 Gounares et al. Aug 2012 A1
20120227040 Gounares Sep 2012 A1
20120233592 Gounares Sep 2012 A1
20120233601 Gounares et al. Sep 2012 A1
20120284730 Decusatis et al. Nov 2012 A1
20120297163 Breternitz et al. Nov 2012 A1
20120317371 Gounares Dec 2012 A1
20120317389 Gounares Dec 2012 A1
20120317421 Gounares Dec 2012 A1
20120317557 Garrett Dec 2012 A1
20120317577 Garrett Dec 2012 A1
20120317587 Garrett Dec 2012 A1
20120324454 Gounares et al. Dec 2012 A1
20130067445 Gounares et al. Mar 2013 A1
20130073523 Gounares et al. Mar 2013 A1
20130073604 Gounares et al. Mar 2013 A1
20130073829 Gounares et al. Mar 2013 A1
20130073837 Li et al. Mar 2013 A1
20130074049 Gounares et al. Mar 2013 A1
20130074055 Gounares et al. Mar 2013 A1
20130074056 Gounares et al. Mar 2013 A1
20130074057 Gounares et al. Mar 2013 A1
20130074058 Gounares et al. Mar 2013 A1
20130074092 Gounares et al. Mar 2013 A1
20130074093 Gounares et al. Mar 2013 A1
20130080760 Li et al. Mar 2013 A1
20130080761 Garrett et al. Mar 2013 A1
20130081005 Gounares et al. Mar 2013 A1
20130085882 Gounares et al. Apr 2013 A1
20130117753 Gounares et al. May 2013 A1
20130117759 Gounares et al. May 2013 A1
20130282545 Gounares et al. Oct 2013 A1
20130283102 Krajec et al. Oct 2013 A1
20130283240 Krajec et al. Oct 2013 A1
20130283241 Krajec et al. Oct 2013 A1
20130283242 Gounares Oct 2013 A1
20130283246 Krajec et al. Oct 2013 A1
20130283247 Krajec et al. Oct 2013 A1
20130283281 Krajec et al. Oct 2013 A1
20130298112 Gounares et al. Nov 2013 A1
20140013306 Gounares et al. Jan 2014 A1
20140013308 Gounares et al. Jan 2014 A1
20140013309 Gounares Jan 2014 A1
20140013311 Garrett et al. Jan 2014 A1
20140019598 Krajec Jan 2014 A1
20140019756 Krajec Jan 2014 A1
20140019879 Krajec et al. Jan 2014 A1
20140019985 Krajec Jan 2014 A1
20140025572 Krajec Jan 2014 A1
20140026142 Gounares et al. Jan 2014 A1
20140040591 Gounares Feb 2014 A1
Foreign Referenced Citations (6)
Number Date Country
1912119 Apr 2008 EP
1019980079594 Nov 1998 KR
1019990062577 Jul 1999 KR
20010070306 Jul 2001 KR
1020010070306 Jul 2001 KR
1020080021491 Mar 2008 KR
Non-Patent Literature Citations (11)
Entry
International Searching Authority, International Search Report and Written Opinion, Jan. 24, 2013, PCT/US2012/045964, Korean Intellectual Property Office, Republic of Korea (9 pgs.).
Daniel Lenoski, James Laudon, Kourosh Gharachorloo, Wolf-Dietrich Weber, Anoop Gupta, John Hennessy, Mark Horowitz,and Monica S. Lam, The Stanford Dash Multiprocessor, Mar. 1992, IEEE.
Kistler, Thomas, “Continuous Program Optimization”, PhD Dissertation, University of California, Irvine, 1999.
Kistler, Thomas, “Continuous Program Optimization: A Case Study”, ACM Transactions on Programming Languages and Systems, vol. 25, No. 4, Jul. 2003, pp. 500-548.
Tong Li, Dan Baumberger, David A. Koufaty, and Scott Hahn, Efficient Operating System Scheduling for Performance-Asymmetric Multi-Core Architectures, Copyright 2007, ACM.
Yang Wang, Paul Lu, Using Dataflow Information to Improve Inter-Workflow Instance Concurrency, 2005, IEEE.
International Search Report, Feb. 27, 2013, Korean Intellectual Property Office, PCT/US2012/056701.
International Search Report, Jan. 29, 2013, Korean Intellectual Property Office, PCT/US2012/043811.
International Searching Authority, International Search Report and Written Opinion, Jan. 25, 2013, PCT/US2012/041036, Korean Intellectual Property Office, Republic of Korea.
International Searching Authority, International Search Report and Written Opinion, Korean Intellectual Property Office, Mar. 12, 2013, PCT/US2012/066098.
International Searching Authority, International Search Report and Written Opinion, Korean Intellectual Property Office, Feb. 5, 2013, PCT/US2012/056704.
Related Publications (1)
Number Date Country
20130117753 A1 May 2013 US