Dynamically migrating channels
Abstract
In one embodiment, the present invention includes a method of determining a relative priority between a first agent and a second agent, and assigning the first agent to a first channel and the second agent to a second channel according to the relative priority. Depending on the currently programmed status of the channels, information stored in at least one of the channels may be dynamically migrated to another channel based on the assignments. Other embodiments are described and claimed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 0.
Claims (11)
- Claim 1Independent Claim
A method comprising: determining a first relative priority between a first agent and a second agent; and assigning the first agent to a first channel of a processor having a first channel relative priority and having a first channel identifier to identify the first channel and corresponding to the first channel relative priority and to identify a sequence of service routine execution, the first channel programmed via a helper thread; and assigning the second agent to a second channel of the processor having a second channel relative priority and having a second channel identifier to identify the second channel and corresponding to the second channel relative priority and to identify a sequence of service routine execution, according to the first relative priority and the first and second channel relative priorities, the second channel programmed via a profile-guided optimization.
- Claim 2Depends on #1
The method of claim 1 , further comprising storing a scenario associated with the first agent in the first channel, wherein the first channel relative priority is higher than the second channel relative priority.
- Claim 3Depends on #2
The method of claim 2 , wherein storing the scenario comprises storing an address for a service routine associated with the scenario in the first channel, action bits to determine behavior of the first channel when the scenario triggers, and a program indicator.
- Claim 4Depends on #3
The method of claim 3 , further comprising storing a channel identifier corresponding to the first channel in a stack upon occurrence of a yield event of the scenario.
- Claim 5Depends on #4
The method of claim 4 , further comprising retrieving the channel identifier from the stack via a handler for the scenario.
- Claim 6Depends on #1
The method of claim 1 , further comprising: storing a first scenario associated with the first agent in the first channel and storing a second scenario associated with the second agent in the second channel; and handling the first scenario and the second scenario triggered via a single instruction according to the first and second channel relative priorities.
- Claim 7Depends on #1
The method of claim 1 , further comprising: executing an instruction that triggers a first scenario stored in the first channel and a second scenario stored in the second channel; and servicing the first scenario and the second scenario.
- Claim 8Depends on #7
The method of claim 7 , further comprising first servicing the one of the first scenario and the second scenario associated with the one of the first channel and the second channel having a higher relative priority.
- Claim 9Depends on #1
The method of claim 1 , further comprising discovering the first scenario using a user-level identification instruction.
- Claim 10Independent Claim
An apparatus comprising: a plurality of execution units to execute instructions; a plurality of performance counters coupled to the plurality of execution units to count events or conditions occurring in the plurality of execution units; a first channel having a first storage to store a first composite condition corresponding to a first plurality of events or conditions that may occur during execution, the first channel having a first channel priority associated therewith; a second channel having a second storage to store a second composite condition corresponding to a second plurality of events or conditions that may occur during execution, the second channel having a second channel priority associated therewith; and a controller to track activity in the plurality of performance counters and select one of the first channel and the second channel to associate with a software agent based upon a mapping of a priority of the software agent to the first channel priority and the second channel priority, the software agent priority based on a type of handler to be executed when the first composite condition occurs.
- Claim 11Independent Claim
The
Technical Overview & Description
This application is a continuation of U.S. patent application Ser. No. 12/604,918, filed Oct. 23, 2009 now U.S. Pat. No. 8,001,364, which is a continuation of U.S. patent application Ser. No. 11/241,198, filed Sep. 30, 2005, now U.S. Pat. No. 7,631,125 entitled “DYNAMICALLY MIGRATING CHANNELS,” the content of which is hereby incorporated by reference. BACKGROUND Embodiments of the present invention relate to computer systems and more particularly to effective use of resources of such a system. Computer systems execute various software programs using different hardware resources of the system, including a processor, memory and other such components. A processor itself includes various resources including one or more execution cores, cache memories, hardware registers, and the like. Certain processors also include hardware performance counters that are used to count events or actions occurring during program execution. For example, certain processors include counters for counting memory accesses, cache misses, instructions executed and the like. Additionally, performance monitors may also exist in software to monitor execution of one or more software programs. Together, such counters and monitors can be used according to at least two usage models. First, they may be used during compilation and other optimization activities to improve code execution based upon profile information obtained during program execution. Second, upon occurrence of an event in a counter or monitor during program execution, one or more helper threads may be called. Such helper threads are software routines that are called by a calling program to improve execution, such as to prefetch data from memory or perform another such activity to improve program execution. Oftentimes, these resources are used inefficiently, and furthermore use of such resources in the different usage models can conflict. A need thus exists for improved manners of obtaining and using
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (19)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (4)
- German Patent and Trademark Office, Office Action dated Mar. 5, 2009, in a related application.
- State Intellectual Property Office, P.R. China, Third Office Action dated Aug. 21, 2009, in a related application.
- U.S. Appl. No. 11/134,587, filed May 19, 2005, entitled "A Programmable Event Driven Yield Mechanism Which May Activate Service Threads" by Xiang Zou et al.
- U.S. Appl. No. 11/240,703, filed Sep. 30, 2005, entitled "Profiling Using a User-Level Control Mechanism" by Robert Knight e t al.