Data storage apparatus

The data storage apparatus intercepts swap writes and directs them to cache memory only, enhancing performance and reducing costs by avoiding slow secondary memory writes, thus addressing the inefficiencies in write requests in reduced DRAM environments.

WO2024175205A1PCT designated stage expired Publication Date: 2024-08-29HUAWEI TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2023/054706
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Current data storage systems face significant performance degradation due to high access latencies in write requests, especially in reduced DRAM environments, where memory swapping is inefficient and costly, as existing cache tiering technologies do not improve write request performance.

Method used

A data storage apparatus and method that identifies write requests intended for swapping memory locations and writes data to a cache memory only, avoiding slow writes to secondary memory, thereby reducing latency and enabling DRAM size reduction without impacting application performance.

Benefits of technology

This approach drastically improves response times for swap writes, allowing for reduced DRAM usage and cost savings while maintaining data persistence, by intercepting swap writes and using a cache memory for faster data storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2023054706_29082024_PF_FP_ABST
    Figure EP2023054706_29082024_PF_FP_ABST
Patent Text Reader

Abstract

A data storage apparatus comprises a cache memory (102), a secondary memory (104), the secondary memory comprising at least one memory location associated with swapping (106), and a processor (108) arranged to identify the at least one memory location of the secondary memory associated with swapping, in response to receiving a write request to write data, determine whether the write request is a request to write data to the at least one memory location of the secondary memory associated with swapping, and in response to determining that the write request is the request to write data to the at least one memory location of the secondary memory associated with swapping, write the data to the cache memory only.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] DATA STORAGE APPARATUS

[0002] Technical field

[0003] The present disclosure relates, in general, to data storage applications and to performance improvements without increasing cost of data storage applications. Aspects of the disclosure relate to accelerating SWAP writes.

[0004] Background

[0005] The surge in memory needs for data centre applications, combined with increasing dynamic random-access memory (DRAM) costs and technology scaling challenges, has led to memory becoming a significant infrastructure expense. Typically, in data centres, the module(s) responsible for data storage is connected to a computing (processing) module(s) over a network, which leads to significant access latencies. System DRAM is used to improve system performance by serving as a cache for the data storage.

[0006] To address this issue, non-DRAM memory technologies may be employed in order to build tiered memory subsystems and adding higher memory capacity at a lower cost. In particular, a cheaper, slower device (such as a solid-state drive, SSD) can be added to the system and used for caching to reduce access to slower modules responsible for data storage (such as a networked storage or a hard disk drive, HDD). However, these technologies have much higher latencies compared to DRAM and can significantly degrade performance when data is inefficiently placed at different levels of the memory hierarchy. By default, such cache devices can speed up reads, but will not affect the performance of write requests as data must be written to the slower modules either way.

[0007] Another way to reduce the DRAM size and thus save on costs is to utilise memory swapping. Memory swapping (or memory paging) is a memory management scheme by which a computer stores and retrieves data from secondary storage (e.g. a hard disk drive) for use in main memory (e.g. RAM). Applications use memory for their code and data. When the operating system cannot allocate memory for an application, the system swaps-out some memory into a swap device (secondary storage). In case DRAM was used for application memory, the OS needs to perform swapping in order to compensate for DRAM reduction. Swapping produces write requests mostly. As cache tiering does not improve the performance of write requests, it cannot effectively accelerate swapping.

[0008] Summary

[0009] An objective of the present disclosure is to speed up performance without increasing cost of data storage applications.

[0010] The foregoing and other objectives are achieved by the features of the independent claims.

[0011] Further implementation forms are apparent from the dependent claims, the description and the Figures.

[0012] A first aspect of the present disclosure provides a data storage apparatus comprising a cache memory, a secondary memory, the secondary memory comprising at least one memory location associated with swapping, and a processor arranged to identify the at least one memory location of the secondary memory associated with swapping, in response to receiving a write request to write data, determine whether the write request is a request to write data to the at least one memory location of the secondary memory associated with swapping, and in response to determining that the write request is the request to write data to the at least one memory location of the secondary memory associated with swapping, write the data to the cache memory only.

[0013] Accordingly, the response time of swap writes can be drastically improved, since a slow write to the secondary memory is not triggered. This results in a higher performance in reduced- DRAM environments. The data storage apparatus enables swapping to be utilised without negatively impacting the application, allowing to reduce the DRAM size in the data storage apparatus and therefore save on costs.

[0014] In an implementation of the first aspect, the processor may be arranged to, in response to determining that the write request is not the request to write data to the at least one memory location of the secondary memory associated with swapping, write the data to the cache memory and to the secondary memory. As such, the persistence requirement of data can be met, while still speeding up the performance of swapping. The at least one memory location of the secondary memory associated with swapping may comprise a swap partition. Thus, an existing data drive can be used for swapping, without requiring additional hardware.

[0015] The processor may be further arranged to read a storage partition table to identify the swap partition and its address, thereby identifying the at least one memory location of the secondary memory associated with swapping. Thus, the swap partition can be identified with ease, using readily available methods.

[0016] The apparatus may further comprise an additional cache memory to form a cache tier with the cache memory. Thus, a DRAM size reduction can be achieved, saving costs, without negatively affecting application performance.

[0017] The processor may be further arranged to create and maintain a list of memory blocks that are part of the identified swap partition. This enables the apparatus to accurately and efficiently determine whether the write request relates to swapping.

[0018] A second aspect of the present disclosure provides a method comprising identifying, by a data storage apparatus comprising a cache memory, at least one memory location of a secondary memory associated with swapping, in response to receiving a write request by the data storage apparatus, determining whether the write request is a request to write data to the at least one memory location of the secondary memory associated with swapping, and, in response to determining that the write request is the request to write data to the at least one memory location of the secondary memory associated with swapping, writing the data to the cache memory only.

[0019] Accordingly, the response time of swap writes can be drastically improved, since a slow write to the secondary memory is not triggered. This results in a higher performance in reduced- DRAM environments. The method enables swapping to be utilised without negatively impacting the application, allowing to reduce the DRAM size in the data storage apparatus and therefore save on costs.

[0020] In an implementation of the second aspect, the method may further comprise the steps of, in response to determining that the write request is not the request to write data to the at least one memory location of the secondary memory associated with swapping, writing the data to the cache memory and to the secondary memory of the data storage apparatus. As such, the persistence requirement of data can be met, while still speeding up the performance of swapping.

[0021] The at least one memory location of the secondary memory associated with swapping may comprise a swap partition. Thus, an existing data drive can be used for swapping, without requiring additional hardware.

[0022] Identifying the at least one memory location of the secondary memory associated with swapping may comprise reading, by the data storage apparatus, a storage partition table to thereby identify the swap partition and its address. Thus, the swap partition can be identified with ease, using readily available methods.

[0023] The method may further comprise the steps of creating and maintaining a list of memory blocks that are part of the identified swap partition. This enables accurate and efficient determination of whether the write request relates to swapping.

[0024] Determining whether the write request is a request to write data to the at least one memory location of the secondary memory associated with swapping may comprise comparing the address associated with the write request to the list of memory blocks that are part of the identified swap partition. Thus, all swap writes can be intercepted.

[0025] The at least one memory location of the secondary memory associated with swapping may comprise a swap file, wherein identifying the at least one memory location of the secondary memory associated with swapping may comprise checking a file system to thereby identify the swap file and its address. Thus, swap writes can be accelerated even if a swap file is used by the OS instead of a dedicated swap partition.

[0026] A third aspect of the present disclosure provides a computer readable storage medium comprising computer program code, accessible by an apparatus comprising a processor, to provide instructions and / or data to the apparatus, the computer program code configured to, with the processor, cause the apparatus to identify, by a data storage apparatus comprising a cache memory, at least one memory location of a secondary memory associated with swapping, in response to receiving a write request by the data storage apparatus, determine whether the write request is a request to write data to the at least one memory location of the secondary memory associated with swapping, and, in response to determining that the write request is the request to write data to the at least one memory location of the secondary memory associated with swapping, write the data to the cache memory only.

[0027] Accordingly, the response time of swap writes can be drastically improved, since a slow write to the secondary memory is not triggered. This results in a higher performance in reduced- DRAM environments. The data storage apparatus enables swapping to be utilised without negatively impacting the application, allowing to reduce the DRAM size in the data storage apparatus and therefore save on costs.

[0028] In an implementation of the third aspect, the computer program code may be further configured to, with the processor, cause the apparatus to, in response to determining that the write request is not the request to write data to the at least one memory location of the secondary memory associated with swapping, write the data to the cache memory and to the secondary memory. As such, the persistence requirement of data can be met, while still speeding up the performance of swapping.

[0029] These and other aspects of the invention will be apparent from the embodiment s) described below.

[0030] Brief Description of the Drawings

[0031] In order that the present invention may be more readily understood, embodiments of the invention will now be described, by way of example, with reference to the accompanying drawings, in which:

[0032] Fig. 1 is a schematic representation of a data storage apparatus according to an example;

[0033] Fig. 2 is a schematic representation of a secondary memory according to an example; and

[0034] Fig. 3 is a flow chart of a method according to an example.

[0035] Detailed Description

[0036] Example embodiments are described below in sufficient detail to enable those of ordinary skill in the art to embody and implement the systems and processes herein described. It is important to understand that embodiments can be provided in many alternate forms and should not be construed as limited to the examples set forth herein. Accordingly, while embodiments can be modified in various ways and take on various alternative forms, specific embodiments thereof are shown in the drawings and described in detail below as examples. There is no intent to limit to the particular forms disclosed. On the contrary, all modifications, equivalents, and alternatives falling within the scope of the appended claims should be included. Elements of the example embodiments are consistently denoted by the same reference numerals throughout the drawings and detailed description where appropriate.

[0037] The terminology used herein to describe embodiments is not intended to limit the scope. The articles “a,” “an,” and “the” are singular in that they have a single referent, however the use of the singular form in the present document should not preclude the presence of more than one referent. In other words, elements referred to in the singular can number one or more, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises,” “comprising,” “includes,” and / or “including,” when used herein, specify the presence of stated features, items, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, items, steps, operations, elements, components, and / or groups thereof.

[0038] Unless otherwise defined, all terms (including technical and scientific terms) used herein are to be interpreted as is customary in the art. It will be further understood that terms in common usage should also be interpreted as is customary in the relevant art and not in an idealized or overly formal sense unless expressly so defined herein.

[0039] Caching is a technique of storing a copy of data temporarily in rapidly accessible storage memory. A cache acts as a buffer between the random-access memory and the central processing unit, thus increasing the speed at which data is available to the processor. When a user issues a write request to a disk and receives an acknowledgement that the write succeeded, it is expected the data will be there even in case of a crash (such as a power interruption). This requirement is called persistency. A data storage system maintains persistency by backing up the data, sometimes across different sites. Since the data in the cache is not backed up, writing to cache does not protect the data against crashes.

[0040] Two different modes may be used when writing to cache. These modes are Write Through and WriteBack. Using the WriteThrough policy, data is written to the cache and to the backing storage location at the same time. After both devices have been written to, the user receives an acknowledgement, confirming the I / O completion. This mode helps data recovery in case of a power outage or a system failure and ensures consistency of data, since the memory always has the current copy of data. However, it is also associated with latency, as two locations (memory and cache) need to be written to each time.

[0041] In WriteBack mode, the data is written to the cache device only, marking it to be flushed to the remote disk at a later stage. The data is updated in the memory only when the cache line is ready to be replaced. Each block in the cache needs to indicate if the data present in the cache was modified (dirty) or not modified (clean). If the data is clean, it is not needed to write the data into the memory. This reduces the number of write operations to a memory. However, such a mode breaks the persistency requirement. While the latency is lower, there is a risk that data could be lost before it is written to the remote disk.

[0042] Swapping is a process of swapping a process temporarily to a secondary memory from the main memory. When the operating system cannot allocate memory for an application (due to the fact that the amount of RAM available is limited), the operating system swaps out some memory into swap memory. Swap memory is the dedicated amount of hard drive that is used whenever RAM runs out of memory. There are two types of swap memory - swap partitions and swap files. A swap partition is a hard drive partition that is dedicated to swapping. A swap file is a file for swapping inactive contents of RAM into. Swap I / Os are constructed of at least as many write requests as there are read requests, since every read from swap memory is preceded by writing to the same block.

[0043] In data centre architecture, the modules responsible for data storage (for example, hard drives or such) are connected to a computing (processing) module) over a network, which leads to significant access latencies. To support a DRAM reduction (therefore reducing costs), the operating system needs to perform swapping in order to support execution of applications which require a lot of memory. Tiered cache may also be used to compensate for the DRAM size reduction. As previously discussed, tiered cache accelerates read operations, but does not accelerate write operations. Since swapping produces mostly write requests, tiered cache cannot be used to accelerate swapping.

[0044] According to an example, there is provided a mechanism to improve the response time of swap writes. More specifically, aspects relate to utilising swap without drastically impacting the performance of applications. The mechanism provided advantageously allows to save hardware costs for data centre applications.

[0045] Fig. 1 is a schematic representation of a data storage apparatus according to an example. The data storage apparatus 100 comprises a cache memory 102 for caching storage data and a secondary memory 104, the secondary memory comprising at least one memory location 106 associated with swapping. The data storage apparatus 100 also comprises a processor 108.

[0046] The cache memory 102 can be implemented either by dedicating a section of a memory for cached data, or by having a separate cache memory device connected with the memory and the processor 108. Further, multiple levels of cache memories can be maintained in the storage apparatus 100. For example, a first-level cache can be utilized by the processor 108 to speed up the access of storage data, and a second-level cache can be implemented to support the operation of first-level cache.

[0047] The secondary memory 104 may comprise, for example, a hard disk storage device, a solid- state disk (SSD) storage device, or any other suitable non-volatile storage device. As mentioned above, the secondary memory 104 comprises at least one memory location 106 associated with swapping.

[0048] Fig. 2 is a schematic representation of the secondary memory 104 according to an example. As shown in Fig. 2, the secondary memory comprises at least one memory location 206 (analogous to the at least one memory location 106) associated with swapping. Such memory location 206 may be, for example, a non-volatile storage device separate from a data drive, a partition of a non-volatile storage device, or a memory location used for storing a swap file. The secondary memory may further comprise at least one memory location 210-n not associated with swapping, i.e. a memory location which is not associated with storing data related to substituting disk space for RAM.

[0049] The processor 108 is arranged to identify the at least one memory location 106 of the secondary memory 104 associated with swapping. In particular, the processor 108 is arranged to determine the at least one memory location 106 associated with swapping and its address in the secondary memory 104. As described in more detail below, this enables the swap write operations to be intercepted so that they do not trigger a slow write to the secondary memory 104. As mentioned above, the at least one memory location 106 of the secondary memory 104 associated with swapping may comprise a swap partition. In such case, the processor 108 may be further arranged to read a storage partition table to identify the swap partition and its address in the secondary memory 104, thereby identifying the at least one memory location 106 associated with swapping. The layout of a storage partition table as well as the information comprised therein are known to the skilled person and thus a description thereof will be omitted. The processor 108 may identify the swap partition and its address by reading a partition type field of the storage partition table.

[0050] The processor 108 may be further arranged to create and maintain a list of memory blocks that are part of the identified swap partition (or the separate swap drive) in order to identify the address(es) of the at least memory location associated with swapping.

[0051] In case the operating system uses a swap file instead of a swap partition, the processor 108 may be arranged to analyse the contents of a file system (fs) to identify its structure and files, in order to determine which memory block(s) the swap file is located in. In such case, the at least one memory location 106 associated with swapping may comprise the memory location (i.e. which of the memory blocks) in which the swap file is stored.

[0052] In response to receiving a write request to write data to the secondary memory 104, the processor 108 is arranged to determine whether the write request is a request to write data to the at least one memory location 106 associated with swapping. The processor 108 may determine an address of a memory block which the write request relates to. In response to receiving a write request to write data to the secondary memory 108, the processor 108 may check whether the address of the memory block associated with the write request is an address of the memory location 106 associated with swapping. The processor 108 may compare the address of the memory block to be written to with the list of memory blocks associated with swapping to determine whether the write request is a request to write data to the at least one memory location 106 associated with swapping. The processor 108 may therefore determine that the request relates to a swap write.

[0053] In such manner, all writes to the at least one memory location 106 of the secondary memory 104 associated with swapping can be intercepted, as each write operation of the data storage apparatus 100 is checked against a list (or similar) of identified memory locations in which swap files are stored. In response to determining that the write request indeed is the request to write data to the at least one memory location 106 of the secondary memory 104 associated with swapping, the processor 108 is arranged to write the data to the cache memory 102 only. That is, data is not written to the at least one memory location 106 of the secondary memory 104 associated with swapping. In other words, in response to determining that the write request is the request to write swap data, WriteBack policy is applied. As writing to cache memory 102 is faster than writing to the secondary memory 104, this accelerates the swap writes by reducing latency.

[0054] In contrast, in response to determining that the write request is not the request to write data to the at least one memory location 106 of the secondary memory 104 associated with swapping, the processor 108 may be further arranged to write the data both to the cache memory 102 and to the secondary memory 104, e.g. to at least one of the memory locations 210-n shown in Fig. 2, which the write request relates to. In other words, WriteThrough policy is applied. Such approach speeds up the performance of the data storage apparatus in the swap scenario without negatively impacting the system state, i.e. by ensuring that the persistency requirement of data is met.

[0055] The data storage apparatus 100 may further comprise an additional cache memory, in addition to the cache memory 102. The additional cache memory and the cache memory 102 may form a cache tier to compensate for a DRAM reduction in the apparatus.

[0056] Fig. 3 is a flow chart of a method according to an example. In block 301, the method comprises identifying, by a storage apparatus comprising a cache memory, at least one memory location of a secondary memory associated with swapping. The method may comprise determining the at least one memory location associated with swapping and its address in the secondary memory. This will enable the swap write operations to be intercepted so that they do not trigger a slow write to the secondary memory.

[0057] The at least one memory location of the secondary memory associated with swapping may comprise a swap partition. In such case, the method may further comprise the step of reading a storage partition table to identify the swap partition and its address in the secondary memory, thereby identifying the at least one memory location associated with swapping. In particular, the swap partition and its address may be identified by reading a partition type field of the storage partition table. The method may further comprise the step of creating and maintaining a list of memory blocks that are part of the identified swap partition (or the separate swap drive) in order to identify the address(es) of the at least memory location associated with swapping. In case the operating system uses a swap file instead of a swap partition, the method may further comprise the step of analysing the contents of a file system (fs) to analyse its structure and files to thereby determine which memory block(s) the swap file is located in.

[0058] In block 302, the method comprises, in response to receiving a write request by the data storage apparatus, determining whether the write request is a request to write data to the at least one memory location of the secondary memory associated with swapping. This may involve determining an address of a memory block to which the write request relates. In response to receiving a write request to write data to the secondary memory, the method may involve checking whether the address of the memory block associated with the write request is an address of the memory location associated with swapping, for example by comparing the address of the memory block to be written to with the list of memory blocks associated with swapping to determine whether the write request is a request to write data to the at least one memory location associated with swapping. In other words, in response to receiving a write request by the data storage apparatus, the method may comprise the step of determining whether the request relates to a swap write.

[0059] This allows for all swap writes to be intercepted, as each write operation is checked against a list (or similar) of identified memory locations in which swap files are stored.

[0060] In block 303, the method comprises, in response to determining that the write request is the request to write data to the at least one memory location of the secondary memory associated with swapping, writing the data to the cache memory only. In other words, WriteBack policy is applied. As writing to cache memory is faster than writing to the secondary memory, this accelerates the swap writes by reducing latency.

[0061] Alternatively, in response to determining that the write request is not the request to write data to the at least one memory location of the secondary memory associated with swapping, the method may comprise writing the data to the cache memory and to the secondary memory of the data storage apparatus.

[0062] According to an example, machine-readable instructions can be loaded onto a computer or other programmable data processing devices, so that the computer or other programmable data processing devices perform a series of operations to produce computer-implemented processing, thus the instructions executed on the computer or other programmable devices provide an operation for realizing functions specified by flow(s) in the flow charts and / or block(s) in the block diagrams.

[0063] Further, the teachings herein may be implemented in the form of a computer or software product, such as a non-transitory machine-readable storage medium, the computer software or product being stored in a storage medium and comprising a plurality of instructions, e.g., machine readable instructions, for making a computer device implement the methods recited in the examples of the present disclosure.

[0064] In some examples, some methods can be performed in a cloud-computing or network-based environment. Cloud-computing environments may provide various services and applications via the Internet. These cloud-based services (e.g., software as a service, platform as a service, infrastructure as a service, etc.) may be accessible through a web browser or other remote interface of the user equipment for example. Various functions described herein may be provided through a remote desktop environment or any other cloud-based computing environment.

[0065] While various embodiments have been described and / or illustrated herein in the context of fully functional computing systems, one or more of these exemplary embodiments may be distributed as a program product in a variety of forms, regardless of the particular type of computer- readable-storage media used to actually carry out the distribution. The embodiments disclosed herein may also be implemented using software modules that perform certain tasks. These software modules may include script, batch, or other executable files that may be stored on a computer-readable storage medium or in a computing system. In some embodiments, these software modules may conFig. a computing system to perform one or more of the exemplary embodiments disclosed herein. In addition, one or more of the modules described herein may transform data, physical devices, and / or representations of physical devices from one form to another.

[0066] The preceding description has been provided to enable others skilled in the art to best utilize various aspects of the exemplary embodiments disclosed herein. This exemplary description is not intended to be exhaustive or to be limited to any precise form disclosed. Many modifications and variations are possible without departing from the spirit and scope of the instant disclosure. The embodiments disclosed herein should be considered in all respects illustrative and not restrictive. Reference should be made to the appended claims and their equivalents in determining the scope of the instant disclosure.

Claims

Claims1. A data storage apparatus comprising: a cache memory; a secondary memory, the secondary memory comprising at least one memory location associated with swapping; and a processor arranged to: identify the at least one memory location of the secondary memory associated with swapping; in response to receiving a write request to write data, determine whether the write request is a request to write data to the at least one memory location of the secondary memory associated with swapping; and in response to determining that the write request is the request to write data to the at least one memory location of the secondary memory associated with swapping, write the data to the cache memory only.

2. The data storage apparatus of claim 1, wherein the processor is arranged to: in response to determining that the write request is not the request to write data to the at least one memory location of the secondary memory associated with swapping, write the data to the cache memory and to the secondary memory.

3. The apparatus of claim 1 or 2, wherein the at least one memory location of the secondary memory associated with swapping comprises a swap partition.

4. The apparatus of claim 3, wherein the processor is arranged to: read a storage partition table to identify the swap partition and its address, thereby identifying the at least one memory location of the secondary memory associated with swapping.

5. The apparatus of any preceding claim, further comprising an additional cache memory to form a cache tier with the cache memory.

6. The apparatus of any preceding claim, wherein processor is arranged to: create and maintain a list of memory blocks that are part of the identified swap partition.

7. A method comprising: identifying, by a data storage apparatus comprising a cache memory, at least one memory location of a secondary memory associated with swapping; in response to receiving a write request by the data storage apparatus, determining whether the write request is a request to write data to the at least one memory location of the secondary memory associated with swapping; and in response to determining that the write request is the request to write data to the at least one memory location of the secondary memory associated with swapping, writing the data to the cache memory only.

8. The method of claim 7, further comprising the steps of: in response to determining that the write request is not the request to write data to the at least one memory location of the secondary memory associated with swapping, writing the data to the cache memory and to the secondary memory of the data storage apparatus.

9. The method of claim 7 or 8, wherein the at least one memory location of the secondary memory associated with swapping comprises a swap partition.

10. The method of claim 9, wherein identifying the at least one memory location of the secondary memory associated with swapping comprises reading, by the data storage apparatus, a storage partition table to thereby identify the swap partition and its address.

11. The method of claim 10, further comprising the steps of creating and maintaining a list of memory blocks that are part of the identified swap partition.

12. The method of claim 11, wherein determining whether the write request is a request to write data to the at least one memory location of the secondary memory associated with swapping comprises comparing the address associated with the write request to the list of memory blocks that are part of the identified swap partition.

13. The method of claim 7 or 8, wherein the at least one memory location of the secondary memory associated with swapping comprises a swap file, wherein identifying the at least one memory location of the secondary memory associated with swapping comprises checking a file system to thereby identify the swap file and its address.

14. A computer readable storage medium comprising computer program code, accessible by an apparatus comprising a processor, to provide instructions and / or data to the apparatus, the computer program code configured to, with the processor, cause the apparatus to: identify, by a data storage apparatus comprising a cache memory, at least one memory location of a secondary memory associated with swapping; in response to receiving a write request by the data storage apparatus, determine whether the write request is a request to write data to the at least one memory location of the secondary memory associated with swapping; and in response to determining that the write request is the request to write data to the at least one memory location of the secondary memory associated with swapping, write the data to the cache memory only.

15. The computer readable storage medium of claim 14, wherein the computer program code is further configured to, with the processor, cause the apparatus to:in response to determining that the write request is not the request to write data to the at least one memory location of the secondary memory associated with swapping, write the data to the cache memory and to the secondary memory of the data storage apparatus.

Citation Information

Patent Citations

  • Data migration method and system of hybrid memory and electronic equipment

    CN110795045A

  • Direct hinting for a memory device

    US20160011783A1