The technical field of this disclosure relates to cache memory for data processors.
Phased caches were previously introduced as cache architecture to reduce the redundant and high-energy consumption caused by reading all data ways on every cache access even though only one of them will be used if the access hits the cache. Phased caches do not query the data arrays in the first cycle of access but rather, wait until a hit is determined before accessing the specific data way hit. This saves dynamic read energy but static energy consumption is not reduced since both the tag and data arrays are ON throughout the program execution.
The rapid increase in microprocessor speed has exceeded the rate of improvement in DRAM (Dynamic Random Access Memory) speed in recent years. This widening performance gap between processors and memories has created several challenges for computer designers since memory performance can easily become a bottleneck to overall system performance. Specifically, processor performance has been observed to increase at about 60% annually, while memory systems lag significantly behind at about 10% annual improvement. To solve this problem, designers turn to memory performance improvements which ultimately dictate the performance and power consumption of processors.
Caching is a common approach used to achieve memory system speed up, by storing data that has been recently used in faster memory. Therefore, using a larger cache could increase the access hit rate, which in turn improves processor speed but this comes at a cost-increased hardware and higher static and dynamic energy consumption.
As a result, there is usually a trade-off between energy and performance in memory system design, since not all accessed memory locations can be stored in faster memories such as caches. Current memory systems designed with SRAMs, DRAMs and/or CAMs, have not been able to catch up with processor performance. As a result, larger caches are often employed in memory systems to bridge this memory processor performance gap. While these large caches offer improved performance, they also increase the power consumed by the processor. An alternative to improve performance is associativity, but it also leads to increased power consumption due to parallel querying of multiple tags. This increasing cache power consumption resulting from the drive for improved performance, cannot be overlooked because caches contribute a significant fraction of the overall power consumed by modern processors. Several authors have concluded that cache/memory systems contribute 30-60% of the total power consumed by processors.
Reducing cache size in an attempt to save power is not an option either, because it leads to higher miss rates and effectively more energy consumption. As a result, several attempts have been made to reduce voltages and design lower power circuits to reduce the high proportion of power consumed by caches/memory systems. However, these circuit level techniques have not been very successful; rather, power dissipation levels have steadily increased with each new microprocessor generation, leading to a renewed interest in architectural approaches that reduce the switching capacitive power component of memory systems without sacrificing performance. In an attempt to save power, some researchers have directed their architectural improvements at better performance because of the observation that improved performance (i.e. less misses) usually lead to less power consumption. Others focus on power reduction techniques targeted at specific aspects of the architecture, with some trade off in performance.
This invention deterministically powers ON only data RAM lines or group of lines that will be accessed in the immediate future while keeping all other lines powered down. The tag RAMs remain ON to avoid any extra latency associated with powering on a tag RAM/line that is to be accessed. The data RAM on the other hand is deterministically powered ON before access with no extra latency. This is possible in phased caches because hit determination takes a minimum of 2-cycles before data RAM access. Therefore, the power-ON sequence for a set/set-group is triggered on every access to the set/group. Once the hit/miss is determined in the second cycle, all ways of the set will be ON, then power down begins for all other ways except the matched (hit/miss) way. The powered ON set/ways are kept ON until the request has been completely processed. All outstanding accesses, in all pipe stages and buffers contribute to the overall power ON state of an individual cache line or group of lines they belong. When way information becomes available, all other ways not scheduled to be read/written are also powered down if no other member of that set or power group of sets needs the way ON.
These and other aspects of this invention are illustrated in the drawings, in which:
The deterministic napping technique shown in this invention reduces static/leakage power in caches by leveraging the ability to retain memory contents at low power states. This technique also takes advantage of the fact that data RAMs do not have to be read in the first cycle of cache access while the lines of the referenced set are being transitioned to full power state. These data RAM accesses can occur after tag RAM reads during hit/miss determination or even a cycle after as in phased cache architectures. Unlike conventional drowsy caches, which keep most lines of the data RAM in a low power state, and only restores full power when an access occurs to such low powered lines, the dNap architecture, maintains cache lines that will be accessed in the immediate future, in a fully powered state. This ensures accesses are never stalled while a wake up is being triggered. As a result, dNap caches do not suffer from the performance degradation incurred by conventional drowsy caches, due to accesses to a low powered line. The proposed approach is specifically focused on deterministic naps in only the data RAMs, for two main reasons. First, data RAMs are known to be much larger than the tag RAMs, therefore, they contribute a major portion of static energy. Second, cache accesses are non-deterministic and can occur at any time, starting with a tag RAM read. Therefore, the tag RAMs are always fully powered to avoid delays due to waking a napping tag line.
A Memory Nap Controller (MNC) is used to track in-flight cache access to transition fully powered lines to a low power napping state. The full power transition is always completed ahead of data RAM access with no extra latency incurred at the time of access. This is enabled by delaying data RAM accesses by 1 or 2 cycles after tag RAM read depending on architecture pipe-line. All current and outstanding accesses, in all pipeline stages and buffers contribute to the overall power ON state of any individual cache line.
The ease of integrating the dNap architecture with existing cache architectures is discussed as it relates to both high performance and low power architectures. First,
Deterministic napping at the individual cache line allows the maximum number data RAM lines to be kept in nap state, given individual cache line power can now be controlled independently. But this may not be easily achievable in some existing cache architectures which already use memory arrays that group multiple cache lines together for power and area savings. This is usually the case with vendor supplied memory arrays.
To enable the use of existing low power retention available in vendor memories, and to make the deterministic nap architecture more robust, deterministic napping is extended to contiguous cache line groups. The choice of contiguous cache lines is due to the spatial locality of access which suggests that the next contiguous line will most likely be accessed after the current one. Therefore, keeping these contiguous cache lines in the same power state benefits from the proposed deterministic napping scheme by reducing the triggers to transition between nap and full power states by the dNap power controller. For example,
Vendor supplied memories that already have a built-in low power retention state benefit more from this scheme because they do not need any extra nap state logic per cache line. The trade-off, on the other hand, is possible reduction in static power savings due to more cache lines effectively being fully powered as a result of the power groupings. For example, suppose we have a 2-Way set associative 8 KB cache with 32-byte lines, this cache would have 64 sets per way as seen in
Power-performance trade off of deterministic napping at the individual cache line allows the maximum number of data RAM lines to be kept in Drowsy state, given individual cache line power can now be controlled independently. This offers the best static power savings possible in this architecture because only cache lines offsets to be accessed in the immediate future are fully powered. But this comes at the expense of extra hardware required to implement both the MNC and the individual nap power logic per cache line. Memory system architects can choose to group multiple cache lines into single memory banks to reduce this hardware overhead as needed. Also, to take advantage of the built-in low power feature available in some vendor supplied SRAM memory arrays, system architects can choose to fully power a memory array whenever there is at least an access to any of the lines of the SRAM array.
This eliminates most of the hardware overhead due to napping and wake-up implementation logic but offers lower static power savings because more cache lines are effectively fully powered. Given there are no readily available tools to evaluate static power consumption by dNap caches, we resolved to using Equation 1 for static power proposed by Butts and Sohi
Pstatic=Vcc*N*Kdesign*Ileak (1)
where: Vcc is the supply voltage (Full power is 1.0 V, drowsy power is 0.3 V): N is the number of transistors; Kdesign is a design dependent parameter; and Ileak is the leakage current which is technology dependent. Since both N and Kdesign remain constant in both drowsy and full power state, and we already have the Vcc in these states, we evaluate the Drowsy state leakage current Ileak_d as a function of the full power leakage current Ileak using Equation 2 based on the BSIM3 v3.2 equation for leakage.
where: μ0 is the zero bias mobility; Cox is gate oxide capacitance per unit area,
is the transistor aspect ratio; eb(V
and Vdd0 are statically defined parameters. The DIBL factor b, sub threshold swing coefficient, n and Voff were derived from the curve fitting method based on the transistor level simulations. We calculate the leakage current in drowsy mode Ileak_d as a function of Ileak as follows, where Vdd
Since
and Vdd0 are static parameters, they cancel out yielding Equation 6.
The thermal voltage Vt is
where: K is the Boltzman constant 1.38088*10−23; q is 1.602*10−19; and T is chosen as 350 K rather than the default 300 K in the hot leakage tool to be consistent with Cacti toolset. We retain the default value of empirical parameter for Vdd, b=2.0 for the 70 nm node. Equation 6 therefore yields Equation 7 after substitution.
Ileak_d=0.24659*Ileak (7)
Equation 7 which is consistent with estimations is integrated into Cacti for drowsy leakage power evaluations.
The static (or leakage) power on the dNap architecture was measured and compared against equivalently configured conventional caches. Simulations were run on 32 KB level 1 (L1) caches with one power enable per line (i.e., w=1), n=3 pipe-line stages and m=4 buffers, and it is expected that at most N ways (where N ways is set associativity) cache lines will be fully powered due to an access in stage 1 and 2, while only 1 cache line in stage 3 and each of the 4 buffers is fully powered in the presence of an access. This is consistent with simulation results, which show more than 92% leakage power savings using the dNap cache architecture.
Simulation results indicate more than 92% leakage power savings is achievable with the proposed dNap cache architecture.
The dNap scheme shows a slightly better leakage power savings percentage in the L1 Data cache because there were fewer accesses to the L1D in the 500 million cycle simulation window across the benchmarks. This allows the L1D cache to have a higher proportion of cache lines in nap state during program execution.
The significant static power savings (more than 90%) due to the dNap architecture does not vary much across different associativities, because the number of fully powered cache lines only varies in the first 2 cache pipe-stages before hit/miss way is known. This difference is less than 1% because simulation configurations use 1024 cache lines (i.e., 32 KB cache, 32 byte lines), and the maximum number of extra lines in the 16 Way cache configuration are the 15 extra ways in the first 2 pipe stages before hit/miss determination. This results in only 30 extra cache lines fully powered out of 1024 lines versus the direct mapped cache alternative.
Also, there can only be a maximum of “2*N ways+n−2+m” fully powered lines at any given cycle during program execution in the proposed dNap architecture, where N ways is associativity, n is the number of pipe-stages and m is the number of buffers. This suggests that the performance of the dNap technique will show only negligible variations in static/leakage power savings as reflected in
The static power reduction benefits of deterministic napping is also evaluated in low power wearable medical devices.
Also, there can only be a maximum of “2*N ways+n−2+m” fully powered lines at any given cycle during program execution in the proposed dNap architecture, where N ways is associativity, n is the number of pipe-stages and m is the number of buffers. This suggests that the performance of the dNap technique will show only negligible variations in static/leakage power savings as reflected in
The overall leakage power reduction across the cache hierarchy is further evaluated while highlighting the effect of dNap logic and dynamic power due to nap state transitions. This was achieved using the default Intel configuration in the sniper simulator, with 64-byte cache lines, 32 KB L1I and L1D with 4-Way and 8-Way associativity respectively. The L2 and L3 were configured as 8-Way 256 KB and 16-Way 32MBrespectively. The McPAT power measurements are summarized in Table 3. It shows the overhead due to nap state transitions are negligible while dNap power savings are still significant, with the highest power contribution due to the always fully powered dNap logic.
Leakage (or static) power reduction due to dNaps was also evaluated in a multi core environment.
It is worth noting that more cache lines per dNap group leads to fewer wake-up transitions due to more fully powered lines over the course of program execution. It was also observed that all power groups in all benchmarks evaluated in this work, completely transitioned in and out of nap state within a single clock cycle.
Both the Simple scalar toolset and Cacti v6.5 toolset was used as the basis of the simulator development for static power evaluation. While there are multiple flavors of these tools, none completely model the architectural technique shown in this invention. Therefore, a robust simulator was developed using both existing tools as basis. The state of all cache lines are tracked per cycle and the static power for each line is computed using Equations 1 and 7. The total static energy for 500 million cycles of simulation was collected for different 32 KB cache configurations on SPEC2006 benchmarks and compared with conventional non-drowsy caches. Table 4 gives a brief summary of the default configurations used across all of the simulations.
This application is a continuation of and claims priority to U.S. patent application Ser. No. 17/541,776, filed Dec. 3, 2021, now U.S. Pat. No. 11,775,046, which is a continuation of and claims priority to U.S. patent application Ser. No. 16/933,407, filed Jul. 20, 2020, now U.S. Pat. No. 11,221,665, which is a continuation of and claims priority to U.S. patent application Ser. No. 16/253,363, filed Jan. 22, 2019, now U.S. Pat. No. 10,725,527, which is a continuation of and claims priority to U.S. patent application Ser. No. 15/804,785, filed Nov. 6, 2017, now U.S. Pat. No. 10,191,534, which is a continuation of and claims priority to U.S. patent application Ser. No. 15/431,922, filed Feb. 14, 2017, now U.S. Pat. No. 9,811,148, which is a divisional of and claims priority to U.S. patent application Ser. No. 14/694,285, filed Apr. 23, 2015, now abandoned, which claims the benefit of related U.S. Provisional Application Ser. No. 61/983,216, filed Apr. 23, 2014, all of which are incorporated by reference herein in their entireties.
Number | Name | Date | Kind |
---|---|---|---|
7127560 | Cohen et al. | Oct 2006 | B2 |
7443759 | Rowlands et al. | Oct 2008 | B1 |
7647452 | Moll et al. | Jan 2010 | B1 |
8225046 | Licht | Jul 2012 | B2 |
20020129201 | Maiyuran et al. | Sep 2002 | A1 |
20080082753 | Licht et al. | Apr 2008 | A1 |
20080120514 | Ismail et al. | May 2008 | A1 |
20100275049 | Balakrishnan et al. | Oct 2010 | A1 |
20110235459 | Ware et al. | Sep 2011 | A1 |
20110283124 | Branover et al. | Nov 2011 | A1 |
20120096295 | Krick | Apr 2012 | A1 |
20140095777 | Biswas et al. | Apr 2014 | A1 |
20140122824 | Lewsey | May 2014 | A1 |
20140337605 | Hall et al. | Nov 2014 | A1 |
Number | Date | Country | |
---|---|---|---|
20230384854 A1 | Nov 2023 | US |
Number | Date | Country | |
---|---|---|---|
61983216 | Apr 2014 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14694285 | Apr 2015 | US |
Child | 15431922 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 17541776 | Dec 2021 | US |
Child | 18450079 | US | |
Parent | 16933407 | Jul 2020 | US |
Child | 17541776 | US | |
Parent | 16253363 | Jan 2019 | US |
Child | 16933407 | US | |
Parent | 15804785 | Nov 2017 | US |
Child | 16253363 | US | |
Parent | 15431922 | Feb 2017 | US |
Child | 15804785 | US |