Large-capacity memory system for in-memory computing

The scalable memory system architecture addresses deduplication challenges by using system partitions and reference counters to optimize deduplication without increasing translation table size, achieving improved performance and reduced latency.

JP2024133605AActive Publication Date: 2024-10-02SAMSUNG ELECTRONICS CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
JP2024108045
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2018-11-04
Filing Date
2024-07-04
Publication Date
2024-10-02
Estimated Expiration
2039-08-14

AI Technical Summary

Technical Problem

Conventional deduplication systems face issues such as a non-linear increase in deduplication translation tables and increased read and write latency due to multiple physical reads/writes for logical operations, degrading performance in large memory systems.

Method used

A scalable memory system architecture with system partitions, transaction managers, command queues, and write data engines that manage data coherency and consistency, using reference counters and overflow areas to optimize deduplication without linearly increasing translation table size, and parallelizing operations for high throughput and low latency.

Benefits of technology

The solution provides a scalable architecture for large-capacity memory systems with improved performance by maintaining data integrity and reducing latency through efficient deduplication techniques, allowing for high throughput and reduced memory usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024133605000001_ABST
    Figure 2024133605000001_ABST
Patent Text Reader

Abstract

To provide a memory system for providing deduplication of user data in a physical memory space of a system.SOLUTION: A system partition 200 that a system architecture 100 has includes: a physical memory having a physical memory space; a write data engine manager 204 that includes a write command queue, receives a data write request from a transaction manager for managing a memory space, and manages at least one of data consistency and data integrity to a physical memory space on the basis of determination of a memory write conflict by using the write command queue; and a write data engine for storing data corresponding to a data write request in a physical memory space on the basis of a write command stored in a write command queue in response to the write command queue.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to memory systems, and more particularly to memory systems that provide deduplication of user data in the physical memory space of a host system for user data that is replicated in the virtual memory space of that system. [Background technology]

[0002] Artificial Intelligence (AI), big data, and in-memory processing use increasingly large memory capacity. To meet such demands, in-memory deduplication systems (dedupe-DRAM) have been developed. Unfortunately, traditional deduplication systems have several problems. For example, the deduplication translation table grows nonlinearly with the increase in virtual memory size. In addition, deduplication operations usually cause some increase in read and write latency. That is, a single logical read or write requires multiple physical reads or writes, which reduces performance. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] U.S. Patent No. 9,355,109 [Patent Document 2] U.S. Patent No. 9,799,017 [Patent Document 3] US Patent Application Publication No. 2016 / 0371295 [Non-patent literature]

[0004] [Non-Patent Document 1] WANG,Longxiang et al.,“DOMe:A deduplication optimization method for the NewSQL database backups”,PLoS ONE 12(10):e0185189.https: / / doi.org / 10.1371 / journal.pone.0185189,Xi'an,Shaanxi,PRChina Summary of the Invention [Problem to be solved by the invention]

[0005] The present invention has been made in consideration of the above-mentioned problems in the conventional technology, and an object of the present invention is to provide a scalable architecture that enables a large-capacity memory system for in-memory computing with improved performance. [Means for solving the problem]

[0006] According to one aspect of the present invention, there is provided a memory system including at least one system partition, the at least one system partition including a physical memory having a physical memory space of a first predetermined size, at least one transaction manager configured to receive data write requests and corresponding data from a host system and maintain data coherency and data consistency for a virtual memory space of the host system using a transaction table, and at least one command queue, configured to maintain data coherency and data consistency for the physical memory space using an outstanding bucket number and the at least one command queue, and configured to receive the data write requests from the transaction manager and transmit write commands corresponding to each of the data write requests to a selected command queue of the at least one command queue. and a write data engine corresponding to each of the at least one command queue, and responding to a write command stored in the corresponding command queue by storing the data in an overflow memory area if the data corresponding to a data write request has not been copied to the virtual memory space, or incrementing a reference counter for the data if the data corresponding to a data write request has been copied to the virtual memory space.

[0007] The virtual memory space includes a second predetermined size that is greater than or equal to the first predetermined size of the physical memory space, and the memory system includes a conversion 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 for data granularity, and the second predetermined number of bits and the third predetermined number of bits may be a subset of the first predetermined number of bits.

[0008] According to another aspect of the present invention, there is provided a memory system including a plurality of system partitions, at least one of the plurality of system partitions including a physical memory having a first predetermined size of a physical memory space including a plurality of memory regions; at least one transaction manager that receives data write requests and corresponding data from a host system and maintains data consistency and data integrity for a virtual memory space of the host system having a second predetermined size equal to or larger than the physical size of the first predetermined size using a transaction table and converts the virtual memory space of the host system into a physical memory space of the at least one system partition using a conversion table; and at least one write data engine manager that includes at least one command queue and maintains data consistency and data integrity for the physical memory space using an outstanding bucket number and the at least one command queue, and receives the data write requests from the transaction manager and transmits write commands 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 and responding to a write command stored in the corresponding command queue by storing the data in an overflow area if the data corresponding to the data write request has not been copied to the virtual memory space, or by incrementing a reference counter for the data if the data has been copied to the virtual memory space; and a memory regional manager corresponding to each memory area of ​​the physical memory, including a reference counter storage space for data stored in each memory area, and controlling write data engine access to each of the corresponding memory areas.

[0009] The conversion 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 for data granularity, and the second predetermined number of bits and the third predetermined number of bits may be a subset of the first predetermined number of bits.

[0010] According to one aspect of the present invention, there is provided a deduplication memory system including a plurality of system partitions, at least one of the plurality of system partitions including a physical memory having a physical memory space of a first predetermined size, at least one transaction manager configured to receive a data write request and corresponding data from a host system, and to maintain data consistency and data integrity for a virtual memory space of the host system having a second predetermined size equal to or larger than the first predetermined size of the physical memory space by using a transaction table, the virtual memory space of the host system 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 for data granularity, the second predetermined number of bits and the third predetermined number of bits being a subset of the first predetermined number of bits, and at least one command queue, and to convert the virtual memory space of the host system to the physical memory space of the at least one system partition using a conversion table, the conversion table including a conversion table for converting the virtual memory space of the host system to the physical memory space of the at least one system partition ... and at least one write data engine manager that receives the data requests from the transaction manager and transmits 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 that corresponds to each command queue and responds to a write command stored in the corresponding command queue by storing the data in an overflow area if the data corresponding to the data write request has not been copied to the virtual memory space, or by incrementing a reference counter if the data corresponding to the data write request has been copied to the virtual memory space. Effect of the Invention

[0011] In accordance with the present invention, a scalable architecture is provided that enables large memory systems for in-memory computing with improved performance. [Brief description of the drawings]

[0012] [Figure 1] 1 is a block diagram illustrating an example of a scalable deduplication memory system architecture according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a more detailed block diagram illustrating an example of the system partition shown in FIG. [Diagram 3] FIG. 11 is a block diagram showing another example of the configuration of a write data path of a system partition according to an embodiment of the present [Figure 4] FIG. 2 is a detailed diagram illustrating an example of the relationship between virtual memory space and physical memory space for the deduplication memory system of FIG. 1, used by a translation table to translate the host system's virtual memory space to the system's virtual memory space, in accordance with one embodiment of the present invention. [Diagram 5] 4 illustrates a relationship between translation table entries of an exemplary translation table and hash table entries of an exemplary hash table according to one embodiment of the present invention. [Figure 6] 4 is a flow chart of an exemplary control process provided by a transaction manager according to one embodiment of the present invention. [Figure 7] 4 is a flowchart of an exemplary control process provided by a write data engine manager in accordance with one embodiment of the present invention. [Figure 8] 4 is a flowchart of an exemplary control process provided by a write data engine in accordance with one embodiment of the present invention. [Figure 9A] FIG. 2 illustrates an example of a physical line including a restoration field with built-in reference counters according to one embodiment of the present invention. [Figure 9B]FIG. 2 illustrates an example of a physical line including an indicator flag according to one embodiment of the present invention. [Figure 9C] FIG. 13 illustrates a situation where an indicator flag is set to indicate that the number of times the user data is replicated exceeds the size of the built-in reference counter in the restoration field, when the contents of the restoration field include an index to an extended reference counter table that contains extended counters of replicated user data. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] In the following detailed description, various embodiments are described to provide a thorough understanding of the present invention. However, the concepts of the present invention may be practiced by those skilled in the art without the detailed description herein. In other instances, well-known methods, procedures, configurations, and circuits have not been described so as to not obscure the embodiments of the present invention. Furthermore, the described aspects may be implemented to perform low-power, 3D depth measurements in imaging devices or systems, including, but not limited to, smartphones, User Equipment, and / or laptop computers.

[0014] The term "one embodiment" throughout the detailed description herein means that a particular feature, structure, or characteristic associated with an embodiment is included in at least one embodiment described herein. In other words, the appearances of "in one embodiment" or "according to one embodiment" (or other expressions of similar meaning) in various parts of the detailed description do not necessarily all refer to the same embodiment. Moreover, particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In contrast, the word "exemplary" as used herein means "serving as an example, instance, or illustration." Some embodiments described herein as "exemplary" are not necessarily to be construed as preferred or advantageous over other embodiments. Moreover, particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Also, singular terms include the corresponding plurals, and plural terms include the corresponding singulars, depending on the context described herein.

[0015] The various drawings (including structural drawings) described herein are shown for convenience of illustration only. Reference numerals may be repeated among the drawings to indicate corresponding and / or analogous elements.

[0016] The terms used herein are for the purpose of describing some embodiments, and the present invention is not limited thereto. The term "comprises", when used herein, specifies the presence of recited features, integers, steps, operations, elements, and / or components, but does not negate the presence or addition of one or more other features, integers, steps, operations, elements, configurations, and / or groups thereof. As used herein, terms such as "first", "second", and the like are used as labels preceding nouns, and are not limited to a particular type of order (e.g., spatial, temporal, logical, etc.) unless expressly defined. Furthermore, the same reference number may be used in more than one drawing to refer to a part, configuration, block, circuit, unit, or module having the same or similar function. However, such usage is for the sake of brevity of the drawings and convenience of description, and does not limit the structural or structural details of such configurations or units to be the only way in which the same or commonly referenced parts / modules in all embodiments may embody some exemplary embodiments described herein.

[0017] When an element or layer is described as being linked to another element or layer, it may be directly linked to the other element or layer, or intermediate elements or layers may be present. Conversely, when an element is described as being directly connected to another element or layer, there are no intermediate elements or layers present. As used herein, the term "and / or" includes any combination of one or more of the associated listed items.

[0018] Unless otherwise defined, all terms used herein (including technical or scientific terms) have the same meaning as commonly understood by a person of ordinary skill in the art to which the present invention belongs. Terms such as those defined in the general dictionary are to be interpreted as having the same meaning as their meaning in the context of the relevant art, and are not to be interpreted in an ideal or overly formal sense unless expressly defined herein.

[0019] The term "module" as used herein refers to any combination of software, firmware, and / or hardware associated with the module and configured to provide the functionality described herein. Software may be embodied in software packages, codes, and / or command sets or commands, and the term "hardware" as used in any embodiment described herein includes, for example, any one or combination of hardwired circuitry, programmable circuitry, state machine circuitry, and / or firmware that stores commands executed by programmable circuitry. Modules may be embodied collectively or individually as circuits that form part of a larger system, such as, but not limited to, an integrated circuit (IC), a system on a chip (SoC), and the like. The various components and / or functional blocks described herein may be embodied as modules that include software, firmware, and / or hardware that provide the functionality described herein in association with the various components and / or functional blocks.

[0020] The subject matter described herein provides a large-scale deduplication memory system architecture having translation tables that do not grow non-linearly in size as the virtual memory size of the system increases. In one embodiment, the memory system architecture described herein includes multiple system partitions, where functions within each system partition are parallelized to provide high throughput and low latency.

[0021] In one embodiment, the system partition includes one or more transaction managers configured to manage the virtual memory space of the host system, as described below, and to provide concurrency and coherency for the virtual memory space. Additionally, each transaction manager may support multiple outstanding transactions and may support multiple threads, each containing multiple outstanding transactions.

[0022] The system partition includes one or more data engine managers configured to manage the physical memory space of the system partition. The data engine manager is configured to manage multiple parallel data engines. The multiple data engines may perform interleaving of memory addresses for multiple orthogonal memory regions of the system partition to improve throughput. The term "orthogonal" as used herein for multiple memory regions means that any data engine may access any memory region of the system partition. For example, for write access, memory write conflicts are managed by a Write Data Engine Manager (WDEM) before data arrives at a Write Data Engine (WDE). After data arrives at the WDE, memory access conflicts are eliminated. For read access, a Read Data Engine (RDE) may access any memory region without restriction without memory access conflicts. A Memory Regional Manager manages memory regions associated with applications, such as different deduplication memory regions. That is, physical memory conflicts are eliminated "orthogonally" by WDEM.

[0023] The memory system architecture described herein also provides a reference counter (RC) that can be embedded in user data stored in the physical memory of the system to reduce memory size used by the memory system. In one embodiment, the reference counter provides an indication of the number of times the user data in which the reference counter is embedded is replicated in the virtual memory space of the memory system. In one embodiment, embedding the reference counter in the user data reduces system memory requirements by approximately 6% at a granularity of 64 byte user data. In another embodiment, embedding the reference counter in the user data reduces system memory requirements by approximately 12% at a granularity of 32 byte user data.

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

[0025] FIG. 1 is a block diagram illustrating an example of a scalable deduplication memory system architecture according to an embodiment of the present invention. The scalable deduplication memory system architecture (hereinafter referred to as system architecture 100) includes one or more host devices or host systems 101, a host interface 102, a front-end scheduler 103, and a number of system partitions (200A-200K). The host system 101 is communicatively coupled to the host interface 102, which is communicatively coupled to the front-end scheduler 103. The host interface 102 includes one or more direct memory access (DMA) devices (DMA0-DMAH-1). The front-end scheduler 103 is communicatively coupled to each of the number of system partitions (200A-200K). The host system 101, the host interface 102, and the front-end scheduler 103 operate in a well-known manner.

[0026] The system partition 200 includes a write data path 201 and a read data path 202. The write data path 201 includes a transaction manager (TM) 203, a write data engine (WDE) manager (WDEM) 204, one or more memory regional managers (MRM) 207, and one or more memory regions (MR) 209. In one embodiment, the write data path 201 includes a transaction manager (TM) 203. In one embodiment, there is one TM 203 and one WDEM 204 per system partition. As shown in FIG. 1, the MR 209 includes a memory controller (MEM CNTRLR) and a dual in-line memory module (DIMM). Other embodiments include an equivalent to the MR 209. The memory of the MR209 may include, but is not limited to, dynamic random access memory (DRAM), static random access memory (SRAM), volatile memory, and / or non-volatile memory.

[0027] Compared to the write data path 201, the read data path 202 is relatively simple since there are no data coherency or data consistency issues associated with the read data path. As shown in Figures 1 and 2, the read data path 202 includes one or more MRs 209, one or more memory region managers (MRMs) 207 (Figure 1), a read data engine (RDE) manager (RDEM: RDE MGR) 212, and one or more RDEs 213. A read request for data received from the host system 101 includes a translation table (Figure 4) that, in response to the read access of the data, accesses the appropriate memory region and provides the requested read data via the read data path 202.

[0028] Figure 2 is a more detailed block diagram of an example system partition shown in Figure 1. The architecture of system partition 200 is parallelized so that multiple transactions and multiple threads (and those multiple transactions) are processed in a manner that provides high throughput.

[0029] The write data path 201 of the system partition 200 includes a transaction manager (TM) 203, a write data engine manager (WDEM) 204, one or more WDEs 205 (WDE0 to WDEN-1), a memory region arbiter 206, an MRM 207 (MRM0 to MRMP-1), an interconnect 208, and one or more memory regions 209 (MR0 to MRP-1). The read data path 202 of the system partition 200 includes a memory region 209, an interconnect 208, a memory region arbiter 206, a read data engine manager (RDEM) 212, and one or more read data engines (RDE) 213. The system partition 200 includes a translation table manager (TT MGR) 210 and a TT memory (TT MEM) 211. Each of the system partitions (200A to 200K) shown in FIG. 1 is similarly configured.

[0030] Components such as memory region arbiter 206 and interconnect 208 operate in a well-known manner and will not be described in detail here. Additionally, memory region arbiter 206 is located in both write data path 201 and read data path 202, as shown by the dotted line in FIG. 2. However, each path may actually include individual memory region arbiters that communicate and cooperate with other memory region arbiters. As shown in FIG. 1, read data path 202 passes through MRM 207, but is not so illustrated in FIG. 2. This is because read data engine manager (RDEM) 212 simply needs to read a translation table to obtain the PLID for a physical memory location, and then RDE 213 reads the memory location indexed by the PLID. Additionally, the configurations shown in FIGS. 1 and 2 may be embodied as modules that include software, firmware, and / or hardware associated with various configuration and / or functional blocks to provide the functionality described herein.

[0031] 3 is a block diagram showing another example of the configuration of a write data path of a system partition according to an embodiment of the present invention. More specifically, components of the write data path 201 of the system partition 200 shown in FIG. 3 include a TM 203, a WDEM 204, a WDE 205, an interconnect 208, and an MR 209. Furthermore, the write data path 201 includes a write data buffer controller 214.

[0032] 1 to 3, the TM 203 includes a TM controller (TM CTRL) 215 and one or more transaction tables (TM tables) 216. The transaction table 216 is used to track outstanding write transactions occurring between the host system 101 and the memory area 209. The WDEM 204 includes an outstanding bucket number table (OBN table) 217, a command dispatcher (CMD dispatcher) 218, an overflow memory invalidate manager (OVMI manager) 219, and one or more command queues (CQs) 220 (CQ0 to CQN-1). The WDE 205 includes one or more WDEs (WDE0 to WDEN-1). The write data buffer controller 214 includes one or more write data buffers 221.

[0033] TM 203 is configured to manage data coherency and data consistency for the virtual memory space of host system 101. In one embodiment, TM 203 supports multiple outstanding write transactions and multiple threads to provide high data throughput. In one embodiment, transaction table 216 includes a list of outstanding write transactions. In another embodiment, transaction table 216 includes a list of multiple threads, each having multiple outstanding transactions. When a data write request is received from host system 101, TM 203 assigns a transaction identification number (ID) to the write data request, and the transaction ID and other metadata are entered into the selected transaction table 216. Data associated with the write data request is stored in write data buffer 221. The transaction ID and information associated with the data in write data buffer 221 are streamed downstream for further processing by write data path 201. TM 203 uses one or more TM tables 216 to keep the completion of sequential memory writes posted to the host system / virtual memory space in sequence.

[0034] 4 is a detailed diagram illustrating an example of a translation table used by TM 203 and RDEM 212 to track the location of data within the physical memory space of a system partition in accordance with one embodiment of the present invention. 40 The deduplication granularity (data granularity) is 64-bit (i.e., 2 6 The physical memory space of the conversion table 400 is 256 GB (i.e., 2 384. The index (TT_IDX) of the translation table of the system shown in FIG. 4 has 34 bits. The partitioning provided by the system partition 200 results in keeping the index of the translation table within 32 bits, preventing the size of the translation table from growing excessively as the size of the user data stored in the MR 209 increases. In other embodiments, the virtual memory size, physical memory size, and deduplication granularity (data granularity) may differ from those shown in FIG. 4.

[0035] 5 is a diagram illustrating the relationship between hash table entries of an exemplary hash table and translation table entries of an exemplary translation table according to one embodiment of the present invention. With reference to FIG. 2 and FIG. 5, in one embodiment, translation table 500 is stored in TT MEM 211 and hash table 501 is stored in HTRC MEM of MR 209. A logical address 502 received from host system 101 includes a translation table index (TT_IDX in FIG. 4) and a granularity. The translation table index provides an index to a physical line identification (PLID) entry in 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) to hash table 501. The contents in a particular row and a particular column of hash table 501 are stored in 2 g g is a physical line (PL) that may be a particular user data having a granularity of 64 bytes. For example, if g is 6, then the granularity of the PL is 64 bytes.

[0036] In one embodiment, the hash table indexes (i.e., both row and column indexes) are generated by a hash function h run on the user data. Since the hash table entries are generated by a hash function h run on the user data C, only a portion of the user data C″ needs to be stored in the PL. In other words, if C has granularity 2, g Let C′ denote the portion of user data C that needs to be stored in a hash table, and C′ denote the portion of user data C that can be recovered from C″ using the hash function h.

[0037]

number

[0038] The space or field in the PL corresponding to C' is used for other purposes, such as storing reference counter (RC) information related to the number of times the user data C has been replicated in the virtual memory of the host system 101. The space or field in the PL corresponding to C' is called a reconstructed field.

[0039] 6 is a flow chart of an exemplary control process provided by a transaction manager according to one embodiment of the present invention. In the control process 600, at step 601, the TM 203 is in an idle loop waiting to receive a data write command from the host system 101 or a response from the WEDM 204. If a data write command is received from the host system 101 at step 602, flow proceeds to step 603 where the transaction table 216 is searched. At step 604, the data write command is assigned a transaction ID and inserted into the appropriate transaction table 216. At step 605, the write data is entered into the write data buffer 221. At step 606, the transaction table 216 is read to obtain old physical line identifier (PLID) information, and then flow returns to step 601.

[0040] If in step 602 a data write command is not received, flow proceeds to step 607 where it is determined whether a response has been received from the WEDM 204. If a response has not been received, flow returns to step 601. If a response has been received, flow proceeds to step 608 where the transaction table 216 is updated. In step 609, the translation table stored in the TT MEM 211 is updated. Flow then returns to step 601.

[0041] WDEM 204 is configured to manage data coherency and data consistency of the physical memory space within partition 200 by managing WDEs 205. In one embodiment, WDEM 204 maintains internal read / write transactions (read / write threads) and multiple outstanding writes to other WDEs 205 using command (CMD) dispatcher 218 and command queues 220 (i.e., CQ0-CQN-1). WDEM 204 operates to ensure that write transactions to the same hash bucket are executed in order by transmitting write transactions to the same hash bucket to the same command queue (CQ). WDEM 204 merges partial cache line writes and provides memory management for the OV MEM (overflow memory) area of ​​MR 209.

[0042] The WDEM 204 includes an outstanding bucket number (OBN) table 217 that is used to track hash table bucket numbers and the status of outstanding write commands. A command dispatcher 218 assigns write commands to other WDEs 205 by storing them in selected CQs 220. The WDEM 204 may further include an OVM invalidation table (not shown).

[0043] 7 is a flow chart of an exemplary control process provided by the WEDM according to one embodiment of the present invention. The control process 700 begins at step 701. At step 702, it is determined whether a write data command has been received from the transaction manager (TM) 203 along with the write data buffer ID and old PLID information. If so, flow proceeds to step 703 where the write data table is read. At step 704, if the write data read from the write data buffer 221 is represented by a specific data pattern, flow proceeds to step 706 where a response is sent to the transaction manager. If at step 704 the write data is not the specific data, flow proceeds to step 705 where the outstanding command buffer (OCB) table is updated. At step 707, the opcode is added to the appropriate command queue (CQ) 220 and the process ends at step 708. If at step 709 a response is received from the WDE 205, flow proceeds to step 710 where the outstanding command buffer (OCB) table is updated. At step 711, the updated state is transmitted to the Transaction Manager (TM) 203 and the process ends at step 708.

[0044] Each WDE 205 receives commands (operands) from a corresponding CQ 220 of the WEDM 204. The WDEs 205 are configured to perform deduplication determinations and other related calculations. The WDEs 205 may operate in parallel to improve the overall throughput of the system partition 200. Each WDE 205 coordinates with the MRM 207 of each memory region to interleave memory accesses.

[0045] 8 is a flow chart of an exemplary control process provided by a WDE according to one embodiment of the present invention. In step 801, the WDE 205 is in an idle loop waiting to receive a command (opcode) from the WDEM 204. In step 802, it is determined whether the command is to compare the signature of the user data with the signatures of other users' data in the hash bucket or to decrement a reference counter (RC). If the command (i.e., opcode) is to decrement the reference counter, flow proceeds to step 803 where the reference counter for the user data is decremented. Flow then proceeds to step 804 where the status of the request is returned to the WDEM 204 and then returns to step 801.

[0046] If the request received from the WDEM 204 in step 802 is to write user data (i.e., a physical line), the flow proceeds to step 805 where the signature of the user data is compared to the signatures of other user data and user data already stored in the hash table. If there is a match in step 806, the flow proceeds to step 807 where the reference counter of the user data is incremented. The flow then proceeds to step 804 where the status of the request is reported back to the WDEM 204. If there is no match in step 806, the flow proceeds to step 808 where the HTRC manager is called to store the user data in the hash table with the reference counter being "1" if the previous user data is not found, or the OVM manager is called to store the user data in the overflow area if the hash bucket is full or a hash collision occurs. The flow then proceeds to step 804 where the status of the request is reported to the WDEM 204.

[0047] The MRM 207 manages memory access to the MR 209 for the WDE 205. 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 and data information for the HTRC MGR 222 (HR R / W), OVM MGR 223 (OVM R / W), and SIG MGR 224 (SIG R / W) from each of the WDEs 205.

[0048] 9A illustrates an example of a physical line (PL) 900 including a reconstructed field 901 with an embedded reference counter (RC) according to an embodiment of the present invention. In this embodiment, the reconstructed field 901 includes an embedded RC having a relatively small size because the number of times user data is copied in the virtual memory space is small. For this system situation, the embedded RC is configured as a base RC having a size of (r-1) bits.

[0049] In other embodiments where the number of times the user data is replicated in the host system's virtual memory space exceeds the size of the built-in RC in the restore field of PL 900, the restore field contains an index to an extended RC table entry. In another embodiment, an indicator flag, such as a selected bit of the PL, is used to indicate whether the number of times the user data is replicated in the virtual memory space exceeds the size of the built-in RC.

[0050] 9B is a diagram illustrating an example of a PL 910 including an indicator flag 911 according to one embodiment of the present invention. As shown in FIG. 9B, the indicator flag 911 is set to indicate that the number of copies of the user data is less than or equal to the size of the built-in RC in the restoration field 912. Thus, the content of the restoration field 912 indicates the number of copies of the user data in the virtual memory space of the host system 101.

[0051] 9C illustrates a situation where indicator flag 911 is set to indicate that the number of times the user data is replicated exceeds the size of the built-in RC in the restoration field 912, when the contents of the restoration field include an index to an extended RC table 913 that contains an extended count of replicated user data. Alternatively, the restoration field 912 may include an index or pointer to a specific data pattern table 914 that contains, for example, frequently replicated data. In one embodiment, the translation table may include a PLID that is an index or pointer to a specific data pattern table 914 for frequently replicated user data, as shown in FIG. 8, to reduce the latency associated with the user data. That is, by placing a pointer or index into the translation table, user data that is frequently replicated in the virtual memory space may be automatically detected when the translation table is accessed.

[0052] Each of the MRs 209 includes a metadata memory area and multiple data memory areas. If the system partition 200 is configured as a deduplication memory, the metadata area includes a translation table stored in the TT MEM 211. The data memory areas of the MRs 209 include a hash table / reference counter (HTRC) memory (HTRC MEM), a signature memory (SG MEM), and an overflow memory (OV MEM).

[0053] Writes from other virtual addresses to the same physical memory area in the MR 209 are managed by the MRM 207. The HTRC manager 222 and the SIG manager 224 perform deduplication functions and calculate memory locations in terms of row (aka bucket) and column locations in the hash table. Writes from other virtual addresses to the same HTRC bucket may arrive at the HTRC bucket in a different order than the original order from the host. Consistency is managed by the WDEM 204. If write data, for example, write data A and write data B, arrive at the same PLID (A==B), the reference counter is simply incremented. If write data from other virtual addresses is not identical and has the same bucket number but a different column (aka way) number, the write data is stored in the same bucket but differently in another way. If only one entry remains in the bucket, either A or B is stored in the last entry and the other is stored in the overflow area. If write data A and write data B are different but have the same hash bucket and row number, the second write data is stored in the overflow area.

[0054] As will be appreciated by those skilled in the art, the concept of the present invention described in the detailed description can be modified or amended in a wide range of applications, and therefore the technical scope of the present invention is not limited to the specific embodiments described above. [Explanation of symbols]

[0055] 100 System Architecture 101 Host System 102 Host Interface 103 Front-end Scheduler 200, 200A~200K system partition 201 Light Data Path 202 Read Data Path 203 Transaction Manager (TM) 204 Light Data Engine Manager (WDEM) 205 Light Data Engine (WDE) 206 Memory Region Arbiter 207 Memory Region Manager (MRM) 208 Interconnect 209 Memory Region (MR) 210 Translation Table Manager (TT MGR) 211 TT Memory (TT MEM) 212 Lead Data Engine Manager (RDEM) 213 Lead Data Engine (RDE) 214 Write Data Buffer Controller 215 TM Controller (TM CTRL) 216 Transaction Table (TM Table) 217 OBN Table 218 Command (CMD) Dispatcher 219 OVMI Manager 220 Command Queue (CQ) 221 Write Data Buffer 222 Hash Table / Reference Counter Manager (HTRC MGR) 223 Overflow Manager (OVM MGR) 224 Signature Manager (SIG MGR) 400, 500 conversion table 501 Hash Table 502 logical address 503 Format 900, 910 Physical Line (PL) 901, 912 Restoration Field 911 indicator flag 913 Extended RC Table 914 Specific Data Pattern Table

Claims

1. 1. A memory system comprising: a physical memory having a physical memory space; a write data engine manager that receives data write requests from a transaction manager configured to manage a memory space, the write data engine manager including a write command queue, and maintains at least one of data consistency or data integrity for the physical memory space based on a determination of a memory write conflict using the write command queue; a write data engine corresponding to the write command queue and storing data corresponding to the data write request in the physical memory space based on a write command stored in the write command queue.

2. the write data engine stores the data corresponding to the write command in the write command queue in an overflow memory area based on a replication state of the data in a virtual memory space of a host system; 2. The memory system of claim 1, wherein the write data engine further changes a reference counter for the data corresponding to the data write request based on the data being replicated in the virtual memory space.

3. 3. The memory system of claim 2, wherein the physical memory space comprises a first predetermined size and the virtual memory space of the host system comprises a second predetermined size.

4. 4. The memory system of claim 3, wherein the transaction manager receives the data write request and corresponding data from the host system and maintains data consistency or data integrity for the virtual memory space of the host system.

5. 2. The memory system of claim 1, wherein the transaction manager determines a physical address corresponding to a virtual address of the data write request upon receipt of the data write request.

6. 3. The memory system of claim 2, wherein the transaction manager maintains at least one of data consistency after sequential memory writes or data consistency after sequential memory writes for the virtual memory space of the host system.

7. the transaction manager tracks one or more data write requests received from the host system; 3. The memory system of claim 2, wherein the transaction manager further tracks one or more threads of write data requests.

8. The transaction manager assigns a transaction identification number (ID) to the data write request; 3. The memory system of claim 2, wherein the transaction manager transmits one or more write completion messages to the host system in an order corresponding to the transaction IDs of the received data write requests.

9. 1. A memory system comprising: a physical memory having a physical memory space including a plurality of memory regions; a write data engine manager that receives data write requests from a transaction manager configured to manage a memory space, the write data engine manager including a write command queue, and maintains at least one of data consistency or data integrity for the physical memory space based on a determination of a memory write conflict using the write command queue; a write data engine corresponding to the write command queue and storing data corresponding to the data write request in an overflow area based on a replication state of the data in a virtual memory space of a host system in response to a write command stored in the write command queue.

10. a memory region manager corresponding to each memory region of the physical memory, the memory region manager including a storage space for a reference counter for data stored in each memory region, and the memory region manager controlling write data engine access to each corresponding memory region; 10. The memory system of claim 9, wherein the write data engine changes a reference counter for the data based on the data corresponding to the data write request that is copied in the virtual memory space.

11. a memory region manager corresponding to each memory region of the physical memory, the memory region manager including a storage space for a reference counter for data stored in each memory region, and the memory region manager controlling write data engine access to each corresponding memory region; 10. The memory system of claim 9, wherein the physical memory space comprises a first predetermined size and the virtual memory space of the host system comprises a second predetermined size.

12. The transaction manager: receiving the data write request and corresponding data from the host system and maintaining at least one of data consistency or data integrity for the virtual memory space of the host system; 10. The memory system of claim 9, wherein the virtual memory space of the host system is translated into the physical memory space.

13. 10. The memory system of claim 9, wherein the transaction manager maintains at least one of data consistency after sequential memory writes or data consistency after sequential memory writes for the virtual memory space of the host system.

14. 10. The memory system of claim 9, wherein the transaction manager determines, based on the data write request, a physical address corresponding to a virtual address of the data write request.

15. the transaction manager tracks one or more data write requests received from the host system; 10. The memory system of claim 9, wherein the transaction manager assigns one or more transaction identification numbers (IDs) to at least one of the one or more data write requests received from the host system, and transmits one or more write completion messages to the host system in an order corresponding to the one or more transaction IDs of at least one of the one or more data write requests received from the host system.

16. 1. A method of operating a memory system, comprising: receiving a data write request from a transaction manager configured to manage a memory space via a write data engine manager; maintaining at least one of data consistency or data integrity for a physical memory space of a physical memory based on determining memory write conflicts using a write command queue by the write data engine manager; and storing data corresponding to the data write request in the physical memory space based on a write command stored in the write command queue by a write data engine corresponding to the write command queue.

17. 17. The method of claim 16, further comprising: incrementing a reference counter for the data based on the data corresponding to the data write request being replicated in a virtual memory space of a host system based on a write command stored in the write command queue.

18. The physical memory space comprises a first predetermined size and the virtual memory space of the host system comprises a second predetermined size, the method further comprising: receiving, by the transaction manager, the data write request and corresponding data from the host system; maintaining, by said transaction manager, at least one of data consistency or data integrity for said virtual memory space of said host system; 20. The method of claim 17, further comprising: translating, by the transaction manager, the virtual memory space of the host system into the physical memory space.

19. 17. The method of claim 16, further comprising controlling, by a memory region manager associated with a corresponding memory region of the physical memory, one or more accesses by the write data engine to the memory region corresponding to the memory region manager.

20. 17. The method of claim 16, further comprising tracking, by the transaction manager, one or more threads of one or more write requests.

Citation Information

Patent Citations

  • Main storage sharing type multiprocessor system

    JP2000348000A

  • Transaction-based memory systems and memory modules, and methods of operating master controller and slave controller

    JP2017045452A

  • Arithmetic processing unit, control device, information processing device and method for controlling information processing device

    JP2017146786A

  • Data collection and storage method and duplication removal module

    JP2017208096A

  • System and method for maximized dedupable memory

    JP2018120594A