System and method for stored page mirroring
By evaluating the data access frequency and selecting a copy path through the automatic mirror daemon, the problem of low data mirroring efficiency between persistent storage devices and system memory in the computing system is solved, achieving more efficient data transfer and lower waiting time.
Patent Information
- Application Number
- CN202410386718.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-07-03
- Filing Date
- 2024-04-01
- Publication Date
- 2024-10-15
AI Technical Summary
The existing technology is difficult to efficiently implement data mirroring between persistent storage devices and system memory in computing systems, especially in devices that support external protocols and memory protocols, resulting in low data transfer efficiency and cache consistency problems.
The automatic mirroring daemon uses the access history table to evaluate the frequency of data access, determines whether to copy data from the central processing unit cache or persistent storage device to system memory, and uses external protocols or memory protocols for data transfer, bypassing the operating system kernel storage stack. Reduce round trip time.
It improves data transfer efficiency, reduces user interference, solves cache consistency issues, and achieves lower waiting time and higher throughput.
Smart Images

Figure CN118779256A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to and the benefit of U.S. Provisional Application No. 63 / 457,357, filed on April 5, 2023, entitled “SYSTEM AND METHOD FOR AUTOMATICPAGE MIRRORING IN DUAL INTERFACE STORAGE SYSTEMS,” the entire contents of which are incorporated herein by reference. Technical Field
[0003] One or more aspects of embodiments according to the present disclosure relate to computing systems, and more particularly, to systems and methods for page mirroring of storage. Background Art
[0004] Some persistent storage devices may support both storage-based protocols (or "external protocols") (accessed by the host through drivers) and memory protocols (accessed by the host through load or store instructions). Such devices may be connected to a host including a central processing unit, system memory, and a central processing unit cache.
[0005] Aspects of the present disclosure are relevant with respect to this general technical environment. Summary of the invention
[0006] According to an embodiment of the present disclosure, a method is provided, comprising: reading first data from a persistent memory device; establishing that the first data is stored in a first cache; and copying the first data from the first cache to a system memory, wherein the persistent memory device supports an external protocol and a memory protocol.
[0007] In some embodiments, the method also includes determining that a page of the persistent memory device containing the first data is a candidate for promotion to a page cache in the system memory.
[0008] In some embodiments, establishing that the first data is stored in the first cache includes determining that a page of the persistent memory device containing the first data includes the accessed data.
[0009] In some embodiments, the method further includes: determining, based on a page table entry corresponding to the first data, that a page of the persistent memory device containing the first data includes the accessed data; and setting a bit in an entry in an access history table, wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0010] In some embodiments, the method also includes: determining, based on metadata of the page of the persistent memory device containing the first data, that a page of the persistent memory device containing the first data includes the accessed data; and setting a bit in an entry in an access history table, wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0011] In some embodiments, the method also includes: determining, by the first process, that a page of the persistent memory device containing the first data includes the accessed data; and setting, by the first process, a bit in an entry in the access history table, wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0012] In some embodiments, the method also includes: determining, by the first process, that a page of the persistent memory device containing the first data includes the accessed data; and setting, by the first process, a bit in an entry in an access history table, wherein establishing that the first data is stored in the first cache includes determining, by the second process, that the bit is set.
[0013] In some embodiments, the method also includes: determining, by the first process, that a page of the persistent memory device containing the first data includes the accessed data; and setting, by the first process, a bit in an entry in an access history table, wherein: establishing that the first data is stored in the first cache includes determining, by the second process, that the bit is set, and copying the first data from the first cache to the system memory includes copying, by the second process, the first data from the first cache to the system memory.
[0014] In some embodiments, the method further includes determining that a page of the persistent memory device containing the second data is a candidate for promotion to a page cache in the system memory; and copying the second data from the persistent memory device to the system memory based on a bit in an access history table entry corresponding to the page.
[0015] In some embodiments, the method also includes: determining that a page of the persistent memory device containing the second data is a candidate for promotion to a page cache in the system memory; and based on a bit in an access history table entry corresponding to the page, copying the second data from the persistent memory device to the system memory using an external protocol.
[0016] According to an embodiment of the present disclosure, a system is provided, comprising: a processing circuit; and a memory, which is operably connected to the processing circuit and stores instructions, which, when executed by the processing circuit, cause the system to execute a method, the method comprising: reading first data from a persistent memory device, the persistent memory device being operably connected to the processing circuit; establishing that the first data is stored in a first cache; and copying the first data from the first cache to a system memory, wherein the persistent memory device supports an external protocol and a memory protocol.
[0017] In some embodiments, the method also includes determining that a page of the persistent memory device containing the first data is a candidate for promotion to a page cache in the system memory.
[0018] In some embodiments, establishing that the first data is stored in the first cache includes determining that a page of the persistent memory device containing the first data includes the accessed data.
[0019] In some embodiments, the method further includes: determining, based on a page table entry corresponding to the first data, that a page of the persistent memory device containing the first data includes the accessed data; and setting a bit in an entry in an access history table, wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0020] In some embodiments, the method also includes: determining, based on metadata of the page of the persistent memory device containing the first data, that a page of the persistent memory device containing the first data includes the accessed data; and setting a bit in an entry in an access history table, wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0021] In some embodiments, the method also includes: determining, by the first process, that a page of the persistent memory device containing the first data includes the accessed data; and setting, by the first process, a bit in an entry in the access history table, wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0022] In some embodiments, the method also includes: determining, by the first process, that a page of the persistent memory device containing the first data includes the accessed data; and setting, by the first process, a bit in an entry in an access history table, wherein establishing that the first data is stored in the first cache includes determining, by the second process, that the bit is set.
[0023] According to an embodiment of the present disclosure, a device is provided, comprising: a processing circuit; a first cache operably coupled to the processing circuit; and a system memory operably coupled to the processing circuit, the device being configured to: read first data from a persistent memory device operably connected to the processing circuit; establish that the first data is stored in the first cache; and copy the first data from the first cache to the system memory, wherein the persistent memory device supports an external protocol and a memory protocol.
[0024] In some embodiments, the device is further configured to determine that a page of the persistent memory device containing the first data is a candidate for promotion to a page cache in the system memory.
[0025] In some embodiments, establishing that the first data is stored in the first cache includes determining that a page of the persistent memory device containing the first data includes the accessed data. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] These and other features and advantages of the present disclosure will be appreciated and understood with reference to the specification and drawings, in which:
[0027] Figure 1 is a block diagram of a computing system according to an embodiment of the present disclosure;
[0028] Figure 2 is a mixed block diagram and operational diagram of a computing system according to an embodiment of the present disclosure;
[0029] Figure 3 is a hardware and process diagram of a device page access checker according to an embodiment of the present disclosure;
[0030] Figure 4A is a memory layout diagram according to an embodiment of the present disclosure;
[0031] Figure 4B is a diagram of an access history table according to an embodiment of the present disclosure;
[0032] Figure 5 is a process and data diagram of an auto-mirroring daemon according to an embodiment of the present disclosure; and
[0033] Figure 6 is a flowchart of a method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] The specific embodiments described below in conjunction with the accompanying drawings are intended as a description of exemplary embodiments of the system and method for storing page images provided in accordance with the present disclosure, and are not intended to represent the only form in which the present disclosure can be constructed or utilized. The description describes the features of the present disclosure in conjunction with the illustrated embodiments. However, it should be understood that the same or equivalent functions and structures can be implemented by different embodiments that are also intended to be included within the scope of the present disclosure. As shown elsewhere herein, the same reference numerals are intended to represent the same elements or features.
[0035] Some devices using cache coherence protocols such as Compute Express Link (CXL) may support both storage-based protocols (or "external protocols") (accessed by the host through a driver) and memory protocols (accessed by the host through load or store instructions). For example, some CXL storage devices may support both CXL.io and CXL.mem. The .mem protocol may have lower read and write latency than the .io protocol. In a CXL device, the .io protocol may submit requests to the device through the operating system (OS) kernel storage stack. The .io protocol may then use direct memory access (DMA) for data transfer and may have better throughput than the .mem protocol. As a result of using direct memory access, the .io protocol may not consume CPU resources. Block input / output (I / O) via .io may transfer data from, for example, a Compute Express Link Solid State Drive (CXLSSD) to a dynamic random access memory (DRAM) page cache. Once all data is loaded into the dynamic random access memory (DRAM), the dynamic random access memory page cache may have lower latency than access using the .mem protocol. To this end, frequently accessed pages may be loaded into a dynamic random access memory page cache.
[0036] Regardless of where the data is stored, all data can be loaded into the central processing unit (CPU) cache (or "host cache") before a user space process can access it. This means that even if the system does not load device memory data into dynamic random access memory, recently accessed data can be in the CPU cache. In this way, when data is to be stored in the page cache in dynamic random access memory, the data can be copied from the CPU cache to the dynamic random access memory instead of copying the data from the persistent memory device to the dynamic random access memory.
[0037] For example, it may be that during a first time interval, a page of memory is not frequently accessed and is therefore not cached in the host's dynamic random access memory page cache. The page may then be accessed by an application using the .mem protocol, causing the data to be copied to the central processing unit cache. Subsequently, during a second time interval following the first time interval, the access frequency of the page may increase, and a frequently accessed page identification process (or "hot page identification" process) may determine that the access frequency has become large enough to justify promoting the page from the persistent memory device to the page cache in the dynamic random access memory (e.g., copying the page to the page cache in the dynamic random access memory). In this case, the frequently accessed page identification process may register the page with the automatic mirroring daemon, which may then arrange to copy the page either (i) from the central processing unit cache (e.g., if the page is present in the central processing unit cache) or (ii) from the persistent memory device to the page cache in the dynamic random access memory.
[0038] The contents of the CPU cache may be managed by hardware (e.g., by a cache replacement algorithm maintained by hardware (a processor), which may be part of the CPU (e.g., constructed on the same semiconductor chip as the CPU)), and its internal state (e.g., the contents of its registers) may not be exposed to software running on the CPU; there may not be a direct way for any instruction executed by the CPU to determine whether a page is in the CPU cache. Therefore, when determining whether to (i) copy a page from the CPU cache (e.g., if the page exists in the CPU cache) or (ii) copy a page from a persistent storage device to a page cache in dynamic random access memory, the auto-mirror daemon may evaluate the likelihood that the page is stored in the CPU cache (rather than determining with certainty whether the page is stored in the CPU cache), as discussed in further detail below.
[0039] If the automatic mirroring daemon determines that the page is unlikely to be stored in the central processing unit cache, it can arrange to copy the page from the persistent memory device to the page cache in the dynamic random access memory using the .io protocol. If the automatic mirroring daemon determines that the page is likely to be stored in the central processing unit cache, it can attempt to copy the page directly from the central processing unit cache to the page cache in the dynamic random access memory. It can do this by executing (e.g., using load and store instructions) on the central processing unit to copy the page from a first memory address to a second memory address, the first memory address being the address of a page accessible in the persistent memory device using the .mem protocol, and the second memory address being the address of the page to be stored in the page cache in the dynamic random access memory. In response to the execution of these instructions, the central processing unit can execute (i) a load instruction to read the data of the page from the memory at the first memory address, and (ii) a store instruction to store the data in the memory at the second memory address. A hardware (processor) maintained cache replacement algorithm may cause a load instruction to fetch data from the CPU cache if the data is present in the CPU cache, and fetch data from a persistent memory device (using the .mem protocol) if the data is not present in the cache. Fetching data from the CPU cache (rather than from a persistent memory device) if the data is present in the CPU cache may allow the kernel memory stack of the operating system to be bypassed, and may also eliminate round trip times to the persistent memory device.
[0040] To evaluate the likelihood that a page is stored in the central processing unit cache, the automatic mirroring daemon may consult or "check" the access history table to obtain a recent access history of the page. If the recent access history meets a high access frequency criterion (e.g., a least recently used (LRU) criterion or a most recently used (MRU) criterion), the automatic mirroring daemon may determine that the page is likely to be in the central processing unit cache (this may be referred to as "establishing" that the page data is stored in the central processing unit cache (which may be referred to as the "first cache")). Otherwise, the automatic mirroring daemon may determine that the page is unlikely to be in the central processing unit cache (this may be referred to as "establishing" that the page data is not stored in the central processing unit cache).
[0041] The access history table may include multiple entries, including one entry for each of a plurality of pages monitored by a process that may be referred to as a device page access checker. Each entry may be a cyclic bitmap (e.g., a circular buffer or a fixed-length queue that is one bit wide). The device page access checker may periodically (e.g., every 100 milliseconds (ms) or every 1 second) check whether each page has been accessed during a time interval since a previous check (each such time interval between consecutive checks may be referred to as a "period"), and if the page has been accessed during the time interval since the previous check, it may set the bit corresponding to the current period; otherwise, it may clear the bit corresponding to the current period. The setting or clearing of the bit corresponding to the current period may overwrite the value to which the bit was previously set for m periods (where m is the length of the cyclic bitmap), so that each entry in the access history table may contain only relatively recent data regarding accesses to the page.
[0042] Figure 1 1 is a system-level block diagram of a computing system in some embodiments. The host 105 includes a central processing unit 110, a central processing unit cache 115, a system memory (which may be a dynamic random access memory 120 (DRAM)), and a persistent memory device 125. In operation, the central processing unit 110 of the host 105 may obtain data and instructions (i) from the central processing unit cache 115, (ii) from the dynamic random access memory 120, or (iii) (using the .mem protocol or the .io protocol) from the persistent memory device 125. The central processing unit 110 of the host 105 may then process the data according to the instructions and store the results (i) in the central processing unit cache 115, (ii) in the dynamic random access memory 120, or (iii) (using the .mem protocol or the .io protocol) in the persistent memory device 125.
[0043] Figure 2is a hybrid block diagram and operation diagram of a computing system. A user (e.g., an application 205 running in user space) can access a persistent memory device 125 (which can be a compute fast link solid state drive (CXLSSD)) using either the .io protocol or the .mem protocol. For example, in the case of a read access via the .mem protocol, the central processing unit can execute a load command, which can load the requested data from the central processing unit cache 115 via the virtual memory interface 210, or if the data does not exist in the central processing unit cache 115, load the requested data from the persistent memory device 125. If the access is via the .io protocol, the central processing unit 110 can make a call to the appropriate driver, which can make a call within the operating system kernel storage stack 215 to access the persistent memory device 125 (e.g., via a non-volatile memory express (NVMe) device driver). The kernel storage stack 215 may include multiple layers, including a virtual file system layer, a file system layer, a block layer, and a CXL SSD device driver (e.g., an NVMe driver) layer. As Figure 2 As shown and described above, in some cases, a device page (eg, a page of data from persistent memory device 125 ) may be copied directly from CPU cache 115 to a page cache in dynamic random access memory 120 .
[0044] refer to Figure 3 In some embodiments, a process (e.g., a first process) referred to as a device page access checker 305 (which may be part of an operating system) may periodically check a page table entry (PTE) 310 and a device page structure 315 (e.g., metadata of a device page) to determine whether the device page has been recently accessed. If the device page includes accessed data, the device page access checker 305 updates a corresponding entry in an access history table 320 (discussed in further detail below).
[0045] The access history table 320 may include multiple entries, each entry for a corresponding multiple device pages. Each entry represents the access history of its corresponding device page. Each entry is a set of bits (e.g., m bits), each bit corresponding to a corresponding time interval (or "cycle") of multiple consecutive recent time intervals (e.g., m recent time intervals) during which the access history table is maintained. A bit that is set (or whose value is set) can indicate that the page was accessed during the interval corresponding to the bit. The device page access checker can run once during each cycle and update the current cycle bit for each device page that has an entry in the access history table.
[0046] A second process, which may be referred to as the automatic mirroring daemon 325, may promote recently accessed device pages to the page cache in the dynamic random access memory, for example, to copy pages from the central processing unit cache 115 or the persistent memory device 125 to the page cache in the dynamic random access memory. A frequently accessed page identification process (or "hot page identification" process) 330 may select promotion candidate pages (pages that are candidates for being copied to the page cache in the dynamic random access memory) using a cache replacement algorithm such as the least recently used (LRU) or the most recently used (MRU). The frequently accessed page identification process 330 may register the selected pages with a promotion candidate list managed by the automatic mirroring daemon 325. If the promotion candidate list (or "hot page list") is not empty, the automatic mirroring daemon 325 may wake up. If the automatic mirroring daemon 325 cannot promote all pages in the list in the current cycle, it may wake up again after a few hundred milliseconds or seconds.
[0047] The automatic mirroring daemon 325 may then arrange to copy each page identified as a promotion candidate by the frequently accessed page identification process 330 (i.e., each page on the promotion candidate list managed by the automatic mirroring daemon 325) to the page cache in the dynamic random access memory either using the .io protocol (if the automatic mirroring daemon 325 determines that the page is not in the central processing unit cache 115) or using the .mem protocol (if the automatic mirroring daemon 325 determines that the page is in the central processing unit cache 115).
[0048] Figure 3Embodiments of can have various advantages. A dual-mode computing fast-link persistent memory device 125 (e.g., a persistent memory device 125 that supports both the .mem protocol and the .io protocol) can reduce the data transfer overhead from the device to the host memory by copying data from the most recently accessed device page from the central processing unit cache 115. The automatic mirroring daemon 325 can determine whether the data remains in the central processing unit cache 115 by checking whether the data has been recently accessed using the access history table 320. If the automatic mirroring daemon 325 determines that the data remains in the central processing unit cache 115, the automatic mirroring daemon 325 can then arrange to copy the data to the page cache in the dynamic random access memory using the .mem protocol. If the page data is in the central processing unit cache 115, this may result in the page data being copied directly from the central processing unit cache 115 to the page cache in the dynamic random access memory. Even if the page data has been evicted from the CPU cache 115, it may still be present in the .mem cache of the persistent memory device 125, and it may be copied from the .mem cache of the persistent memory device 125 to the page cache in the dynamic random access memory. If the automatic mirroring daemon 325 establishes that the data is not retained in the CPU cache 115, the automatic mirroring daemon 325 may then arrange to copy the data to the page cache in the dynamic random access memory using the .io protocol. .io provides higher throughput than the .mem protocol.
[0049] Figure 3 Embodiments may also defer data transfer for pages actively accessed by an application; this may reduce user interference. Figure 3 Embodiments of can also solve the cache coherency problem of recently updated device data. Recently updated data can be retained in the CPU cache 115 as dirty data. In this case, the persistent memory device 125 can have old data, and if the CPU 110 loads the data via the .io protocol, the old data may be loaded into the page cache in the dynamic random access memory. On the other hand, if the automatic mirroring daemon 325 arranges to copy the page data from the CPU cache 115 using the .mem protocol, this problem can be avoided.
[0050] Figure 4A 1 shows a memory map of the dynamic random access memory 120 (or "host memory") of the host 105 and the memory of the persistent memory device 125. The memory of the persistent memory device 125 may include (eg, be composed of) a plurality of pages. Figure 4B, the access history table 320 may include a plurality of entries 410, each of the entries 410 of the access history table 320 corresponding to one of the pages of the persistent memory device 125. In the access history table 320, the number of entries is equal to the number of device pages in the persistent memory device 125. Each entry 410 of the access history table 320 includes a cyclic bitmap 420 to represent the access history of the page.
[0051] The current cycle index indicates the current cycle bit in the cycle bitmap 420. During each cycle, the device page access checker 305 checks the page structure and page table entries of the persistent memory device 125 once to determine for each page whether the page includes accessed data. If the page includes accessed data, the device page access checker 305 sets the bit corresponding to the current cycle index in the entry 410 corresponding to the page in the access history table 320. If the page has not been accessed, the device page access checker 305 clears the bit corresponding to the current cycle index in the entry 410 corresponding to the page in the access history table 320. As used herein, "setting" a bit (or setting the value of a bit) means setting it to a value indicating that an access has occurred (e.g., 1 or 0), and "clearing" a bit means setting it to another value (e.g., 0 or 1). The current cycle index is incremented after all entries 410 corresponding to accessed pages are updated by the device page access checker 305.
[0052] Figure 5The operation of the automatic mirroring daemon 325 is shown. After the frequently accessed page identification process 330 registers the promotion candidate list 505 (e.g., pages of the persistent memory device 125 that are candidates for promotion to the page cache in the dynamic random access memory) with the automatic mirroring daemon 325 at 1, the system may include two linked lists, namely a list to be scanned (or "active list") and a scanned list, so as not to block insertions. When the automatic mirroring daemon 325 starts scanning, it freezes the active list by swapping the two lists (the list to be scanned and the scanned list) at 2. The automatic mirroring daemon 325 then scans the frozen list at 3, while inserting new pages and pages being accessed into the newly activated list. This mechanism prevents blocking insertions of new pages. When the automatic mirroring daemon 325 scans the pages in the promotion candidate list 505 at 3, it determines for each page in the promotion candidate list 505 whether to (i) transfer data from the persistent memory device 125 using the .io protocol, (ii) transfer data using the .mem protocol (from the CPU cache 115 or from the persistent memory device 125), or (iii) keep the page in the promotion list (without copying the page data to the page cache in the dynamic random access memory). If the automatic mirroring daemon 325 has decided to (i) transfer data from the persistent memory device 125 using the .io protocol or (ii) transfer data using the .mem protocol (from the CPU cache 115 or from the persistent memory device 125), the automatic mirroring daemon 325 can then check the access history table 320 at 4 to obtain the access history of the page. If the page has been recently accessed, the automatic mirroring daemon 325 can transfer data using the .mem protocol (from the CPU cache 115 or from the persistent memory device 125). Otherwise, the auto-mirror daemon 325 may transfer data from the persistent storage device 125 using the .io protocol (using direct memory access (DMA).
[0053] Figure 6is a flow chart of a method in some embodiments. The method includes: at 605, reading first data from a memory device; at 610, establishing that the first data is stored in a first cache; and at 615, copying the first data from the first cache to a system memory. The method also includes: at 620, determining that a page of a persistent memory device containing the first data is a candidate to be promoted to a page cache in the system memory. The method also includes: at 625, determining that a page of a persistent memory device containing the first data includes accessed data based on a page table entry corresponding to the first data; and at 630, setting a bit in an entry of an access history table. The method also includes: at 635, determining that a page of a persistent memory device containing second data is a candidate to be promoted to a page cache in the system memory; and at 640, copying the second data from the persistent memory device to the system memory based on a bit in the access history table entry corresponding to the page.
[0054] As used herein, "a portion" of something means "at least some" of the thing, and therefore can mean less than all of the thing or all of the thing. Therefore, "a portion" of a thing includes the whole thing as a special case, that is, an example of a whole thing being a portion of a thing. As used herein, when a second amount is "within Y" of a first amount X, it means that the second amount is at least XY and the second amount is at most X+Y. As used herein, when a second amount is "within Y%" of a first amount, it means that the second amount is at least (1-Y / 100) times the first amount, and the second amount is at most (1+Y / 100) times the first amount. As used herein, the term "or" should be interpreted as "and / or", so that, for example, "A or B" means any one of "A" or "B" or "A and B".
[0055] The background technology provided in the background technology section of this disclosure section is included only to set the context, and the contents of this section are not admitted to be prior art. Any component or any combination of components described (e.g., in any system diagram included herein) can be used to perform one or more operations of any flow chart included herein. In addition, (i) the operations are example operations and may involve various additional steps that are not explicitly covered, and (ii) the temporal order of the operations may be changed.
[0056] Each of the terms "processing circuit" and "components for processing" is used herein to represent any combination of hardware, firmware, and software for processing data or digital signals. Processing circuit hardware may include, for example, an application-specific integrated circuit (ASIC), a general or dedicated central processing unit (CPU), a digital signal processor (DSP), a graphics processing unit (GPU), and a programmable logic device such as a field programmable gate array (FPGA). In a processing circuit, as used herein, each function is performed by hardware configured (i.e., hardwired) to perform the function, or by more general hardware (such as a CPU) configured to execute instructions stored in a non-temporary storage medium. The processing circuit may be manufactured on a single printed circuit board (PCB) or distributed on several interconnected PCBs. The processing circuit may contain other processing circuits; for example, the processing circuit may include two processing circuits interconnected on a PCB: an FPGA and a CPU.
[0057] As used herein, when a method (e.g., an adjustment) or a first quantity (e.g., a first variable) is referred to as being “based on” a second quantity (e.g., a second variable), it means that the second quantity is an input to the method or affects the first quantity, for example, the second quantity may be an input to a function that calculates the first quantity (e.g., the only input or one of several inputs), or the first quantity may be equal to the second quantity, or the first quantity may be the same as the second quantity (e.g., stored at the same one or more locations in memory as the second quantity).
[0058] It should be understood that although the terms "first", "second", "third", etc. may be used herein to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the spirit and scope of the present invention, the first element, component, region, layer or part discussed herein may be referred to as a second element, component, region, layer or part.
[0059] The terms used herein are for the purpose of describing specific embodiments only and are not intended to limit the inventive concept. As used herein, the terms "substantially," "about," and similar terms are used as approximate terms rather than terms of degree, and are intended to take into account the inherent deviations of measured or calculated values that one of ordinary skill in the art will recognize.
[0060] As used herein, the singular forms "one" and "a" are also intended to include plural forms, unless the context clearly states otherwise. It will be further understood that when used in this specification, the terms "include" and / or "comprise" specify the presence of the features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups. As used herein, the term "and / or" includes any and all combinations of one or more associated listed items. Expressions such as "at least one of..." modify the entire element list when following the element list, rather than modifying the individual elements in the list. In addition, when describing the embodiments of the present invention, the use of "can" refers to "one or more embodiments of the present disclosure". In addition, the term "exemplary" is intended to refer to an example or description. As used herein, the terms "use", "being used" and "used" can be considered to be synonymous with the terms "utilize", "being utilized" and "utilized", respectively.
[0061] It should be understood that when an element or layer is referred to as being "on another element or layer," "connected to another element or layer," "coupled to another element or layer," or "adjacent to another element or layer," it may be directly on, connected to, coupled to, or adjacent to another element or layer, or one or more intervening elements or layers may be present. In contrast, when an element or layer is referred to as being "directly on," "directly connected to," "directly coupled to," or "immediately adjacent to" another element or layer, there are no intervening elements or layers.
[0062] Any numerical range described herein is intended to include all sub-ranges of the same numerical precision contained in the range. For example, the range of "1.0 to 10.0" or "between 1.0 and 10.0" is intended to include all sub-ranges between the minimum value 1.0 and the maximum value 10.0 (and including endpoints), that is, having a minimum value equal to or greater than 1.0 and a maximum value equal to or less than 10.0, such as 2.4 to 7.6. Similarly, the range described as "within 35% of 10" is intended to include all sub-ranges between the minimum value 6.5 (i.e., (1-35 / 100) multiplied by 10) and the maximum value 13.5 (i.e., (1+35 / 100) multiplied by 10) (and including endpoints), that is, having a minimum value equal to or greater than 6.5 and a maximum value equal to or less than 13.5, such as 7.4 to 10.6. Any maximum numerical limit described herein is intended to include all lower numerical limits contained therein, and any minimum numerical limit described in this specification is intended to include all higher numerical limits contained therein.
[0063] Some embodiments may include features of the following numbered statements.
[0064] 1. A method comprising:
[0065] reading first data from a persistent memory device;
[0066] establishing that the first data is stored in the first cache; and
[0067] copying the first data from the first cache to the system memory,
[0068] The persistent memory device supports an external protocol and a memory protocol.
[0069] 2. The method of statement 1, further comprising: determining that a page of the persistent memory device containing the first data is a candidate for promotion to a page cache in the system memory.
[0070] 3. The method of statement 1 or statement 2, wherein establishing that the first data is stored in the first cache comprises determining that a page of the persistent memory device containing the first data includes the accessed data.
[0071] 4. A method according to any of the preceding statements, further comprising:
[0072] determining, based on a page table entry corresponding to the first data, that a page of the persistent memory device containing the first data includes the accessed data; and
[0073] Sets a bit in an entry in the access history table,
[0074] Wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0075] 5. A method according to any of the preceding statements, further comprising:
[0076] determining, based on metadata of the page of the persistent memory device containing the first data, that the page of the persistent memory device containing the first data includes the accessed data; and
[0077] Sets a bit in an entry in the access history table,
[0078] Wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0079] 6. A method according to any of the preceding statements, further comprising:
[0080] determining, by the first process, that a page of the persistent memory device containing first data includes the accessed data; and
[0081] A bit is set by the first process in an entry in the access history table,
[0082] Wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0083] 7. A method according to any of the preceding statements, further comprising:
[0084] determining, by the first process, that a page of the persistent memory device containing first data includes the accessed data; and
[0085] A bit is set by the first process in an entry in the access history table,
[0086] Wherein establishing that the first data is stored in the first cache includes determining, by the second process, that the bit is set.
[0087] 8. A method according to any of the preceding statements, further comprising:
[0088] determining, by the first process, that a page of the persistent memory device containing first data includes the accessed data; and
[0089] A bit is set by the first process in an entry in the access history table,
[0090] in:
[0091] Establishing that the first data is stored in the first cache includes determining, by the second process, that the
[0092] is set, and
[0093] Copying the first data from the first cache to the system memory includes copying, by the second process,
[0094] The first data is copied from the first cache to the system memory.
[0095] 9. A method according to any of the preceding statements, further comprising:
[0096] determining that a page of the persistent memory device containing second data is a candidate for promotion to a page cache in the system memory; and
[0097] Based on the bit in the access history table entry corresponding to the page, second data is copied from the persistent memory device to the system memory.
[0098] 10. A method according to any of the preceding statements, further comprising:
[0099] determining that a page of the persistent memory device containing second data is a candidate for promotion to a page cache in the system memory; and
[0100] Based on the bit in the access history table entry corresponding to the page, second data is copied from the persistent memory device to the system memory using the external protocol.
[0101] 11. A system comprising:
[0102] processing circuitry; and
[0103] a memory operatively connected to the processing circuit and storing instructions that, when executed by the processing circuit, cause the system to perform a method comprising:
[0104] reading first data from a persistent memory device operatively connected to the processing circuit;
[0105] establishing that the first data is stored in the first cache; and
[0106] copying the first data from the first cache to the system memory,
[0107] The persistent memory device supports an external protocol and a memory protocol.
[0108] 12. The system of statement 11, wherein the method further comprises determining that a page of the persistent memory device containing the first data is a candidate for promotion to a page cache in the system memory.
[0109] 13. The system of statement 11 or statement 12, wherein establishing that the first data is stored in the first cache comprises determining that a page of the persistent memory device containing the first data includes the accessed data.
[0110] 14. A system according to any one of statements 11 to 13, wherein the method further comprises:
[0111] determining, based on a page table entry corresponding to the first data, that a page of the persistent memory device containing the first data includes the accessed data; and
[0112] Sets a bit in an entry in the access history table,
[0113] Wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0114] 15. A system according to any one of statements 11 to 14, wherein the method further comprises:
[0115] determining, based on metadata of the page of the persistent memory device containing the first data, that the page of the persistent memory device containing the first data includes the accessed data; and
[0116] Sets a bit in an entry in the access history table,
[0117] Wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0118] 16. A system according to any one of statements 11 to 15, wherein the method further comprises:
[0119] determining, by the first process, that a page of the persistent memory device containing first data includes the accessed data; and
[0120] A bit is set by the first process in an entry in the access history table,
[0121] Wherein establishing that the first data is stored in the first cache includes determining that the bit is set.
[0122] 17. A system according to any one of statements 11 to 16, wherein the method further comprises:
[0123] determining, by the first process, that a page of the persistent memory device containing first data includes the accessed data; and
[0124] A bit is set by the first process in an entry in the access history table,
[0125] Wherein establishing that the first data is stored in the first cache includes determining, by the second process, that the bit is set.
[0126] 18. A device comprising:
[0127] Processing circuit;
[0128] a first cache operably coupled to the processing circuitry; and
[0129] a system memory operatively coupled to the processing circuitry,
[0130] The device is configured as:
[0131] reading first data from a persistent memory device operatively connected to the processing circuit;
[0132] establishing that the first data is stored in the first cache; and
[0133] copying the first data from the first cache to the system memory,
[0134] The persistent memory device supports an external protocol and a memory protocol.
[0135] 19. The device of statement 18, wherein the device is further configured to determine that a page of the persistent memory device containing the first data is a candidate for promotion to a page cache in the system memory.
[0136] 20. The apparatus of statement 18 or statement 19, wherein establishing that the first data is stored in the first cache comprises determining that a page of the persistent memory device containing the first data includes the accessed data.
[0137] Although exemplary embodiments of systems and methods for stored page mirroring have been specifically described and illustrated herein, various modifications and variations will be apparent to those skilled in the art. Therefore, it should be understood that systems and methods for stored page mirroring constructed in accordance with the principles of the present disclosure may be embodied in a manner different from that specifically described herein. The present invention is further defined in the appended claims and their equivalents.
Claims
1. A method for storing page images, include: reading first data from a persistent memory device; establishing that first data is stored in a first cache; as well as copying the first data from the first cache to the system memory, The persistent memory device supports an external protocol and a memory protocol.
2. The method according to claim 1, further comprising: include: It is determined that a page of the persistent memory device containing the first data is a candidate for promotion to a page cache in the system memory.
3. The method according to claim 1, in, Establishing that the first data is stored in the first cache includes determining that a page of the persistent memory device containing the first data includes the accessed data.
4. The method according to claim 1, further comprising: include: determining, based on a page table entry corresponding to the first data, that a page of the persistent memory device containing the first data includes the accessed data; as well as Sets a bit in an entry in the access history table, Wherein establishing that the first data is stored in the first cache comprises determining that the bit is set.
5. The method according to claim 1, further comprising: include: determining, based on metadata of the page of the persistent memory device containing the first data, that the page of the persistent memory device containing the first data includes the accessed data; as well as Sets a bit in an entry in the access history table, Wherein establishing that the first data is stored in the first cache comprises determining that the bit is set.
6. The method according to claim 1, further comprising: include: determining, by the first process, that a page of the persistent memory device containing first data includes accessed data; as well as A bit is set by the first process in an entry in the access history table, Wherein establishing that the first data is stored in the first cache comprises determining that the bit is set.
7. The method according to claim 1, further comprising: include: determining, by the first process, that a page of the persistent memory device containing first data includes accessed data; as well as A bit is set by the first process in an entry in the access history table, Wherein establishing that the first data is stored in the first cache comprises determining, by the second process, that the bit is set.
8. The method according to claim 1, further comprising: include: determining, by the first process, that a page of the persistent memory device containing first data includes accessed data; as well as A bit is set by the first process in an entry in the access history table, in: establishing that the first data is stored in the first cache includes determining, by the second process, that the bit is set, and Copying the first data from the first cache to the system memory includes copying, by the second process, the first data from the first cache to the system memory.
9. The method according to claim 1, further comprising: include: determining that a page of the persistent memory device containing second data is a candidate for promotion to a page cache in the system memory; as well as Based on a bit in the access history table entry corresponding to the page, second data is copied from the persistent memory device to the system memory.
10. The method according to claim 1, further comprising: include: determining that a page of the persistent memory device containing second data is a candidate for promotion to a page cache in the system memory; as well as Based on a bit in the access history table entry corresponding to the page, second data is copied from the persistent memory device to the system memory using an external protocol.
11. A system for storing page images, include: Processing circuit; as well as a memory operably connected to the processing circuit and storing instructions that, when executed by the processing circuit, cause the system to perform a method comprising: reading first data from a persistent memory device, the persistent memory device being operatively connected to the processing circuit; establishing that the first data is stored in the first cache; and copying the first data from the first cache to the system memory, The persistent memory device supports an external protocol and a memory protocol.
12. The system according to claim 11, in, The method also includes determining that a page of the persistent memory device containing the first data is a candidate for promotion to a page cache in the system memory.
13. The system according to claim 11, in, Establishing that the first data is stored in the first cache includes determining that a page of the persistent memory device containing the first data includes the accessed data.
14. The system according to claim 11, in, The method further comprises: determining, based on a page table entry corresponding to the first data, that a page of the persistent memory device containing the first data includes the accessed data; and Sets a bit in an entry in the access history table, Wherein establishing that the first data is stored in the first cache comprises determining that the bit is set.
15. The system according to claim 11, in, The method further comprises: determining, based on metadata of the page of the persistent memory device containing the first data, that the page of the persistent memory device containing the first data includes the accessed data; and Sets a bit in an entry in the access history table, Wherein establishing that the first data is stored in the first cache comprises determining that the bit is set.
16. The system according to claim 11, in, The method further comprises: determining, by the first process, that a page of the persistent memory device containing first data includes the accessed data; and A bit is set by the first process in an entry in the access history table, Wherein establishing that the first data is stored in the first cache comprises determining that the bit is set.
17. The system according to claim 11, in, The method further comprises: determining, by the first process, that a page of the persistent memory device containing first data includes the accessed data; and A bit is set by the first process in an entry in the access history table, Wherein establishing that the first data is stored in the first cache comprises determining, by the second process, that the bit is set.
18. A device for storing a page image, include: Processing circuit; a first cache operatively coupled to the processing circuit; as well as a system memory operatively coupled to the processing circuit, The device is configured to: reading first data from a persistent memory device, the persistent memory device being operatively connected to the processing circuit; establishing that first data is stored in a first cache; as well as copying the first data from the first cache to the system memory, The persistent memory device supports an external protocol and a memory protocol.
19. The device according to claim 18, in, The device is also configured to determine that a page of the persistent memory device containing the first data is a candidate for promotion to a page cache in the system memory.
20. The device according to claim 18, in, Establishing that the first data is stored in the first cache includes determining that a page of the persistent memory device containing the first data includes the accessed data.
