This disclosure pertains to computing system, and in particular (but not exclusively) to credit-based arbitration in computing systems.
Computing systems can provide shared system resources that can be potentially accessed by multiple different components, channels, and processes. Such shared resources can include buses, memory, cache, and other resources. In some cases, access by the multiple “requesters” can be predictable based on a pre-set or determine behavior of the interacting requesters. In other cases, multiple requesters can compete for a shared resource and the access attempts (or requests) of the shared resource can be unpredictable, bursty, and over-assertive. Solutions have been developed for managing the sometimes “greedy” behavior of these competing components. For instance, credit-based flow control schemes have been developed, such as the credit-based schemes described in specification of the Peripheral Component Interconnect (PCI) Express (PCIe) architecture, which attempts to control congestion and competing requests on a link-by-link or virtual channel (VC)-by-VC basis. Some solutions have further utilized the Credit Controlled Static Priority (CCSP) algorithm in connection with flow control mechanisms deployed in systems with shared resource arbitration, among other examples.
Like reference numbers and designations in the various drawings indicate like elements.
In the following description, numerous specific details are set forth, such as examples of specific types of processors and system configurations, specific hardware structures, specific architectural and micro architectural details, specific register configurations, specific instruction types, specific system components, specific measurements/heights, specific processor pipeline stages and operation etc. in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that these specific details need not be employed to practice the present invention. In other instances, well known components or methods, such as specific and alternative processor architectures, specific logic circuits/code for described algorithms, specific firmware code, specific interconnect operation, specific logic configurations, specific manufacturing techniques and materials, specific compiler implementations, specific expression of algorithms in code, specific power down and gating techniques/logic and other specific operational details of computer system haven't been described in detail in order to avoid unnecessarily obscuring the present invention.
Although the following embodiments may be described with reference to energy conservation and energy efficiency in specific integrated circuits, such as in computing platforms or microprocessors, other embodiments are applicable to other types of integrated circuits and logic devices. Similar techniques and teachings of embodiments described herein may be applied to other types of circuits or semiconductor devices that may also benefit from better energy efficiency and energy conservation. For example, the disclosed embodiments are not limited to desktop computer systems or Ultrabooks™. And may be also used in other devices, such as handheld devices, tablets, other thin notebooks, systems on a chip (SOC) devices, and embedded applications. Some examples of handheld devices include cellular phones, Internet protocol devices, digital cameras, personal digital assistants (PDAs), and handheld PCs. Embedded applications typically include a microcontroller, a digital signal processor (DSP), a system on a chip, network computers (NetPC), set-top boxes, network hubs, wide area network (WAN) switches, or any other system that can perform the functions and operations taught below. Moreover, the apparatus', methods, and systems described herein are not limited to physical computing devices, but may also relate to software optimizations for energy conservation and efficiency. As will become readily apparent in the description below, the embodiments of methods, apparatus', and systems described herein (whether in reference to hardware, firmware, software, or a combination thereof) are vital to a ‘green technology’ future balanced with performance considerations.
As computing systems are advancing, the components therein are becoming more complex. As a result, the interconnect architecture to couple and communicate between the components is also increasing in complexity to ensure bandwidth requirements are met for optimal component operation. Furthermore, different market segments demand different aspects of interconnect architectures to suit the market's needs. For example, servers require higher performance, while the mobile ecosystem is sometimes able to sacrifice overall performance for power savings. Yet, it's a singular purpose of most fabrics to provide highest possible performance with maximum power saving. Below, a number of interconnects are discussed, which would potentially benefit from aspects of the invention described herein.
Referring to
In one embodiment, a processing element refers to hardware or logic to support a software thread. Examples of hardware processing elements include: a thread unit, a thread slot, a thread, a process unit, a context, a context unit, a logical processor, a hardware thread, a core, and/or any other element, which is capable of holding a state for a processor, such as an execution state or architectural state. In other words, a processing element, in one embodiment, refers to any hardware capable of being independently associated with code, such as a software thread, operating system, application, or other code. A physical processor (or processor socket) typically refers to an integrated circuit, which potentially includes any number of other processing elements, such as cores or hardware threads.
A core often refers to logic located on an integrated circuit capable of maintaining an independent architectural state, wherein each independently maintained architectural state is associated with at least some dedicated execution resources. In contrast to cores, a hardware thread typically refers to any logic located on an integrated circuit capable of maintaining an independent architectural state, wherein the independently maintained architectural states share access to execution resources. As can be seen, when certain resources are shared and others are dedicated to an architectural state, the line between the nomenclature of a hardware thread and core overlaps. Yet often, a core and a hardware thread are viewed by an operating system as individual logical processors, where the operating system is able to individually schedule operations on each logical processor.
Physical processor 100, as illustrated in
As depicted, core 101 includes two hardware threads 101a and 101b, which may also be referred to as hardware thread slots 101a and 101b. Therefore, software entities, such as an operating system, in one embodiment potentially view processor 100 as four separate processors, i.e., four logical processors or processing elements capable of executing four software threads concurrently. As alluded to above, a first thread is associated with architecture state registers 101a, a second thread is associated with architecture state registers 101b, a third thread may be associated with architecture state registers 102a, and a fourth thread may be associated with architecture state registers 102b. Here, each of the architecture state registers (101a, 101b, 102a, and 102b) may be referred to as processing elements, thread slots, or thread units, as described above. As illustrated, architecture state registers 101a are replicated in architecture state registers 101b, so individual architecture states/contexts are capable of being stored for logical processor 101a and logical processor 101b. In core 101, other smaller resources, such as instruction pointers and renaming logic in allocator and renamer block 130 may also be replicated for threads 101a and 101b. Some resources, such as re-order buffers in reorder/retirement unit 135, ILTB 120, load/store buffers, and queues may be shared through partitioning. Other resources, such as general purpose internal registers, page-table base register(s), low-level data-cache and data-TLB 115, execution unit(s) 140, and portions of out-of-order unit 135 are potentially fully shared.
Processor 100 often includes other resources, which may be fully shared, shared through partitioning, or dedicated by/to processing elements. In
Core 101 further includes decode module 125 coupled to fetch unit 120 to decode fetched elements. Fetch logic, in one embodiment, includes individual sequencers associated with thread slots 101a, 101b, respectively. Usually core 101 is associated with a first ISA, which defines/specifies instructions executable on processor 100. Often machine code instructions that are part of the first ISA include a portion of the instruction (referred to as an opcode), which references/specifies an instruction or operation to be performed. Decode logic 125 includes circuitry that recognizes these instructions from their opcodes and passes the decoded instructions on in the pipeline for processing as defined by the first ISA. For example, as discussed in more detail below decoders 125, in one embodiment, include logic designed or adapted to recognize specific instructions, such as transactional instruction. As a result of the recognition by decoders 125, the architecture or core 101 takes specific, predefined actions to perform tasks associated with the appropriate instruction. It is important to note that any of the tasks, blocks, operations, and methods described herein may be performed in response to a single or multiple instructions; some of which may be new or old instructions. Note decoders 126, in one embodiment, recognize the same ISA (or a subset thereof). Alternatively, in a heterogeneous core environment, decoders 126 recognize a second ISA (either a subset of the first ISA or a distinct ISA).
In one example, allocator and renamer block 130 includes an allocator to reserve resources, such as register files to store instruction processing results. However, threads 101a and 101b are potentially capable of out-of-order execution, where allocator and renamer block 130 also reserves other resources, such as reorder buffers to track instruction results. Unit 130 may also include a register renamer to rename program/instruction reference registers to other registers internal to processor 100. Reorder/retirement unit 135 includes components, such as the reorder buffers mentioned above, load buffers, and store buffers, to support out-of-order execution and later in-order retirement of instructions executed out-of-order.
Scheduler and execution unit(s) block 140, in one embodiment, includes a scheduler unit to schedule instructions/operation on execution units. For example, a floating point instruction is scheduled on a port of an execution unit that has an available floating point execution unit. Register files associated with the execution units are also included to store information instruction processing results. Exemplary execution units include a floating point execution unit, an integer execution unit, a jump execution unit, a load execution unit, a store execution unit, and other known execution units.
Lower level data cache and data translation buffer (D-TLB) 150 are coupled to execution unit(s) 140. The data cache is to store recently used/operated on elements, such as data operands, which are potentially held in memory coherency states. The D-TLB is to store recent virtual/linear to physical address translations. As a specific example, a processor may include a page table structure to break physical memory into a plurality of virtual pages.
Here, cores 101 and 102 share access to higher-level or further-out cache, such as a second level cache associated with on-chip interface 110. Note that higher-level or further-out refers to cache levels increasing or getting further way from the execution unit(s). In one embodiment, higher-level cache is a last-level data cache—last cache in the memory hierarchy on processor 100—such as a second or third level data cache. However, higher level cache is not so limited, as it may be associated with or include an instruction cache. A trace cache—a type of instruction cache—instead may be coupled after decoder 125 to store recently decoded traces. Here, an instruction potentially refers to a macro-instruction (i.e. a general instruction recognized by the decoders), which may decode into a number of micro-instructions (micro-operations).
In the depicted configuration, processor 100 also includes on-chip interface module 110. Historically, a memory controller, which is described in more detail below, has been included in a computing system external to processor 100. In this scenario, on-chip interface 11 is to communicate with devices external to processor 100, such as system memory 175, a chipset (often including a memory controller hub to connect to memory 175 and an I/O controller hub to connect peripheral devices), a memory controller hub, a northbridge, or other integrated circuit. And in this scenario, bus 105 may include any known interconnect, such as multi-drop bus, a point-to-point interconnect, a serial interconnect, a parallel bus, a coherent (e.g. cache coherent) bus, a layered protocol architecture, a differential bus, and a GTL bus.
Memory 175 may be dedicated to processor 100 or shared with other devices in a system. Common examples of types of memory 175 include DRAM, SRAM, non-volatile memory (NV memory), and other known storage devices. Note that device 180 may include a graphic accelerator, processor or card coupled to a memory controller hub, data storage coupled to an I/O controller hub, a wireless transceiver, a flash device, an audio controller, a network controller, or other known device.
Recently however, as more logic and devices are being integrated on a single die, such as SOC, each of these devices may be incorporated on processor 100. For example in one embodiment, a memory controller hub is on the same package and/or die with processor 100. Here, a portion of the core (an on-core portion) 110 includes one or more controller(s) for interfacing with other devices such as memory 175 or a graphics device 180. The configuration including an interconnect and controllers for interfacing with such devices is often referred to as an on-core (or un-core configuration). As an example, on-chip interface 110 includes a ring interconnect for on-chip communication and a high-speed serial point-to-point link 105 for off-chip communication. Yet, in the SOC environment, even more devices, such as the network interface, co-processors, memory 175, graphics processor 180, and any other known computer devices/interface may be integrated on a single die or integrated circuit to provide small form factor with high functionality and low power consumption.
In one embodiment, processor 100 is capable of executing a compiler, optimization, and/or translator code 177 to compile, translate, and/or optimize application code 176 to support the apparatus and methods described herein or to interface therewith. A compiler often includes a program or set of programs to translate source text/code into target text/code. Usually, compilation of program/application code with a compiler is done in multiple phases and passes to transform hi-level programming language code into low-level machine or assembly language code. Yet, single pass compilers may still be utilized for simple compilation. A compiler may utilize any known compilation techniques and perform any known compiler operations, such as lexical analysis, preprocessing, parsing, semantic analysis, code generation, code transformation, and code optimization.
Larger compilers often include multiple phases, but most often these phases are included within two general phases: (1) a front-end, i.e. generally where syntactic processing, semantic processing, and some transformation/optimization may take place, and (2) a back-end, i.e. generally where analysis, transformations, optimizations, and code generation takes place. Some compilers refer to a middle, which illustrates the blurring of delineation between a front-end and back end of a compiler. As a result, reference to insertion, association, generation, or other operation of a compiler may take place in any of the aforementioned phases or passes, as well as any other known phases or passes of a compiler. As an illustrative example, a compiler potentially inserts operations, calls, functions, etc. in one or more phases of compilation, such as insertion of calls/operations in a front-end phase of compilation and then transformation of the calls/operations into lower-level code during a transformation phase. Note that during dynamic compilation, compiler code or dynamic optimization code may insert such operations/calls, as well as optimize the code for execution during runtime. As a specific illustrative example, binary code (already compiled code) may be dynamically optimized during runtime. Here, the program code may include the dynamic optimization code, the binary code, or a combination thereof.
Similar to a compiler, a translator, such as a binary translator, translates code either statically or dynamically to optimize and/or translate code. Therefore, reference to execution of code, application code, program code, or other software environment may refer to: (1) execution of a compiler program(s), optimization code optimizer, or translator either dynamically or statically, to compile program code, to maintain software structures, to perform other operations, to optimize code, or to translate code; (2) execution of main program code including operations/calls, such as application code that has been optimized/compiled; (3) execution of other program code, such as libraries, associated with the main program code to maintain software structures, to perform other software related operations, or to optimize code; or (4) a combination thereof.
Example interconnect fabrics and protocols can include such examples a Peripheral Component Interconnect (PCI) Express (PCIe) architecture, Intel QuickPath Interconnect (QPI) architecture, Mobile Industry Processor Interface (MIPI), among others. A range of supported processors may be reached through use of multiple domains or other interconnects between node controllers. An interconnect fabric architecture can include a definition of a layered protocol architecture. In one embodiment, protocol layers (coherent, non-coherent, and optionally other memory based protocols), a routing layer, a link layer, and a physical layer can be provided. Furthermore, the interconnect can include enhancements related to power managers, design for test and debug (DFT), fault handling, registers, security, etc. For example, in one implementation illustrated in
Data can be organized as phits, flits, packets, etc. and be used to communicate information between components. Packets can be formed, for instance, in the Transaction Layer 205 and Data Link Layer 210 to carry the information from the transmitting component to the receiving component. As the transmitted packets flow through the other layers, they can be extended with additional information necessary to handle packets at those layers. At the receiving side the reverse process occurs and packets get transformed from their Physical Layer 220 representation to the Data Link Layer 210 representation and finally (for Transaction Layer Packets) to the form that can be processed by the Transaction Layer 205 of the receiving device.
In one embodiment, a protocol or transaction layer 205 can be used to provide an interface between a device's processing core and the interconnect architecture, such as data link layer 210 and physical layer 220. In this regard, a primary responsibility of the transaction layer 205 can include the assembly and disassembly of packets (i.e., transaction layer packets, or TLPs). In some implementations, the transaction layer 205 (or another layer) can manage credit-based flow control within a system, such as flow control for TLPs or other units of data. In some implementations, a credit-based flow control scheme can be utilized. In credit-based flow control, a device can advertise an initial amount of credit for each of the receive buffers in Transaction Layer 205. Whenever a packet or flit is sent to the receiver, the sender decrements its credit counters by one credit which represents either a packet, flit, message, etc. An external device at the opposite end of the link, such as a controller, can count the number of credits consumed by each TLP, message, request, transaction, etc. A transaction may be transmitted if the transaction does not exceed a credit limit. Additional credits can be issued and restore credits available to a device according to a priority or arbitration policy, in response to receiving a response to an earlier message or request, among other example. One example advantage of a credit scheme is that the latency of credit return does not affect performance, provided, for instance, that a credit limit is not encountered.
In one embodiment, four transaction address spaces include a configuration address space, a memory address space, an input/output address space, and a message address space. Memory space transactions include one or more of read requests and write requests to transfer data to/from a memory-mapped location. In one embodiment, memory space transactions are capable of using two different address formats, e.g., a short address format, such as a 32-bit address, or a long address format, such as 64-bit address. Configuration space transactions are used to access configuration space of the compatible devices. Transactions to the configuration space can include read requests and write requests. Message space transactions (or, simply messages) are defined to support in-band communication between agents on the interconnect fabric. Further, access to memory space can be allocated, for instance, through guaranteed service rates to memory bandwidth, among other examples.
Therefore, in one embodiment, transaction layer 205 assembles packet header/payload 206. Link layer 210, also referred to as data link layer 210, can act as an intermediate stage between transaction layer 205 and the physical layer 220. In one embodiment, a responsibility of the data link layer 210 is providing a reliable mechanism for exchanging Transaction Layer Packets (TLPs) between two components a link. One side of the Data Link Layer 210 accepts TLPs assembled by the Transaction Layer 205, applies packet sequence identifier 211, i.e. an identification number or packet number, calculates and applies an error detection code, i.e. CRC 212, and submits the modified TLPs to the Physical Layer 220 for transmission across a physical to another device, such as an external device.
In one embodiment, physical layer 220 includes logical sub block 221 and electrical sub-block 222 to physically transmit a packet to an external device. Here, logical sub-block 221 is responsible for the “digital” functions of Physical Layer 221. In this regard, the logical sub-block includes a transmit section to prepare outgoing information for transmission by physical sub-block 222, and a receiver section to identify and prepare received information before passing it to the Link Layer 210.
Physical block 222 includes a transmitter and a receiver. The transmitter is supplied by logical sub-block 221 with symbols, which the transmitter serializes and transmits onto to an external device. The receiver is supplied with serialized symbols from an external device and transforms the received signals into a bit-stream. The bit-stream is de-serialized and supplied to logical sub-block 221. In some embodiments, a defined transmission code can be employed, such as an 8b/10b transmission code is employed, where ten-bit symbols are transmitted/received. In such instances, special symbols can be used to frame a packet with frames 223. In addition, in one example, the receiver also provides a symbol clock recovered from the incoming serial stream.
As stated above, although transaction layer 205, link layer 210, and physical layer 220 are discussed in reference to the example of
Physical layer 220, in one embodiment, is responsible for the fast transfer of information on the physical medium (electrical or optical etc.). The physical link is point to point between two Link layer entities. The Link layer 210 can abstract the Physical layer 220 from the upper layers and provides the capability to reliably transfer data (as well as requests) and manage flow control between two directly connected entities. It also is responsible for virtualizing the physical channel into multiple virtual channels and message classes. The Transaction layer 205 (or a protocol layer, in some embodiments) can rely on the Link layer 210 to map protocol messages into the appropriate message classes and virtual channels before handing them to the Physical layer 220 for transfer across the physical links. Link layer 210 may support multiple messages, such as a request, snoop, response, writeback, non-coherent data, etc.
In one embodiment, multiple agents may be connected to an interconnect architecture including, for instance, a home agent (orders requests to memory), caching (issues requests to coherent memory and responds to snoops), configuration (deals with configuration transactions), interrupt (processes interrupts), legacy (deals with legacy transactions), non-coherent (deals with non-coherent transactions), and others.
Contemporary system-on-chips (SoC) can include a large number of components and devices, including multiple processors, capable of being used to perform multiple tasks. Memory elements and the interconnect fabric can be shared by components of the system, although such sharing can result in competition between the components for these scarce system resources. In some use cases demanding real-time resource access, such as software video decoding, real-time requirements of the application can be difficult to satisfy, among other conflicts. Requests on system resources can be made by “requesters” including processes in the context of CPUs, or communication channels in case of a memory or an interconnect. Such requesters (and their request) can be made on behalf of an application or task. The combinations of tasks and applications active on a system and competing for its resources at any given time can vary. Further, requesters' demands for resources can fluctuate and the latency requirements for components and various applications can also vary.
Resource access can be managed by arbitrator logic and accompanying hardware. Resource access, such as shared access of memory resources, can demand high speed performance allowing access to be scheduled on a fine level of granularity, reducing latency and buffers. In some solutions, a guaranteed minimum service rate and a bounded maximum latency can be analytically verified at design time and attempted to be enforced using the arbitrator. An arbitrator can regulate access to the resources to guarantee requesters (e.g., a given process or channel) levels of access to the resources. An arbitrator can further attempt to isolate requesters from each other and protect against some requesters over-utilizing the shared resources and threatening other requesters from being able to access the portion of the available resources (or “bandwidth”) allocated to them.
Credit-based arbitration algorithms can be used in digital circuits or software systems to accurately and fairly guarantee a service-rate for multiple requesters (or “users”) of a shared resource, such as memory or interconnect bandwidth. One such algorithm is Credit Controlled Static Priority (CCSP). When applied to SoC interconnect fabrics, CCSP can, for instance, accurately guarantee service rates to multiple components and devices (such as on-chip and external components) using a single shared memory. Solutions such as CCSP can be well suited for systems with a well-defined use case, where all agents that require a guaranteed service rate are actively participating, or in systems where the CCSP service-rates can be re-programmed if the use-case changes (e.g. when a given component (such as an audio processor) is switched off and no longer requires service).
In a personal computer, mobile computer, and server-based platforms, re-programming service-rates is often not feasible, because system load changes constantly given the diversity of functions performed by the system. Further, many components may consistently (or always) attempt to access a greater portion of the shared resource than they are assigned, over-subscribing to the resource. As a result, in some instances, if a component in a SoC or another chip or system, such as a Serial ATA (SATA) port, stops utilizing service, or bandwidth, because no hard disk traffic is demanded, it can leave behind excess bandwidth, which can then be fairly re-distributed among those other more active components and requesters that could use the bandwidth. Existing arbitration algorithms can handle re-distribution of intermittent excess bandwidth poorly, for instance, because the algorithms determine eligibility based on provided service. Accordingly, if all components, or requesters, in the system ask for more of the resources than they were originally assigned, all corresponding agents will eventually operate beyond their programmed service rate. This can lead to un-fair distribution of excess bandwidth, among other issues.
An improved arbitration scheme can be provided capable of re-distributing the portion of allocated or bandwidth (or service rates) for one or more requester that become inactive and stop asking for service. Service rates of requesters can be dynamically adjusted for continuously changing use-cases. With such re-distribution of service rate, excess service can be distributed according to the relative service rates as programmed for each active requester, resulting in a continually fair distribution of service in a dynamically changing over-subscribed system. Such arbitration schemes can be provided, for instance, according to and utilizing principles of the example systems, algorithms, logic, techniques, and flows described herein.
Turning to the example of
A variety of schemes and policies can be applied to determine an initial allocation of bandwidth, or service rate. The service rate can be affected, for instance, by what types of components are involved in the requests, the size of the buffers of the respective requesters (e.g., with smaller buffer size encouraging service rates that guarantee a safe maximum latency for the buffer), the type of application or task being performed in connection with the requester (e.g., hard vs. soft real-time activities, the resource-intensiveness of the activity, etc.), as well as the priority afforded a particular requester. The service rates assigned to requesters can change depending on the use case, the number and type of competing requesters, and other factors. Additionally, as use cases change, different use cases are supported, new components are enabled or added, etc. service rates can vary even when the same requesters are competing for the same resource. In some cases, service rates can be dynamically adjusted, for instance, by monitoring use cases of the components for changes in the use case for which a particular, current service rate was determined and assigned. As an illustrative example, a video processing component, at a first instance, can be processing high definition (HD) video and be allocated a first portion of the bandwidth at the first instance. If a user switches to a standard definition (SD) setting, the same video processing component can begin, at a later instant, processing SD video. This transition in the activities and use case of the particular component (e.g., the video processing component) can trigger the service rate for the particular component to be dynamically adjusted to account for the change in use case. Further, service rates of other components sharing the bandwidth of a resource with the particular component can have their respective service rates adjusted (e.g., proportionately) based on the dynamic adjustment of the service rate of the particular component (e.g., whose use case has changed), among other examples.
In the example of
As shown at 415, only one request is capable of being granted at any one cycle. Qualification logic, a static priority queue, and components and logic can drive how and in what order such requests are granted. In the example of
At some samples of time, in the example of
According to the priority policy applied to the arbitration of the two requesters, as represented by curve 530, the first channel begins by consuming all of the available bandwidth 505 up until time t0. During this period, as represented in graph 500b, the first channel steadily consumes credits allocated to it (as represented by curve 540), its credits dropping below a limit 542 until a threshold credit deficit is hit (e.g., at 545) or a threshold credit potential (as illustrated by point 555 of curve 550) of the second channel is hit. As represented in
As noted above, a service rate can be assigned to each requester to guarantee a certain amount of service. The service rate can be specified as a numerator (Num) over a denominator (Denom) and represent a ratio of the overall available bandwidth allocated to the respective requester:
The guaranteed service (GS) can then be expressed simply as:
GS=serviceRate*Throughput (MB/s)
For each request, a credit count, or “service potential”, can be maintained and calculated according to a formula:
where:
As a requester is granted service, the credits (potential) reduces. If another requester is granted (and service to the first requester is momentarily suspended), potential increases. If, no service is provided, however, potential remains constant. Potential can be continuously updated for each cycle of service, both in command and data phases. Further, a requester can be determined eligible for service if:
Potentiali>LIMIT
While an arbitrator can include logic for resolving competing requests for a shared resource, additional logic can also be provided to address instances where one of the requesters becomes temporarily inactive and does not utilize that portion of the bandwidth allocated to it. In some implementations, the portion of the bandwidth unused during an inactive period of a requester can be temporarily distributed to the active requesters to temporarily increase the service rates of the active requesters and make more efficient use of the available bandwidth of a shared resource. If no service-rate reprogramming is provided, as requesters become inactive, the highest priority requester agent may claim the entirety of the excess service left by the inactive requester. In such instances, the “rich get richer” and the service rate of lower priority active requesters remain the same—these requesters do not benefit from the excess service. In some schemes, when excess bandwidth is identified in connection with inactivity of one or more of the requesters, the excess bandwidth can be provided evenly to the remaining active requesters. For instance, priority can be adjusted during periods of inactivity by one or more requesters to cause each active requester to receive an equal portion of the inactive requester's service. However, such a scheme enriches those requesters with relatively lower service rates, as they are afforded the same quantitative increase in redistributed bandwidth as requesters with higher allocated service rates.
In an attempt to provide an illustrative example of the foregoing, nine (9) requesters (and accompanying components and agents) can be provided, such as six SATA channels and three PCIe channels competing for a single 4 MB/s resource and initially allocated the following service rates:
In one hypothetical, all of the SATA requesters may drop out, leaving 3/11 BW (or 1.08 MB/s) of excess service. In a system that allows a higher or highest priority service to absorb the excess service, the resulting redistribution (during the SATA requesters' inactivity) could be realized as:
In an example where excess service resulting from the inactivity of the SATA requesters is distributed in equal quantities (e.g., 1/11 BW) to the three remaining PCIe requesters, the resulting redistribution could be realized as:
An improved service reprogramming and redistribution algorithm can be provided that re-allocates excess bandwidth based on and proportionate to the respective service rates of the requesters prior to the inactivity creating the excess bandwidth. For instance, re-allocating excess bandwidth based on and proportionate to the respective service rates of the requesters in the previous example can result in service rates:
In one example, service rate re-distribution that retains the relative service-rates as assigned to the requesting components can be obtained such as in the preceding example by redistributing excess bandwidth of one or more idle requesters by redistributing the numerators of all non-active requesters to the common denominator (of the original allocation of service) according to a formula:
Returning to the preceding example, with a common service rate denominator of 11 shared between the nine competing channels, as the numerator corresponding to the allocation to the six inactive channels (6*0.05=3) is subtracted from the denominator (11−3=8), the resulting service rates can be calculated as:
Redistribution of another requester's bandwidth can be triggered when the requester is determined to be inactive. Inactivity can be determined according to a variety of techniques. In one example, a threshold amount of potential, or credit count, for a requester can be set (or “potential saturation” for the requester) and inactivity of the requester can be identified based on the requester's credit count hitting the threshold. In some cases, this threshold can act as a ceiling, additionally causing the assignment of additional credits to the requester to be halted. In some instances, a threshold period of time can be set to identify inactivity of a requester. For instance, in one example, inactivity and redistribution of the corresponding requester's credits can be triggered when the credit count has hit a potential saturation and remained at (or, in some cases, above) this level for a particular predefined period of time. Other factors can also be utilized to determine when to trigger redistribution of a requester's bandwidth. Further, potential saturation levels, timeout values, and other thresholds can be defined specific to the individual requesters and be tailored not only to characteristics of the underlying component (e.g., buffer size, performance characteristics or history, etc.) but also based on the particular use-case. For instance, a component may be expected to have intermittent delays in requests during some applications but more consistent requests during other tasks. Accordingly, thresholds defined for a particular component, agent, or, more generally, requester can be based on a variety of factors and can be dynamically adjusted as the factors vary, such as in the case of changing use cases, the number of competing requesters, the presence of higher- or lower-priority requesters, etc.
Turning to the example of
As noted above, potential saturation or other measures of inactivity by a requester can trigger the dynamic re-allocation or distribution of the inactive requester's bandwidth. For instance, at time t2, because the credit level of channel C2 hit the saturation level 630, channel C2 is determined to be at least temporarily inactive and the portion of the overall bandwidth assigned to channel C2 is distributed to the remaining active channels C0 and C1, while channel C2 remains inactive. In this particular example, bandwidth of channel C2 is re-allocated according to the equation:
Accordingly, the denominator of the ratio representing the service rate of the two active requesters is decreased by 1 (i.e., the numerator of the service rate of channel C2), adjusting the respective service rates of channels C0 and C1 to 1/2 BW and temporarily dropping the allocated service rate of the inactive channel C2 to 0, as shown at 635. With the service rate re-allocated between channels C0 and C1, no excess bandwidth remains (e.g., for C0 to disproportionately take). Instead, between t2 and t4, channels C0 and C1 enjoy balanced consumption of the memory bandwidth. Of note is that due to the reallocation, both C0 and C1 are permitted to have credit balances below limit 640, effectively readjusting the limit due to the inactivity of C2.
Continuing with this example, requester C2 may be reactivated, reawakened, or otherwise resume requests of the shared resource. Additional triggers can be defined for determining that the requester has resumed and that the original allocation of bandwidth should be resumed. In some instances, the sending of a request for the shared service can trigger the exit from the re-allocated service rate state (e.g., at 635), and return the service rates to their condition (e.g., at 620) preceding the inactivity by the channel C2. From time t3 to t4 (at 645), by identifying the reactivation of channel C2 and the large (e.g., saturated) credit count of the channel, channel C2 can be granted (e.g., using an arbitrator) sole access to the shared resource, allowing the channel C2 to effectively “catch-up” to the other channels C0 and C1. During this period, requests by the channels C0 and C1 can be buffered until the channels reach an equilibrium, such that the potentials of C0 and C1 are positive again (e.g., at t4) and can resume sharing of the resource as originally allocated (e.g., at 620). Accordingly, channels C0, C1, and C2 can each be restored to a service rate of 1/3 BW (e.g., at 650) until a change in the number of active channels, use cases of the channels, or other event is detected prompting re-programming or temporary reallocation of the shared resource's bandwidth.
Turning now to the simplified flowchart 700 of
Note that the apparatus', methods', and systems described above may be implemented in any electronic device or system as aforementioned. As specific illustrations, the examples below provide exemplary systems for utilizing the invention as described herein. As the systems below are described in more detail, a number of different interconnects are disclosed, described, and revisited from the discussion above. And as is readily apparent, the advances described above may be applied to any of those interconnects, fabrics, or architectures.
Referring now to
While shown with only two processors 870, 880, it is to be understood that the scope of the present invention is not so limited. In other embodiments, one or more additional processors may be present in a given processor.
Processors 870 and 880 are shown including integrated memory controller units 872 and 882, respectively. Processor 870 also includes as part of its bus controller units point-to-point (P-P) interfaces 876 and 878; similarly, second processor 880 includes P-P interfaces 886 and 888. Processors 870, 880 may exchange information via a point-to-point (P-P) interface 850 using P-P interface circuits 878, 888. As shown in
Processors 870, 880 each exchange information with a chipset 890 via individual P-P interfaces 852, 854 using point to point interface circuits 876, 894, 886, 898. Chipset 890 also exchanges information with a high-performance graphics circuit 838 via an interface circuit 892 along a high-performance graphics interconnect 839.
A shared cache (not shown) may be included in either processor or outside of both processors; yet connected with the processors via P-P interconnect, such that either or both processors' local cache information may be stored in the shared cache if a processor is placed into a low power mode.
Chipset 890 may be coupled to a first bus 816 via an interface 896. In one embodiment, first bus 816 may be a Peripheral Component Interconnect (PCI) bus, or a bus such as a PCI Express bus or another third generation I/O interconnect bus, although the scope of the present invention is not so limited.
As shown in
Turning next to
Here, SOC 900 includes 2 cores—906 and 907. Similar to the discussion above, cores 906 and 907 may conform to an Instruction Set Architecture, such as an Intel® Architecture Core™-based processor, an Advanced Micro Devices, Inc. (AMD) processor, a MIPS-based processor, an ARM-based processor design, or a customer thereof, as well as their licensees or adopters. Cores 906 and 907 are coupled to cache control 908 that is associated with bus interface unit 909 and L2 cache 910 to communicate with other parts of system 900. Interconnect 910 includes an on-chip interconnect, such as an IOSF, AMBA, or other interconnect discussed above, which potentially implements one or more aspects of the described invention.
Interface 910 provides communication channels to the other components, such as a Subscriber Identity Module (SIM) 930 to interface with a SIM card, a boot rom 935 to hold boot code for execution by cores 906 and 907 to initialize and boot SOC 900, a SDRAM controller 940 to interface with external memory (e.g. DRAM 960), a flash controller 945 to interface with non-volatile memory (e.g. Flash 965), a peripheral control 950 (e.g. Serial Peripheral Interface) to interface with peripherals, video codecs 920 and Video interface 925 to display and receive input (e.g. touch enabled input), GPU 915 to perform graphics related computations, etc. Any of these interfaces may incorporate aspects of the invention described herein.
In addition, the system illustrates peripherals for communication, such as a Bluetooth module 970, 3G modem 975, GPS 985, and WiFi 985. Note as stated above, a UE includes a radio for communication. As a result, these peripheral communication modules are not all required. However, in a UE some form a radio for external communication is to be included.
While the present invention has been described with respect to a limited number of embodiments, those skilled in the art will appreciate numerous modifications and variations therefrom. It is intended that the appended claims cover all such modifications and variations as fall within the true spirit and scope of this present invention.
A design may go through various stages, from creation to simulation to fabrication. Data representing a design may represent the design in a number of manners. First, as is useful in simulations, the hardware may be represented using a hardware description language or another functional description language. Additionally, a circuit level model with logic and/or transistor gates may be produced at some stages of the design process. Furthermore, most designs, at some stage, reach a level of data representing the physical placement of various devices in the hardware model. In the case where conventional semiconductor fabrication techniques are used, the data representing the hardware model may be the data specifying the presence or absence of various features on different mask layers for masks used to produce the integrated circuit. In any representation of the design, the data may be stored in any form of a machine readable medium. A memory or a magnetic or optical storage such as a disc may be the machine readable medium to store information transmitted via optical or electrical wave modulated or otherwise generated to transmit such information. When an electrical carrier wave indicating or carrying the code or design is transmitted, to the extent that copying, buffering, or re-transmission of the electrical signal is performed, a new copy is made. Thus, a communication provider or a network provider may store on a tangible, machine-readable medium, at least temporarily, an article, such as information encoded into a carrier wave, embodying techniques of embodiments of the present invention.
A module as used herein refers to any combination of hardware, software, and/or firmware. As an example, a module includes hardware, such as a micro-controller, associated with a non-transitory medium to store code adapted to be executed by the microcontroller. Therefore, reference to a module, in one embodiment, refers to the hardware, which is specifically configured to recognize and/or execute the code to be held on a non-transitory medium. Furthermore, in another embodiment, use of a module refers to the non-transitory medium including the code, which is specifically adapted to be executed by the microcontroller to perform predetermined operations. And as can be inferred, in yet another embodiment, the term module (in this example) may refer to the combination of the microcontroller and the non-transitory medium. Often module boundaries that are illustrated as separate commonly vary and potentially overlap. For example, a first and a second module may share hardware, software, firmware, or a combination thereof, while potentially retaining some independent hardware, software, or firmware. In one embodiment, use of the term logic includes hardware, such as transistors, registers, or other hardware, such as programmable logic devices.
Use of the phrase ‘to’ or ‘configured to,’ in one embodiment, refers to arranging, putting together, manufacturing, offering to sell, importing and/or designing an apparatus, hardware, logic, or element to perform a designated or determined task. In this example, an apparatus or element thereof that is not operating is still ‘configured to’ perform a designated task if it is designed, coupled, and/or interconnected to perform said designated task. As a purely illustrative example, a logic gate may provide a 0 or a 1 during operation. But a logic gate ‘configured to’ provide an enable signal to a clock does not include every potential logic gate that may provide a 1 or 0. Instead, the logic gate is one coupled in some manner that during operation the 1 or 0 output is to enable the clock. Note once again that use of the term ‘configured to’ does not require operation, but instead focus on the latent state of an apparatus, hardware, and/or element, where in the latent state the apparatus, hardware, and/or element is designed to perform a particular task when the apparatus, hardware, and/or element is operating.
Furthermore, use of the phrases ‘capable of/to,’ and or ‘operable to,’ in one embodiment, refers to some apparatus, logic, hardware, and/or element designed in such a way to enable use of the apparatus, logic, hardware, and/or element in a specified manner. Note as above that use of to, capable to, or operable to, in one embodiment, refers to the latent state of an apparatus, logic, hardware, and/or element, where the apparatus, logic, hardware, and/or element is not operating but is designed in such a manner to enable use of an apparatus in a specified manner.
A value, as used herein, includes any known representation of a number, a state, a logical state, or a binary logical state. Often, the use of logic levels, logic values, or logical values is also referred to as 1's and 0's, which simply represents binary logic states. For example, a 1 refers to a high logic level and 0 refers to a low logic level. In one embodiment, a storage cell, such as a transistor or flash cell, may be capable of holding a single logical value or multiple logical values. However, other representations of values in computer systems have been used. For example the decimal number ten may also be represented as a binary value of 1010 and a hexadecimal letter A. Therefore, a value includes any representation of information capable of being held in a computer system.
Moreover, states may be represented by values or portions of values. As an example, a first value, such as a logical one, may represent a default or initial state, while a second value, such as a logical zero, may represent a non-default state. In addition, the terms reset and set, in one embodiment, refer to a default and an updated value or state, respectively. For example, a default value potentially includes a high logical value, i.e. reset, while an updated value potentially includes a low logical value, i.e. set. Note that any combination of values may be utilized to represent any number of states.
The embodiments of methods, hardware, software, firmware or code set forth above may be implemented via instructions or code stored on a machine-accessible, machine readable, computer accessible, or computer readable medium which are executable by a processing element. A non-transitory machine-accessible/readable medium includes any mechanism that provides (i.e., stores and/or transmits) information in a form readable by a machine, such as a computer or electronic system. For example, a non-transitory machine-accessible medium includes random-access memory (RAM), such as static RAM (SRAM) or dynamic RAM (DRAM); ROM; magnetic or optical storage medium; flash memory devices; electrical storage devices; optical storage devices; acoustical storage devices; other form of storage devices for holding information received from transitory (propagated) signals (e.g., carrier waves, infrared signals, digital signals); etc, which are to be distinguished from the non-transitory mediums that may receive information there from.
Instructions used to program logic to perform embodiments of the invention may be stored within a memory in the system, such as DRAM, cache, flash memory, or other storage. Furthermore, the instructions can be distributed via a network or by way of other computer readable media. Thus a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), but is not limited to, floppy diskettes, optical disks, Compact Disc, Read-Only Memory (CD-ROMs), and magneto-optical disks, Read-Only Memory (ROMs), Random Access Memory (RAM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic or optical cards, flash memory, or a tangible, machine-readable storage used in the transmission of information over the Internet via electrical, optical, acoustical or other forms of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.). Accordingly, the computer-readable medium includes any type of tangible machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
The following examples pertain to embodiments in accordance with this Specification. One or more embodiments may provide an apparatus, a system, a machine readable storage, a machine readable medium, and a method to determine that a particular requester of three or more requesters of a shared system resource is inactive, where each of the three or more requesters is to be allocated a respective service rate that is to represent a corresponding share of available bandwidth of the system resource and the respective service rate of the particular requester to be allocated comprises a first service rate that is to represent a first share of the bandwidth, and reallocate the first share of the bandwidth to each active requester in the three or more requesters to distribute the first portion of the bandwidth according to the relative services rates of the active requesters, where the first share of the bandwidth is to be reallocated while the particular requester remains inactive.
In at least one example, each of the services rates of the other requesters are increased according to the reallocation while the particular requester remains inactive.
In at least one example, a request is identified by the particular requester following reallocation of the first share of the bandwidth, and the first share of the bandwidth is returned to the particular requester based on the request.
In at least one example, determining that the particular requester is inactive. The determination can be based on a determination that the particular requester has met a pre-defined inactivity threshold. The inactivity threshold can include a threshold number of unused credits assigned to the particular requester according to the credit-based arbitration. The inactivity threshold can include a time-based threshold such as one based on an amount of time at or above the threshold number of unused credits. The inactivity threshold includes a requester-specific threshold and at least two of the three or more requester have different inactivity thresholds.
In at least one example, credit-based arbitration of requests is performed by the three or more requesters to the shared system resource.
In at least one example, the other requesters consume unused bandwidth allocated to the particular requester prior to the determined inactivity, and the consumption of the unused bandwidth prior to the determined activity is disproportionate to the relative services rates of the other requesters.
In at least one example, access to the shared system resource is based at least in part on relative priority of a requester to the other requesters in the three of more requesters.
In at least one example, each share of the bandwidth allocated to a respective one of the three or more requesters is expressed as a respective numerator over a common denominator and shares of the bandwidth of inactive requesters are to be redistributed to remaining active requesters according to a formula:
ServiceRate=Num—i/(Denom−SUM(Num_inactive)),
where ServiceRaie is a service rate of a remaining active requester following the redistribution, Num_i is the numerator of the corresponding share of the bandwidth of the active requester, Denom is the denominator, and SUM(Num_inactive) is the sum of the respective numerators of the inactive requesters in the three or more requesters.
In at least one example, the three or more requesters comprise at least four requesters and at least one other requester is inactive when determining that the particular requester is inactive and reallocating the first share of the bandwidth to the active requesters.
In at least one example, access to the shared system resource by the three or more requesters is arbitrated.
In at least one example, arbitration is to guarantee the allocated service rate for each of the three or more requesters.
In at least one example, the arbitration is based at least in part on the respective service rates allocated to the three or more requesters and further based in part on relative priority of each of the three or more requesters to the shared system resource.
In at least one example, the service rate of at least one of the three or more requester is based at least in part on a particular activity performed by the requester in connection with access to the shared system resource by the requester.
In at least one example, the allocation logic is further to allocate the respective shares of the bandwidth to the three or more requesters.
One or more embodiments may provide a system including a shared system resource, a first device, and an arbitrator. The arbitrator can determine that a particular one of three or more requesters of the shared system resource is inactive. Each of the three or more requesters can be allocated a respective service rate representing a corresponding share of available bandwidth of the system resource and the allocated service rate of the particular requester can include a first service rate representing a first share of the bandwidth, and at least one of the three or more requesters can correspond to the first device. The arbitrator can reallocate the first share of the bandwidth to each active requester in the three or more requesters to distribute the first portion of the bandwidth according to the relative services rates of the active requesters, where the first share of the bandwidth is to be reallocated while the particular requester remains inactive.
In at least one example, the shared system resource includes at least a portion of an interconnect of the system.
In at least one example, the shared system resource includes a shared memory resource.
In at least one example, an apparatus is provided including an integrated circuit including a plurality of components, allocation logic to allocate a particular service rate to a particular component of the plurality of components based on a priority credit algorithm, and reallocation logic to reallocate the particular service rate to one or more of the plurality of components other than the particular component based on relative service rates of the one or more components in response to the particular component not continuing to request service.
Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In the foregoing specification, a detailed description has been given with reference to specific exemplary embodiments. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative sense rather than a restrictive sense. Furthermore, the foregoing use of embodiment and other exemplarily language does not necessarily refer to the same embodiment or the same example, but may refer to different and distinct embodiments, as well as potentially the same embodiment.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/US2013/048805 | 6/29/2013 | WO | 00 |