Storage systems and deduplication storage systems

By adopting multiple system partitions and embedding reference counters in the memory system, the problem of low efficiency in deduplication systems in the prior art is solved, and storage efficiency with high throughput and low waiting time is achieved.

CN110851076BActive Publication Date: 2024-09-13SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910764183.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-11-04
Filing Date
2019-08-19
Publication Date
2024-09-13
Estimated Expiration
2039-08-19

AI Technical Summary

Technical Problem

In the existing deduplication system, the storage efficiency of duplicate user data in the virtual memory space is low for the physical memory space of the system, and the size of the virtual memory increases rather than linearly, resulting in reduced performance.

Method used

Uses multiple system partitions, including physical storage, transaction manager, write data engine manager, and write data engine, to maintain data coherence and consistency through translation tables and outstanding bucket numbers, embedded in the physical memory space Reference counters to reduce storage requirements.

Benefits of technology

The scalable architecture of the memory system is realized, which avoids non-linear translation table size growth, improves throughput and reduces waiting time, and reduces memory usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110851076B_ABST
    Figure CN110851076B_ABST
Patent Text Reader

Abstract

A memory system provides deduplication of user data in a physical memory space of a host system for user data that is duplicated in a virtual memory space of the host system. A transaction manager uses a transaction table to maintain data coherence and data concurrency for the virtual memory space. A write data engine manager uses an unfinished bucket number and a command queue to maintain data coherence and data concurrency for the physical memory space. The write data engine manager receives data write requests from the transaction manager and sends corresponding write commands to a selected command queue. The write data engine responds to write commands in the command queue by: if the data is not duplicated in the virtual memory space, storing the data in an overflow memory area; or if the data is duplicated in the virtual memory space, incrementing a reference counter of the data. A deduplication memory system is also provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The subject matter disclosed herein relates to memory systems. More specifically, the subject matter disclosed herein relates to a memory system that provides deduplication of user data in a physical memory space of a host system for user data that is duplicated in a virtual memory space of the system. Background Art

[0002] Artificial Intelligence (AI), big data, and in-memory processing use increasingly larger memory capacities. To meet this need, in-memory deduplication systems (dedupe-DRAM) have been developed. Unfortunately, typical deduplication systems have some disadvantages. For example, the deduplication conversion table may grow nonlinearly as the size of the virtual memory grows. In addition, deduplication operations typically result in some amplification of read and write latency, that is, a single logical read or write may require multiple physical reads or writes, thereby reducing performance. Summary of the invention

[0003] An exemplary embodiment provides a memory system, which may include at least one system partition, the at least one system partition may include a physical memory, at least one transaction manager (TM), at least one write data engine manager (WDEM) and a write data engine (WDE). The physical memory may have a physical memory space of a first predetermined size. The at least one TM may receive a data write request and corresponding data from a host system, and the at least one TM uses a transaction table to maintain data coherence and data consistency for a virtual memory space of the host system. The at least one WDEM may include at least one command queue, and the WDEM may use an outstanding bucket number (OBN) and a command queue to maintain data coherence and data consistency for the physical memory space. The WDEM may receive the data write request from the TM and send a write command corresponding to each data write request to a selected command queue among the at least one command queue. The WDE may correspond to each command queue. The WDE may respond to a write command stored in the command queue corresponding to the WDE by: storing the data in an overflow memory area if the data corresponding to the data write request is not repeated in the virtual memory space; or incrementing a reference counter of the data if the data corresponding to the data write request is repeated in the virtual memory space. In one embodiment, the virtual memory space may include a second predetermined size, the second predetermined size being greater than or equal to the first predetermined size of the physical memory space, and the memory system may further include a translation table, the translation table may include a first predetermined number of bits corresponding to the second predetermined size of the virtual memory space, a second predetermined number of bits corresponding to the first predetermined size of the physical memory, and a third predetermined number of bits of data granularity, wherein the second predetermined number of bits and the third predetermined number of bits may be subsets of the first predetermined number of bits.

[0004] An exemplary embodiment provides a memory system, which may include a plurality of system partitions, wherein at least one system partition may include a physical memory, at least one transaction manager (TM), at least one write data engine manager (WDEM), a write data engine (WDE), and a memory regional manager (MRM). The physical memory may have a physical memory space of a first predetermined size and may include a plurality of memory regions. The at least one TM may receive a data write request and corresponding data from a host system, and the at least one TM may use a transaction table to maintain data coherence and data consistency for a virtual memory space of the host system. The virtual memory space may include a second predetermined size, which is greater than or equal to the first predetermined size of the physical memory space. The at least one TM may use a translation table to convert the virtual memory space of the host system into the physical memory space of the at least one system partition. The at least one WDEM may include at least one command queue, and the WDEM may use an outstanding bucket number (OBN) and a command queue to maintain data coherence and data consistency for the physical memory space. The WDEM may receive the data write request from the TM and send a write command corresponding to each data write request to a selected command queue among the at least one command queue. The WDE may correspond to each command queue, and the WDE may respond to a write command stored in the command queue corresponding to the WDE by: storing the data in an overflow area if the data corresponding to the data write request is not repeated in the virtual memory space; or incrementing a reference counter of the data if the data corresponding to the data write request is repeated in the virtual memory space. The MRM may correspond to each memory region of the physical memory, and the MRM may include a reference counter storage space for data stored in the memory region and may control WDE access to the memory region corresponding to the MRM. In one embodiment, the translation table may include a first predetermined number of bits corresponding to the second predetermined size of the virtual memory space, a second predetermined number of bits corresponding to the first predetermined size of the physical memory, and a third predetermined number of bits of data granularity, wherein the second predetermined number of bits and the third predetermined number of bits may be subsets of the first predetermined number of bits.

[0005] An exemplary embodiment provides a deduplication memory system, which may include multiple system partitions, wherein at least one system partition may include physical memory, at least one transaction manager (TM), at least one write data engine manager (WDEM), and a write data engine (WDE). The physical memory may have a physical memory space of a first predetermined size. The at least one TM may receive a data write request and corresponding data from a host system, and the at least one TM may use a transaction table to maintain data coherence and data consistency for a virtual memory space of the host system. The virtual memory space may include a second predetermined size, which is greater than or equal to the first predetermined size of the physical memory space. The at least one TM may use a translation table to convert the virtual memory space of the host system into the physical memory space of the at least one system partition, wherein the translation table may include a first predetermined number of bits corresponding to the second predetermined size of the virtual memory space, a second predetermined number of bits corresponding to the first predetermined size of the physical memory, and a third predetermined number of bits of data granularity, and wherein the second predetermined number of bits and the third predetermined number of bits may be a subset of the first predetermined number of bits. The at least one WDEM may include at least one command queue, and the WDEM may use an outstanding bucket number (OBN) and a command queue to maintain data coherence and data consistency for the physical memory space. The WDEM may receive the data write request from the TM and may send a write command corresponding to each data write request to a selected command queue among the at least one command queue. The WDE may correspond to each command queue. The WDE may respond to a write command stored in the command queue corresponding to the WDE by: if the data corresponding to the data write request is not repeated in the virtual memory space, storing the data in an overflow area; or if the data corresponding to the data write request is repeated in the virtual memory space, incrementing a reference counter. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] In the following sections, various aspects of the subject matter disclosed herein will be explained with reference to exemplary embodiments shown in the figures, in which:

[0007] Figure 1 A block diagram of an exemplary embodiment of a scalable deduplication memory system architecture in accordance with the subject matter disclosed herein is depicted.

[0008] Figure 2 The subject matter disclosed herein is shown Figure 1 A more detailed block diagram of an exemplary embodiment of system partitioning is shown.

[0009] Figure 3Another block diagram illustrating an exemplary embodiment of several of the components of a write data path of a system partition according to the subject matter disclosed herein.

[0010] Figure 4 Illustration of the subject matter disclosed herein Figure 1 Some details of an exemplary embodiment of a relationship between a virtual memory space and a physical memory space of a deduplicated memory system are shown, where the relationship can be used by a translation table to translate the virtual memory space of a host system into the physical memory space of a system partition.

[0011] Figure 5 Depicted is a relationship between translation table entries of an exemplary translation table and hash table entries of an exemplary hash table according to the subject matter disclosed herein.

[0012] Figure 6 A flow chart is depicted that illustrates an exemplary control process provided by a transaction manager in accordance with the subject matter disclosed herein.

[0013] Figure 7 A flow chart is depicted that illustrates an exemplary control process provided by a write data engine manager in accordance with the subject matter disclosed herein.

[0014] Figure 8 A flow chart is depicted that illustrates an exemplary control process provided by a write data engine in accordance with the subject matter disclosed herein.

[0015] Fig.9A An exemplary embodiment of a physical row including a reconstruction field with an embedded reference counter according to the subject matter disclosed herein is depicted.

[0016] Fig. 9B An exemplary embodiment of a physical row including indicator flags according to the subject matter disclosed herein is depicted.

[0017] Fig. 9C A situation is shown in which an indication flag is set to indicate that the number of repetitions of user data exceeds the size of an embedded reference counter in a reconstruction field, in which case the content of the reconstruction field may include an index to an extended reference counter table containing an extended count of repeated user data.

[0018] [Explanation of Symbols]

[0019] 100: Scalable deduplication memory system architecture / system architecture;

[0020] 101: host device or system;

[0021] 102: host interface;

[0022] 103: front-end scheduler;

[0023] 200, 200A~200K: system partition / partition;

[0024] 201: write data path;

[0025] 202: read data path;

[0026] 203: Transaction Manager (TM);

[0027] 204: Write Data Engine Manager (WDEM);

[0028] 205: Write Data Engine (WDE);

[0029] 206: memory area arbiter;

[0030] 207: Memory Region Manager (MRM);

[0031] 208: Interconnection;

[0032] 209: memory region (MR) / memory;

[0033] 210: Translation table manager (TT MGR);

[0034] 211: Translation table memory (TT MEM);

[0035] 212: Read Data Engine Manager (RDEM);

[0036] 213: Read Data Engine (RDE);

[0037] 214: Write data buffer controller;

[0038] 215: TM controller;

[0039] 216: transaction table / TM table;

[0040] 217: Uncompleted Bucket Number (OBN) table;

[0041] 218: Command (CMD) dispatcher;

[0042] 219: Overflow Memory Invalidation (OVMI) Manager;

[0043] 220: Command Queue (CQ);

[0044] 221: write data buffer;

[0045] 222: hash table / reference counter manager (HTRC MGR);

[0046] 223: Overflow memory manager (OVM MGR);

[0047] 224: Signature Manager (SIG MGR);

[0048] 400, 500: conversion table;

[0049] 501: hash table;

[0050] 502: logical address;

[0051] 503: Format of the physical line identifier (PLID) entry;

[0052] 600, 700, 800: control process;

[0053] 601, 602, 603, 604, 605, 606, 607, 608, 609, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 801, 802, 803, 804, 805, 806, 807, 808: operation;

[0054] 900, 910: physical line (PL);

[0055] 901, 912: Reconstruct fields;

[0056] 911: indicator flag;

[0057] 913: Expand the reference counter (RC) table;

[0058] 914: Special data pattern table;

[0059] HR R / W, OVM_W, SIG R / W: control information and data information;

[0060] VA_WIDTH: virtual memory space;

[0061] PHY SPACE: physical memory space;

[0062] TT_IDX: system conversion table index; DETAILED DESCRIPTION

[0063] In the following detailed description, many specific details are set forth to provide a thorough understanding of the disclosure. However, those skilled in the art will appreciate that the various aspects disclosed may be practiced without these specific details. In other cases, well-known methods, procedures, components, and circuits are not described in detail to avoid obscuring the subject matter disclosed herein. In addition, the various aspects described may be implemented to perform low-power three-dimensional (3D) depth measurement in any imaging device or system, including but not limited to smartphones, user equipment (UE), and / or laptop computers.

[0064] References to "one embodiment" or "an embodiment" throughout this specification mean that the specific features, structures, or characteristics described in conjunction with the embodiment may be included in at least one embodiment disclosed herein. Therefore, the phrases "in one embodiment" or "in an embodiment" or "according to one embodiment" (or other phrases with similar meanings) that appear throughout this specification may not necessarily refer to the same embodiment. In addition, in one or more embodiments, specific features, structures, or characteristics may be combined in any suitable manner. In this regard, the word "exemplary" used herein means "used as an example, instance, or illustration." Any embodiment described herein as "exemplary" should not be considered to be necessarily preferred or advantageous compared to other embodiments. In addition, in one or more embodiments, specific features, structures, or characteristics may be combined in any suitable manner. In addition, depending on the context of the discussion herein, singular terms may include corresponding plural forms and plural terms may include corresponding singular forms. Similarly, hyphenated terms (e.g., "two-dimensional", "pre-determined", "pixel-specific", etc.) may occasionally be used interchangeably with corresponding non-hyphenated versions (e.g., "three-dimensional", "predetermined", "pixel specific", etc.), and capitalized terms (e.g., "Counter Clock", "Row Select", "PIXOUT", etc.) may be used interchangeably with corresponding non-capitalized versions (e.g., "counter clock", "row select", "pixout", etc.). Such occasional interchangeable usage should not be considered inconsistent with each other.

[0065] In addition, depending on the context of the discussion herein, singular terms may include corresponding plural forms and plural terms may include corresponding singular forms. It should also be noted that the various figures (including component diagrams) shown and discussed herein are for illustrative purposes only and are not drawn to scale. Similarly, various waveforms and timing diagrams are shown for illustrative purposes only. For example, for clarity, the size of some of the elements may be exaggerated relative to other elements. In addition, where appropriate, reference numbers are reused in various figures to indicate corresponding elements and / or similar elements.

[0066] The terms used herein are only for the purpose of illustrating some exemplary embodiments and are not intended to limit the claimed subject matter. Unless the context clearly indicates otherwise, the singular forms "a, an" and "the" used herein are intended to include plural forms as well. It should also be understood that when the term "comprises and / or comprising" is used in this specification, it indicates the presence of the stated features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. The terms "first", "second", etc. used herein are used as labels for nouns following the terms, and unless clearly defined, the terms do not imply any type of order (e.g., space, time, logic, etc.). In addition, the same reference number may be used in two or more figures to refer to parts, components, blocks, circuits, units or modules having the same or similar functions. However, this usage is only for simplicity of illustration and ease of discussion; the usage does not imply that the construction details or architectural details of such components or units are the same in all embodiments or that these generally mentioned components / modules are the only way to implement the teachings of some of the exemplary embodiments disclosed herein.

[0067] It should be understood that when an element or layer is referred to as being located on, "connected to" or "coupled to" another element or layer, the element or layer may be directly located on, directly connected to or coupled to the other element or layer, or there may be intermediate elements or layers. In contrast, when an element is referred to as being "directly located on", "directly connected to" or "directly coupled to" another element or layer, there are no intermediate elements or layers. Throughout the text, the same number refers to the same element. The term "and / or" as used herein includes any and all combinations of one or more of the associated enumerated items.

[0068] Unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which the subject matter belongs. It should also be understood that terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and should not be interpreted as having an idealized or overly formal meaning unless explicitly defined herein.

[0069] The term "module" as used herein refers to any combination of software, firmware and / or hardware configured to provide the functions described herein in conjunction with the module. Software may be implemented as a software package, code and / or instruction set or instructions, and the term "hardware" used in any embodiment described herein may include, for example, in a single form or in any combination, a hard-wired circuit system, a programmable circuit system, a state machine circuit system and / or a firmware storing instructions executed by a programmable circuit system. Each module may be implemented together or individually as a circuit system that forms a part of a larger system (for example, but not limited to an integrated circuit (IC), a system on-chip (SoC), etc.). The various components and / or functional blocks disclosed herein may be implemented as modules that may include software, firmware and / or hardware, which provide the functions described herein in conjunction with the various components and / or functional blocks.

[0070] The subject matter disclosed herein provides a large deduplication memory system architecture with a translation table whose size does not increase linearly with the increase in the virtual memory size of the system. In one embodiment, the memory system architecture disclosed herein includes multiple system partitions, wherein functions within each system partition can be parallelized to provide high throughput and low latency.

[0071] In one embodiment, the system partition may include one or more transaction managers that may be configured to manage the virtual memory space of the memory system and in doing so provide concurrency and coherence for the virtual memory space. Additionally, each transaction manager may support multiple outstanding transactions and may also support multiple threads, wherein each thread may include multiple outstanding transactions.

[0072] The system partition may also include one or more data engine managers, which may be configured to manage the physical memory space of the system partition. The data engine manager may also be configured to manage multiple parallel data engines. The multiple data engines may perform memory address interleaving on multiple orthogonal memory areas of the system partition to provide high throughput. The term "orthogonal" used herein with respect to the multiple memory areas means that any data engine can access any memory area of ​​the system partition. For write access, memory write conflicts are managed by the write data engine manager (WDEM) before the data reaches the write data engine (WDE). After the data reaches the WDE, the memory access conflict has been removed. For read access, the read data engine (Read Data Engine, RDE) has no memory access conflict and can access any memory area without restriction. The memory area manager manages memory areas associated with applications, such as different deduplication memory areas. Therefore, physical memory conflicts have been "orthogonally" removed by WDEM.

[0073] The memory system architecture disclosed herein also provides a reference counter (RC) that can be embedded in user data stored in the physical memory of the system and can reduce the amount of memory used by the memory system. In one embodiment, the reference counter provides an indication of the number of times the data in which the reference counter is embedded is repeated in the virtual memory space of the system. In one embodiment, for a user data granularity of 64 bytes, embedding the reference counter in the user data can reduce the system memory requirements by about 6%. In another embodiment, for a user data granularity of 32 bytes, embedding the reference counter in the user data can reduce the system memory requirements by about 12%.

[0074] In other embodiments where the number of times that user data may be repeated in the virtual memory space of the system is equal to or greater than a predetermined number of times, the field for the reference counter may be replaced with a field that provides an index to an extended reference counter table or to a special data pattern table. In yet another embodiment, if the number of times that user data may be repeated in the virtual memory space of the system is equal to or greater than a predetermined number of times, the conversion table used by the system may include an entry with a pointer or index to the special data pattern table, thereby reducing latency and increasing throughput. By placing a pointer or index in the conversion table, highly repeated user data in the virtual memory space may be automatically detected when the conversion table is accessed. In addition, such highly repeated user data may be more easily analyzed by the automatic detection provided by such a configuration of the conversion table.

[0075] Figure 1A block diagram of an exemplary embodiment of a scalable deduplication memory system architecture 100 according to the subject matter disclosed herein is depicted. The system architecture 100 may include one or more host devices or systems 101, a host interface 102, a front-end scheduler 103, and a plurality of system partitions 200A to 200K. The host system 101 may be communicatively coupled to the host interface 102, and the host interface 102 may be communicatively coupled to the front-end scheduler 103. The host interface 102 may include one or more direct memory access (DMA) devices DMA0 to DMAH-1. The front-end scheduler 103 may be communicatively coupled to each of the plurality of system partitions 200A to 200K. The host system 101, the host interface 102, and the front-end scheduler 103 operate in a well-known manner.

[0076] System partition 200 may include a write data path 201 and a read data path 202. Write data path 201 may include a transaction manager (TM) 203, a write data engine WDE manager (WDEM) 204, one or more memory region managers (MRMs) 207, and one or more memory regions (MRs) 209. In one embodiment, write data path 201 may include TM 203. In one embodiment, there is one TM 203 and one WDEM 204 per partition. MR 209 is Figure 1 209 is illustrated as including a memory controller (MEM CNTRLR) and a dual in-line memory module (DIMM). Other embodiments may include equivalent components of MR 209. The memory of MR 209 may be, but is not limited to, a dynamic random access memory (DRAM), a static random access memory (SRAM), a volatile memory, and / or a non-volatile memory.

[0077] Compared to the write data path 201, the read data path 202 may be relatively simple because there are no data coherence or data concurrency issues associated with the read data path. Figure 1 and Figure 2 As shown in FIG. 1 , the read data path 202 may include the one or more MRs 209, the one or more MRMs 207 ( Figure 1 ), a read data engine (RDE) manager (RDEM) 212, and one or more RDEs 213. A data read request received from the host system 101 may involve a conversion table ( Figure 4 ) and access to the appropriate memory area to provide the requested read data through the read data path 202 in response to a data read access.

[0078] Figure 2 The subject matter disclosed herein is shown Figure 1 A more detailed block diagram of an exemplary embodiment of system partition 200 is shown. The architecture of system partition 200 may be parallelizable so that multiple transactions and multiple threads (and multiple transactions thereof) may be processed in a manner that provides high throughput.

[0079] The write data path 201 of the partition 200 may include a TM 203, a WDEM 204, one or more WDEs 205 (WDE 0 to WDE N-1), a memory zone arbiter 206, an MRM 207 (MRM0 to MRM P-1), an interconnect 208, and the one or more MRs 209 (MR 0 to MR P-1). The read data path 202 of the partition 200 may include an MR 209, an interconnect 208, a memory zone arbiter 206, an RDEM 212, and one or more read data engines (RDE) 213. The system partition 200 may also include a translation table (TT) manager (TT MGR) 210 and a TT memory (TTMEM) 211. The system partitions 200A to 200K ( Figure 1 ) can be configured similarly.

[0080] Components such as the memory bank arbiter 206 and the interconnect 208 operate in a well-known manner and will not be described in detail herein. Figure 2 2, the memory region arbiter 206 has been depicted by dashed lines as being located in the write data path 201 and the read data path 202, however, it should be understood that each respective path may actually include a separate memory region arbiter that communicates and coordinates with another memory region arbiter. Figure 1 ” passed” MRM 207, but Figure 2 207, because the RDEM 212 only needs to read the translation table to obtain the physical line identification (PLID) of the physical memory location and then the RDE 213 reads the memory location indexed by the PLID. Figure 1 and Figure 2 The components shown in may be implemented as modules that may include software, firmware, and / or hardware that combine various components and / or functional blocks to provide the functionality described herein.

[0081] Figure 3 Another block diagram of an exemplary embodiment of several of the components of a write data path 201 of a system partition 200 according to the subject matter disclosed herein is shown. More specifically, Figure 3 The components of the illustrated system partition 200 may include a TM 203, a WDEM 204, a WDE 205, an interconnect 208, and a MR 209. Additionally, the write data path 201 may include a write data buffer controller 214.

[0082] Reference Figures 1 to 3 , TM 203 may include a TM controller 215 and one or more transaction tables 216. The transaction table 216 may be used to keep track of outstanding write transactions occurring between the host system 101 and the memory 209. WDEM 204 may include an outstanding bucket number (OBN) table 217, a command (CMD) dispatcher 218, an overflow memory invalidate (OVMI) manager 219, and one or more command queues (CQ) 220 (CQ0 to CQ N-1). WDE 205 may include one or more WDEs (WDE 0 to WDE N-1). Write data buffer controller 214 may include one or more write data buffers 221.

[0083] TM 203 can be configured to manage the data coherence and data concurrency of the virtual memory space of the host system. In one embodiment, TM 203 can be configured to support multiple outstanding write transactions and multiple threads to provide high data throughput. In one embodiment, transaction table 216 can include a list of outstanding write transactions. In another embodiment, transaction table 216 can include a list of multiple threads, each of which has multiple outstanding write transactions. When a data write request is received from the host system 101, TM 203 assigns a transaction identification number (identification number, ID) to the data write request, and the transaction ID and other metadata are entered into the selected transaction table 216. Data associated with the data write request can be stored in the write data buffer 221. The transaction ID and information related to the data in the write data buffer 221 can be sent downstream to be further processed by the write data path 201. TM 203 can also use one or more of the TM tables 216 to maintain that the issued memory writes are completed in a sequential order in the host system / virtual memory space.

[0084] Figure 44 shows some details of an exemplary embodiment of a translation table 400 that may be used by TM 203 and RDEM 212 to keep track of data locations in the physical memory space of system partition 200 in accordance with the subject matter disclosed herein. The translation table stored in TT memory 211 and the specific exemplary embodiment of translation table 400 are for a 1 TB (i.e., 2 40 The deduplication granularity (data granularity) is 64 bits (i.e., 2 6 The physical memory space of the conversion table 400 is 256 GB (i.e., 2 38 Bytes) and indicated by PHY SPACE. The system translation table index TT_IDX is shown to have 34 bits. The segmentation provided by the system partition 200 keeps the index of the translation table stored in the TT memory 211 within 32 bits, which does not significantly increase the size of the translation table as the size of the user data stored in the MR 209 increases. In alternative embodiments, the virtual memory size, physical memory size, and deduplication granularity may be different from Figure 4 As shown.

[0085] Figure 5 5 illustrates a relationship between a translation table entry of an exemplary translation table 500 and a hash table entry of an exemplary hash table 501 according to the subject matter disclosed herein. Figure 2 and Figure 5 In one embodiment, the translation table 500 may be stored in the TT MEM 211, and the hash table 501 may be stored in the hash table / reference counter memory (HTRC MEM) in the MR 209. The logical address 502 received from the host system 101 includes the translation table index ( Figure 4 , TT_IDX) and granularity. The translation table index provides an index to a physical row identifier (PLID) entry in the translation table 500. The format 503 of the PLID entry includes a row (i.e., hash bucket) index (R_INDX) and a column index (COL_INDX) for the hash table 501. The content contained at a specific row and a specific column of the hash table 501 can be a granularity of 2 g For example, if g is equal to 6, the granularity of the PL will be 64 bytes.

[0086] In one embodiment, the hash table index (i.e., both the row index and the column index) can be generated by a hash function h performed on the user data. Since the hash table entry is generated by a hash function h performed on the user data C, only a portion C" of the user data needs to be stored in the PL. In other words, if C represents a granularity of 2 g and C″ represents a portion of user data C that needs to be stored in the hash table, then C′ represents a portion of user data C that can be reconstructed from C″ using the hash function h. That is,

[0087] C={C′,C″}={h(C″),C″} (1)

[0088] The space or field in the PL corresponding to C' may be used for other purposes, such as storing reference counter (RC) information related to the number of times the user data C is repeated in the virtual memory of the host system 101. The space or field in the PL corresponding to C' may be referred to as a reconstruction field.

[0089] Figure 6 A flow chart is depicted of an exemplary control process 600 provided by the transaction manager TM 203 in accordance with the subject matter disclosed herein. At 601, the TM 203 may be in an idle loop waiting to receive a data write command from the host system 101 or a response from the WEDM 204. At 602, if a data write command is received from the host system 101, the flow continues to 603 where a search is performed on the transaction table 216. At 604, a transaction ID is assigned to the data write command and the data write command is inserted into the appropriate transaction table 216. At 605, the write data is input into the write data buffer 221. At 606, the translation table stored in the TT memory 211 is read to obtain the old physical row identification (PLID) information, and the flow returns to 601.

[0090] If the data write command is not received at 602, the flow continues to 607, where it is determined whether a response has been received from the WEDM 204. If not, the flow returns to 601. If received, the flow continues to 608, where the transaction table 216 is updated. At 609, the conversion table stored in the TT memory 211 is updated. Then, the flow returns to 601.

[0091] WDEM 204 may be configured to manage data coherence and data concurrency of physical memory space within partition 200 by managing WDE 205. In one embodiment, WDEM 204 may use command dispatcher 218 and command queues 220 (i.e., CQ 0 to CQ N-1) to maintain multiple outstanding write transactions / threads and internal read / write transactions / threads for different WDE 205. WDEM 204 operates to ensure that write transactions for the same hash bucket are executed in sequence by sending write transactions for the same hash bucket to the same command queue CQ. WDEM 204 may also merge partial cache line writes and perform memory management for overflow memory (OV MEM) areas in MR 209.

[0092] WDEM 204 may include an outstanding bucket number (OBN) table 217 that may be used to track the hash table bucket numbers and status of outstanding write commands. Command dispatcher 218 may assign commands to different WDEs 205 by storing the write commands in the selected CQ 220. WDEM 204 may also include an overflow memory (OVM) invalidation table (not shown).

[0093] Figure 7 A flow chart is shown of an exemplary control process 700 provided by WEDM 204 according to the subject matter disclosed herein. The control process starts at 701. At 702, it is determined whether a write data command with a write data buffer ID and old PLID information has been received from the transaction manager TM 203. If received, the flow continues to 703, at which the write data table is read. At 704, if the write data read from the write data buffer 221 is marked as a special data pattern, the flow continues to 706 to send a response to the transaction manager. If at 704, the write data is not special data, the flow continues to 705, at which the outstanding command buffer OCB table is updated. At 707, the operation code (opcode) is added to the appropriate command queue CQ 220, and at 708, the process ends. If a response is received from WDE 205 at 709, the flow continues to 710, at which the outstanding command buffer (OCB) table is updated. At 711 , the updated status is sent to Transaction Manager TM 203 , and at 708 , the process ends.

[0094] Each WDE 205 receives commands (opcodes) from the corresponding CQ 220 in the WEDM 204. The WDE 205 is configured to perform deduplication determination and other related calculations. Each WDE 205 can run in parallel to improve the overall throughput of the system partition 200. Each WDE 205 coordinates with the MRM 207 in each memory zone to interleave memory accesses.

[0095] Figure 8 A flow chart of an exemplary control process 800 provided by WDE 205 according to the subject matter disclosed herein is depicted. At 801, WDE 205 may be in an idle loop waiting to receive a command from WDEM 204. At 802, a determination is made as to whether the command is to compare the signature of the user data with other user data signatures in the hash bucket or whether the command is to decrement the RC. If the command (i.e., the opcode) is to decrement the RC, the flow continues to 803, where the RC of the user data is decremented. Next, the flow continues to 804, where the status of the request is returned to WDEM 204, and then the flow returns to 801.

[0096] If at 802, the request received from WDEM 204 is to write user data (i.e., physical row), the flow continues to 805, where the signature of the user data is compared with other user data signatures, and further compared with the user data already stored in the hash table. At 806, if there is a match, the flow continues to 807, where the RC of the user data is incremented. The flow continues to 804, where the status of the request is reported back to WDEM 204. If there is no match at 806, the flow continues to 808, where the HTRC manager is called to save the user data in the hash table with RC equal to "1" if no previous user data is found; or if the hash bucket is full or if a hash collision occurs, the OVM manager is called to store the user data in the overflow area. The flow continues to 804 to report the status of the request to WDEM 204.

[0097] The MRM 207 manages memory accesses of the WDE 205 to the MR 209. The MRM 207 includes a hash table / reference counter manager (HTRC MGR) 222, an overflow memory manager (OVM MGR) 223, and a signature manager (SIG MGR) 224. Each MRM 207 receives control information and data information (HR R / W) of the HTRC MGR 222, control information and data information (OVM R / W) of the OVM MGR 223, and control information and data information (SIG R / W) of the SIG MGR 224 from each of the WDEs 205.

[0098] Fig.9A An exemplary embodiment of a PL 900 including a reconstruction field 901 with an embedded reference counter (RC) according to the subject matter disclosed herein is depicted. In one embodiment, the reconstruction field includes an embedded RC that has a relatively small size since the number of times that user data may be repeated in the virtual memory space may be small. For such a system scenario, the embedded RC may be configured as a basic RC of size r-1 bits.

[0099] In another embodiment where the number of times that user data may be repeated in the virtual memory space of the host system may exceed the size of the embedded RC in the reconstruction field of the PL, the reconstruction field may include an index to an extended RC table entry. In yet another embodiment, an indication flag (e.g., a selected bit of the PL) may be used to indicate whether the number of times that user data may be repeated in the virtual memory space exceeds the size of the embedded RC.

[0100] Fig. 9B An exemplary embodiment of a PL 910 including an indicator flag 911 according to the subject matter disclosed herein is shown. Fig. 9B As shown in FIG. 1 , the indication flag 911 is set to indicate that the number of repetitions of the user data is equal to or less than the size of the embedded RC in the reconstruction field 912. Therefore, the content of the reconstruction field 912 will indicate the number of repetitions of the user data in the virtual memory space of the host system 101. Fig. 9CA situation is shown in which an indication flag 911 is set to indicate that the number of repetitions of the user data exceeds the size of the embedded RC in the reconstruction field 912, in which case the contents of the reconstruction field may include an index to an extended RC table 913, which contains an extended count of repeated user data. Alternatively, the reconstruction field 912 may include an index or pointer to a special data pattern table 914, which may, for example, contain highly repeated data. In one embodiment, the conversion table may also include a PLID, such as Figure 8 As shown in , the PLID is an index or pointer to a special data pattern table 914 for highly repeated user data to reduce the latency originally associated with such user data. That is, by placing a pointer or index in the conversion table, highly repeated user data in the virtual memory space can be automatically detected when the conversion table is accessed.

[0101] Each MR 209 includes a metadata memory area and a plurality of data memory areas. If the system partition 200 is configured to deduplicate memory, the metadata area includes a translation table. The data memory area included in the MR 209 includes a hash table / reference counter (HTRC) memory (HTRC MEM), a signature memory (SG MEM), and an overflow memory (OV MEM).

[0102] Writes to the same physical memory area in MR 209 from different virtual addresses are managed by MRM 207. HTRC manager 222 and SIG manager 224 perform deduplication functions and calculate memory locations based on hash table row (i.e., bucket) and column positions. Writes to the same HTRC bucket from different virtual addresses may arrive at the HTRC bucket in an order different from the original order from the host. Coherency is managed by WDEM 204. If write data (e.g., write data A and write data B) arrive at the same PLID (A==B), the RC may simply be incremented. If write data from different virtual addresses are unequal, have the same bucket number but different column (i.e., way) numbers, the write data may be stored in the same bucket but differently in different ways. If there is only one entry left in the bucket, either A or B will be stored in the last entry, and the other may be stored in the overflow area. If write data A and write data B are different but have the same hash bucket number and row number, the second will be stored in the overflow area.

[0103] As those skilled in the art will recognize, the innovative concepts described herein may be modified and varied over a wide range of applications. Accordingly, the scope of the claimed subject matter should not be limited to any specific exemplary teachings discussed above, but is instead defined by the following claims.

Claims

1. A memory system, include: At least one system partition, including: A physical memory having a physical memory space of a first predetermined size; at least one transaction manager that receives a data write request and corresponding data from a host system, the at least one transaction manager using a transaction table to maintain data coherence and data consistency for a virtual memory space of the host system; at least one write data engine manager including at least one command queue, the at least one write data engine manager using outstanding bucket numbers and the at least one command queue to maintain data coherence and data consistency for the physical memory space, the at least one write data engine manager receiving the data write requests from the at least one transaction manager and sending a write command corresponding to each of the data write requests to a selected command queue among the at least one command queue; and a write data engine corresponding to each of the at least one command queue, the write data engine responding to a write command stored in the command queue corresponding to the write data engine by: storing the data corresponding to the data write request in an overflow memory area if the data is not duplicated in the virtual memory space; or incrementing a reference counter of the data if the data corresponding to the data write request is duplicated in the virtual memory space, The unfinished bucket number is used to track the hash table bucket number and status of the unfinished write command.

2. The memory system of claim 1 , wherein the virtual memory space comprises a second predetermined size, the second predetermined size being greater than or equal to the first predetermined size of the physical memory space, and The memory system further includes a translation table, the translation table including a first predetermined number of bits corresponding to the second predetermined size of the virtual memory space, a second predetermined number of bits corresponding to the first predetermined size of the physical memory, and a third predetermined number of bits of data granularity, the second predetermined number of bits and the third predetermined number of bits being subsets of the first predetermined number of bits.

3. The memory system of claim 2, wherein the first predetermined number of bits comprises 40 bits, the second predetermined number of bits comprises 32 bits, and the third predetermined number of bits of the data granularity comprises 6 bits.

4. The memory system of claim 2, wherein the at least one transaction manager accesses the translation table in response to receiving a data write request to determine a physical address corresponding to a virtual address of the data write request.

5. The memory system of claim 1, wherein the at least one transaction manager maintains write-after-write data coherency and consistency for the virtual memory space of the host system.

6. The memory system of claim 1, wherein the at least one transaction manager uses the transaction table to track a plurality of data write requests received from the host system.

7. The memory system according to claim 6, wherein the at least one transaction manager assigns a transaction identifier to the received data write request, and The at least one transaction manager sends write completion messages to the host system in an order corresponding to the transaction identifiers of the received data write requests.

8. The memory system of claim 6, wherein the at least one transaction manager further uses the transaction table to track multiple threads of the data write request.

9. A memory system, include: Multiple system partitions, at least one system partition includes: A physical memory having a physical memory space of a first predetermined size, the physical memory comprising a plurality of memory areas; at least one transaction manager that receives a data write request and corresponding data from a host system, the at least one transaction manager using a transaction table to maintain data coherence and data consistency for a virtual memory space of the host system, the virtual memory space comprising a second predetermined size, the second predetermined size being greater than or equal to the first predetermined size of the physical memory space, and the at least one transaction manager using a translation table to translate the virtual memory space of the host system into the physical memory space of the at least one system partition; at least one write data engine manager including at least one command queue, the at least one write data engine manager maintaining data coherence and data consistency for the physical memory space using outstanding bucket numbers and the at least one command queue, the at least one write data engine manager receiving the data write requests from the at least one transaction manager and sending a write command corresponding to each of the data write requests to a selected command queue of the at least one command queue; a write data engine corresponding to each of the at least one command queue, the write data engine responding to a write command stored in the command queue corresponding to the write data engine by: storing the data corresponding to the data write request in an overflow area if the data is not duplicated in the virtual memory space; or incrementing a reference counter of the data if the data is duplicated in the virtual memory space; and a memory zone manager corresponding to each memory zone of the physical memory, the memory zone manager including a reference counter storage space for data stored in each memory zone, the memory zone manager controlling a write data engine access to each memory zone corresponding to the memory zone manager, The unfinished bucket number is used to track the hash table bucket number and status of the unfinished write command.

10. A memory system according to claim 9, wherein the translation table includes a first predetermined number of bits corresponding to the second predetermined size of the virtual memory space, a second predetermined number of bits corresponding to the first predetermined size of the physical memory, and a third predetermined number of bits of data granularity, the second predetermined number of bits and the third predetermined number of bits being subsets of the first predetermined number of bits.

11. The memory system of claim 10, wherein the first predetermined number of bits comprises 40 bits, the second predetermined number of bits comprises 32 bits, and the third predetermined number of bits of the data granularity comprises 6 bits.

12. The memory system of claim 9, wherein the at least one transaction manager maintains write-after-write data coherency and consistency for the virtual memory space of the host system.

13. The memory system of claim 9, wherein the at least one transaction manager accesses the translation table in response to receiving a data write request to determine a physical address corresponding to a virtual address of the data write request.

14. The memory system of claim 9, wherein the at least one transaction manager uses the transaction table to track a plurality of data write requests received from the host system.

15. The memory system of claim 14, wherein the at least one transaction manager assigns a transaction identifier to the received data write request, and The at least one transaction manager writes write completion messages to the host system in an order corresponding to the transaction identifiers of the received data write requests.

16. The memory system of claim 14, wherein the at least one transaction manager uses the transaction table to track multiple threads of the data write requests.

17. A deduplication memory system, include: Multiple system partitions, at least one system partition includes: A physical memory having a physical memory space of a first predetermined size; at least one transaction manager receives a data write request and corresponding data from a host system, the at least one transaction manager uses a transaction table to maintain data coherence and data consistency for a virtual memory space of the host system, the virtual memory space comprising a second predetermined size, the second predetermined size being greater than or equal to the first predetermined size of the physical memory space, the at least one transaction manager uses a translation table to translate the virtual memory space of the host system into the physical memory space of the at least one system partition, the translation table comprising a first predetermined number of bits corresponding to the second predetermined size of the virtual memory space, a second predetermined number of bits corresponding to the first predetermined size of the physical memory, and a third predetermined number of bits of data granularity, the second predetermined number of bits and the third predetermined number of bits being subsets of the first predetermined number of bits; at least one write data engine manager including at least one command queue, the at least one write data engine manager using outstanding bucket numbers and the at least one command queue to maintain data coherence and data consistency for the physical memory space, the at least one write data engine manager receiving the data write requests from the at least one transaction manager and sending a write command corresponding to each of the data write requests to a selected command queue among the at least one command queue; and a write data engine corresponding to each command queue, the write data engine responding to a write command stored in the command queue corresponding to the write data engine by: storing the data corresponding to the data write request in an overflow area if the data is not duplicated in the virtual memory space; or incrementing a reference counter if the data corresponding to the data write request is duplicated in the virtual memory space, The unfinished bucket number is used to track the hash table bucket number and status of the unfinished write command.

18. The deduplication memory system of claim 17, wherein the physical memory comprises a plurality of memory areas, The deduplication memory system also includes a memory zone manager corresponding to each memory zone of the physical memory, the memory zone manager including a reference counter storage space for data stored in the memory zone, and the memory zone manager controls write data engine access to the memory zone corresponding to the memory zone manager.

19. The deduplication memory system of claim 18, wherein the first predetermined number of bits comprises 40 bits, the second predetermined number of bits comprises 32 bits, and the third predetermined number of bits of the data granularity comprises 6 bits.

20. The deduplication memory system of claim 19, wherein the at least one transaction manager uses the transaction table to track multiple threads of the data write requests.