Dynamic partial shutdown of a RAM-side cache in a two-level RAM hierarchy

DE112011105984B4Active Publication Date: 2024-10-17INTEL CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
DE112011105984
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2011-12-20
Publication Date
2024-10-17
Estimated Expiration
2031-12-20

AI Technical Summary

Technical Problem

Current computer systems face limitations in memory and storage technology, including high power consumption, volatility of DRAM, limited speed of flash memory, and inefficiencies in caching protocols, which affect battery life and performance in portable devices.

Method used

Implementing a multi-level memory hierarchy using non-volatile random access memory (NVRAM) such as PCM, which retains data without power, reduces idle power consumption, and allows byte-level access, combined with a near-memory cache to optimize performance and capacity.

Benefits of technology

The solution provides efficient use of memory resources, reduces power consumption, and enhances performance by intelligently dividing tasks between DRAM and NVRAM, enabling extended battery life and improved caching strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Dual inline memory module or DIMM (458), comprising: a host interface, wherein the host interface implements a transaction protocol that assigns identifiers to data transfer transactions transferred over a dual data rate memory channel (457) between a host and the DIMM (458), wherein the data transfer transactions transfer units of data between the host and the DIMM (458); a non-volatile memory, wherein the non-volatile memory is a destination of a write operation directed by the host to the DIMM (458) over the dual data rate memory channel (457); register space for specifying which of the following caching options the DIMM (458) supports: a write-back caching mode, a write-through caching mode;Circuits for receiving a clearing signal as a result of a power failure event, wherein the circuits are configured to shift, in response to the clearing signal, write data received by the DIMM (458) but not yet written to the non-volatile memory from a volatile storage resource on the DIMM (458), where the write data resides, towards the non-volatile memory.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND Area of ​​the invention

[0001] The present invention relates generally to the field of computer systems. More specifically, the invention relates to a device and method for implementing a multi-level memory hierarchy. General State of the Art A. Current RAM and Storage Configurations

[0002] One of the limiting factors of computer innovation today is memory and storage technology. In conventional computer systems, system memory (also known as main memory, primary memory, or executable memory) is typically implemented as dynamic memory (DRAM). DRAM-based memory consumes power even when no read or write operations are taking place because it constantly needs to recharge internal capacitors. DRAM-based memory is volatile, meaning that data stored in DRAM memory is lost as soon as the power is turned off. Conventional computer systems also rely on multiple levels of caching to improve performance.A cache is a fast memory located between the processor and system memory to handle memory access requests faster than system memory could. Such caches are typically implemented using static main memory (SRAM). Cache management protocols can be used to ensure that the most frequently accessed data and instructions are stored within one of the cache levels, thereby reducing the number of memory access transactions and improving performance.

[0003] With regard to mass storage (also referred to as secondary storage or disk storage), conventional mass storage devices typically include magnetic media (e.g., hard disk drives), optical media (e.g., CD ("Compact Disc") drives, DVD ("Digital Versatile Disc") drives, etc.), holographic media, and / or mass storage flash memory (e.g., solid-state drives (SSDs), removable flash drives, etc.). Generally, these storage devices are considered input / output (I / O) devices because the processor accesses them through various I / O adapters that implement various I / O protocols. These I / O adapters and I / O protocols consume a significant amount of power and can have a substantial impact on the platform's footprint and form factor. Portable or mobile devices (e.g.,Laptop computers, netbook computers, tablet computers, personal digital assistants (PDAs), portable media players, portable gaming devices, digital cameras, mobile phones, smartphones, feature phones, etc., which have a limited battery life when not connected to a continuous power supply, may have removable mass storage devices (e.g., an integrated multimedia card (eMMC), a secure digital (SD) card) that are typically coupled to the processor via low-power interconnects and I / O controllers to accommodate active and inactive power budgets.

[0004] With regard to firmware memory (such as boot memory (also known as BIOS flash)), a conventional computer system typically uses flash memory devices to store persistent system information that is frequently read but rarely (or never) overwritten. For example, the initial instructions executed by a processor to initialize major system components during a boot process (BIOS (Basic Input and Output System) images) are typically stored in a flash memory device. Flash memory devices currently available on the market generally have a limited speed (e.g., 50 MHz). This speed is further reduced by the overhead of read protocols (e.g., 2.5 MHz).To increase BIOS execution speed, conventional processors generally cache a portion of the BIOS code during the PEI (Pre-Extensible Firmware Interface) phase of the boot process. The size of the processor's cache limits the amount of BIOS code that can be used in the PEI phase (also known as PEI BIOS code). B. Phase change memory (PCM) and related technologies

[0005] Phase-change memory (PCM), sometimes also called random-access phase-change memory (PRAM or PCRAM), PCME, Ovonik unit memory, or chalcogenide RAM (C-RAM), is a type of non-volatile computer memory that utilizes the unique properties of chalcogenide glass. Due to heat generated by the passage of an electric current, chalcogenide glass can switch between two states: crystalline and amorphous. Newer versions of PCM can achieve two additional distinct states.

[0006] A PCM offers better performance than flash memory because the PCM's memory element can be switched faster, writing (changing individual bits to 1 or 0) can be done without first erasing an entire block of cells, and write degradation is slower (a PCM device can withstand approximately 100 million write cycles; PCM degradation is due to thermal expansion during programming, migration of metal (and other materials), and other mechanisms). BRIEF DESCRIPTION OF THE DRAWINGS

[0007] The following description and the accompanying drawings are used to illustrate embodiments of the invention. They show:

[0008] Fig. 1 a buffer and system storage arrangement according to the embodiments of the invention;

[0009] Fig.2 a working memory and storage memory hierarchy used in the embodiments of the invention;

[0010] Fig. 3 a computer system in which embodiments of the invention can be implemented;

[0011] Fig. 4A a first system architecture comprising a PCM, according to the embodiments of the invention;

[0012] Fig. 4B a second system architecture comprising a PCM, according to the embodiments of the invention;

[0013] Fig. 4C a third system architecture comprising a PCM, according to the embodiments of the invention;

[0014] Fig. 4D a fourth system architecture comprising a PCM, according to the embodiments of the invention;

[0015] Fig. 4E a fifth system architecture comprising a PCM, according to the embodiments of the invention;

[0016] Fig.4F a sixth system architecture comprising a PCM, according to the embodiments of the invention;

[0017] Fig. 4G a seventh system architecture comprising a PCM, according to the embodiments of the invention;

[0018] Fig. 4H an eighth system architecture comprising a PCM, according to the embodiments of the invention;

[0019] Fig. 4I a ninth system architecture comprising a PCM, according to the embodiments of the invention;

[0020] Fig. 4J a tenth system architecture comprising a PCM, according to the embodiments of the invention;

[0021] Fig. 4K an eleventh system architecture comprising a PCM, according to the embodiments of the invention;

[0022] Fig. 4L a twelfth system architecture comprising a PCM, according to the embodiments of the invention; and

[0023] Fig.4M a thirteenth system architecture comprising a PCM, according to the embodiments of the invention.

[0024] Fig. 7A and B embodiments of the invention for deactivating areas of an MSC.

[0025] Fig. 7A and B embodiments of the invention for deactivating areas of an MSC.

[0026] Fig. 8A and B embodiments of the invention for emptying an MSC in response to a power failure condition.

[0027] Fig. 9A and B embodiments of the invention for emptying modified buffer lines from an MSC in response to a sleep state. DETAILED DESCRIPTION

[0028] The following description sets out numerous specific details, such as logical implementations, machine instructions, means for specifying operands, implementations for decomposing / dividing / duplicating resources, types and relationships of system components, and logical decomposition / integration alternatives, to provide a more comprehensive understanding of the present invention. However, those skilled in the art will understand that the invention can be implemented in practice without these specific details. In other instances, control structures, gate-level circuits, and complete software instruction sequences have not been shown in detail in order to avoid obscuring the invention. Those skilled in the art will be able to implement the appropriate function without unnecessary experimentation using the accompanying descriptions.

[0029] References in the description to “a single embodiment,” “an embodiment,” “an exemplary embodiment,” etc., indicate that the described embodiment may include a specific feature, structure, or distinguishing mark, but that not every embodiment necessarily has to include that specific feature, structure, or distinguishing mark. Furthermore, such phrases do not necessarily refer to the same embodiment. Moreover, when a specific feature, structure, or distinguishing mark is described in connection with an embodiment, it is assumed that it is common knowledge to a person skilled in the art to implement such a feature, structure, or distinguishing mark in connection with other embodiments, whether or not they are explicitly described.

[0030] In the following description and claims, the terms "coupled" and "connected" may be used together with their derivatives. It is understood that these terms are not intended to be synonymous. "Coupled" is used to indicate that two or more elements, which may be in direct physical or electrical contact with each other, work together or interact. "Connected" is used to indicate the establishment of communication between two or more elements that are coupled together.

[0031] Text in brackets and blocks with dashed borders (e.g., long dashes, short dashes, semicolons, dots) are occasionally used here to explain optional operations / components that add additional features to the embodiments of the invention. However, such notation is not intended to imply that these are the only options or optional operations / components, and / or that blocks with solid borders are not optional in certain embodiments of the invention. INTRODUCTION

[0032] The demands on the capacity and performance of RAM continue to increase with the growing number of processor cores and new usage models, such as virtualization. In addition, the power consumption and cost of RAM have become significant components of the overall power consumption and total cost of electronic systems.

[0033] Some embodiments of the invention address the challenges mentioned above by intelligently distributing the performance and capacity requirements among memory technologies. The focus of this approach is to deliver performance with a relatively small amount of faster memory, such as DRAM, while implementing the majority of system memory using significantly less expensive and denser non-volatile random access memory (NVRAM). The embodiments of the invention described below define platform configurations that enable hierarchical organization of memory subsystems for the use of NVRAM. The use of NVRAM in the memory hierarchy also enables new uses, such as implementations of extended boot space and mass storage, as described in more detail below.

[0034] Fig.Figure 1 depicts a buffer and system storage arrangement according to the embodiments of the invention. In particular, it shows Fig. 1. A memory hierarchy comprising a set of internal processor caches 120 , a “local working memory”, which serves as a remote working memory buffer 121 It serves to provide one or more internal caches 106 as well as external caches 107 until 109 may include, and a “remote workspace” 122 This includes a specific type of working memory that can be used as "remote working memory" in some embodiments of the invention, a non-volatile random access memory ("NVRAM"). Therefore, an overview of NVRAM is provided below, followed by an overview of remote working memory and local working memory. A. Non-volatile random access memory (“NVRAM”)

[0035] There are numerous possible technical alternatives to NVRAM, including PCM, Phase Change Memory and Switching (PCMS) (the latter being a more specific implementation of the former), byte-addressable persistent memory (BPRAM), general-purpose memory, Ge2Sb2Te5, programmable metallization cell (PMC), resistive memory (RRAM), RESET (amorphous) cell, SET (crystalline) cell, PCME, Ovshinsky memory, ferroelectric memory (also known as polymer and poly(N-vinylcarbazole) memory), ferromagnetic memory (also known as spintronics, SPRAM ("spin transfer torque RAM"), STRAM ("spin tunneling RAM"), magnetoresistive memory, magnetic memory, magnetic random access memory (MRAM)), and semiconductor oxide-nitride-oxide semiconductors. (SONOS, also known as dielectric working memory).

[0036] For use in the memory hierarchy described in this document, the NVRAM has the following characteristics: (1) It retains its contents even when the power is switched off, similar to FLASH memory used in solid-state drives (SSDs), and unlike SRAM and DRAM, which are volatile; (2) lower power consumption at idle than volatile memory such as SRAM and DRAM; (3) random access similar to SRAM and DRAM (also referred to as randomly addressable); (4) overwritable and erasable at a lower granularity level (e.g., at the byte level) than a FLASH memory found in SSDs (which can only be overwritten and erased “block by block”, at least 64 KB for NOR FLASH memory and 16 KB for NAND FLASH memory); (5) usable as system memory and with allocation of the entire system memory address space or part thereof; (6) can be coupled to the processor via a bus using a transaction protocol (a protocol that supports transaction identifiers (IDs) to distinguish different transactions so that these transactions can be terminated in a random order) and allow access at a granularity level low enough to support the operation of the NVRAM as system memory (e.g., with a buffer row size of about 64 or 128 bytes). For example, the bus can be a main memory bus (e.g., a DDR bus, such as DDR3, DDR4, etc.) over which a transaction protocol is run, as opposed to the non-transaction protocol that is normally used.As another example, the bus could be one on which a transaction protocol (a native transaction protocol) normally runs, such as a PCI Express (PCIE) bus, a Desktop Management Interface (DMI) bus, or some other type of bus that uses a transaction protocol and a sufficiently small transaction payload size (e.g., a buffer row size of about 64 or 128 bytes); and. (7) one or more of the following: a) higher write speed than non-volatile memory / storage technologies, such as FLASH; b) very high read speed (faster than FLASH and almost like DRAM read speeds or equivalent); c) directly writable (instead of requiring erasure (overwriting with ones) before writing data, like the FLASH memory used in SSDs); and / or d) much greater write endurance (e.g. 2 or 3 times greater) before failure (better than boot ROM and FLASH used in SSDs).

[0037] As mentioned earlier, unlike flash memory, which must be overwritten and erased with a complete "block" each time, the granularity level at which NVRAM is accessed can depend on the specific memory controller and the specific memory bus, or other bus, to which the NVRAM is coupled, depending on the implementation. For example, in some implementations where NVRAM is used as system memory, it can be accessed at the granularity of a cache line (e.g., a 64-byte or 128-byte cache line), regardless of any inherent ability to access it at the byte level, because the cache line is the level at which the memory subsystem accesses the memory.Therefore, if NVRAM is set up within a memory subsystem, it can be accessed at the same granularity level as the DRAM (e.g., the "near-local memory") used in the same memory subsystem. In this case, the granularity level of access to the NVRAM by the memory controller and the memory bus, or any other bus, is smaller than the block size used by flash memory and the access size of the controller and bus of the I / O subsystem.

[0038] NVRAM can also include wear-balancing algorithms to account for the fact that memory cells at the remote memory level begin to wear out after a certain number of write operations, especially when a significant number of write operations can occur, such as during system memory mapping. Since blocks with high load cycles are most likely to experience such wear, wear balancing distributes write operations across the remote memory cells by swapping addresses from blocks with high load cycles with blocks with low load cycles. It's worth noting that this address swapping is typically transparent to application programs because it is handled by hardware, low-level software (such as a low-level driver or operating system), or a combination of both. B. Remote working memory

[0039] The remote work memory 122 Some embodiments of the invention are implemented using NVRAM, but are not necessarily limited to a specific memory technology. Remote memory 122 It differs from other instruction and data memory / storage technologies in terms of its characteristics and / or its application in the memory / storage hierarchy. For example, remote memory 122 different to: 1) a static random access memory (SRAM) used for internal Level 0 and Level 1 processor caches 101a –b, 102a –b, 103a –b, 103a -b and 104a -b can be used, which is assigned to each of the processor cores 101 until 104 include, and a subordinate intermediate storage (LLC) 105 , which is shared by the processor cores; 2) a dynamic random access memory (DRAM) that serves as a temporary storage device 106 is configured to be internal to the processor 100 is (e.g., on the same chip as the processor) 100 ), and / or as one or more intermediate storage locations 107 until 109 is configured to be external to the processor (e.g., in the same or a different enclosure than the processor). 100 ); and 3) a FLASH memory / magnetic disk / optical disk used as mass storage (not shown); and 4) A working memory, such as FLASH memory or other solid-state memory (ROM), used as firmware memory (which may refer to the boot ROM, BIOS flash and / or TPM flash), (not shown).

[0040] The remote work memory 122 can be used as an instruction and data storage space, which is controlled by a processor 100is directly addressable and capable of communicating with the processor 100 unlike a flash drive / magnetic disk / optical disk used as mass storage, it can keep up well enough. Furthermore, remote working memory can 122 As previously discussed and described in more detail below, they are placed on a main memory bus and communicate directly with a main memory controller, which in turn communicates directly with the processor. 100 communicated.

[0041] The remote work memory 122It can be combined with other instruction and data storage technologies (e.g., DRAM) to form hybrid memories (also known as merged PCM and DRAM; Level 1 memory and Level 2 memory; FLAM (FLASH and DRAM)). It should be noted that at least some of the above technologies, including PCM / PCMS, can be used for mass storage space instead of, or in addition to, system memory and need not be randomly accessible, byte-addressable, or directly addressable by the processor when applied in this way.

[0042] For practical reasons of explanation, the remainder of the application refers largely to an “NVRAM” or, more precisely, a “PCM” or “PCMS” as a technology choice for remote working memory. 122Therefore, the terms NVRAM, PCM, PCMS, and remote memory can be used interchangeably in the following discussion. However, it should be noted that, as previously discussed, various technologies can be used for remote memory. Furthermore, NVRAM is not limited to use as remote memory. C. Near-field memory

[0043] The “short-term working memory” 121 is an intermediate level of working memory that is located in front of remote working memory 122 is configured and has a lower read / write access latency and / or better symmetrical read / write access latency with respect to the remote working memory (i.e., read times that are approximately equal to write times). In some embodiments, the local working memory has 121 with a significantly lower write latency than the remote working memory 122but with a similar (e.g., slightly lower or equivalent) read latency; for example, the near working memory 121 It may be volatile memory, such as volatile random access memory (VRAM), and may include DRAM or other fast capacitor-based memory. However, it should be noted that the basic principles of the invention are not limited to these specific types of memory. Additionally, the short-term memory can be... 121 have a relatively low density and / or may be more expensive to manufacture than remote working memory. 122 .

[0044] In one embodiment, the short-term working memory 121 between the remote work memory 122 and the internal processor caches 120 configured. In some of the embodiments described below, the local working memory 121as one or more RAM-side intermediate storage (MSC) 107 until 109 configured to mask, for example, the performance and / or usage limitations of remote memory, such as read / write latency limitations and memory degradation limitations. In these implementations, the combination of the MSC works 107 until 109 and the remote working memory 122 at a performance level that is similar to or equivalent to, or better than, a system that uses only DRAM as system memory. Although the local working memory 121 , as discussed in detail below, in Fig. While 1 is shown as a “temporary storage”, it may include modes in which it performs other tasks, either in addition to or instead of serving as a temporary storage device.

[0045] The short-term working memory 121 can be stored on the processor chip (as temporary storage)106 ) and / or externally to the processor chip (as intermediate storage) 107 until 109 ) are located (e.g., on a separate chip attached to the CPU package, located outside the CPU package with a high-bandwidth connection to the CPU package, for example, on a DIMM (“Dual In-line Memory Module”), a riser / mezzanine, or a computer motherboard). The local working memory 121 can be used for communication with the processor 100 may be coupled using one or more high-bandwidth connections, such as DDR or other high-bandwidth transaction connections (as described in more detail below). EXAMPLE SYSTEM STORAGE ALLOCATION SCHEME

[0046] Fig. Figure 1 illustrates how different levels of caches 101 until 109 with reference to a physical system address (SPA) space 116 until 119in embodiments of the invention. As mentioned, this embodiment includes a processor. 100 , which has one or more cores 101 until 104 includes, with each core having its own dedicated higher-level cache (L0) 101a until 104a and middle level caching (MLC) (L1) 101b until 104b features. The processor 100 also includes a shared LLC 105 The operation of these various intermediate storage levels is well known and will not be described in detail here.

[0047] The buffers 107 until 109 , which in Fig. The entries shown in 1 can belong to a specific system memory address range or a set of non-contiguous address ranges. For example, the cache serves as a... 107 to use it as MSC for system memory address range No. 1 116to serve, and the buffers 108 and 109 They serve as MSCs for non-overlapping portions of system memory address ranges No. 2 117 and No. 3 118 to serve. The latter implementation can be used for systems where the SPA space, which is provided by the processor 100 is used, nested in an address space that is separated from the caches 107 until 109 is used (e.g., when configured as MSC). In some embodiments, this latter address space is referred to as the memory channel address (MCA) space. In one embodiment, the internal caches 101a until 106 Intermediate storage processes for the entire spa room.

[0048] The system memory, as used here, is a working memory used for the software that is run by the processor. 100is executed, visible and / or directly addressable; while the caches 101a until 109 They can function transparently for the software, in the sense that they do not form a directly addressable part of the system address space, but rather the kernels can also support the execution of instructions, allowing the software to provide some control (configuration, concepts, hints, etc.) for some or all of the caches. The division of system memory into these areas 116 until 119 This can be done manually as part of a system configuration process (e.g. by a system developer) and / or can be performed automatically by the software.

[0049] In one embodiment, the system memory areas 116 until 119This is implemented using remote memory (e.g., PCM) and, in some embodiments, local memory configured as system memory. System memory address range No. 4 represents an address range implemented using faster memory, such as DRAM, which may be local memory configured in system memory mode (as opposed to a buffer mode).

[0050] Fig. 2 forms a memory / storage space hierarchy 140 and various configurable operating modes for the local working memory 144 and the NVRAM according to the embodiments of the invention. The RAM / memory hierarchy 140 has several levels, including (1) a buffer level 150 , the processor caches 150A (e.g., buffer) 101A until 105 in Fig. 1) and optionally local working memory as intermediate storage for remote working memory 150B (in some operating modes, as described here) may include, (2) a system memory level 151 , which has remote working memory 151B (e.g., an NVRAM, such as PCM) if a local working memory is present (or only an NVRAM as system memory). 174 , if no local working memory is available), and optionally a local working memory that serves as system memory. 151A functions (in certain operating modes as described here), (3) a mass storage space level 152 , which have a flash / magnetic / optical mass storage space 152B and / or an NVRAM mass storage space 152A (e.g., a portion of the NVRAM) 142 ) may include; and (4) a firmware memory layer 153 , which perform a BIOS flash 170 and / or a BIOS NVRAM 172 and optionally an NVRAM173 may include a secure platform module (TPM).

[0051] As stated, the local working memory 144 be implemented to function in many different modes, including the following: a first mode in which it acts as a buffer for remote working memory (local working memory as a buffer for FM) 150B ) works; a second mode in which it is used as system memory 151A functions and occupies part of the SPA space (sometimes referred to as near-working memory “direct access” mode); and one or more additional operating modes, such as a notepad memory 192 or as a writing buffer 193In some embodiments of the invention, the local working memory is divisible, with each division being able to operate simultaneously in a different one of the supported modes; and various embodiments can configure the divisions (e.g., sizes, modes) by hardware (e.g., fuses, pins), firmware, and / or software (e.g., by a set of programmable range registers within the MSC controller). 124 , in which, for example, different binary codes can be stored to identify each mode and decomposition) support.

[0052] The system address space A 190 in Fig. 2 is used to explain the operation when the local working memory is used as MSC for the remote working memory. 150B is configured. In this configuration, the system address space A 190 represents the entire system address space (and there is no system address space B). 191Alternatively, the system address space B is used. 191 This is used to demonstrate an implementation when all or part of the local working memory is allocated a portion of the system address space. In this embodiment, the system address space B represents 191 represents the area of ​​the system address space that is allocated to local working memory 151A is assigned, and the system address space A 190 represents the portion of the system address space allocated to NVRAM 174 is assigned.

[0053] If it serves as a temporary storage location for the remote workstation 150B The local working memory can be used for this purpose. 144 additionally in various sub-modes under the control of the MSC controller 124function. In each of these modes, the near-memory (NMA) address space is transparent to the software in the sense that the near-memory does not form a directly addressable part of the system address space. These modes include, without limitation, the following: (1) Rewrite buffer mode: In this mode, the entire short-term working memory, which is used as FM buffer, is rewritten. 150B Does it serve, or are parts of it used, as temporary storage for the NVRAM remote working memory (FM)? 151B used. In write-back mode, each write operation is initially sent to the local working memory as an intermediate storage for the FM. 150B directed (assuming that the buffer line to which the write operation is directed exists in the buffer). A corresponding write operation is performed to update the NVRAM FM. 151Bto update only if the cache line within the local working memory is used as a cache for the FM. 150B is to be replaced by another intermediate storage line (in contrast to the write-through mode described below, where each write operation is immediately written to the NVRAM FM). 151B (is spread). (2) Near-working memory bypass mode: In this mode, all read and write operations bypass the NM, which acts as an FM buffer. 150B serves, and go directly to the NVRAM-FM 151B Such a mode can be used, for example, if an application is not buffer-friendly or requires that the data be persistently used at the granularity of a buffer row. In one embodiment, the buffering provided by the processor's buffers works 150A and the NM, which serves as an FM buffer 150BThe functions are executed independently of each other. Therefore, in the NM, which serves as an FM buffer, the following can occur: 150B It serves to temporarily store data that is not in the processor's caches. 150A are cached (and which may not be stored in the processor's caches) 150A (may be temporarily stored), and vice versa. Thus, certain data that can be described as "not suitable for temporary storage" in the processor's temporary storage can be stored in the NM, which is known as the FM temporary storage. 150B serves to be temporarily stored. (3) Near-Full Memory Read Cache Write Bypass Mode: This is a variant of the mode above, in which the read caching of persistent data from the NVRAM FM is disabled. 151B is allowed (i.e., the persistent data is stored in local memory as a buffer for remote memory). 150B(cached for read-only operations). This is useful when most persistent data is "read-only" and application usage is cache-friendly. (4) Short-term memory read buffer write-through mode: This is a variant of the short-term memory read buffer write bypass mode, in which write hits are also buffered in addition to read buffering. Each write operation to short-term memory as a buffer for the FM 150B causes a write operation in the FM 151B . Due to the carbonless nature of the temporary storage, the persistence of the temporary storage lines is thus further guaranteed.

[0054] When operating in a local memory direct access mode, all or parts of the local memory are used as system memory. 151ADirectly visible to the software and part of the SPA space. Such memory can be entirely under software control. This scheme can create a non-unified memory address (NUMA) domain for software, allowing for higher performance from the local memory. 144 with reference to the NVRAM system memory 174 achieved. By way of example and without limitation, such use can be applied to certain high-performance computing (HPC) and graphics applications that require very fast access to certain data structures.

[0055] In an alternative embodiment, the near-working memory direct access mode is implemented by "pinning" certain cache cells into the near-working memory (i.e., cache rows containing data that is also currently in the NVRAM). 142(are stored). Such stapling can be effectively carried out in a larger, multi-associative intermediate storage.

[0056] Fig. Figure 2 also shows that part of the NVRAM 142 can be used as firmware memory. For example, the BIOS NVRAM- 172 Part is used to store BIOS images (instead of the BIOS information in the BIOS flash). 170 to save, or in addition to that). The BIOS NVRAM part 172 can be part of the SPA space and is controlled by software running on the processor cores 101 until 104 is executed directly addressable, whereas the BIOS flash 170 via the I / O subsystem 115 is addressable. Another example is a portion of a secure platform module (TPM) NVRAM. 173 Use to protect sensitive system information (e.g. cryptographic keys).

[0057] As stated, the NVRAM can therefore be 142 be implemented to function in many different modes, including as remote working memory 151B (e.g., when the local working memory 144 Is it present / functional, whether the short-term working memory acts as an intermediate storage for the FM via an MSC controller? 124 works or not (access directly after the cache(s) 101A until 105 and without MSC control 124 )); only as NVRAM system memory 174 (not as remote working memory because no local working memory is available / functioning; and access without MSC control) 124 ); as NVRAM mass storage space 152A ; as BIOS NVRAM 172 ; and as TPM NVRAM 173 Although different implementations may specify the NVRAM modes differently, the following describes Fig. 3. The use of a decoding table 333 .

[0058] Fig.Figure 3 represents an exemplary computer system 300 from, in which the embodiments of the invention can be implemented. The computer system 300 includes a processor 310 and a memory / storage subsystem 380 with an NVRAM 142 , which is used for system memory, mass storage space, and optionally firmware memory. In one embodiment, the NVRAM comprises 142 the entire system memory and storage hierarchy used by the computer system 300 It is used to store data, instructions, states, and other persistent and non-persistent information. As discussed previously, NVRAM can 142 be configured to implement the tasks of a typical memory and storage hierarchy of system memory, mass storage space and firmware memory, TPM memory, and the like. In the embodiment of Fig.3 is the NVRAM 142 in the FM 151B , the NVRAM mass storage space 152A , the BIOS NVRAM 173 and the TMP-NVRAM 173 It is broken down. Memory hierarchies with other tasks are also considered, as is the application of NVRAM. 142 is not limited to the tasks described above.

[0059] The operation is described as an example, in which the short-term working memory serves as an intermediate storage for the FM. 150B during write-back buffering. In one embodiment, the short-term working memory acts as a buffer for the FM. 150B When in the previously mentioned write-back buffer mode, a read operation first arrives at the MSC controller. 124 a, which performs a search to determine if the requested data is in the local working memory, which serves as a temporary storage area for the FM 150Bserves, are available (e.g. using a marker buffer). 342 If they are available, it passes the data to the requesting CPU, the core. 101 until 104 or the I / O device via the I / O subsystem 115 return. If the data is not available, the MSC controller sends 124 the request along with the system memory address to an NVRAM controller 332 The NVRAM controller 332 uses the decoding table 333 , to translate the system memory address into a physical device address (PDA) of the NVRAM and to initiate the read operation to this area of ​​the remote working memory 151B to direct. In one embodiment, the decoding table includes 333 an address indirection table (AIT) component that the NVRAM controller 332It is used to translate between system memory addresses and the NVRAM PDA. In one embodiment, the AIT is updated as part of the wear-balancing algorithm implemented to distribute main memory access operations and thereby reduce NVRAM FM wear. 151B to reduce. Alternatively, the AIT can be a separate table located in the NVRAM controller. 332 is stored.

[0060] When receiving the requested data from the NVRAM-FM 151B The NVRAM controller 332 the requested data to the MSC controller 124 back, which stores the data in the MSC near-home memory, which is used as an FM buffer. 150B serves, stores, and also sends the data to the requesting processor core. 101 until 104 or an I / O device via the I / O subsystem 115sends. Subsequent requests for this data can be handled directly from the short-term working memory, which acts as an FM buffer. 150B serves until they are replaced by other NVRAM FM data.

[0061] As mentioned, in one embodiment, a memory write operation also goes first to the MSC controller. 124 , which writes it to the MSC short-term memory, which is used as an FM buffer 150B It serves this purpose. In write-back buffer mode, the data cannot be directly written to the NVRAM-FM. 151B Data is sent when a write operation is received. For example, data can only be sent to the NVRAM-FM. 151B will be sent when the position in the MSC short-term memory, which is used as an FM buffer, is reached. 150B The memory address where the data is stored needs to be reused to store data for a different system memory address. In this case, the MSC controller notices this. 124 that the data in the NVRAM-FM151B are not up-to-date, and therefore retrieves them from the short-term working memory, which acts as an FM buffer. 150B serves this purpose and sends it to the NVRAM controller. 332 The NVRAM controller 332 The PDA searches for the system memory address and then writes the data to the NVRAM-FM. 151B .

[0062] In Fig. 3. The NVRAM controller 332 shown how he participated in the FM 151B , the NVRAM mass storage space 152A and the BIOS NVRAM 172 it is connected using three separate lines. However, this does not necessarily mean that there are three separate physical buses or communication channels connecting the NVRAM controller. 332 with these parts of the NVRAM 142 connect. Rather, in some embodiments, a common working memory bus or a different type of bus (such as those described below with reference to) is used. Fig.(4A to M are described) used to control the NVRAM controller 332 communication with the FM 151B , the NVRAM mass storage space 152A and the BIOS NVRAM 172 to couple. For example, the three lines from Fig. 3 in one embodiment represents a bus, such as a working memory bus (e.g. a DDR3, DDR4 bus, etc.), via which the NVRAM controller 332 implements a transaction protocol to use the NVRAM 142 to communicate. The NVRAM controller 332 can also be used with NVRAM 142 communicate via a bus that supports a native transaction protocol, such as a PCI Express bus, a Desktop Management Interface (DMI) bus, or any other bus that uses a transaction protocol and a sufficiently small transaction payload size (e.g., a buffer row size of about 64 or 128 bytes).

[0063] In one embodiment, the computer system comprises 300 an integrated memory controller (IMC) 331 , which is the central memory access control for the processor 310 executes, which is coupled with: 1) a memory-side intermediate storage (MSC) controller 124 , to control access to the local working memory (NM), which is used as a remote working memory cache 150B serves; and 2) an NVRAM controller 332 , to access the NVRAM 142 to control. Although they are in Fig. 3 are depicted as separate units, the MSC controller 124 and the NVRAM controller 332 logically part of the IMC 331 be.

[0064] In the illustrated embodiment, the MSC controller comprises 124 a set of area registers 336 , which defines the operating mode in use for the NM, which is used as a remote working memory buffer 150BThe DRAM serves a purpose (e.g., write-back buffer mode, short-term memory bypass mode, etc., as described previously). In the illustrated embodiment, the DRAM 144 used as a working memory technology for the NM, which serves as a buffer for remote working memory 150B It serves this purpose. In response to a memory access request, the MSC controller can 124 (depending on the type of operation, which is determined by the area registers) 336 (specified) determine whether the request is from the NM, which acts as a buffer for the FM 150B serves, can be operated, or whether the request to the NVRAM controller 332 to be sent, which then processes the request from the remote work memory (FM) part 151B of the NVRAM 142 can operate.

[0065] In one embodiment, in which the NVRAM 142 The NVRAM controller is implemented using a PCMS. 332A PCMS controller performs access using protocols consistent with PCMS technology. As discussed previously, PCMS memory itself is capable of access at the byte level. However, the NVRAM controller can 332 on a PCMS-based remote memory 151B at a lower granularity level, such as a buffer row (e.g., a 64-bit or 128-bit buffer row) or any other granularity level consistent with the main memory subsystem. The underlying principles of the invention are not limited to a specific granularity level for accessing PCMS-based remote main memory. 151B accessing it. However, generally speaking, a PCMS-based remote memory 151BWhen used to be part of the system address space, the granularity level is higher than that conventionally used for other non-volatile memory technologies, such as FLASH, which can only perform overwrite and erase operations at the level of a “block” (minimum size 64 KB for a NOR-FLASH and 16 KB for a NAND-FLASH).

[0066] In the illustrated embodiment, the NVRAM controller 332 Read configuration data to specify the previously described modes, sizes, etc. for the NVRAM. 142 from the decoding table 333 to determine, or alternatively, it can be based on the decoding results provided by the IMC 331 and the I / O subsystem 315 be passed on. For example, the computer system 300 the decoding table 333 either at the time of manufacture or on-site programming to access different areas of the NVRAM 142to mark, among other things, system memory, mass storage space exposed via SATA interfaces, mass storage space exposed via USB-BOT ("Bulk Only Transport") interfaces, encrypted storage space that supports TPM storage space. The means by which access to different partitionings of the NVRAM direction is achieved. 142 The routing uses decoding logic. For example, in one implementation, the address range of each partition is stored in the decoding table. 333 defined. If the IMC 331 In one embodiment, when an access request is received, the destination address of the request is decoded to reveal whether the request is directed to main memory, NVRAM mass storage, or I / O. If it is a main memory request, the IMC determines(s). 331 and / or the MSC controller 124Furthermore, the destination address indicates whether the request to the NM is intended as a buffer for the FM. 150B or to the FM 151B is aimed at. To access the FM 151B The request will be sent to the NVRAM controller. 332 forwarded. The IMC 331 The request is sent to the I / O subsystem. 115 further, if this request is directed to I / O (e.g., to non-storage and storage I / O devices). The I / O subsystem 115 It also decodes the address to determine whether the address corresponds to the NVRAM mass storage space. 152A , the BIOS NVRAM 172 or other non-storage or storage I / O devices. If this address points to the NVRAM mass storage space 152A or the BIOS NVRAM 172 shows, directs the I / O subsystem 115 the request to the NVRAM controller 332 Next. If this address is in the TMP-NVRAM 173 shows the I / O subsystem 115the request to the TPM 334 , in order to perform secure access.

[0067] In one embodiment, every request made to the NVRAM controller 332 The data is forwarded and associated with an attribute (also called "transaction type") to specify the access method. In one embodiment, the NVRAM controller can 332 Emulate the access protocol for the requested access type, so that the rest of the platform is unaware of the multiple tasks performed by the NVRAM. 142 They are executed in the memory and storage hierarchy. In alternative embodiments, the NVRAM controller can 332 a memory access to the NVRAM 142 Execute regardless of the transaction type. It is understood that the decoding path may differ from the one described previously. For example, the IMC 331Decode the target address of an access request and determine whether it should be sent to NVRAM 142 is directed at. If they are directed at the NVRAM 142 directed, the IMC generates 331 an attribute according to the decoding table 333 Based on the attribute, the IMC derives 331 then forward the request to a suitable downstream logic (e.g., the NVRAM controller). 332 and the I / O subsystem 315 ) to execute the requested data access. In yet another embodiment, the NVRAM controller can 332 Decode the destination address if the corresponding attribute is not provided by the upstream logic (e.g., the IMC). 331 and the I / O subsystem 315 ) is passed on. Other decoding methods can also be implemented.

[0068] The introduction of a new memory architecture, as described here, opens up numerous new possibilities. Although these will be discussed in much greater detail later, some of these possibilities are briefly highlighted below.

[0069] According to one possible implementation, the NVRAM serves 142 as a complete replacement or supplement to conventional DRAM technology in system memory. In one embodiment, the NVRAM 142 the introduction of a Level 2 system memory (e.g., one can assume that the system memory includes a Level 1 system memory, which is a local working memory as a buffer). 150B (part of the DRAM device) 340 ) and a Level 2 system memory that includes remote working memory (FM) 151B (part of the NVRAM) 142 ) includes, exhibits.

[0070] According to some embodiments, the NVRAM serves 142as a complete replacement or supplement for flash / magnetic / optical mass storage space 152B As previously described, the NVRAM controller can 332 in some embodiments, even if the NVRAM 152A capable of addressing at the byte level, depending on the implementation further to the NVRAM mass storage space 152A Access in blocks of several bytes (e.g., 64 KB, 128 KB, etc.). The specific way in which data is accessed from the NVRAM mass storage space. 152A through the NVRAM controller 332 access can be used for the software that is accessed by the processor. 310 The execution process should be transparent. For example, it may rely on NVRAM mass storage space. 152A unlike flash / magnetic / optical mass storage space 152A When accessed, the operating system can use the NVRAM mass storage space. 152Acontinue to regard it as a standard mass storage device (e.g., a Serial ATA hard drive or another standard form of mass storage device).

[0071] In an embodiment in which the NVRAM mass storage space 152A as a complete replacement for flash / magnetic / optical mass storage 152B When used for block-addressable memory access, it is not necessary to use memory drivers. Removing the overhead of the memory driver from memory access can increase access speed and save power. In alternative embodiments where it is desirable for the NVRAM mass storage space to be used 152A for the OS and / or applications as block-accessible and from the flash / magnetic / optical mass storage space 152BSince it is indistinguishable, emulated storage devices can be used to expose block-accessible interfaces (e.g., USB (“Universal Serial Bus”), BOT (“Bulk Only Transfer”), 1.0; SATA (“Serial Advanced Technology Attachment”), 3.0; and the like) for the software to access the NVRAM mass storage space. 152A access.

[0072] In one embodiment, the NVRAM serves 142 as a complete replacement or as a supplement to firmware memory, such as a BIOS flash 362 and a TPM flash 372 (in Fig. 3 (shown with dashed lines to indicate they are optional). For example, the NVRAM 142 a BIOS NVRAM 172 Part to include the BIOS flash 362 to supplement or replace, and can include a TPM-NVRAM- 173 Part to include the TPM flash 372to supplement or replace. The firmware memory can also store system-persistent states maintained by a TPM. 334 It can be used to protect sensitive system information (e.g., cryptographic keys). In one embodiment, the use of NVRAM addresses this issue. 142 For the firmware memory, the need for third-party flash parts to store code and data that are critical for system operations.

[0073] The discussion of the system from Fig. 3. Now, continuing, the architecture of the computer system can be described. 100 In some embodiments, multiple processors are included, although in Fig. 3. For the sake of simplicity, a single processor. 310 is shown. The processor 310It can be any type of data processor, including a general-purpose or specialized central processing unit (CPU), an application-specific integrated circuit (ASIC), or a digital signal processor (DSP). For example, the processor can be... 310 be a general-purpose processor, such as a processor core TM i3, i5, i7, 2 Duo and Quad, Xeon TM or Itanium TM , all of which are available from Intel Corporation in Santa Clara, California. Alternatively, the processor can 310 from another company, such as ARM Holdings, Ltd., of Sunnyvale, CA, MIPS Technologies of Sunnyvale, CA, etc. The processor 310 This can be a specific processor, such as a network or communication processor, a compression engine, a graphics processor, a coprocessor, an integrated processor, or the like. The processor 310It can be implemented on one or more chips, which are contained in one or more packages. The processor 310 can be part of one or more substrates and / or can be implemented on them using any of a range of process technologies, such as BiCMOS, CMOS or NMOS. In the Fig. In the embodiment shown in 3, the processor 310 a system-on-a-chip (SOC) configuration.

[0074] In one embodiment, the processor comprises 310 an integrated graphics unit 311 , which includes logic for executing graphical commands, such as 3D or 2D graphical commands. Although the embodiments of the invention are not limited to a specific integrated graphical unit 311 are limited, the graphics unit 311In one embodiment, it is capable of executing industry-standard graphics commands, such as those specified by OpenGL and / or DirectX application programming interfaces (APIs) (e.g., OpenGL 4.1 and DirectX 11).

[0075] The processor 310 can also include one or more cores 101 until 104 include, although in Fig. Figure 3 shows a single core again for clarity. In some embodiments, the core or cores comprise 101 until 104 Internal functional blocks, such as one or more execution units, retract units, a set of general-purpose and specific registers, etc. If the core or cores are multi-threading or hyper-threading cores, then each hardware thread can also be considered a "logical" core. The cores 101 until 104The cores may or may not be unified with respect to their architecture and / or instruction set. For example, some cores may be sequential, while others may be out of order. As another example, two or more cores may be capable of executing the same instruction set, while others may be capable of executing only a subset of that instruction set or a different instruction set altogether.

[0076] The processor 310 may also include one or more intermediate storage locations, such as the intermediate storage location 313 , which can be implemented as SRAM and / or DRAM. In numerous embodiments, not shown here, additional intermediate storage locations other than the intermediate storage location are used. 313 implemented so that multiple levels of caches exist between the execution units of the cores. 101 until 104 and the working memory devices 150B and 151Bexist. For example, the set of shared buffer units can include a higher-level buffer, such as a Level 1 (L1) buffer, an intermediate-level buffer, such as Level 2 (L2), Level 3 (L3), Level 4 (L4), or other levels of buffers, an LLC, and / or various combinations thereof. In other embodiments, the buffer can 313 It can be divided differently and, depending on the specific design, can have one of many different sizes. For example, the buffer can 313It could be an 8-megabyte (MB) cache, a 16 MB cache, etc. Additionally, in various embodiments, the cache can be a directly mapped cache, a fully associative cache, a multi-associative cache, or a cache with another mapping method. In other embodiments that include multiple cores, the cache can 313 comprise a large portion that is shared by all cores or that can be divided into several independently functioning portions (e.g., one portion for each core). The cache 313 It can also include a part that is shared by all cores and several other parts that are separate functional components per core.

[0077] The processor 310 can also have a home agent 314 including the components that make up the core(s) 101 until 104Coordinate and operate. The Home Agent Unit 314 It can, for example, include a power control unit (PCU) and a display unit. The PCU can correspond to, or include, the logic and components used to regulate the current state of the cores. 101 until 104 and the integrated graphics unit 311 The display unit is required. It is designed to control one or more externally connected displays.

[0078] As mentioned, the processor includes 310 Some versions include an integrated memory controller (IMC). 331 , a near-stationary memory (MSC) controller and an NVRAM controller 332 , all of which are located on the same chip as the processor 310 or on a separate chip and / or a package attached to the processor 310 is connected, may be located. The DRAM device 144can be located on the same chip or on a different chip than the IMC 331 and the MSC controller 124 are located; thus, a chip can be a processor 310 and a DRAM device 144 exhibit; a chip can be the processor 310 exhibit and another the DRAM device 144 (and these chips can be in the same or different packages); a chip can contain the core(s). 101 until 104 and another the IMC 331 , the MSC controller 124 and the DRAM 144 exhibit (these chips may be in the same or different packages); a chip may contain the core(s). 101 until 104 include, another the IMC 331 and the MSC controller 124 and another the DRAM 144 (these chips may be in the same or different packages); etc.

[0079] In some embodiments, the processor includes 310 an I / O subsystem 115 , the one with the IMC 331 is coupled. The I / O subsystem 115 enables communication between the processor 310 and the following serial or parallel I / O devices: one or more networks 336 (such as a local area network, a large area network, or the Internet), a storage I / O device (such as a flash / magnetic / optical mass storage device) 152B , a BIOS flash 362 , a TPM flash 372 ) and one or more non-storage I / O devices 337 (such as a display, a keyboard, a speaker, and the like). The I / O subsystem 115 may include a platform controller hub (PCH) (not shown), which may also include several I / O adapters 338and other I / O circuits to provide access to the storage and non-storage I / O devices and networks. The I / O subsystem can be used for this purpose. 115 at least one integrated I / O adapter 338 for each I / O protocol used. The I / O subsystem 115 can be located on the same chip as the processor 310 are located on a separate chip and / or a package attached to the processor 310 is connected.

[0080] The I / O adapters 338 translate a host communication protocol that is used within the processor 310 It is used in a protocol that is compatible with specific I / O devices. For flash / magnetic / optical mass storage. 152B Some of the protocols used by the I / O adapters can 338Supported interfaces include PCI Express (PCI-E), 3.0; USB, 3.0; SATA, 3.0; SCSI (Small Computer System Interface), Ultra-640; and IEEE (Institute of Electrical and Electronics Engineers) 1394 FireWire. For BIOS flashing 362 Some of the protocols used by the I / O adapters can 338 Wireless protocols can be translated, including SPI (Serial Peripheral Interface) and Microwire. Additionally, there may be one or more wireless protocol I / O adapters. Examples of wireless protocols are used in personal networks, such as IEEE 802.15 and Bluetooth 4.0; in wireless local area networks, such as wireless protocols based on IEEE 802.11; and in cellular protocols.

[0081] In some embodiments, the I / O subsystem 115 with a TPM controller 334coupled to control access to system-persistent states, such as secure data, cryptographic keys, platform configuration information, and the like. In one embodiment, these system-persistent states are stored in a TMP-NVRAM. 173 stored and stored via an NVRAM controller 332 retrieved.

[0082] In one embodiment, the TPM 334 A secure microcontroller with cryptographic functions. The TPM 334 It possesses a range of trust-related capabilities; for example, a SEAL capability to ensure that data protected by a TPM is only accessible to that same TPM. The TPM 334 It can protect data and keys (e.g., secrets) by using its encryption capabilities. In one embodiment, the TPM has 334via a unique and secret RSA key that allows it to authenticate hardware devices and platforms. For example, the TPM can 334 verify that a system seeking access to data located in the computer system 300 The TPM is stored, which is the expected system. 334 is also capable of ensuring the integrity of the platform (e.g., the computer system). 300 ). This allows an external resource (e.g., a server on a network) to determine the trustworthiness of the platform, but does not prevent the user from accessing the platform.

[0083] In some embodiments, the I / O subsystem includes 315 also an administration engine (ME) 335 , which is a microprocessor that allows a system administrator to control the computer system 300to monitor, maintain, update, upgrade, and repair. In one embodiment, a system administrator can monitor the computer system. 300 remotely configure by accessing the contents of the decoding table 333 through the ME 335 via the networks 336 edited.

[0084] For practical purposes, the rest of the application sometimes refers to the NVRAM. 142 as a PCMS device. A PCMS device comprises multilayer (vertically stacked) PCM cell arrays that are non-volatile, have low power consumption, and are changeable at the bit level. Thus, the terms NVRAM device and PCMS device can be used interchangeably in the following discussion. However, it is understood, as previously discussed, that various technologies besides PCMS are also used for NVRAM. 142 can be used.

[0085] It goes without saying that a computer system uses NVRAM. 142 for system memory, mass storage space, firmware memory and / or other memory and storage purposes, even if the processor of this computer system does not have all of the processor components described above. 310 has or a larger number of components than the processor 310 has.

[0086] In the specific embodiment, which is in Fig. As shown in section 3, the MSC controller is located. 124 and the NVRAM controller 332 on the same chip or package (referred to as the CPU package) as the processor 310 In other embodiments, the MSC controller may be... 124 and / or the NVRAM controller 332 are located outside the chip or outside the CPU package and are connected to the processor 310or the CPU housing via a bus, such as a memory bus (like a DDR bus (e.g. DDR3, DDR4 etc.)), a PCI Express bus, a Desktop Management Interface (DMI) bus, or any other type of bus. EXAMPLE PCM BUS AND HOUSING CONFIGURATIONS

[0087] Fig. 4A to M represent various different configurations in which the processor, local memory, and remote memory are configured and located differently. In particular, the series of platform memory configurations, which are described in Fig. Figures 4A to M show the use of a new non-volatile system memory, such as PCM technologies, or more precisely, PCMS technologies.

[0088] While some of the same numerical designations are used across multiple figures in Fig.The use of numbers 4A to N does not necessarily mean that the structures identified by these numerical designations are always identical. For example, while the same numbers are used to identify an integrated memory controller (IMC), 331 and a CPU 401 While these components can be identified in several figures, they may be implemented differently in other figures. Some of these differences are not highlighted because they are not essential for understanding the basic principles of the invention.

[0089] Although several different approaches to system platform configuration are described below, these approaches fall into two broad categories: split architecture and unified architecture. In short, in the split architecture scheme, a memory-side intermediate storage (MSC) controller (located, for example, on the processor chip or on a separate chip within the CPU package) intercepts all system memory requests. There are two separate interfaces that "flow down" from this controller and exit the CPU package to connect to local and remote memory. Each interface is tailored to a specific type of memory, and each memory can be scaled independently in terms of performance and capacity.

[0090] In the unified architecture, a single memory interface exits the processor chip or CPU package, and all memory requests are sent to this interface. The MSC controller, along with the local and remote memory subsystems, are consolidated at this single interface. This memory interface must be tuned to meet the processor's memory performance requirements and must support a non-ordered transaction protocol, at least because the PCMS devices may not process read requests sequentially. Based on the general categories above, the following specific platform configurations can be used.

[0091] The embodiments described below include various types of buses / channels. The terms "bus" and "channel" are used synonymously here. The number of memory channels per DIMM socket depends on the specific CPU package used in the computer system (with some CPU packages supporting, for example, three memory channels per socket).

[0092] In addition, in the embodiments described below, which utilize DRAM, virtually any type of DRAM memory channel can be used, including, without limitation, DDR channels (e.g., DDR3, DDR4, DDR5, etc.). While DDR is thus advantageous due to its widespread acceptance in industry, the resulting cost advantages, etc., the fundamental principles of the invention are not limited to a specific type of DRAM or volatile memory.

[0093] Fig.Figure 4A depicts an embodiment of a split architecture that includes one or more DRAM devices. 403 until 406 , which function as local working memory, which serves as intermediate storage for the FM (i.e., MSC) in the CPU package 401 serve (either on the processor chip or on a separate chip), and one or more NVRAM devices, such as a PCM memory located on the DIMM 450 until 451 is located and serves as remote working storage, includes high-bandwidth connections. 407 on the CPU housing 401 switch one or more DRAM devices 403 until 406 with the processor 310 together, which includes the integrated memory controller (IMC) 331 and the MSC controller 124 hosts. Although he is in Fig. 4A and other figures described below are shown as separate units, the MSC controller 124in one embodiment in the main memory controller 331 be integrated.

[0094] The DIMM 450 until 451 use DDR sockets and electrical connections that have an DDR channel 440 Define the DDR address, data and control lines, and voltages (e.g., the DDR3 or DDR4 standard as defined by JEDEC ("Joint Electron Devices Engineering Council")). The PCM devices on the DIMM 450 until 451 provide the remote working memory capacity of this shared architecture, with the DDR channels 440 to the CPU housing 401 are capable of carrying both DDR and transaction protocols. Unlike DDR protocols, where the processor 310 or other logic within the CPU package (e.g., the IMC- 331 or MSC controller 124) transmits a command and receives an immediate response, the transaction protocol, which is used to communicate with PCM devices, enables the CPU to 401 , to issue a series of transactions, each identified by a unique transaction ID. The commands are handled by a PCM controller on the receiver DIMM of the PCM-DIMM, which may send unsorted responses to the CPU package. 401 returns. The processor 310 or other logic within the CPU package 401 Each transaction response is identified by its transaction ID, which is sent with the response. The above configuration allows the system to support both standard DDR DRAM-based DIMMs (using DDR protocols on electrical DDR connectors) and PCM-based DIMM configurations (using transaction protocols on the same electrical DDR connectors).

[0095] Fig. 4B represents a split architecture, the DDR-DRAM-based DIMM. 452 used via GDR channels 440 are coupled to form the near-stationary memory, which serves as the MSC. The processor 310 hosts the memory controller 331 and the MSC controller 124 NVRAM devices, such as PCM memory devices, are located on PCM-based DIMMs. 453 , the GDR sockets and electrical connections on additional GDR channels 442 outside the CPU housing 401 use. The PCM-based DIMMs 453 provide the remote working memory capacity of this shared architecture, with the DDR channels 442 to the CPU housing 401 They are based on electrical DDR connectors and are capable of carrying both DDR and transaction protocols. This allows the system to work with varying numbers of DDR DRAM DIMMs.452 (e.g. DDR4-DIMM) and PCM-DIMM 453 to be configured to achieve the desired capacity and / or performance points.

[0096] Fig. 4C features a split architecture, which includes the local working memory. 403 until 406 hosts, which is located on the CPU package as a main memory cache (MSC). 401 serve (either on the processor chip or on a separate chip). The high-bandwidth connections 407 They are used on the CPU housing to mount a single or multiple DRAM devices. 403 until 406 with the processor 310 to connect the memory controller 331 and the MSC controller 124 hosts, as defined by the shared architecture. The NVRAM, such as PCM memory devices, resides on PCI Express cards or riser cards. 455, the electrical PCI Express connectors and a PCI Express protocol or other transaction protocol over the PCI Express bus 454 Use the PCM devices on the PCI Express cards or riser cards. 455 provide the remote workspace capacity of this shared architecture.

[0097] Fig. 4D is a split architecture that uses DDR-DRAM-based DIMMs. 452 and East German channels 440 used to form the near-stationary memory, which serves as the MSC. The processor 310 hosts the memory controller 331 and the MSC controller 124 NVRAM, such as PCM memory devices 455 , is located on PCI Express cards or riser cards that provide electrical PCI Express connectors and a PCI Express protocol or other transaction protocol over the PCI Express connection 454Use the PCM devices on the PCI Express cards or riser cards. 455 provide the remote memory capacity of this split architecture, with the memory channel interfaces located outside the CPU package. 401 several East German channels 440 for DDR DRAM DIMM 452 provide.

[0098] Fig. 4E represents a unified architecture that encompasses both local working memory, serving as MSC, and remote working memory NVRAM, such as PCM on PCI Express cards or riser cards. 456 , the electrical PCI Express connectors and a PCI Express protocol or other transaction protocol on the PCI Express bus 454 use, hosts. The processor 310 hosts the integrated memory controller 331 , but in this unified architecture, the MSC controller is located 124 on the map or the riser map 456, together with the DRAM local memory and the NVRAM remote memory.

[0099] Fig. 4F represents a unified architecture that integrates both local memory, which serves as MSC, and remote memory NVRAM, such as PCM, onto DIMMs. 458 using GDR channels 457 hosts. The local working memory in this unified architecture includes DRAM on each DIMM. 458 , which serves as a temporary memory-side buffer for the PCM devices on the same DIMM 458 It serves to form the remote working memory of this particular DIMM. The MSC controller 124 is located on every DIMM 458 together with the local and long-range working memory. In this embodiment, several working memory channels of a DDR bus are used. 457 Provided outside the CPU package. The DDR bus 457This embodiment implements a transaction protocol via electrical DDR connections.

[0100] Fig. 4G represents a hybrid split architecture, through which the MSC controller 124 on the processor 310 located, and both the short-term and long-term memory interfaces use the same DDR bus. 410 shared. This configuration uses DRAM-based DDR DIMMs. 411a as local working memory, serving as MSC, with the PCM-based DIMMs 411b (i.e., remote working memory) located on the same working memory channel of the DDR bus 410 located, using DDR slots and NVRAM (such as PCM memory devices). The memory channels of this embodiment carry both DDR and transaction protocols simultaneously to access the near-home memory and remote memory DIMMs, 411a and 411b, to address each simultaneously.

[0101] Fig. 4H represents a unified architecture in which the local working memory 461a , which serves as a temporary storage area on the working memory side, on a mezzanine or riser card 461 in the form of DRAM-based DDR DIMMs. The main memory intermediate storage (MSC) controller 124 is located in the DDR and PCM controller 460 the riser card, which can have two or more memory channels connected to DDR DIMM channels 470 on the mezzanine / riser card 461 are connected and to the CPU via one or more high-performance connections 462 , such as a differential memory connection, are interconnected. The associated remote memory 461b lies on the same mezzanine / riser card 461 and consists of DIMM, the GDR channels 470use and are equipped with NRVAM (such as PCM devices).

[0102] Fig. 4I represents a unified architecture that can be used as a memory capacity expansion for a DDR memory subsystem, and DIMM 464 , which are attached to the CPU housing 401 on its DDR working memory subsystem via a DDR bus 471 are connected. For the additional NVM-based capacity in this configuration, the local working memory, which serves as the MSC, is located on a mezzanine or riser card. 463 , in the form of DRAM-based DDR-DIMM 463a The MSC controller 124 is located in the DDR and PCM controller 460 the riser card, which can have two or more memory channels connected to the DDR DIMM channels 470 are connected to the mezzanine / riser card and to the CPU via one or more high-performance connections 462, such as a differential memory connection, are interconnected. The associated remote memory 463b lies on the same mezzanine / riser card 463 and is powered by DIMM 463b formed, the GDR channels 470 use and are populated with NVRAM (such as PCM devices).

[0103] Fig. 4J is a unified architecture in which a near-home memory, which serves as a main memory buffer (MSC), is located on each individual DIMM. 465 in the form of DRAM. The DIMM 465 are located on a high-performance interconnection / channels 462 , such as a differential memory connection that uses the CPU housing 401 with the MSC controller 124 The paired chip is located on the DIMM. The associated remote memory is also located on the same DIMM. 465 and is formed by the NVRAM (such as PCM devices).

[0104] Fig. 4K represents a unified architecture in which the local working memory, which serves as MSC, is located on each DIMM. 466 in the form of DRAM. The DIMMs are located on one or more high-performance interconnects. 470 , which are attached to the CPU housing 401 are connected, with the MSC controller 124 The corresponding remote memory is located on the same DIMM. 466 and is formed by NVRAM (such as PCM devices).

[0105] Fig. 4L represents a split architecture, the DDR-DRAM-based DIMM. 464 on an East German bus 471 used to form the necessary near-stationary memory, which serves as the MSC. The processor 310 hosts the integrated memory controller 331 and the RAM-side buffer controller 124An NVRAM, such as a PCM memory, forms the remote working memory, which is located on cards or riser cards. 467 is available, which enables high-performance interconnections 468 use which communicate with the CPU package using a transaction protocol 401 communicate. The cards or riser cards 467 , which host the remote memory, host a single buffer / controller that can control multiple PCM-based memory modules or multiple PCM-based DIMM modules connected to this riser card.

[0106] Fig. 4M represents a unified architecture that uses DRAM on a single card or riser card. 469 This can be used to form the necessary local working memory, which serves as the MSC. NVRAM, such as PCM memory devices, forms the remote working memory, which is also located on the cards or riser cards. 469 lies the high-performance interconnections 468to the CPU housing 401 use the cards or riser cards. 469 , which host the remote memory, host a single buffer / controller that supports multiple PCM-based devices or multiple PCM-based DIMMs on this riser card 469 can control and also the RAM-side buffer controller 124 integrated.

[0107] In some of the embodiments described above, such as those described in Fig. The 4G shown are the DRAM-DIMMs. 411a and PCM-based DIMM 411bon the same memory channel. Consequently, the same set of address / control and data lines is used to connect the CPU to both DRAM and PCM memory. To reduce the amount of data traffic through meshed CPU interconnection, in one embodiment a DDR DIMM is configured on a shared memory channel with a PCM-based DIMM to serve as the sole MSC for data stored in the PCM-based DIMM. In such a configuration, remote memory data stored in the PCM-based DIMM is only cached in the DDR DIMM local memory within the same memory channel, thus localizing memory transactions to that specific memory channel.

[0108] To further implement the above configuration, the system address space can be logically divided among the various memory channels. For example, if there are four memory channels, then 1 / 4 of the system address space can be allocated to each memory channel. If each memory channel is equipped with one PCMS-based DIMM and one DDR DIMM, the DDR DIMM can be configured to act as the MSC for this 1 / 4 portion of the system address space.

[0109] The choice of system memory and mass storage devices may depend on the type of electronic platform on which embodiments of the invention are used. For example, in a PC, tablet computer, notebook computer, smartphone, mobile phone, feature phone, personal digital assistant (PDA), portable media player, portable gaming device, game console, digital camera, switch, hub, router, set-top box, digital video recorder, or other devices that have relatively low mass storage requirements, the mass storage space can be provided using NVRAM. 152A alone or using NVRAM mass storage space 152A in combination with a flash / magnetic / optical mass storage location 152BThis can be implemented in other electronic platforms that have relatively large mass storage requirements (e.g., large-format servers). Mass storage can be provided using magnetic storage (e.g., hard disks) or any combination of magnetic storage, optical storage, holographic storage, mass storage flash memory, and NVRAM. 152A This can be implemented. In this case, the system hardware and / or software responsible for storage space can implement various intelligent persistent storage space allocation techniques to allocate blocks of persistent program code and data between the FM. 151B / NVRAM memory space 152A and a flash / magnetic / optical mass storage location 152B to allocate in an efficient or otherwise useful manner.

[0110] For example, in one embodiment, a high-performance server is configured with local memory (e.g., DRAM), a PCMS device, and a magnetic mass storage device for large amounts of persistent storage. In another embodiment, a notebook computer is configured with local memory and a PCMS device that performs the function of both remote memory and a mass storage device (i.e., it is logically partitioned to perform these functions, as in Fig. 3 shown). One embodiment of a home or office desktop computer is configured similarly to a notebook computer, but may also include one or more magnetic storage devices to provide large amounts of persistent storage capacity.

[0111] One embodiment of a tablet computer or mobile phone device is configured with PCMS RAM, but possibly without local memory and without additional mass storage (to save costs / power). However, the tablet / phone may be configured with a removable mass storage device, such as a flash drive or PCMS RAM stick.

[0112] Various other types of devices can be configured as described above. For example, portable media players and / or personal digital assistants (PDAs) can be configured similarly to the tablets / phones described earlier, and game consoles can be configured similarly to desktop or laptop computers. Other devices that can be configured similarly include digital cameras, routers, set-top boxes, digital video recorders, televisions, and cars. EXECUTION FORMS OF MSC ARCHITECTURE

[0113] In one embodiment of the invention, most of the DRAM in system memory is replaced by PCM. As discussed previously, PCM offers significant improvements in memory capacity at considerably lower costs compared to DRAM and is non-volatile. However, certain characteristics of PCM, such as asymmetric read / write performance, write cycle endurance, and its non-volatile nature, make direct replacement of DRAM without major software modifications challenging. The embodiments of the invention described below provide a software-transparent method for integrating PCM and enabling novel uses through software enhancements.These embodiments promote a successful transition of the memory subsystem architecture and provide a way to combine both memory and storage space using a single PCM pool, thus reducing the need for a separate non-volatile storage tier in the platform.

[0114] The specific embodiment, which is in Fig. The 5A shown includes one or more processor cores. 501 , each with an internal memory management unit (MMU) 502 for generating memory requests and one or more internal CPU caches 503for storing lines of program code and data according to a predefined cache management concept. As mentioned earlier, the cache management concept can be exclusive (where a line existing at a particular cache level in the hierarchy does not exist at any other cache level) or inclusive (where duplicate cache lines are stored at different levels of the cache hierarchy). The specific cache management concepts used to manage the internal caches 503 The methods that can be used are well known to those skilled in the art and are therefore not described in detail here. The basic principles of the invention are not limited to a specific buffer management concept.

[0115] Also in Fig. 5A shows a home agent.505 , access to the MSC 510 It provides this by generating memory channel addresses (MCAs) for memory requests. The home agent 505 It is responsible for managing a predefined memory address space and resolving memory access conflicts directed at that memory space. Therefore, if a kernel needs to access a specific address space, it sends requests to this home agent. 505 , which then forwards the request to that specific MMU 502 sends. In one embodiment, a home agent is used. 505 per MMU 502 allocated; however, in some embodiments, a single home agent may be used. 505 more than one memory management unit 502 serve.

[0116] As in Fig. 5A is shown as an MSC 510 prior to PCM-based remote working memory 519 configured. The MSC 510manages access to a local working memory 518 and, if necessary, forwards memory access requests (e.g., read and write operations) to the remote memory controller. 521 further (e.g., if the requests are not handled by the local working memory) 518 can be operated). The MSC 510 includes an intermediate storage control unit 512 , which in response to a marker buffer 511 It works by storing markers that identify the intermediate storage lines located in the local working memory. 518 are included. If the buffer control unit is in operation... 512 determines that the memory access request is made from the local working memory. 518 When it can be accessed (e.g., in response to a cache hit), it generates a short-term memory (STM) address to identify data that is in the short-term memory. 518be stored. A short-term memory control unit. 515 The NMA interprets this and, in response, generates electrical signals to access the short-term working memory. 518 Accessing the memory. As mentioned previously, in one embodiment, the local working memory is a dynamic random access memory (DRAM). In this case, the electrical signals can include row address pulse (RAS) and column address pulse (CAS) signals. However, it is understood that the basic principles of the invention are not limited to the use of DRAM for local working memory.

[0117] Another component that ensures software-transparent memory application is an optimized PCM remote memory controller. 521 , which uses PCM remote memory 530 It manages characteristics while continuing to provide the necessary performance. In one embodiment, the PCM controller includes 521an address indirection table 520 , which the MCA, which is controlled by the buffer control unit 515 is generated, translated into a PDA which is used to access the PCM remote working memory 530 to address directly. These translations can be performed at the granularity of a "block," typically 5 KB in size. The translation is necessary because, in one embodiment of the remote memory controller, 521 The PCM blocks are constantly moved through the PCM device address space to ensure that there are no wear points due to a high frequency of write operations for any given specific block. As described earlier, this technique is sometimes referred to here as "wear compensation".

[0118] Thus, the MSC 510 from the buffer control unit 512 managed, which gives it to the MSC 510enables transactions (e.g., read and write operations) for the PCM remote working memory 530 to absorb, combine, and filter. The buffer control unit 512 manages all requirements for data movement and coherence between the local working memory 518 and the PCM remote working memory 530 Additionally, the MSC buffer controller provides 512 In one embodiment, it provides interfaces for the CPU and offers the standard synchronous load / store interface used in conventional DRAM-based main memory subsystems.

[0119] Exemplary reading and writing processes in connection with the in Fig. The architecture shown in section 5A is described. In one embodiment, a read operation first occurs at the MSC controller. 512a process that performs a search to determine if the requested data exists (e.g., using the marker cache). 511 If available, it passes the data to the requesting CPU, the core. 501 or the I / O device (not shown). If the data is not present, the MSC controller sends 512 the request, along with the system memory address (also referred to here as memory channel addresses or MCA), is sent to the PCM remote memory controller. 521 The PCM controller 521 uses the address indirection table 520 , to translate the address into a PDA and direct the read operation to this area of ​​the PCM. Upon receiving the requested data from the PCM remote memory 530 The PCM controller 521 the requested data to the MSC controller 512 back, which stores the data in the MSC near-home memory 518stores the data and also sends it to the requesting CPU core. 501 or the I / O device sends. Subsequent requests for this data can be made directly from the MSC near-home memory. 518 They will be used until they are replaced by other PCM data.

[0120] In one embodiment, a memory write operation also goes to the MSC controller first. 512 , which puts it into the MSC near-home memory 518 writes. In this implementation, the data may not be written directly to the PCM remote working memory. 530 Sent when a write operation is received. For example, data can only be sent to the PCM remote working memory. 530 will be sent when the position is in the MSC near-home memory 518 The memory address where the data is stored needs to be reused to store data for a different system memory address. When this occurs, the MSC controller detects it. 512that the data is stored in the PCM remote working memory 530 are not up-to-date, and therefore retrieves them from local working memory. 518 and sends them to the PCM controller 521 The PCM controller 521 The PDA searches for the system memory address and then writes the data to the PCM remote memory. 530 .

[0121] In one embodiment, the size of the MSC near-home memory is 518 The size of a memory storage device (MSC) is determined by the workload memory requirements and the performance of local and remote memory. For a DRAM-based MSC, the size can be reduced to one-tenth of the size of the workload memory or the size of the PCM remote memory. 530such an MSC is very large compared to conventional caches found in current processor / system architectures. For example, and without limitation, for a PCM remote memory size of 128 GB, the MSC local memory size can be up to 16 GB.

[0122] Fig. 5B shows additional details that are associated with an embodiment of the MSC 510 are linked. This embodiment includes a set of logical units responsible for instructions and addressing, including an instruction buffer tracking unit. 542 for buffering commands / addresses and a unit for checking the access mode of the cache. 544 , which enters an MSC operating mode in response to a control signal from an MSC range register (RR) unit 545selects, belong. Several exemplary operating modes are described below. In short, these modes can include where the local working memory is used in a conventional buffering task, as well as modes where the local working memory 518 It is part of system memory. A marker verification / command control program. 550 uses tags from the tag buffer 511 , to determine whether a particular cache row is in the local working memory 518 is stored, and a near-working memory controller 515 generates channel address signals (e.g. CAS and RAS signals).

[0123] This embodiment also includes a set of logical units responsible for routing and processing data, and a set of data buffers. 546This includes storing data retrieved from or written to local working memory. In one embodiment, a prefetch data buffer is also included. 547 It contains data to be pre-fetched from local and / or remote memory. The prefetch data cache 547 However, it is optional and not necessary to fulfill the basic principles of the invention.

[0124] A unit for generating / verifying error correction code (ECC) 552 The ECC generates and verifies errors to ensure that data written to or read from local working memory is error-free. As discussed below, in one embodiment of the invention, the ECC generation / verification unit is 552Modified to save cache markers. Specific ECCs are well known to experts and are therefore not described in detail here. The channel controllers 553 couple the data bus of the local working memory 518 with the MSC 510 and generate the necessary electrical signaling to access the short-term working memory 518 to access (e.g., RAS and CAS signaling for a DRAM near-home memory).

[0125] Also in Fig. Figure 5B shows a remote memory control interface 548 for coupling the MSC 510 with the remote memory. In particular, the remote memory interface generates 548 The MCAs are necessary to address the remote working memory and distribute the data between the data buffers. 546 and the remote work memory.

[0126] As mentioned, the local working memory 518The size of the marker cache used in one embodiment is very large compared to the conventional cache found in current processor / system architectures. Consequently, the marker cache can also be very large. 511 The cost of the MSC, which handles the translation of system memory addresses to local working memory addresses, can be very high. The cost of storing and retrieving the MSC markers can significantly hinder the creation of large caches. Therefore, in one embodiment of the invention, this problem is solved by using a novel scheme that stores the cache markers in the memory space allocated to ECC protection within the MSC, thereby essentially eliminating the cost of the memory space required for the markers.

[0127] This embodiment is generally in Fig. 5C shown, which has an integrated marker buffer and the ECC unit 554This shows how to save / manage cache markers, save ECC data, and execute ECC operations. As shown, the saved markers are passed to the marker verification / command control program. 550 provided on request when marker verification operations are performed (e.g., to determine if a particular block of data is in the near-working memory cache) 518 (is stored).

[0128] Fig. 5D represents the organization of an exemplary dataset. 524 and a corresponding ECC 523 and a marker 522 off. As shown, the marking is 522 with the ECC 523 in the working memory of the marker buffer / ECC unit 554 combined (in one embodiment, for example, with the DDR DRAM). In this example, several data blocks totaling 64 bytes were placed in the marker buffer / ECC unit.554 Read in. An ECC verification / generator unit. 554a generates an ECC using the data 525 and compares the generated ECC with the existing ECC 523 , which is associated with the data. In this example, a 4-byte ECC is used for the 64 bytes of data. 525 generated. However, the basic principles of the invention are not limited to a specific type or size of ECC. Additionally, it should be noted that the term "data" is used here in the broadest sense to refer to both executable program code and data, both of which are contained in the invention. Fig. 5D shown data storage space 525 can be saved.

[0129] In one embodiment, a 3-byte (24-bit) marker is used. 522 used with the bit assignments that are in Fig.5D are represented. In particular, bits 00 to 16 are address bits, which provide the upper address bits of the cache line. For a 56-bit system address (e.g., SPA [55:00]), bits 00 to 16 are mapped to bits 55 to 29 of the system address, allowing the smallest cache size of 512 MB. Returning to the 3-byte marker, bits 17 to 19 are reserved; bits 20 and 21 are directory bits that provide information about CPU remote caches of the cache line (e.g., information about the other CPUs on which the line is cached); bits 21 and 22 indicate the current state of the cache line (e.g., 00 = cleared; 01 = modified; 10 and 11 = unused). and bit 23 indicates whether the buffer line is valid (e.g. 1 = valid; 0 = invalid).

[0130] The use of a directly mapped intermediate memory architecture, as previously described, which allows the local working memory address to be taken directly from the system memory address, reduces or eliminates the latency cost of searching the marker memory before the MSC 510 This allows the data to be read, significantly improving performance. Furthermore, the time required to check cache markers is also reduced to determine if the MSC (Microsoft Security Center) is suitable. 510 The issue of having the required data has been resolved, as this is done in parallel with the ECC verification of the data read from the MSC.

[0131] Under certain conditions, storing markers with the data can cause problems for write operations. A write operation first reads the data to ensure it does not overwrite data for a different address. Such a read operation before every write operation could become costly. One embodiment of the invention uses a marker buffer for changed rows that maintains the markers of recently accessed short-term memory (STM) addresses. Since many write operations target recently accessed addresses, a relatively small marker buffer can achieve an effective hit rate to filter out most read operations before a write operation.

[0132] Additional details relating to one embodiment of a PCM-DIMM 519 are linked, which is a PCM remote memory controller 521 and a set of PCM remote memory modules 530a–i includes, are in Fig. Figure 5E is shown. In one embodiment, a single pool of PCM remote working memory is used. 530a –i dynamically shares system memory and storage space usage. In this implementation, the entire PCM pool can be used. 530a The `-i` parameter is divided into "blocks" of 4 KB in size. A PCM descriptor table (PDT) is used. 565 The PCM block is identified as either memory or storage space. For example, each row of the PDT can represent a specific block, with a specific column identifying the use of each block (e.g., 1 = memory; 0 = storage space). In this embodiment, an initial system configuration can determine the PCM blocks in the PCM. 530a -i divide between use as storage space and working memory (i.e., by programming the PDT) 565In one embodiment, the same table is used to exclude defective blocks and provide replacement blocks for wear compensation processes. Additionally, the PDT can 565 This also includes mapping each PCMS block to a "logical" block address used by the software. In the case of system memory, the logical block address is the same as the MCA or SPA. This mapping is needed to create the Address Indirection Table (AIT). 563 The PCMS block must be updated each time it is moved due to wear compensation. When this occurs, the logical block address used by the software must be mapped to a different PCMS device address (PDA). In one embodiment, this mapping is stored in the AIT and updated with each wear compensation movement.

[0133] As shown, the PCM controller includes 521 a device 556to map physical system addresses (SPA) in the PCM, which are used in response to a wear management unit 555 works, and an address indirection unit 563 , to map SPA in PCM blocks. In one embodiment, the wear management logic 555 a wear compensation algorithm to take into account the fact that the memory cells of the PCM 530a until 530iAfter too many write and / or erase operations, memory cells slowly wear out. Wear balancing distributes write and erase operations across the PCM's memory cells by, for example, forcing low-traffic data blocks to move occasionally, thus allowing frequently changing data blocks to be moved to memory cells that previously contained few changing data blocks. Typically, most blocks do not change, but high-traffic blocks are most prone to failure, and wear balancing swaps the addresses of frequently changing blocks with those of rarely changing blocks. The wear management logic 555 It can track load changes by using one or more counters and registers (e.g., the counters can be incremented by one each time a change is detected, and the result can be stored in the register set).

[0134] In one embodiment, the address indirection logic includes 563An address indirection table (AIT) contains a specification of the PCM blocks to which write operations should be directed. The AIT can be used to automatically move blocks between their uses as main memory and storage space. From the software's perspective, accesses to all blocks use conventional main memory load / store semantics (i.e., wear balancing and address indirection operations are transparent to the software). In one embodiment, the AIT is used to translate the SPA generated by the software into a PDA. This translation is necessary because, due to the need to wear the PCM devices uniformly, the data must be moved back and forth within the PDA space to avoid potential peak load points. When such movement occurs, the relationship between the SPA and the PDA changes, and the AIT is updated to reflect this new translation.

[0135] According to the SPA / PCM mapping, a control program unit plans 557 the underlying PCM operations (e.g., read operations and / or write operations) for the PCM devices 530a -I, and a PCM protocol engine 558 It generates the electrical signaling required to perform the read / write operations. An ECC unit 562 performs error detection and correction operations, and the data buffers 561 temporarily buffer data from the PCM devices 530a -I can be read or written to. A persistent write buffer 559 It is used to contain data that will be reliably written back to the PCMS, even in the event of a power outage (e.g., it is implemented using non-volatile memory). A dump support logic is also included. 560is included to empty the persistent write buffers in the PCMS either regularly and / or according to a predefined data emptying algorithm (e.g., after the persistent write buffers have reached a predefined threshold).

[0136] In one embodiment, the MSC routes 510 Automatic memory access directly to the PCM remote memory controller 521 and memory accesses to the MSC buffer control unit 512 Memory accesses that use the PCM remote memory controller 521 Reaching these locations is treated like normal read and write operations, and the address indirection and wear compensation mechanisms described here are applied as usual. An additional optimization is used in one embodiment of the invention, which can be implemented when the data needs to move between storage space and main memory. Since a shared PCM pool530a Using the `-I` parameter, a data movement can be resolved or relocated simply by changing the pointers in the translation tables (e.g., AIT). For example, when data is transferred from storage space to main memory, a pointer that identifies the data in a particular physical PCM storage location can be updated to indicate that the same physical PCM storage location is now a main memory location in system memory. In one embodiment, this is done by hardware in a manner transparent to software to provide both performance and power benefits.

[0137] In addition to the operating mode that is transparent to software, one embodiment of the MSC controller provides 512 alternative operating modes are available, as provided by the MSC area registers (RR) 545 These operating modes can include, without limitation, the following: 1) Direct access to PCM memory for memory-class applications. This usage also requires the MSC controller to be 512 ensures that write operations that affect the PCM 519 submitted, actually fixed in a persistent state. 2) A hybrid use of local working memory 518 , which parts of it are exposed to the software for direct use, while preserving the rest as MSC. If a portion of the local working memory 518 When the software is exposed for direct use, this portion is directly addressable within the system address space. This allows certain applications to explicitly allocate their memory between a small, high-performance area (local working memory). 518 ) and a relatively less powerful large area (the remote working memory) 530) to be divided. In contrast, the portion allocated as temporary storage within the MSC does not belong to the system address space (but instead serves as temporary storage for remote working memory). 530 , as described here).

[0138] As discussed previously, the MSC architecture is defined in such a way that several different approaches to decomposing the system are possible. These approaches fall into two broad memory areas: (1) Split architecture: In this scheme, the MSC controller is located 512 The MSC (Main Storage Computing Center) is located in the CPU and handles all system memory requests. There are two separate interfaces leading from the CPU to connect to local memory (e.g., DRAM) and remote memory (e.g., PCM). Each interface is tailored to a specific type of memory, and each type of memory can be scaled independently in terms of performance and capacity. (2) Unified architecture: In this scheme, a single memory interface leaves the CPU, and all memory requests are sent to this interface. The MSC controller 512 Together with the local memory (e.g., DRAM) and remote memory (e.g., PCM) subsystems, they are combined outside the CPU at this single interface. In one embodiment, this memory interface is tuned to meet the CPU's memory performance requirements and supports a disordered transaction protocol. The requirements of the local and remote memory are "unified" and met at each of these interfaces.

[0139] Within the above storage areas, several different partitioning options are possible, some of which are described below. (1) Shared example: Near-field memory: DDR5 DIMM Near-working memory interface: one or more DDR5 channels Remote memory: PCM controller / device on a PCI Express (PCIe) card. Remote memory interface: x16 PCIe, Gen 3 2) Standardized example: CPU memory interface: one or more KTMI (or QPMI) channels; local / remote memory with MSC / PCM controller on a riser card Near-working memory interface outside the MSC / PCM controller: DDR5 interface Remote memory interface outside the MSC / PCM controller: PCM device interface EXECUTION FORMS WITH DIFFERENT OPERATING MODES OF THE LOCAL WORK MEMORY

[0140] As previously discussed, a two-level memory hierarchy can be used to introduce fast non-volatile memory, such as PCM, as system memory while utilizing a very large DRAM-based local memory. The local memory can be used as hardware-managed caching. However, some applications are not hardware-caching friendly and might therefore use alternative methods to utilize such memory. Because several different applications may be running on a server at any given time, one embodiment of the invention allows multiple usage modes to be activated simultaneously. Additionally, one embodiment provides the ability to control the allocation of local memory for each of these usage modes.

[0141] In one embodiment, the MSC controller represents 512The following modes are available to use the local working memory. As mentioned previously, in one embodiment the current operating mode can be specified by operation codes stored in the MSC area registers (RR). 545 are stored. (1) Write-back buffer mode: In this mode, the entire local working memory is used. 518 or are parts of it used as temporary storage for the PCM main memory 530 used. During write-back mode, each write operation is initially directed to the local working memory. 518 directed (assuming that the buffer line to which the write operation is directed exists in the buffer). A corresponding write operation is performed to access the PCM remote memory. 530 to update only if the cache line is within local working memory. 518to be replaced by another intermediate storage line (in contrast to the write-through mode described below, in which each write operation is immediately transferred to remote working memory) 530 spread).

[0142] In one embodiment, a read operation only occurs at the MSC intermediate storage controller. 512 a, which performs a search to determine if the requested data is in the PCM remote memory 518 present (e.g. using a marker buffer) 511 If they are available, it passes the data to the requesting CPU, the core. 501 or the I / O device back (in Fig. 5A not shown). If the data is not available, the MSC buffer controller sends 512 the request, along with the system memory address, to the PCM remote memory controller 521 The PCM remote memory controller 521translates the system memory address into a physical PCM device (PDA) address and directs the read operation to this area of ​​remote working memory. 530 As mentioned previously, this translation can be an Address Indirection Table (AIT). 563 use the PCM controller 521 It is used to translate between system memory addresses and the PCM-PDA. In one embodiment, the AIT is updated as part of the wear-balancing algorithm, which is implemented to distribute memory access operations and thereby reduce PCM-FM wear. 530 to reduce.

[0143] Upon receiving the requested data from the PCM-FM 530 The PCM-FM controller 521 the requested data to the MSC controller 512 back, which stores the data in the MSC near-home memory 518 stores the data and also sends it to the requesting processor core. 501 or the I / O device (in Fig.5A (not shown) sends. Subsequent requests for this data can be made directly from the local working memory. 518 They will be used until they are replaced by other PCM-FM data.

[0144] In one embodiment, a memory write operation also goes to the MSC controller first. 512 , which writes it to the MSC short-term memory, which is used as an FM buffer 518 This serves its purpose. In this embodiment, the data cannot be directly sent to the PCM-FM. 530 Data is sent when a write operation is received. For example, the data can only be sent to the PCM-FM. 530 will be sent when the position is in the MSC near-home memory, which is used as an FM buffer. 518 The memory address where the data is stored needs to be reused to store data for a different system memory address. When this happens, the MSC controller detects it. 512 that the data in the PCM-FM 530are not up-to-date, and therefore retrieves them from the short-term working memory, which acts as an FM buffer. 518 serves as a function and sends it to the PCM-FM controller. 521 The PCM controller 521 The PDA searches for the system memory address and then writes the data to the PCM-FM. 530 . (2) Near-working memory bypass mode: In this mode, all read and write operations bypass the NM, which acts as an FM buffer. 518 serves, and go directly to the PCM remote working memory. 530 Such a mode can be used, for example, when an application is not buffer-friendly or requires that data persistence be set to the granularity of a buffer row. In one embodiment, the buffering provided by the processor's buffer functions 503 is executed, and the NM, which acts as an FM buffer. 518They serve independently of each other. Consequently, data in the NM, which acts as an FM buffer, can be stored independently. 518 It serves to temporarily store information that is not in the processor's caches. 503 are cached (and sometimes not in the processor's caches) 503 (may be temporarily stored), and vice versa. Thus, certain data, which can be stored in the processor's caches, can be temporarily stored in the processor's caches. 503 can be described as "not bufferable" in which NM is buffered, which is used as an FM buffer. 518 serves. (3) Near-working memory read cache write bypass mode: This is a variant of the mode above, in which persistent data is read cached from the PCM. 519 is allowed (i.e., the persistent data is stored in the MSC). 510(cached for read-only operations). This is useful when most of the persistent data is "read-only" and the application is used in a cache-friendly manner. (4) Short-term memory read buffer write-through mode: This is a variant of the previous mode, in which, in addition to read buffering, write hits are also buffered. Each write operation to the MSC short-term memory 518 causes a write operation to the PCM remote working memory 530 . Thus, due to the carbonless nature of the buffer, the persistence of the buffer lines is further guaranteed. (5) Near-memory direct access mode: In this mode, all or parts of the near-memory are directly accessible to software and belong to the system memory address space. Such memory can be completely under software control. Any data movement from the PCM memory 519 Access to this area of ​​local memory requires explicit software copies. Such a scheme can create a non-uniform memory address (NUMA) domain for software, thereby achieving much higher performance from local memory. 518 with reference to the PCM remote working memory 530This is achieved. Such use can be employed for certain high-performance computing (HPC) and graphics applications that require very fast access to certain data structures. This local memory direct access mode is equivalent to "stacking" certain cache rows into local memory. Such stapling can be effectively performed in larger multi-associated caches.

[0145] Table A below summarizes each of the operating modes described above. Table A mode Reading processes Writing processes Write-back buffer Allocate in case of failure Rewrite when data is displaced Allocate in case of failure Rewrite when data is displaced Cache bypass Bypass to remote memory Bypass to remote memory Read buffer / write bypass Allocate in case of failure Bypass to remote memory Invalidate cached line Read buffer / Carbond Allocate in case of failure Update only when a match is found. Copying to remote work memory Direct access Direct reading from local working memory No remote memory access Direct write to local working memory No remote memory access

[0146] The processor and chipset components used to implement the above operating modes include the following: (1) A memory-side buffer controller 512 , which controls the local working memory in a two-level (2LM) memory hierarchy. (2) A set of area registers 545 (see Fig.5B) in the RAM-side cache 510 , which determines the system address ranges for each of the previously described operating modes. (3) A mechanism to record completed write operations from the PCM main memory subsystem 519 into the MSC controller 515 to acknowledge receipt. (4) A mechanism for invalidating rows in the local working memory 518 . (5) A purge engine to displace modified lines in the PCM and invalidate them in specified areas of the near-working memory address space.

[0147] In one embodiment, the memory areas for each of the usage modes are contiguous in the system address space. However, multiple, non-contiguous areas can use the same mode. In one embodiment, each mode area register within the set of MSC-RR represents 545 The following information is available: (1) the operating mode (e.g. write-back, short-term memory bypass mode, etc.); (2) the range base in the system address space (e.g., at a granularity of 2 MB or more); and (3) a range mask field that identifies the size of the range.

[0148] In one embodiment, the number of supported modes is implementation-specific, but it is assumed that only one contiguous system address space is available for each operating mode. If a local memory direct-access area register is specified, it is assumed to be mapped to a contiguous area starting at the bottom of the local memory address space. Such a contiguous area must be smaller than the size of the local memory. If, in addition, one of the buffer modes is used, the size of the direct-access area must be smaller than the size of the local memory to allow for an adequate buffer size for the required performance. Such allocation of local memory for various modes may be user-configurable.

[0149] In summary, an embodiment of the invention is implemented according to the following set of processes: (1) If a read or write access to the memory-side cache controller 512 Once reached, he checks the area registers. 545 ( Fig. 5B), to determine the current operating mode. (2) For a read buffer / write bypass access, the MSC controller checks 512 The system checks whether the address is currently being cached. If so, it must invalidate the line before sending the completed write operation back to the source. (3) For a write-bypass direct PCM operation, the MSC controller waits 512 for a completion that is determined by the PCM controller 521 returns to ensure that the write operation is set to a buffer that is visible overall. (4) Each read or write operation for the direct access mode space in the local working memory is directed to the appropriate area of ​​the local working memory. No transactions are sent to the PCM main memory. (5) Changing the area register configuration to increase or decrease an existing area or to add a new area requires flushing the appropriate cached areas in the PCM. For example, if software wants to increase the size of the fast-access mode area by reducing the write-back cache area, it can do so by first displacing and invalidating the appropriate portion of the near-working memory area and then modifying the near-working memory fast-access mode area register. The MSC controller 510 It then knows that future temporary storage will take place in a smaller local working memory address space.

[0150] A particular embodiment of the invention, in which the physical system address (SPA) space is divided among several MSCs, is described in Fig. Figure 6A. In the illustrated embodiment, the MSC buffer 654 and the controller 656 with a spa area 667a linked; the MSC buffer 655 and the controller 657 are connected to the spa area 667b linked; the MSC buffer 661 and the controller 663 are connected to the spa area 667c linked; and the MSC buffer 660 and the controller 662 are connected to the spa area 667d linked. Two CPUs, 670 and 671 , are shown, each with four cores, 650 and 651 , and each with a home agent, 652 and 653 The two CPUs, 670 and 671 , are equipped with a common remote memory controller666 each via remote memory interfaces, 659 and 665 , coupled.

[0151] Thus, in Fig. 6A The entire SPA working memory space is divided into areas, each area being associated with a specific MSC and controller. In this embodiment, a particular MSC may have a non-contiguous SPA space allocation, but there is no overlapping SPA space between two MSCs. Furthermore, the MSCs are associated with the non-overlapping SPA space, and no coherence techniques are necessary between the MSCs.

[0152] All previously described short-term memory modes can be used in the Fig. The architecture shown in 6A can be used. For example, any MSC controller can be used. 656 until 657 , 662 until 663be configured to operate in write-back buffer mode, short-time memory bypass mode, short-time memory read buffer write bypass mode, short-time memory read buffer write-through mode, or short-time memory direct access mode. As discussed previously, the specific mode is within the range register (RR). 655 for every MSC 610 specified.

[0153] In one embodiment, different MSCs can implement different operating modes simultaneously. For example, the range registers of the MSC controller can 656 specify the local memory direct access mode, the area registers of the MSC controller 657 can specify the write-back buffer mode, the range registers of the MSC controller 662 can specify the read buffer / write bypass mode, and the MSC controller 663can specify the read buffer / write-through mode. Additionally, in some embodiments, individual MSCs can implement different operating modes simultaneously. For example, the MSC controller can 656 be configured to implement the near memory direct access mode for certain system address ranges and a near memory bypass mode for other system address ranges.

[0154] The above combinations are, of course, merely examples of how the MSC controllers can be programmed independently. The fundamental principles of the invention are not limited to these or any other combinations.

[0155] As described with reference to some of the embodiments described above (such as with reference to Fig.As described in section 4G, an MSC and its MSC controller are configured to operate on the same memory channel (e.g., the same physical DDR bus) as the PCM-DIMM responsible for that specific SPA area. Consequently, in this embodiment, memory transactions occurring within the designated SPA area are on the same memory channel, thus reducing data traffic through the CPU network interconnect.

[0156] Fig. 6B provides a graphical representation of how system memory address mapping works. 620 , the near-working memory address mapping 621 and the PCM address mapping 622 can be configured according to the embodiments of the invention. As discussed previously, the MSC controller functions 606 in a mode controlled by the range registers (RR) 605 is identified. The system memory mapping620 has a first area 602 , which is allocated for the local memory direct access mode, a second area 603 , which is allocated to the near-working memory bypass mode, and a third area 605 , which is assigned to the write-back buffer mode. The MSC controller 606 Provides access to local working memory, as through local working memory address mapping. 621 specified, which form a first area 608 , which is allocated to a write-back buffer mode, and a second area 609 , which is allocated to a near-working memory direct access mode. As shown, the near-working memory cache bypass operations are assigned to the PCM controller. 610 according to the PCM address mapping 622 , which has a near-working memory bypass area 611 (for the short-term memory bypass mode) and a write-back buffer area612 (for the write-back buffer mode) is provided directly. Consequently, the system memory mapping can be 620 , the near-working memory address mapping 621 and the PCM address mapping 622 They are subdivided based on the specific modes implemented by the MSC controllers.

[0157] Fig. 6C and Fig. Figure 6D illustrates addressing techniques used by one embodiment of the invention (some of which have already been generally described). In particular, it shows Fig. 6C, like a physical system address (SPA) 675 The SPA is mapped to a short-term memory (NMA) address or a PCM device (PDA) address. In particular, the SPA is first processed by the decoding logic. 676 decoded within a processor to determine a home agent 605to identify (e.g., the home agent responsible for the decoded address space). The decoding logic 677 , which are associated with the selected home agent 605 Furthermore, the SPA is decoded. 675 (or a portion thereof) to form a memory channel address (MCA) that will direct a suitable MSC intermediate storage controller 612 Identified, which is assigned to this specific SPA room. The selected buffer controller. 612 then forms at 678 either the memory access request is directed to a local memory address, whereupon... 680 Optionally, a nesting operation follows (described below), or alternatively, if... 679 an optional nesting operation, followed by a mapping 681through the PCM remote memory controller to a PCM device address PDA (e.g. using address indirection and wear management as described previously).

[0158] One embodiment of an optional nesting process is described in Fig. Figure 6D illustrates how software pages can be split across multiple MSC and PCM address spaces using nesting. In the Fig. In the example shown in 6D, two sides are used. 682 and 683 in the SPA room of the cache row nesting logic 685 nested to form two sets of nested lines 685 and 686 to generate in the MCA space. For example, all odd rows of the memory pages can be generated. 682 until 683 (e.g., lines 1, 3, 5, etc.) to a first MCA space 685 be sent, and all even lines from the memory pages682 and 683 (e.g., lines 2, 4, 6, etc.) can be sent to a second MCA space 686 to be sent. In one embodiment, the pages are 5 KB pages, although the basic principles of the invention are not limited to a single page size. The PCM controllers 687 and 688 The Address Indirection Tables (AIT) and the wear management logic then reorder the cache rows within the PCM Device Address (PDA) memory space (as discussed previously). Such nesting can be used to distribute the workload across the MSC. 610 and / or PCM devices 619 to distribute (e.g. as an alternative to a non-uniform memory address (NUMA)). Implementation methods of a system and method for dynamically partial shutdown of an MSC in a multi-level work memory hierarchy

[0159] The memory subsystem of a computer system consumes a significant amount of the total system power, especially in servers with large memory capacities. In a multi-level memory subsystem (such as a two-level subsystem with an MSC, as described here), because the MSC is sized to handle the largest possible workload that can run on the server, a large portion of the power is concentrated in the volatile (e.g., DRAM-based) MSC, which is located at the front of a large, fast NVM storage space, such as a PCM (or more accurately, a PCMS). Since ongoing workloads and cache requirements can vary considerably throughout the day, the power consumption of such large caches will significantly impact the load line.Some of the embodiments described below assume a two-level memory hierarchy with an MSC that includes a purge engine which (1) evicts modified cache rows and invalidates them in a predetermined manner (although the basic principles of the invention can be used in connection with any multi-level memory hierarchy); (2) dynamically changes cache usage; (3) allows the software to specify a power management concept; and (4) disables predetermined parts of the volatile memory-based MSC.

[0160] The MSC in a multi-level memory hierarchy can be an associative write-back buffer. Although the number of possibilities for such a buffer can vary, two specific implementations are discussed here: (1) a multi-associative buffer with a number of paths in the range of 8 to 16; and (2) a simple associative buffer, also known as a direct mapping buffer. 2. Emptying Engine 701

[0161] As in Fig. Figure 7A shows an embodiment of a draining engine. 701 in the multi-level memory subsystem in the MSC controller 512 and has several different uses, one of which is dynamic buffer power management, as described here. In this embodiment, the software can 750 the emptying engine 701 activate in order to enforce a specific power management concept. These concepts can include (without limitation) the following: (1) The software 750identifies a specific part of the cache to be deactivated or reactivated 740 In one embodiment, the part is identified as a specific number of paths. Alternatively or additionally, it can be identified as a specific proportion of the buffer (e.g., 50%). (2) The software 750 It provides usage data, such as an average failure rate or occupancy, which the emptying engine uses. 701 It can monitor and dynamically decide on the amount of cache to be deactivated or reactivated. For example, if the average failure rate for a specific area exceeds a predefined threshold, then that area can be deactivated.

[0162] Although the following discussion focuses on the deactivation of parts of the cache, the person skilled in the art will understand that dynamic reactivation can be performed using the same basic techniques.

[0163] As soon as the concept is applied to the emptying engine in one embodiment 701 from the software 750 Once a setting has been configured, the flushing engine implements it by first deciding which specific area of ​​the cache to disable (e.g., using the miss rate, as mentioned earlier, or by flushing the areas identified by the software). The flushing engine 701The engine then reads this area (or these areas) sequentially, sampling each intermediate memory line, pushing modified intermediate memory lines into PCM main memory as needed, and invalidating each intermediate memory line once it has been accessed. In one embodiment, the flushing engine maintains a flushing address counter. 702 , which maintains the "record address" of the area of ​​the MSC that is currently being deactivated. As discussed below, in one embodiment, the record address is derived from the system address generated by the software to access memory. 3. Monitoring of cache usage

[0164] In one embodiment, the MSC has counters 730, in order to dynamically monitor cache usage. For example, such monitoring can be achieved by maintaining a moving average of certain key performance indicators, some examples of which include cache occupancy and the moving average failure rate: (1) Cache allocation: The cache is divided into a series of areas. In a multi-associative cache, for example, an area may be defined as a path. Each time a new row is allocated in an area, an area allocation counter is incremented. When a row is moved or invalidated in an area, the area allocation counter is decremented. (2) Moving mean failure rate: For a given time interval, the mean failure rate of an area is calculated by the emptying engine. 701 calculated. In this embodiment, the software can 750provide a threshold for the failure rate, which the emptying engine 701 used to enable the deactivation of each cache area. 4. Cache Disablement Mechanism

[0165] Several implementation-specific schemes are possible for deactivating the buffer. The main idea is to reduce the current state of the specified buffer area to the lowest possible level while still allowing for a reasonably fast reactivation. Typically, this means that the current is not switched off, but in one embodiment, the clock generators can be disabled (or throttled) and the self-refresh function for the buffer area can be deactivated. It should be noted that in these cases, reactivation may take longer and may occur in the background while other parts of the buffer are still active.

[0166] The granularity of the deactivation area depends on the specific implementation and, if DRAM is used for the MSC, on the DRAM architecture. Those skilled in the art will understand that several schemes are possible, including limiting the granularity of the area to independent "ranks." Each individual "rank" in a memory module forms an arrangement of memory components identical to the other ranks. Commonly used memory modules have either a single memory rank, a dual memory rank, or four memory ranks (although the basic principles of the invention are not limited to a specific number of ranks).

[0167] The operational details of a particular embodiment of the invention will now be described. It should be noted, however, that the fundamental principles of the invention are not limited to this specific set of operating parameters. For example, the fundamental principles of the invention are not limited to specific address or data formats.

[0168] In one embodiment, the concept for disabling the cache of the emptying engine is 701 from the software 750 The specific case of a directly mapped buffer is described here because it is a more complex case. A person skilled in the art can readily use this description to derive the configuration for a multi-associated buffer mapping. (A) As in Fig. As shown in 7A, a buffer area to be deactivated is shown first. 740(e.g., from the software) 750 ) identified. If half of the cache is specified, the record address decreases by 1 bit. For example, and without limitation, in the case of a 1 GB directly mapped cache with a line size of 64 bytes and a system address space of 1 TB or 40 bytes, the record address is 24 bytes wide, and the marker (for 64 bytes lines) is 10 bytes wide. If half of the cache is disabled and reduced to 512 MB, the record address is now 23 bytes and the marker size increases to 11 bytes. (B) Secondly, a miss threshold, averaging interval, and area granularity for disabling are specified. For example, and without limitation, the miss threshold could be 0.01 for an averaging interval of 100 ms, and the area granularity for disabling could be 1 / 4 of the buffer. Again, the record address and marker change accordingly based on the area size. Once the concept is set and the dump engine is running... 701 Once activated, it waits for the appropriate trigger to begin working.

[0169] Fig. 7A represents a specific implementation where the upper half of the cache is identified for deactivation. According to this implementation, the emptying engine can 701 perform the following operations: (1) Selecting the upper half 740 of the MSC to be emptied, directly depicted 510 . (2) Setting the emptying address counter 702 (Record address) to the upper part of the buffer, and begin displacing and invalidating each line in turn. As it advances through each line, the empty address counter is 702 decremented. Fig. 7A provides a specific example where the deactivation was successfully performed on the area designated as the emptied area. 710 is identified, and an area is identified that needs to be emptied. 711 (also shown in the upper half of the MSC), where the deactivation still needs to be performed. (3) In an embodiment, to ensure that any intermediate storage area 710 If the area above the emptying address counter remains unused, the following rules must be observed: a. Each CPU read address above the waste address counter 702If the memory is located, it automatically searches only the lower half of the cache using the reduced record address (in our example, this would be a 23b record address). This is in Fig. 7A is shown by red lines. b. The marking that is in the marking verification unit 550 The stored area is as large as possible to accommodate the smallest buffer. In the specific example that is in Fig. As shown in Figure 7A, the read address process checks an 11b marker to ensure a proper match. c. If a buffer failure occurs in response to the operation, the allocation takes place only in the lower half of the MSC. 741 instead of. d. If a read operation occurs below the delete counter address 702 but above the lower half of the buffer (i.e., in the area due to be emptied) 711) is located, in one embodiment it performs a normal search using the 12b record address and a normal match using the 10b marker. e. If there is a match, the data is simply used. If there is a miss, there are two possibilities: (i) Allocate as usual (as indicated by the circular dotted line shown in Fig. 7A is identified by circle No. 1), but expect that emptying will eventually remove this line, or (ii) check the lower half of the buffer looking for the line, and if it is missing there, allocate only to the lower half (as indicated by the dotted line shown in Fig. 7A is identified by circle no. 2). f. In one embodiment, the buffer line write operations follow the same rules as previously described in (a) to (e). (4) As soon as the emptying engine 701has reached the end of the selected area (in this case, the lower part of the upper half) 740 ), this entire area will now be invalidated and can be switched off. (5) The mechanism for disabling the cache area removes this part 740 of the MSC 510 and turns it off. (6) The buffer address is now 23b and points only to the lower half. 741 of the MSC 510 .

[0170] As can be seen from the diagram above, the deactivation of part of the MSC is transparent to the application and has no significant impact on the use of the cache.

[0171] An embodiment of a method for dynamically partially disabling an MSC in a multi-level memory hierarchy is described in Fig. 7B is shown. The processes that are depicted in Fig. The images shown in 7B may be related to the software.750 , the emptying engine 701 and the MSC controller 512 , which were described previously, can be implemented, although the procedure is not necessarily limited to a specific architecture.

[0172] At 760 Monitoring of cache usage will be initiated. Based on this monitoring, the following will occur: 761A portion of the buffer is identified for deactivation. As discussed previously, for example, a buffer occupancy counter can be incremented each time a new buffer row is allocated in a buffer and decremented when a buffer row is moved or invalidated within the buffer. The occupancy counter value can then be used to determine whether the buffer should be deactivated (i.e., buffers with lower occupancy being invalidated before buffers with higher occupancy). Alternatively, the average failure rate of a buffer buffer can be calculated over a given time interval. In this embodiment, a threshold failure rate can be provided to allow the deactivation of each buffer buffer.

[0173] At 762The emptying address counter is set to the identified portion of the buffer. At 763 Each intermediate storage line is overridden and invalidated, and the counter is decremented after each invalidation. 764 A read or write operation is initiated, and at 765 A determination is made as to whether the operation is directed to the emptied area (F), the area pending emptiness (FP), or the portion of the buffer that is not invalidated (NI). If the operation is directed to the emptied area, then it is... 768 redirected to the portion of the cache that is not disabled. In particular, in one embodiment, the cache row is allocated using the reduced record address (e.g., as discussed previously).

[0174] If the operation is directed to the area (FP) due for clearing, then the temporary storage row can be allocated as usual, with the expectation that the row will eventually be cleared. Alternatively, the temporary storage row can be allocated using the reduced record address (e.g., as discussed previously).

[0175] If the operation is directed to the part of the cache that is not invalidated, then at 766 The read / write process is performed as usual with the reduced record address.

[0176] The embodiments of the invention described above can be used in servers and other types of computer systems to significantly reduce energy consumption. In addition to handling directly mapped buffers, as described above, the embodiments of the invention also provide ways to dynamically adjust the buffer size based on usage data, such as occupancy and failure rates. Energy-saving work memory system and method using a multi-level work memory hierarchy

[0177] Data center servers are typically protected against power outages using very expensive uninterruptible power supply (UPS) systems. Such systems are typically used to keep the servers powered long enough to save the entire contents of RAM and other volatile system states to persistent media. Because the persistent media are typically hard drives, which may be located on a network, a significant amount of time and power is consumed when a RAM dump is performed.

[0178] In the embodiments of the invention described below, a PCM or other non-volatile memory is used to solve these problems, thereby reducing the need for UPS systems. Of course, high-end data centers may still use UPS systems for availability (rather than for ensuring a memory state dump).

[0179] As in Fig. As shown in Figure 8A, the embodiments of the invention use a multi-level working memory hierarchy that incorporates a PCM. 530 (e.g. a PCMS) as remote working memory and a volatile MSC near-home memory 510 (e.g., DRAM). Other components include one or more of the following: (1) A draining engine 701 , which can be used to write modified lines from the MSC back to the PCM. The purge engine 701 It also maintains an emptying address counter. 702 , which is used for subsequent read and write accesses by the CPU. (2) A unit for the early detection of power outages 830 , which is the action of the emptying engine 701 triggers. (3) A backup power unit 820to maintain power supply while the emptying process takes place. Since the emptying process doesn't take long, this backup power unit is necessary. 820 There's no need to use a very expensive UPS system. Instead, a battery backup module at the frame or server level is sufficient. (4) The ability of the MSC 510 (under the control of the MSC controller) 512 ) to switch to a carbonless copy mode after the buffer lines have been cleared. (5) A mechanism to enable the software 850 pages to be discarded in the MSC 510 identified (e.g., by marking the pages as described below). Such pages do not need to be emptied into the PCMS. Marking these pages must be done in such a way that the hardware has access to this information when the cache is emptied. (6) A PCMS address indirection table (AIT) 563, where the software can mark pages to be discarded (e.g., mark them with a zero). (7) A method to implement the software 850 to notify when the emptying process is complete.

[0180] In one embodiment, the maximum duration required to complete the MSC is 510 in the PCM 530 The amount of time required to empty the buffer depends on the size of the buffer and the performance of the PCM subsystem. In one embodiment, the power failure detection system 830 tailored to the actual capacity utilization, which can be used to predict the average number of changed lines that occur in the MSC 510 accumulate. For most server loads, this tracks the read / write ratio, which is typically about one-third of the MSC size.

[0181] Additionally, the software can 850 the emptying engine 701order “void” or “rejected” pages from the MSC 510 to invalidate these pages. If these pages are later removed from the PCM 530 The PCM controller is used to read the data. 521 the pages to zero before he sent them to the MSC 510 returns. In one embodiment, the PCM controller uses 521 the AIT 563 , which maintains the metadata at the page level that specifies the state of each page. In one embodiment, this information is accessed during every read or write operation. The state of the page (and the associated cache lines) can be determined by the software. 850 be hired.

[0182] If, in one embodiment, the power failure detection unit 830 detects a power outage and issues a warning for the draining engine 701 Once generated, the following sequence occurs: (1) The emptying engine 701is triggered to begin the MSC 510 to go through the lines one after the other, looking for altered lines. (2) These modified lines are processed by the PCM controller 521 in the PCM 530 The row is emptied, and each emptied row is set to a "cleaned" state. The emptying address counter 702 It is updated as each line is processed (e.g., as described previously). (3) Subsequent read operations may still access the emptied areas of the buffer. (4) However, any write operation to the cleared area of ​​the buffer results in a write-through or write-bypass operation. A write-bypass occurs if the data is not currently in the MSC. 510 are located. If the data is in the MSC 510 They will be updated if they are located. (5) After the entire MSC 510 Once emptied, the emptying engine sends a signal.701 an explicit drain command to the PCM controller 521 The PCM controller 521 This command is acknowledged if all previous write operations to the PCM were successful. 530 postponed. (6) Now the emptying engine can 701 the software 850 Notify of the successful completion of the emptying event (e.g., generate a "emptying complete" command). (7) The software 850 The system can now either begin a proper shutdown or set a breakpoint state from which it will restart if the power fails. (8) When the power is restored, the software 850 again from the breakpoint state in the PCM memory 530 Start. A system restart is not necessary.

[0183] An embodiment of a power-saving method for responding to a power failure event in a multi-level working memory system with an MSC and a PCM working memory is described in Fig. 8B shown. The one in Fig. The processes depicted in 8B may be related to the in Fig. The architecture shown in 8A can be implemented, although the method is not necessarily limited to a specific architecture.

[0184] At 801 A power outage warning is detected. For example, a power outage detection circuit can detect that the input voltage drops below a predefined threshold. 802 The purge engine is triggered and begins to sequentially process the MSC in search of changed lines (e.g., using the purge address counter). 702 , as previously described).

[0185] At 803May read operations affect the emptied areas of the MSC, and in the case of 804 Write operations directed at emptied areas generate carbon copy or write bypass operations (e.g., bypassing the MSC). Once the entire MSC has been emptied, which occurs when... 805 Once the condition is determined, an explicit drain command is sent to the PCM controller. At this stage, a notification command can also be sent to the system software (i.e., to inform the system of the drained state).

[0186] The techniques described above can be used to significantly reduce the TCO in data centers because costly UPS systems are no longer needed. SYSTEM AND METHOD FOR FAST SWITCHING TO STANDBY STATE WITH A MULTI-LEVEL STORAGE HIERARCHY

[0187] The speed at which servers enter and exit sleep mode is determined by saving and retrieving the memory state from the storage device, such as a hard drive or SSD. A faster memory-based sleep mode cannot achieve the same power savings because DRAM memory is volatile and must be backed up by a battery and put into a self-refresh mode during sleep.

[0188] In memory subsystems with a multi-level hierarchy, such as those described here, a very fast memory-based hibernation state can be achieved because the PCM memory is non-volatile and the DRAM-based cache does not require battery backup. This approach allows servers to enter hibernation more frequently, resulting in significant power and energy savings in the data center.

[0189] As in Fig. As shown in Figure 9A, the embodiments of the invention described below utilize the multi-level working memory hierarchy, which includes an MSC- 510 and a PCM (e.g., PCMS) main memory 530 includes a hardware-based emptying engine 701 As discussed previously, in this multi-layered architecture, PCM-based non-volatile memory provides the software-visible memory address space. Due to the need to hide the PCM performance characteristics from direct software access, a large DRAM-based write-back MSC is used. 510 used, which is managed by hardware (e.g. via the MSC controller). 512) and can be transparent to the software. In normal system operation, every software memory access retrieves the data from the PCM into the MSC, where it is maintained, unless it is overwritten by another access. Since in one embodiment of the MSC 510 When writing back, a number of intermediate storage positions are "changed" over time, i.e., a changed state is no longer reflected by the copy stored in the PCM. 540 is stored.

[0190] Based on various concepts, both software- and hardware-controlled, the system can enter or exit a hibernation state. The specific ways in which the system can be configured to enter hibernation will be readily understood by experts and will not be described in detail here. While hibernation occurs, the state of the RAM must be preserved, but most of the system is powered down to conserve power. Typically, entering hibernation is software-controlled, based on the time spent in an "idle" state. Exiting hibernation is hardware-controlled, based on various well-known trigger conditions.

[0191] In one embodiment, the concept of entering and exiting the sleep state is determined by the speed of entering and exiting the sleep state. The primary cost is the effort required to store or retrieve the entire memory state from a non-volatile storage medium. If the storage medium is a disk, then the memory state must be stored or retrieved using direct memory access (DMA).

[0192] In the multi-layered memory architectures described here, most of the memory state is already stored in the non-volatile PCM memory. 530 maintained. The only additional memory state that is stored in the PCM 530 What needs to be transferred when entering sleep mode are the "changed" lines in the MSC. 510 This is the case when a draining engine is used. 701This is used to iterate through all MSCs in search of "modified" rows. These rows are retrieved very quickly and "emptied" into the PCM to update the original positions with the latest data. The "cleaned" rows in the cache do not need to be emptied (i.e., because clean copies are already stored in the PCM). The emptying engine 701 In one embodiment, the software 910 (or firmware) programmed to implement the hibernation concept for the system. The programming is minimal, as it involves the drain engine. 701 only needs to be instructed to take all changed lines and send them to the PCM. 530 to send. The addresses of the positions of modified lines are already maintained as part of the memory hierarchy at several levels and do not need to be explicitly sent by the software. 910 be specified.

[0193] In one embodiment, when the emptying process is complete, the emptying engine provides information. 701 the software 910 , which can terminate the remaining parts of the shutdown process. Upon returning from hibernation, there is no need to explicitly copy the memory state from the non-volatile PCM. The normal multi-level memory techniques for retrieving a memory location from the PCM are used. 530 and to store the retrieved cache lines in the MSC 510 They handle this automatically as needed. Consequently, resuming from sleep mode using the multi-layered memory architectures described here is extremely fast.

[0194] A certain amount of basic initialization is performed for the multi-level memory hierarchy to begin operation upon resuming from sleep mode. In one embodiment, this is done by the system BIOS. 170 managed (e.g. in Fig. (2 shown). In one embodiment, initialization involves setting up tables stored in the SRAM or DRAM to enable fast address translation. This process is also very fast and therefore contributes minimally to the resumption overhead.

[0195] The advantages of the hibernation techniques described here represent a significant improvement over current hibernation methods. For example, current servers do not use memory-based hibernation because the cost of keeping the memory powered on is too high. Instead, hibernation requires saving or retrieving the memory state from a storage device, such as an HDD or SSD. This typically involves a software driver that programs an adapter to perform DMA operations between the memory and the storage device. Such operations are very overhead-intensive and limit the applicability of hibernation for power saving. Furthermore, the software is heavily involved in creating a memory image for the storage device.

[0196] In contrast, the embodiments of the invention described here use a multi-level memory hierarchy with non-volatile memory (e.g., PCM) to execute a memory-resident hibernation state. A purge engine 701 is used to speed up the dumping of changed lines from the MSC to the PCMS, thereby significantly improving performance.

[0197] An embodiment of a power-saving method for responding to a power failure event in a multi-level memory system with an MSC and a PCM memory is described in Fig. 8B shown. The one in Fig. The processes depicted in 8B may be related to the in Fig. The architecture shown in 8A can be implemented, although the method is not necessarily limited to a specific architecture.

[0198] At 801A power outage warning is detected. For example, a power outage detection circuit can detect that the input voltage drops below a predefined threshold. 802 The purge engine is triggered and begins to traverse the MSC sequentially in search of changed lines (e.g., using the purge address counter). 702 (as described above).

[0199] At 803 May read operations affect the emptied areas of the MSC, and in the case of 804 Write operations directed to the emptied areas generate copy-through or write-bypass operations (e.g., bypassing the MSC). Once the entire MSC has been emptied, which occurs when... 805Once the condition is determined, an explicit drain command is sent to the PCM controller. At this stage, a notification command can also be sent to the system software (i.e., to inform the system of the drained state).

[0200] The embodiments of the invention can comprise various steps, as previously described. These steps can be designed as machine-executable instructions that can be used to cause a general-purpose or specialized processor to execute them. Alternatively, these steps can be executed by specific hardware components containing hard-wired logic for performing the steps, or by any combination of programmed computer components and specific hardware components.

[0201] As described here, the instructions can refer to specific hardware configurations, such as application-specific integrated circuits (ASICs) configured to perform certain operations or possessing a predetermined function, or to software instructions stored in working memory formed on a non-temporary, computer-readable medium. Thus, the techniques shown in the figures can be implemented using code and data stored and executed on one or more electronic devices (e.g., a terminal, a network element, etc.). Such electronic devices store and communicate (internally and / or with other electronic devices via a network) code and data using machine-readable media, such as non-temporary computer-machine-readable storage media (e.g., USB drives).Magnetic disks; optical disks; random-access memory; solid-state memory; flash memory devices; phase-change memory) and temporary computer-machine-readable communication media (e.g., electrical, optical, acoustic, or other forms of propagated signals—such as carrier waves, infrared signals, digital signals, etc.). Additionally, such electronic devices typically include a set of one or more processors coupled with one or more other components, such as one or more storage devices (non-temporary machine-readable storage media), user input / output devices (e.g., a keyboard, touchscreen, and / or display), and network interfaces. The coupling of the set of processors and other components is typically accomplished via one or more buses and bridges (also known as bus controllers).The storage device and the signals that carry the network traffic each constitute one or more machine-readable storage media and machine-readable communication media. Thus, the storage device of a given electronic device typically stores code and / or data for execution on the set of one or more processors of that electronic device. Of course, one or more parts of an embodiment of the invention can be implemented using various combinations of software, firmware, and / or hardware. Throughout this entire detailed description, numerous specific details have been presented for explanatory purposes, in order to provide a complete understanding of the present invention. However, it will be apparent to those skilled in the art that the invention can be implemented in practice without some of these specific details.In some cases, well-known structures and functions were not described in detail in order to avoid obscuring the subject matter of the present invention. Accordingly, the scope and spirit of the invention must be assessed with regard to the following claims.

Claims

[1] Computer system, comprising: – a memory subsystem consisting of non-volatile system memory and a volatile memory-side cache (MSC) for temporarily storing portions of the non-volatile system memory; and – a dump engine for dumping a predefined area of ​​the MSC into the non-volatile system memory in response to a deactivation state associated with the predefined area of ​​the MSC. [2] System according to claim 1, wherein the deactivation state is selected in response to a measurement of the buffer occupancy for the specified area of ​​the MSC. [3] System according to claim 2, wherein the buffer allocation is tracked by a buffer allocation counter for the specified buffer area, wherein the buffer allocation counter is incremented each time a new buffer row is allocated in the specified area and is decremented each time it is moved within the specified buffer area or is invalidated. [4] System according to claim 1, wherein the deactivation state is selected in response to a measurement of an average failure rate in the specified intermediate storage area. [5] System according to claim 4, wherein the average failure rate is calculated as a sliding mean over a predetermined time interval. [6] System according to claim 1, wherein the specified area is identified as the number of paths of the MSC. [7] System according to claim 1, wherein the predetermined area is identified as a predetermined proportion of the MSC. [8] System according to claim 1, wherein the emptying engine comprises an emptying address counter which maintains the record address of the specified area of ​​the MSC that is currently being deactivated. [9] System according to claim 8, wherein the record address is derived from the system memory address that is generated to access the system memory. [10] System according to claim 1, wherein the emptying engine comprises an emptying address counter which is set to an upper part of the area of ​​the MSC to be emptied, wherein the emptying address counter is decremented when each successive intermediate storage row is emptied from the predetermined area of ​​the MSC. [11] Computer-implemented method, implemented in a main memory subsystem consisting of a non-volatile system memory and a volatile main memory-side cache (MSC) for temporarily storing portions of the non-volatile system memory, the method comprising the following steps: – Detecting a deactivation state associated with a predefined area of ​​the MSC; and – Emptying the specified area of ​​the MSC into non-volatile system memory in response to the deactivation state associated with the specified area of ​​the MSC. [12] Method according to claim 11, further comprising selecting the deactivation state in response to a measurement of the buffer occupancy for the specified area of ​​the MSC. [13] The method of claim 12, further comprising the following step: – Tracking the buffer allocation using a buffer allocation counter for the specified buffer area, wherein the buffer allocation counter is incremented each time a new buffer row is allocated within the specified area, and decremented each time it is moved or invalidated within the specified buffer area. [14] Method according to claim 11, wherein the deactivation state is selected in response to a measurement of an average failure rate within the specified buffer area. [15] Method according to claim 14, wherein the average failure rate is calculated as a sliding mean over a predetermined time interval. [16] Method according to claim 11, wherein the specified area is identified as the number of paths of the MSC. [17] Method according to claim 11, wherein the predetermined area is identified as a predetermined proportion of the MSC. [18] Method according to claim 11, wherein the emptying engine comprises an emptying address counter which maintains the set address of the specified area of ​​the MSC that is currently being deactivated. [19] Method according to claim 18, wherein the record address is derived from the system memory address that is generated to access the system memory. [20] Method according to claim 11, wherein the emptying engine comprises an emptying address counter set to an upper part of the area of ​​the MSC to be emptied, wherein the emptying address counter is decremented each time each subsequent intermediate storage row is emptied from the predetermined area of ​​the MSC.

Citation Information

Patent Citations

  • Systems And Methods For Non-Volatile Cache Control

    US20100180065A1

  • Caching Operations for a Non-Volatile Memory Array

    US20120297147A1

  • Techniques to perform power fail-safe caching without atomic metadata

    US20140173190A1