Fault-tolerant memory systems

By introducing RAS management units and dynamic redundancy configuration into the memory system, the problem of expensive redundancy solutions and static configuration in the existing technology is solved, efficient error correction and fault recovery are achieved, and the reliability and availability of the system are improved.

CN112470129BActive Publication Date: 2024-09-27ARM LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980049118.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-07-24
Filing Date
2019-06-26
Publication Date
2024-09-27
Estimated Expiration
2039-06-26

AI Technical Summary

Technical Problem

When existing memory systems face bit errors and failures, redundancy solutions are expensive and cannot tolerate failures of memory node controllers or memory management units. Moreover, the system configuration is static, cannot adapt to changes in memory and storage components, and fails to effectively consider equipment. health status.

Method used

Use the RAS management unit (RMU) to detect and correct errors in storage devices, provide multi-level error protection through joint error correction codes and redundancy mechanisms, dynamically configure RAID levels and data scheduling, and use key bits to identify key data to achieve automatic Hardware drives replica replication and recovery and dynamically adjusts redundancy levels and data location within the storage system.

Benefits of technology

It improves the reliability, availability and serviceability of the memory system, reduces the need for redundant storage, adapts to changes in the memory system, and ensures the high availability of critical data in the event of transient errors and failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112470129B_ABST
    Figure CN112470129B_ABST
Patent Text Reader

Abstract

A memory system for a data processing device includes an error management unit, a memory controller (e.g., a memory management unit or a memory node controller), and one or more storage devices that are accessible via the memory controller and are configured to store critical data. The error management unit detects and corrects errors in stored critical data, storage devices, or memory controllers. Data errors can be corrected, for example, using copies of data or error correction codes. A level of fault protection for critical data is determined based on the fault characteristics of the device, such as the number of copies, error correction codes, or storage locations in one or more storage devices. Fault characteristics, such as error rates, can be monitored and dynamically updated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a memory system of a data processing device having improved reliability, availability and serviceability. Background Art

[0002] The data processing apparatus may include a plurality of computing devices of various types utilizing the following memory systems: A memory system including one or more memories accessed via one or more memory management units or memory node controllers. Errors may occur at several locations in the system. For example, random bit errors may occur in stored data values, or a fault may occur in a storage device, a memory node controller (MNC), or a memory management unit (MMU).

[0003] Schemes for overcoming bit errors in data include the use of error correcting codes (ECC), which store additional information to enable correction of certain bit errors, and the use of redundancy (as in Redundant Array of Independent Disks (RAID)), where the physical memory devices and / or physical storage disks are replicated.

[0004] ECC can provide, for example, Single Error Correction Double Error Detection (SECDEC), where a single bit error can be corrected and one or two bit errors can be detected, or Double Error Correction Triple Error Detection (DECTED), where up to two bit errors can be corrected and up to three bit errors can be detected. However, ECC is limited in the number of bits that can be corrected.

[0005] When multiple copies of data are stored, error detection such as parity or checksums can be used to detect so that a spare copy can be used when one copy has an error. Alternatively, when three or more copies are available, a "voting" system can be used to determine the value to be used.

[0006] A limitation of existing solutions using redundant storage is that the entire memory system is replicated. This is expensive. Another limitation is that these solutions are not tolerant to failures of memory node controllers, memory management units, or other memory devices, or multi-bit errors in memory. Another limitation of current solutions is that the system configuration is static and does not take into account the changing performance of the system's memory and storage components. Yet another limitation is that existing methods for data placement and allocation fail to take into account device health.

[0007] Therefore, there is a need for an efficient fault-tolerant memory system. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 is a block diagram of a data processing system consistent with certain embodiments of the present disclosure.

[0009] Figure 2 A memory system having a single memory node controller (MNC) and physical storage devices consistent with certain embodiments of the present disclosure is shown.

[0010] Figure 3 A memory system having three storage devices coupled to a single MNC is shown consistent with certain embodiments of the present disclosure.

[0011] Figure 4 A memory system having a single MNC, multiple physical storage devices, and a dedicated high resiliency storage (HRS) device consistent with certain embodiments of the present disclosure is shown.

[0012] Figure 5 A memory system having a primary MNC and a secondary MNC is shown consistent with certain embodiments of the present disclosure.

[0013] Figure 6 A memory system utilizing two MNCs consistent with certain embodiments of the present disclosure is shown.

[0014] Figure 7 A memory system having multiple MNCs and slave MNCs consistent with certain embodiments of the present disclosure is shown.

[0015] Figure 8 Illustrated is a logical arrangement of memory in a data processing system consistent with certain embodiments of the present disclosure.

[0016] Fig. 9 Entries of a range table consistent with certain embodiments of the present disclosure are illustrated.

[0017] Fig.10 Another logical arrangement of memory consistent with certain embodiments of the present disclosure is illustrated.

[0018] Fig.11is a flow chart of a method of allocating memory in a memory system consistent with certain embodiments of the present disclosure.

[0019] Fig.12 is a flow chart of a method for reading data in a memory system consistent with certain embodiments of the present disclosure.

[0020] Fig.13 is a flow chart of a method for writing data in a memory system consistent with certain embodiments of the present disclosure.

[0021] Fig.14 is a block diagram of a reliability availability and services (RAS) management unit (RMU) consistent with certain embodiments of the present disclosure. DETAILED DESCRIPTION

[0022] Although the present disclosure allows for many different forms of embodiments, specific embodiments are shown in the drawings and will be described in detail herein, it is to be understood that the present disclosure should be considered as an example of the principles of the present disclosure, and is not intended to limit the present disclosure to the specific embodiments shown and described. In the following description, like reference numerals may be used to describe the same, similar or corresponding parts in the several figures of the drawings.

[0023] In this document, relational terms such as first and second, top and bottom, etc. may be used alone to distinguish one entity or action from another entity or action, without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprise", "include", "have" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a list of elements may include not only these elements, but may also include other elements that are not explicitly listed or that are inherent to such a process, method, article, or device. An element preceded by "comprise ..." does not exclude (without more constraints) the presence of additional identical elements in the process, method, article, or device including the element.

[0024] References throughout this document to "one embodiment," "certain embodiments," "an embodiment," "implementation(s)," "aspect(s)," or similar terms mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Thus, appearances of such phrases throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments without limitation.

[0025] As used herein, the term "or" should be interpreted as inclusive or meaning any one or any combination. Thus, "A, B, or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B, and C". An exception to this definition would only occur if the combination of elements, functions, steps, or actions is mutually exclusive in some way. In addition, grammatical conjunctions are intended to express any and all disjunctive and associative combinations of the linked clauses, sentences, words, etc., unless otherwise stated or apparent from the context. Thus, the term "or" should generally be understood to mean "and / or" and the like.

[0026] All documents mentioned herein are hereby incorporated by reference in their entirety. Reference to an item in the singular should be understood to include the item in the plural, and vice versa, unless otherwise expressly stated or clearly evident from the context.

[0027] The range of values ​​recorded herein is not intended to be restrictive, but any and all values ​​falling within the range are mentioned individually, unless otherwise indicated, and each individual value in such a range is included in this specification as if it were recorded individually herein. The words "approximately", "roughly", "substantially", etc., when accompanied by numerical values, should be interpreted as indicating deviations that will be understood by those of ordinary skill in the art in order to operate satisfactorily for the desired purpose. The range of values ​​and / or numerical values ​​is provided herein only as an example, and does not constitute a limitation on the scope of the described embodiments. The use of any and all examples or exemplary language ("for example", "such as" and the like) provided herein is intended only to better illustrate the embodiments, and does not impose limitations on the scope of the embodiments. The language in the specification should not be interpreted as indicating that any element not recorded in the claims is necessary for implementing the embodiments.

[0028] For simplicity and clarity of illustration, reference numerals may be repeated between the drawings to indicate corresponding or similar elements. Many details are set forth to provide an understanding of the embodiments described herein. The embodiments may be implemented without these details. In other cases, well-known methods, processes, and components are not described in detail to avoid obscuring the embodiments described. The description should not be considered to be limited to the scope of the embodiments described herein.

[0029] In the following description, it is to be understood that terms such as "first", "second", "top", "bottom", "upper", "lower", "above", "below", etc. are convenient terms and should not be interpreted as limiting terms. In addition, the terms device and equipment are used interchangeably in this article.

[0030] The present disclosure relates to a mechanism for improving reliability, availability and serviceability (RAS) in a memory system of a data processing apparatus. The memory system includes one or more memory controllers, such as a memory management unit or a memory node controller, which provide access to several data storage devices for processing units of the data processing apparatus.

[0031] As used herein, "memory" and "storage device" are understood to include both volatile memory, such as random access memory (RAM), and non-volatile memory, such as flash memory, and disk storage. A memory system may include various types of volatile and non-volatile memory.

[0032] A RAS Management Unit (RMU) is provided that is configured to detect errors in data stored on a storage device, errors in the storage device itself, or errors in a memory controller. Various levels of protection for critical data are provided to combat errors. In some embodiments, protection is provided by redundancy in the memory system. Once the RMU detects an error, it corrects the error when possible. Several levels of redundancy may be provided.

[0033] First, data can be stored in conjunction with an error correction code (ECC). ECC provides additional information depending on the data written to the storage device and can be used to detect and correct one or more bit errors in the stored data. For example, in the case of a 1-bit error in the data, the ECC of the data can be used to recover from the 1-bit error.

[0034] Second, one or more copies of the data can be stored. These copies can be stored in the same storage device as the original data or can be stored in different storage devices. When an error is detected in the original data, it is replaced by one of these copies. Errors can be detected in several different ways, such as using parity bits, checksums, ECC, etc. For example, in the case of 2-bit errors, SECDED (single error correction double error detection) mechanism will detect single-bit or 2-bit errors, but only single-bit errors will be recovered. In the case of multi-bit errors, SECDED and ECC codes may not be used for correction. Correct data must be recovered from the replica data. In this case, specific erroneous data can be replaced by the replica data to realize the recovery of errors.

[0035] Alternatively, when three or more copies are saved, a "voting" system may be used to identify the correct copy of the data.

[0036] Error protection can also be provided for critical data by using high resilience storage (HRS).

[0037] According to one aspect of the present disclosure, only a subset of data is protected against errors. This subset is referred to herein as "critical" data because the subset may include data that is critical to the correct operation of the data processing device, such as configuration and context data. However, a user may designate any data as "critical", whether or not the data is required for correct operation, and thus the subset may also be referred to as "error protected" data.

[0038] In one embodiment, a subset of the memory address space is designated for storing critical data. For example, when the memory address space is arranged into several address "ranges", some address ranges may be allocated for critical data. In operation, the virtual addresses used by the processing unit are converted or mapped to physical addresses using some kind of mapping table (through one or more steps). These mapping tables are augmented with information (e.g., critical bits) to indicate when the data is to be protected during write access or when the data is to be error corrected during read access. Based on the type and / or level of protection required, and the probability of failure, the critical bits may cause the data to be replicated, stored in a highly resilient storage device (if a highly resilient storage device is available), and / or stored in an ECC-protected storage device.

[0039] A third level of redundancy is provided by the secondary storage device.When an error is detected in the primary storage device, the RMU operates to replace the primary storage device with the secondary storage device.

[0040] A fourth level of redundancy is provided by a secondary memory node controller (MNC). The secondary MNC is configured to enable access to the same storage devices accessed by the primary MNC that the secondary MNC is replacing. When an error is detected in the primary MNC, the RMU operates to replace the primary MNC with the secondary MNC.

[0041] Another aspect of the present disclosure is a mechanism for providing dynamic configuration of protection type and nature (or RAID level) and dynamic scheduling and movement of data based on the reliability of memory devices in a memory system.

[0042] Figure 11 is a block diagram of a data processing apparatus 100 consistent with certain embodiments of the present disclosure. A processing node 102 is configured to access a storage device 104 (MEM 1), such as a memory device. Processing node 102 includes one or more processing cores (in this example, 106a, 106b, 106c, and 106d) coupled to storage device 104 via a memory node controller 108 (MNC 1) and a data delivery cache (DDC1) 110. A reliability, availability, and serviceability (RAS) management unit (RMU 1) 112 manages the operation of the memory system to provide improved RAS.

[0043] According to an embodiment of the present disclosure, identifiers such as key bits are added to the memory system to identify "critical data". The system architecture is configured to provide a mechanism that enables automatic, hardware-driven replication and recovery of transient errors and faults in "critical data" stored in the memory hierarchy.

[0044] This scheme is applicable to any memory system that includes a mechanism for grouping and managing data (as pages or ranges or fragments). In the following description, a range-based memory system is assumed, in which data is grouped into ranges of variable (variable when data is allocated) size. Such a system is described in co-pending patent application 15 / 819,328, which is hereby incorporated in its entirety. However, the present disclosure is not limited to this memory arrangement.

[0045] All data marked as critical by the user (e.g. when allocating memory) will have the critical range bit set and one or more replica copies of the data will be saved as a backup. This replica will be hidden from any consistency mechanism of the data processing device, so that no changes in the mechanism are required. The RAS management unit 112 and MNC controller 108, being aware of the replica copies, together achieve a single correct view of the data as seen by the consistency mechanism.

[0046] Data that provides a description of the configuration or state of a data processing apparatus may be marked as critical.

[0047] For example, table information that supports mapping between virtual and physical addresses can be marked as critical. This ensures that mapping information such as range tables or page table information is not lost in the event of a storage device failure.

[0048] In addition, context information related to thread execution by a processing core may also be marked as critical. For example, context data in a virtual context architecture (VCA) data processing device may be marked as critical. VCA is described in co-pending patent application 15 / 361,819, which is hereby incorporated by reference in its entirety. As another example, kernel task data in a Linux operating system may be assigned as critical.

[0049] System architecture for protection against transient errors There are multiple configuration models for achieving this.

[0050] Figure 1 The illustrated embodiment includes a data processing apparatus 100 having a single memory node controller (MNC 1) 108 and a single physical storage device 104. In this embodiment, a first storage area is allocated in the storage device 104 for critical data and one or more second areas are allocated in the same device for copy data. A third area of ​​the storage device 104 may be allocated for non-critical data. This scheme requires less memory than a system in which all data is replicated. When storing a single copy, up to half of the available physical storage devices (in MEM 1) will be used for the purpose of the data copy. In operation, the MNC 108 writes a page marked as critical twice to the same physical medium in the direction of the RAS management unit (RMU) 112. In this embodiment, protection is implemented for transient errors in critical data, where errors are detected by parity bits, checksums, ECC, comparison of copies, etc. In one embodiment, three or more copies of data may be saved, in which case error detection may be performed by comparing the copies.

[0051] Figure 2 An embodiment is shown in which the memory system of the data processing apparatus 200 has a single MCN 108 and a physical storage device 104 that acts as a cache to a more resilient storage device 204. The storage device 104 may, for example, operate as an inclusive cache. In this embodiment, if the top storage device 104 fails, the MNC 108 may bypass it and access the more resilient storage (MEM2) 204. In this way, protection is provided against transient errors in the storage device 104, because critical data can be recovered from the storage device 204 (MEM 2). Protection is also provided against failures of the storage device 104, because critical data is also stored in the device 204 (MEM 2). Via the connection 206, the device 204 can be directly accessed by the MNC 108 bypassing the device 104.

[0052] Figure 3-Figure 7Additional embodiments shown in also help provide protection against transient errors and storage device failures.

[0053] Figure 3 An embodiment of a memory system of a data processing apparatus 300 is shown in which three storage devices 304a, 304b, and 304c are coupled to a single MNC 108. In this scheme, the MNC 108 will replicate copies of data on different physical storage devices (MEM 1, MEM 2, MEM 3, etc.), so that primary data stored in one storage device can be replicated in one or more other storage devices. In this embodiment, overall storage capacity is still lost due to the need for duplicate copies. However, the effective memory available for storage depends on the amount of data marked as critical.

[0054] As discussed above, this embodiment provides protection against transient errors in memory and storage device failures.

[0055] Figure 4 The illustrated embodiment is a memory system of a data processing apparatus 400 having a single MNC 108, a plurality of physical storage devices 404a, 404b, 404c and a dedicated high resilience storage (HRS) device 406. In this embodiment, the MNC backs up critical data only to the HRS (high resilience storage) device 406 and the full storage capacity of the devices 404a, 404b, 404c is available to the data processing apparatus. Again, protection is provided against transient errors in the memory and storage device failures.

[0056] Figure 5 The illustrated embodiment is a memory system of a data processing device 500 that uses a primary MNC 108 with a secondary MNC 508. In this embodiment, the secondary MNC 508 does not have any independent real address space mapped to it. Instead, the secondary MNC 508 acts as a backup for the primary MNC 108. The primary MNC 108 handles the full address space. Both MNCs are able to access multiple storage devices such as 504a, 504b, and 504c. Data is replicated on each MNC and can be synchronized periodically. The secondary MNC can interface with the same or different (for replication purposes) storage devices for the processing of critical data. In addition to mitigating transient memory errors and storage device failures, this embodiment also helps in the event of an MNC failure. In the event of a failure in the primary MNC 108, the secondary MNC 508, which has full knowledge of the primary MNC 108, can take control of all associated storage devices. This enables the system to continue to execute with one actively working MNC device. MNC failures are discussed in more detail below.

[0057] Memory allocation

[0058] In one embodiment, RMU 112 monitors storage devices connected to MNC 108 and DDC 110. Specifically, the RMU may monitor device failure rates and may also be aware of the nature and health of the storage devices.

[0059] At the time of critical range allocation (or other memory mapping), the RMU determines the number and type of redundant copies to be allocated for the critical range based on the monitored failure rate. For example, in a configuration with multiple storage devices, device MEM 1 may have a low failure rate (FIT rate) while device MEM 2 has a high failure rate. When a critical range is to be allocated to MEM 1, the RMU will allocate two copies of the range data (called dual-mode redundancy). However, if a critical range is to be allocated to MEM 2 (with a higher failure rate), the RMU will allocate three copies (called triple-mode redundancy). This maintains reliable recovery in less reliable storage devices.

[0060] In addition, the RMU can decide on different redundancy methods based on the underlying storage hardware. For example, the replica data can be saved as compressed data, or the replica data can be located in a separate storage or node.

[0061] Cache Coherence

[0062] In one embodiment, the cache coherence protocol is augmented with additional metadata about cache lines within critical regions. When invalidating shared state from the cache or when evicting, the RAS management unit initiates a read from memory to compare the state in memory to ensure that evicting a shared cache line from the coherent network does not eliminate the only correct copy of the data. For example, for a 64-byte cache line, this process results in a 64-byte data read from memory to the RAS management unit and a comparison of these 64 bytes by some means (direct comparison or hash function). This process is only used for critical regions.

[0063] Memory node controller failure handling mechanism in reliability-aware memory system Another aspect of the present disclosure relates to a method and system architecture for memory node controller failure recovery. MNC failures can be detected in a variety of ways. For example, a failure can be detected when there is no response to a load operation on the MNC or when the MNC fails to respond to a periodic health check message.

[0064] To ensure that recovery from MNC failure is feasible, all range tables (or other memory mapping tables) and pointers to range tables can be set as critical ranges, as discussed above. When the primary MNC becomes unresponsive, all storage devices are routed to the backup secondary MNC and all requests for managed storage areas are routed through the secondary MNC.

[0065] When a request from the DDC is sent to the MNC, the DDC will store the data until the MNC confirms that the operation is complete. If the confirmation message does not arrive and the primary MNC is unresponsive, the request will be rerouted to the secondary MNC once the MNC failure data recovery mode is completed.

[0066] Figure 6 The illustrated embodiment is a memory system of a data processing apparatus 600 utilizing two MNCs. MNC 1 (108), RMU 1 (112), and DDC 1 (110) provide access to cores 106a, 106b, 106c, and 106d, while MNC 2 (608), RMU 2 (612), and DDC 2 (610) provide access to cores 606a, 606b, 606c, and 606d. In this embodiment, MNC data is replicated on MNC 1 (108) and MNC 2 (608). Prior to any failure, storage devices 504a, 504b, and 504c are under MNC 1 (108) as indicated by the solid arrows, and storage devices 604a, 604b, and 604c are also under MNC 2 (608) as indicated by the solid arrows. Considering that the address space is partitioned between MNCs, the MNC to which the range belongs will hold the primary copy, and all other MNCs for backup will hold backup copies. For example, if MNC 1 fails, DDC 1 (110) will route all memory requests to MNC 2 (608), as indicated by dashed line 614, and MNC 2 (608) will take over (using the backup copies mapped by MNC 1) the data management of storage devices 504a, 504b, and 504c (MEM 1, MEM 2, and MEM 3), as indicated by the dashed line from MNC 2. These devices were originally under MNC 1. Similarly, if MNC 2 fails, DDC 2 (610) will route all memory requests to MNC 1 (108), as indicated by dashed line 616, and MNC 1 (608) will take over (using the backup copy mapped by MNC 2) the data management of storage devices 604a, 604b, and 604c (MEM 4, MEM 5, and MEM 6), as indicated by the dashed lines from MNC 1. These devices were originally under MNC 2. Therefore, in order to continue execution of the system in the presence of an MNC failure, the dual MNC node will become a single MNC node, but will continue to process memory requests as usual. The overall system will be notified of the MNC failure when appropriate, and gradual recovery and phase-out processes can be initiated.

[0067] Figure 7The illustrated embodiment is a data processing device 700 having multiple MNCs and slave MNCs. In this embodiment, the MNC data of the two MNCs 108 and 608 in the node 102 is replicated to the slave MNC 708 - in accordance with Figure 6 In a similar manner, the backup is copied to the partner MNC. As in the previous embodiment, when an MNC failure occurs in MNC 1 or MNC 2, the slave MNC will be tasked with replacing the failed MNC by bypassing the connection between the DDC and the associated memory. During the recovery mode, the range table and address map of the failed MNC are copied to the slave MNC 708 to continue execution.

[0068] Figure 8 800 in a data processing system consistent with an embodiment of the present disclosure. The memory arrangement includes a virtual memory address space 802. Figure 8 A single virtual memory address space 802 is shown in the figure, but each program or device sees its own virtual memory address space containing instructions and data for use by the program or device. Programming threads can share the same virtual memory address space. The use of virtual memory addressing allows memory access to be controlled by preventing one program from accessing or corrupting information used by another program. The memory arrangement 800 also includes a system address space 804. The system address space allows access to addressable units in the data processing system, such as memory, storage devices, hardware accelerators, and network interface controllers. The system address space can contain both physical (memory-backed) addresses and virtual memory addresses. The memory arrangement 800 also includes a physical address space 806, which, for example, contains physical addresses in data resources such as memory devices or storage devices. In Figure 8 Storage devices 808 and 810 are shown in FIG. 8 , but the data processing system may have any number of storage devices.

[0069] One or more virtual memory address spaces are divided into address ranges, such as Figure 8 Each range can be defined by two parameters, such as a start and end address, a start address and a span (length), or an offset from a reference address. Each range in the virtual memory address space is mapped to a corresponding range in the system address space. For example, virtual memory address range 812 is mapped to system address range 814. Each system address range is further divided into a number of partitions. Figure 8In the example shown, the system address range 814 has four partitions, denoted as D1, D2, D3, and D4. In one embodiment, each partition corresponds to a page of memory or storage, but partitions of other sizes may be used without departing from the present disclosure. This mapping is referred to as a first-level mapping and may be recorded and implemented, for example, using a range table buffer. Each system address range is handled by a memory mode controller.

[0070] Each partition of the system address range is mapped to a page in the data resource. For example, partition D1 is mapped to page P1 in storage device 808, partition D4 is mapped to page P4 in storage device 808, and so on. This mapping is called a second-level mapping and can be recorded and implemented, for example, in a system-to-physical translation cache.

[0071] In the example shown, virtual address range 812 or system address range 814 is designated as a critical range to be used for critical data. In this case, a copy or redundant system address range 816 is saved and mapped to pages P5, P6, P7, and P8 in storage device 2 (810). The data in the critical address range is stored in storage device 808 and a copy of the data is stored in storage device 810 as a backup. When an uncorrectable error is found in the data stored in storage device 808, the backup copy is used. In addition, if storage device 808 fails, the memory node controller will use storage device 810. The association of range 814 with 816 is recorded in the RMU so that data from critical range 812 is written to the replicated copy. Ranges 814 and 816 can be handled by the same MNC or different MNCs.

[0072] Fig. 9 A range table entry 900 describing a mapping between a range of virtual addresses and a range of system addresses consistent with an embodiment of the present disclosure is illustrated. In the illustrated embodiment, entry 900 includes a virtual memory address base value 904 (VA_BASE) and a virtual address span 906 (VA_EXTENT). These indicate an address range from VA_BASE to VA_BASE+VA_EXTENT. Field 902 contains an offset, which, when added to a virtual memory address, indicates the system address corresponding to the virtual memory address. Therefore, the offset value is used to convert the virtual memory address to a system address. Range table entry 900 also includes a management field 908 for various management and status data, and may include a permission field 910 for memory access permissions. The range table entry also includes a criticality bit 912 indicating whether the range contains critical data.

[0073] The range table provides the first level of address mapping. Another table can be used to indicate the second level of address mapping - from system address space to physical address space. This other table can also use criticality bits to indicate that a memory area is allocated for the storage of critical data.

[0074] Fig.10 Another logical arrangement of memory 1000 in a data processing system consistent with an embodiment of the present disclosure is illustrated. The memory arrangement includes a virtual memory space 802, a system memory space 804, and a physical memory space 806. The physical memory space is mapped between storage devices 808 and 810 in this example. A critical range 812 is mapped to a system address space 814 assigned to a first memory node controller (MNC). The critical range 812 is also handled by a second MNC containing a copy 1002 of the system address range. The second MNC provides backup in the event of a failure of the first MNC. In the example shown, the system address range 1002 is mapped to the same physical location as the first system address range 814. For example, system partitions D1 and D1' are both mapped to physical page P1. In another embodiment, the system address range is mapped to a different physical location to provide backup for data errors or storage device failures.

[0075] Fig.11 1 is a flow chart of a method 1100 for allocating memory in a memory system in accordance with the present disclosure. After starting block 1102, an allocation request is issued at block 1104, such as a "malloc" instruction for the allocation of a memory range. If the range is marked as "critical", as depicted by the affirmative branch from decision block 1106, a critical bit is set in the range table buffer at block 1108 to indicate that the range contains critical data, and the corresponding record is updated in the RMU at block 1110 to identify the association between the primary range and the secondary range or the backup range. At block 1112, the RMU identifies the target device for memory allocation and protects the data from errors. This can be accomplished by copying a copy of the data (in the case of copying a copy of the data for protection), storing the data in the HRS, or calculating and storing an error correction code (ECC), a checksum, or a parity bit. At block 1114, a memory range is allocated in a storage device. The allocation is then completed and further operation of the data processing system continues at block 1116.

[0076] Fig.121 is a flow chart of a method 1200 for reading data in a memory system consistent with the present disclosure. After a start block 1202, a request to read data from a particular memory range is received at block 1204. At block 1206, the MNC determines the location of the requested data in the storage device using a range table buffer (or some other memory mapping mechanism). At block 1208, the requested data is read from the storage device and any correctable errors are corrected (e.g., using ECC). If there are no uncorrectable errors, as depicted by the negative branch of decision block 1210, the read is successful, as indicated by block 1212, the read operation is complete and further operations continue at block 1214. However, when an uncorrectable error is detected, as depicted by the affirmative branch of decision block 1210, a key bit associated with the range in the MNC's range table is tested at block 1216. When the key bit is set, as depicted by the affirmative branch of decision block 1216, it is known that a copy of the data has been saved. The location of a copy of the data is determined at block 1218 (e.g., from a record in the RMU), and the copied data is recovered from errors at block 1220. The read succeeded despite the uncorrectable errors in the original data, as indicated at block 1212. However, if the critical bit in the range table is not set, as depicted from the negative branch of decision block 1216, the data cannot be recovered and an error exception is raised at block 1222. In this way, critical data is protected without overusing redundant memory.

[0077] Fig.13 1 is a flow chart of a method 1300 for writing data in a memory system consistent with the present disclosure. After start block 1302, a request to write data to a specific memory range is received at block 1304. At block 1306, the MNC locates the primary target range for the data using the range table. If the key bit of the located range is not set, as depicted by the negative branch of decision block 1308, then at block 1310, the data is written to the target device. The write is successful, as indicated by block 1312, and further operation continues at block 1314. If the key bit of the located range is set, as depicted by the positive branch from decision block 1308, then at block 1316, a secondary location is determined - for a redundant or backup copy of the data. At block 1318, a copy of the data to be written is buffered in the RMU. At block 1310, the data is written to the primary target device, and in parallel, at block 1320, the buffered data is written to the secondary target. Further operation continues at block 1314.

[0078] Fig.141 is a block diagram of a RAS management unit (RMU) 112 consistent with certain embodiments of the present disclosure. The RMU 112 includes a key range table 1402 that stores records of backup ranges for key ranges. In the example shown, the table is indexed by a range identifier (RANGE ID) and stores a description of the backup range (e.g., base address and span). When memory is allocated for a key range, the key range table 1402 is updated. When a write operation is initiated, the target range ID 1404 of the write is passed to the key range table 1402 and the table is used to identify the backup range. The written data 1406 is passed to a data copy unit 1408 to provide one or more copies 1410 to be written to a backup storage device. The copy data 1410 and the identified backup range 1412 are provided to the RMU write buffer 1414 that generates a write request 1416 to the MNC.

[0079] When a read operation results in an unrecoverable error, the target range ID 1418 of the read is used to identify the corresponding backup range in the key range table 1402. A read request 1420 is generated for the MNC to retrieve the backup data. The backup data 1422 from the MNC is returned to the error recovery unit 1424, which in turn returns the recovered correct data 1426 to the original requester.

[0080] The RMU 112 may also include a monitoring unit 1428 that monitors the performance of the memory system. This may be accomplished, for example, by signaling the MCN and / or by monitoring the target range ID 1418. Detected failures may be used to replace the failed device with a secondary or slave storage device or MNC. In addition, the error rates of the MNC and storage devices may be used in the allocation unit 1430 to determine or adjust the number and location of backup copies of critical data when allocating memory for critical ranges.

[0081] In general, the functional elements of the memory system described above may be implemented on one or more chips.

[0082] In operation, the RMU 112 implements a method of memory management with improved RAS. In response to a request to allocate memory for critical data, a first memory for storing the critical data is allocated in a primary storage device, and an entry in a memory mapping table that maps to the allocated memory in the primary storage device indicates that the first memory contains the critical data. A second memory for storing one or more copies of the critical data is allocated by the RMU and an association between the first memory and the second memory is recorded in a critical range table. A second (backup) memory for storing one or more copies of the critical data may be allocated in the primary storage device or in one or more secondary storage devices. The RMU may monitor the primary storage device and, when a failure is detected in the primary storage device, cause the primary storage device to be replaced by a storage device in one or more secondary storage devices.

[0083] The failure rate of the primary storage device may be monitored to determine (based on the monitored failure rate) the number of copies of critical data.

[0084] When an unrecoverable error is detected in the first critical data read from the primary storage device, the first critical data is replaced by a stored copy of the critical data.

[0085] The primary storage device can be accessed via a primary memory node controller (MNC) and a secondary MNC, and wherein the memory mapping table includes a first memory mapping table accessed by the primary MNC. In this arrangement, the first memory mapping table can be replicated in the secondary MNC as a second memory mapping table. The primary MNC is monitored by the RMU. When no fault is detected in the primary MNC, the primary storage device is accessed via the primary MNC. However, when a fault is detected in the primary MNC, the primary storage device is accessed via the secondary MNC.

[0086] In response to a write instruction for the first data, a memory mapping table (e.g., a range table) is used to determine when the first data is critical data for the first memory. When the first data is critical data, the first data is written to the first memory, and the second memory is identified, for example, using the association between the first memory and the second memory recorded in the critical range table 1402. Then a copy of the first data is written to the second memory.

[0087] The various embodiments and examples of the present disclosure given herein are to be understood as illustrative rather than limiting of the present disclosure, and are not limiting on the scope of the present disclosure.

[0088] Further particular preferred aspects of the present disclosure are set out in the accompanying independent and dependent claims. Features of the dependent claims may appropriately be combined with features of the independent claims in combinations other than those explicitly recited in the claims.

[0089] Although illustrative embodiments of the present disclosure have been described herein in detail with reference to the accompanying drawings, it is to be understood that the disclosure is not limited to those precise embodiments and that various changes and modifications may be effected therein by those skilled in the art without departing from the scope of the disclosure as defined in the appended claims.

[0090] It will be appreciated that the devices, systems, and methods described above are presented as examples and not as limitations. In the absence of clear indications to the contrary, the disclosed steps may be modified, supplemented, omitted, and / or reordered without departing from the scope of the present disclosure. Many variations, additions, omissions, and other modifications will be apparent to those of ordinary skill in the art. Furthermore, the order or presentation of the method steps in the description above and the accompanying drawings is not intended to require that the recorded steps be performed in this order, unless a particular order is explicitly required or is otherwise clearly visible from the context.

[0091] The method steps of the implementations described herein are intended to include any suitable means of causing such method to be performed consistent with patentability of the appended claims unless a different meaning is explicitly provided or is otherwise clear from the context.

[0092] It should also be understood that the above method is provided as an example. In the absence of explicit contrary indications, the disclosed steps may be modified, supplemented, omitted, and / or reordered without departing from the scope of the present disclosure.

[0093] It will be appreciated that the methods and systems described above are presented as examples and not as limitations. Many variations, additions, omissions, and other modifications will be apparent to those of ordinary skill in the art. In addition, the order or presentation of the method steps in the above description and accompanying drawings is not intended to require that the recorded steps be performed in this order, unless a particular order is expressly required or is otherwise clearly visible from the context. Therefore, although specific embodiments have been shown and described, it will be clear to those skilled in the art that various changes and modifications in form and detail may be made therein without departing from the scope of the present disclosure, and such changes and modifications are intended to form a part of the present disclosure as defined by the appended claims, which should be interpreted in the broadest sense permitted by law.

[0094] The various representative embodiments described in detail herein are presented by way of example and not limitation. Those skilled in the art will appreciate that various changes in form and details may be made to the described embodiments to produce equivalent embodiments that still remain within the scope of the appended claims.

[0095] Accordingly, some features of the disclosed embodiments are set forth in the following numbered items:

[0096] 1. A memory system for a data processing device, the memory system comprising: an error management unit; a first memory controller; and a first storage device accessible via the first memory controller and configured to store first data in a first subset of data; wherein the error management unit is configured to: detect errors in the first data, the first storage device or the memory node controller; and correct the errors; wherein the first subset of data is designated as error protected; wherein the memory system stores one or more copies of the first data, and wherein the first memory controller comprises a memory management unit or a memory node controller.

[0097] 2. The memory system of item 1, wherein correcting errors in the first data comprises correcting the errors using an error correction code of the first data.

[0098] 3. A memory system as described in item 1 or item 2, wherein the one or more copies of the first data include a primary copy and a secondary copy, wherein correcting an error in the first data includes accessing the secondary copy of the first data when an error is detected in the primary copy of the first data.

[0099] 4. A memory system as described in item 3, wherein the primary copy and the secondary copy of the first data are stored in the first storage device.

[0100] 5. The memory system as described in item 3 or item 4 further includes a second storage device, wherein the primary copy of the first data is stored in the first storage device and the secondary copy is stored in the second storage device.

[0101] 6. The memory system of any preceding item, wherein second data in the second subset of data is designated as not error protected, and wherein the memory system does not provide error protection for the second data.

[0102] 7. The memory system of any preceding item, wherein the first data comprises mapping data indicating a mapping between virtual addresses and physical addresses in the data processing device.

[0103] 8. A memory system as described in item 7, wherein the mapping data includes a range table.

[0104] 9. A memory system as described in any preceding clause, wherein the first data comprises context data indicating a processing thread context executed in the data processing device.

[0105] 10. The memory system of any preceding clause, wherein correcting an error comprises selecting an alternative storage device when the error is detected in the first storage device, wherein the alternative storage device is accessible via the first memory controller.

[0106] 11. The memory system of any preceding item, wherein correcting errors comprises selecting an alternate memory controller when an error is detected in the first memory controller, wherein the first storage device is accessible via the second memory controller.

[0107] 12. A non-transitory computer readable medium comprising instructions in a hardware description language, said instructions describing a memory system as described in any preceding item.

[0108] 13. A non-transitory computer-readable medium comprising a netlist description of a memory system as described in any one of items 1 to 12.

[0109] 14. A method of memory management, comprising: in response to a request to allocate memory for error-protected data: allocating a first memory in a main storage device for storing the error-protected data; marking entries in a memory mapping table to indicate that the first memory contains error-protected data; allocating a second memory for storing one or more copies of the error-protected data; and recording an association between the first memory and the second memory.

[0110] 15. The method of clause 14, wherein allocating second memory for storing one or more copies of the error-protected data comprises allocating memory in the primary storage device.

[0111] 16. The method of clause 14 or clause 15, wherein allocating second memory for storing one or more copies of the error-protected data comprises allocating memory in one or more secondary storage devices.

[0112] 17. The method as described in item 16 also includes: monitoring the primary storage device; and when a failure is detected in the primary storage device, replacing the primary storage device with a storage device in the one or more secondary storage devices.

[0113] 18. The method as described in any one of items 14 to 17 also includes: monitoring the failure rate of the primary storage device; and determining the number of copies of the error-protected data based on the monitored failure rate.

[0114] 19. The method as described in any one of items 14 to 18 also includes: detecting an error in the first error-protected data read from the main storage device; and when the detected error is uncorrectable, replacing the first error-protected data with corresponding data stored in the second memory.

[0115] 20. The method of any one of items 14 to 19, wherein the primary storage device is accessed via a primary memory node controller (MNC) and a secondary MNC, and wherein the memory mapping table comprises a first memory mapping table accessed by the primary MNC, the method further comprising: replicating the first memory mapping table in the secondary MNC as a second memory mapping table;

[0116] monitoring the primary MNC; accessing the primary storage device via the primary MNC when no failure is detected in the primary MNC; and accessing the primary storage device via the secondary MNC when a failure is detected in the primary MNC.

[0117] 21. The method as described in any one of items 14 to 20 further includes: in response to a write instruction for first data: determining when the first data is error-protected data to be written to the first memory according to the memory mapping table; and when the first data is error-protected data: writing the first data to the first memory; identifying the second memory using the recorded association between the first memory and the second memory; and writing the first data to the second memory.

[0118] 22. A method for allocating storage devices in a memory system, the method comprising, in response to a request to allocate storage devices for data: determining when the data is error-protected data; when the data is error-protected data, determining a fault protection level for the error-protected data based on fault characteristics of the memory system; and allocating storage depending on the fault protection level; wherein the fault protection level includes one or more of the following items: the number of copies of the error-protected data; an error correction code for the error-protected data; and a storage location for the error-protected data.

[0119] 23. A method as described in item 22, wherein the memory system includes multiple devices, and the method further includes: monitoring the correctable error rate and uncorrectable error rate of the devices of the memory system to provide a measure of the health status of the devices; and updating the fault characteristics based on the measured health status of the devices.

[0120] 24. A method as described in item 22 or item 23, wherein the measure of the health status of the equipment includes the probability of failure of the equipment.

[0121] 25. A method as described in any of items 22 to 24, wherein the correctable error rate and the uncorrectable error rate of the device are measured over a period of time or over a number of memory accesses.

Claims

1. A memory system for a data processing device, the memory system comprising: Reliability, Availability, and Services (RAS) Management Unit (RMU); a first memory controller; as well as a first storage device accessible via the first memory controller; The RMU is configured to: allocating storage for a primary copy of first data in the first storage device, the first data being designated as error protected; allocating storage for additional data, the additional data comprising one or more secondary copies of the first data, an error correction code of the first data, parity bits of the first data, or a checksum of the first data; as well as Detection errors include: using the additional data to detect an error in the primary copy of the first data, or detecting an error in the first storage device or the first memory controller; and correcting the error using the additional data; The first memory controller includes a memory management unit or a memory node controller.

2. The memory system of claim 1, wherein correcting errors in the first data comprises correcting errors using an error correction code of the first data.

3. The memory system of claim 1, wherein correcting an error in the primary copy of the first data comprises accessing the secondary copy of the first data when an error is detected in the primary copy of the first data. 4 . The memory system of claim 3 , wherein a primary copy and a secondary copy of the first data are stored in the first storage device.

5. The memory system of claim 3, further comprising a second storage device, wherein a primary copy of the first data is stored in the first storage device and a secondary copy is stored in the second storage device.

6. The memory system of claim 1, wherein second data is designated as not to be error protected, and wherein the memory system does not provide error protection for the second data.

7. The memory system according to any one of claims 1 to 6, wherein the first data comprises mapping data indicating a mapping between a virtual address and a physical address in the data processing apparatus. The memory system of claim 7 , wherein the mapping data comprises a range table.

9. The memory system of any one of claims 1 to 6, wherein the first data comprises context data indicating a context of a processing thread executed in the data processing apparatus.

10. The memory system of any one of claims 1-6, wherein correcting errors comprises selecting an alternative storage device when an error is detected in the first storage device, wherein the alternative storage device is accessible via the first memory controller.

11. The memory system of any one of claims 1-6, wherein correcting errors comprises selecting an alternate memory controller when an error is detected in the first memory controller, wherein the first storage device is accessible via the alternate memory controller.

12. A non-transitory computer readable medium comprising instructions in a hardware description language, the instructions describing the memory system of any one of claims 1-6.

13. A non-transitory computer readable medium comprising a netlist description of the memory system of any one of claims 1 to 6.

14. A method of memory allocation, the method being performed by a reliability, availability, and service (RAS) management unit (RMU), the method comprising: allocating storage for a primary copy of first data in a first storage device, the first data being designated as error protected and the first storage device being accessible via a first memory controller; allocating storage for additional data, the additional data comprising one or more secondary copies of the first data, an error correction code of the first data, parity bits of the first data, or a checksum of the first data; as well as Detection errors include: using the additional data to detect an error in the primary copy of the first data, or detecting an error in the first storage device or the first memory controller; and correcting the error using the additional data; The first memory controller includes a memory management unit or a memory node controller.

15. The method of claim 14, wherein correcting an error in the primary copy of the first data comprises accessing the secondary copy of the first data when an error is detected in the primary copy of the first data.

16. The method of claim 15, further comprising: A primary copy and a secondary copy of the first data are stored in the first storage device.

17. The method of claim 15, further comprising: A primary copy of the first data is stored in a first storage device, and the secondary copy is stored in a second storage device.

18. The method of claim 14, wherein the second data is designated as not being error protected, and error protection is not provided for the second data.

19. The method of any one of claims 14 to 18, wherein the first data comprises mapping data indicating a mapping between virtual addresses and physical addresses in a data processing apparatus.

20. The method of claim 19, wherein the mapping data comprises a range table.

21. A method as claimed in any one of claims 14 to 18, wherein the first data comprises context data indicating a context of a processing thread executing in the data processing apparatus.

22. The method of any one of claims 14 to 18, wherein correcting errors comprises selecting an alternative storage device when an error is detected in the first storage device, wherein the alternative storage device is accessible via the first memory controller.

23. The method of any one of claims 14 to 18, wherein correcting errors comprises selecting an alternate memory controller when errors are detected in the first memory controller, wherein the first storage device is accessible via the alternate memory controller.