A file system acceleration method based on a new type of persistent memory

By utilizing selective downgrade strategies and caching algorithms in the file system, optimizing the use of DRAM and NVM page cache solves the problem of file system balance between speed, capacity and price, and achieves performance improvement and compatibility maintenance.

CN118394674BActive Publication Date: 2024-09-17JILIN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410822904.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-17
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing technology has difficulty balancing speed, capacity, and price among DRAM, NVM, and disks, making it difficult to improve file system performance and maintain compatibility with current systems.

Method used

A file system acceleration method based on a new type of persistent memory is designed. By obtaining the operation type and written data, a selective degradation strategy is used to move data between the DRAM page cache and the volatile NVM extended page cache, and the caching algorithm is optimized. The persistence and byte addressability features of NVM enable efficient storage and reading of data.

Benefits of technology

It achieves an improvement in file system performance, maintains the advantages and compatibility of traditional software stacks, optimizes cache miss paths through NVM, reduces cache misses, reduces the overhead of synchronous writes, and avoids the need for in-depth analysis between DRAM and NVM. unnecessary data movement between

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394674B
    Figure CN118394674B
Patent Text Reader

Abstract

The present invention relates to the technical field of file system performance improvement, and in particular to a file system acceleration method based on a novel persistent memory, comprising: obtaining an operation type and write data; when the operation type is a write operation, writing the write data back to a disk or writing to a page cache according to a selective degradation strategy, wherein the page cache includes a DRAM page cache and a volatile NVM extended page cache; when the operation type is a synchronous write operation, writing the write data to the page cache, and writing the data in the page cache back to the disk through an NVM synchronous absorption area; when the operation type is a read operation, reading the target data from the disk, the volatile NVM extended page cache, or the DRAM page cache according to the target data location. The present invention can efficiently and transparently improve the overall performance of a classic file system while maintaining its reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of file system performance improvement, and in particular to a file system acceleration method based on a novel persistent memory. Background Art

[0002] Non-volatile memory (NVM) is seen as a new layer in memory systems, and is expected to accelerate lower storage devices while providing consistency guarantees. Software that uses NVM can benefit from: lower price and larger capacity compared to DRAM (Dynamic Random Access Memory); faster than SSD; persistent, retaining data after power failure; byte addressing granularity. These benefits bring opportunities and challenges to software design, and the new trend of using NVM is to accelerate existing device file systems.

[0003] Previous research has attempted to find an appropriate place for NVM in current memory systems. However, balancing factors such as speed, capacity, and price between DRAM, NVM, and disks while maintaining compatibility with current systems as much as possible can be a tricky problem, and previous work has only focused on one or a few of these factors. Summary of the invention

[0004] The purpose of the present invention is to provide a file system acceleration method based on a new type of persistent memory, which fully utilizes the large capacity and low price of persistent memory, expands the cache space of the file system and designs an adaptive cache algorithm, and utilizes its persistence and byte-addressable characteristics to propose a file system acceleration method based on a new type of persistent memory.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A file system acceleration method based on a novel persistent memory, comprising:

[0007] Get the operation type and write data;

[0008] When the operation type is a write operation, the write data is written back to the disk or written to a page cache according to a selective degradation strategy, wherein the page cache includes a DRAM page cache and a volatile NVM extended page cache;

[0009] When the operation type is a synchronous write operation, the write data is written into a page cache, and the data in the page cache is written back to the disk through the NVM synchronous absorption area;

[0010] When the operation type is a read operation, the target data is read from the disk, the volatile NVM extended page cache, or the DRAM page cache according to the target data location.

[0011] Optionally, when the operation type is a write operation, writing the written data back to the disk or writing it to the page cache according to the selective degradation strategy includes:

[0012] When the data page is not in the page cache, writing the write data into the DRAM page cache;

[0013] When the DRAM page cache is full, the page data in the DRAM page cache is written back to the disk or written to the volatile NVM extended page cache according to the selective demotion strategy;

[0014] When the data page is in the page cache, the write data is written into the DRAM page cache or the volatile NVM extended page cache according to the location of the data page.

[0015] Optionally, according to the selective demotion strategy, writing the page data in the DRAM page cache back to the disk or writing it to the volatile NVM extended page cache includes:

[0016] Predicting the access distance of a page in the DRAM page cache by using a counter in a global event, and determining the type of the page in the DRAM page cache based on the access distance, wherein the type includes a page that is no longer accessed and a page that is accessed again;

[0017] Writing the no-longer-accessed page back to the disk, and writing the again-accessed page to the volatile NVM extended page cache, wherein the page written to the volatile NVM extended page cache is used as a cold page;

[0018] When the cold pages in the volatile NVM extended page cache are full, after writing the cold page with the lowest heat back to the disk, the page to be accessed again is written to the volatile NVM extended page cache.

[0019] Optionally, writing the write data into the DRAM page cache or the volatile NVM extended page cache according to the location of the data page includes:

[0020] If the data page is in the DRAM page cache, writing the write data into the DRAM page cache;

[0021] If the data page is in the volatile NVM extended page cache, it is determined whether the number of times the cold page in the volatile NVM extended page cache is used reaches a preset threshold. If so, the cold page is determined to be a hot page and placed in the DRAM page cache. If not, the write data is written into the volatile NVM extended page cache.

[0022] Optionally, determining the cold page as a hot page and putting the cold page into the DRAM page cache includes:

[0023] Adding an access counter to the cold page to obtain the number of accesses to the cold page;

[0024] The cold page whose access times reach a promotion level is put into a promotion vector as the hot page, and when the promotion vector is full, the cold page in the promotion vector is promoted to the DRAM page cache, wherein the promotion level is updated according to the average page access time of the DRAM page cache and the volatile NVM extended page cache.

[0025] Optionally, writing the data in the page cache back to the disk through the NVM synchronous absorption area includes:

[0026] For each page written to the NVM synchronous absorption area, append a log entry to the end of the inode log of the file corresponding to the written page;

[0027] When all operations in the transaction are completed, the data in the page cache and the CPU cache data are written to the pages of the NVM synchronous absorption area, after which the inode log commits the log tail, and the page data in the NVM synchronous absorption area is asynchronously written back to the disk.

[0028] Optionally, the tail of the inode log submission includes:

[0029] Update the mapping between the file offset and the latest log entry to obtain the DRAM index;

[0030] The log entry obtains the previous entry of the file offset by searching the DRAM index. If the previous entry exists, the address of the previous entry is recorded in the target field of the latest log entry, and the previous entry is marked as expired through the NVM synchronization absorption area. The useless inode log page is put into the garbage collector through the previous entry marked as expired.

[0031] Optionally, putting unused inode log pages into the garbage collector by marking said previous entry as expired includes:

[0032] The garbage collector traverses the inode log page before the latest inode log page, and if all log entries in the previous inode log page have expired, the previous inode log page is returned to the free page manager.

[0033] Optionally, the method further includes:

[0034] When a dirty page of the page cache is written back to disk, the log entry of the corresponding page in the NVM synchronous absorption area will be marked as expired, and if the expired entry has a data page that is not referenced by any valid entry, the data page is released.

[0035] Optionally, the method further includes:

[0036] When the pages in the free pool of each CPU are less than one low water mark, the free pool obtains pages from the global list, and when the pages in the free pool are more than one high water mark, the pages in the free pool are put into the global list.

[0037] The beneficial effects of the present invention are as follows: the present invention aims to make full use of the attractive characteristics of NVM while maintaining the advantages of traditional software stacks and maintaining compatibility and transparency with current user programs so that applications can take advantage of NVM without reducing performance and incurring migration costs. The present invention designs a transparent NVM enhanced page cache for accelerating the performance of current disk file systems, aiming to transparently optimize the performance of existing mature disk file systems through NVM: accelerate cache miss paths through NVM while leaving normal read and write operations to DRAM. For synchronous writes, a performance-first log structure is used to persist them to NVM, while the DRAM cache is retained for the speed of subsequent operations; the present invention optimizes the semantics of synchronous operations to avoid write amplification on scattered small writes; in order to reduce cache misses, free space on NVM is used as a cheaper and larger second-level page cache, and a method is proposed to identify pages that only need to be promoted or demoted to avoid the overhead of moving data between DRAM and NVM. The present invention achieves full compatibility with the current storage software stack and is transparent to any user application. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0039] Figure 1 This is a general architecture diagram of a file system acceleration method based on a novel persistent memory according to an embodiment of the present invention;

[0040] Figure 2 Schematic diagram of Promote / Demote according to an embodiment of the present invention;

[0041] Figure 3 The layout of the log structure of an embodiment of the present invention;

[0042] Figure 4 A schematic diagram of the workflow of a file system acceleration method based on a novel persistent memory according to an embodiment of the present invention;

[0043] Figure 5 A schematic diagram of an asynchronous write operation flow according to an embodiment of the present invention;

[0044] Figure 6 The figure is a schematic diagram of a read operation flow of an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0047] By evaluating the performance of current disk file systems and comparing them with file systems on NVM. Operations on DRAM page cache always have higher performance than on NVM. The shortcomings of current disk file systems only exist in cache miss operations and synchronous writes. Operations on DRAM page cache are called fast path, while operations where cache does not work are called slow path. Expanding the size of page cache will help reduce cache misses by accommodating larger workloads. For synchronous writes, operations must be written back to disk, which is much slower than writing to page cache. Therefore, NVM can be effectively and practically used to accelerate the slow path of NVM while leaving the fast path to DRAM.

[0048] like Figure 4 As shown, the present invention discloses a file system acceleration method based on a novel persistent memory, comprising:

[0049] Get the operation type and write data;

[0050] When the operation type is a write operation, the write data is written back to the disk or written to the page cache according to the selective degradation strategy, where the page cache includes a DRAM page cache and a volatile NVM extended page cache;

[0051] When the operation type is a synchronous write operation, the write data is written to the page cache, and the data in the page cache is written back to the disk through the NVM synchronous absorption area;

[0052] When the operation type is a read operation, the target data is read from a disk, a volatile NVM extended page cache, or a DRAM page cache according to the target data location.

[0053] like Figure 1 As shown, the present embodiment includes two independent designs to extend the DRAM page cache and absorb synchronous writes, because of different persistence requirements, including two main components: an NVM extended page cache, and a synchronous absorption area, that is, the NVM is divided into an extended page cache of a non-persistent domain and a synchronous absorption area of ​​a persistent domain, which are used to accelerate cache miss reads and synchronous writes, respectively. At the same time, these two parts work together to achieve high performance and low capacity waste. The NVM extended page cache, including the DRAM page cache and the volatile NVM extended page cache, is also called the non-persistent domain, and the NVM synchronous absorption area is called the persistent domain.

[0054] All functions of DRAM page cache, such as state machines for clean / dirty / writeback page states, are retained in the volatile NVM extended page cache. At the same time, in order to maintain the advantages of DRAM page cache, DRAM page cache is always the first choice for cached data. Only those data discarded by DRAM page cache are considered to be moved to the NVM part.

[0055] In a two-tier heterogeneous cache, hot pages should be stored in the DRAM page cache, while cold pages should be stored in the volatile NVM extended page cache. The temperature of the cache can be determined by the LRU (Least Recently Used) algorithm, where the coldest pages will be evicted to the volatile NVM extended page cache. Hints from the file system are used to reduce the number of times useless data is copied between the DRAM page cache and the volatile NVM extended page cache.

[0056] Specifically, when the operation type is a write operation, according to the selective demotion strategy, writing the written data back to the disk or writing it to the page cache includes: when the data page is not in the page cache, writing the written data to the DRAM page cache; when the DRAM page cache is full, according to the selective demotion strategy, writing the page data in the DRAM page cache back to the disk or writing it to the volatile NVM extended page cache; when the data page is in the page cache, writing the written data to the DRAM page cache or the volatile NVM extended page cache according to the location of the data page.

[0057] Furthermore, according to the selective demotion strategy, writing the page data in the DRAM page cache back to the disk or writing it to the volatile NVM extended page cache includes: predicting the access distance of the page in the DRAM page cache by using a counter in a global event, and judging the type of the page in the DRAM page cache based on the access distance, wherein the types include pages that are no longer accessed and pages that are accessed again; writing the pages that are no longer accessed back to the disk, and writing the pages that are accessed again to the volatile NVM extended page cache, wherein the pages written to the volatile NVM extended page cache are used as cold pages; when the cold pages in the volatile NVM extended page cache are full, writing the cold page with the lowest heat back to the disk, and then writing the pages that are accessed again to the volatile NVM extended page cache.

[0058] like Figure 5 As shown, the working process of the extended page cache is:

[0059] When performing a write operation, i.e., asynchronous writing, and the data page is not in the page cache, the data is first written to the DRAM page cache. When the DRAM page cache is full, in order to avoid demoting useless data pages from the DRAM page cache to the volatile NVM extended page cache, a selective demote strategy is introduced to determine whether the page will be used next. If it is no longer used, the type is determined as a no longer accessed page, and the page is directly written back to the disk and no longer written to the page cache. Only when these pages are used again in the volatile NVM extended page cache, the type is determined as a page that is accessed again, and it is demoted to the volatile NVM extended page cache. When the volatile NVM extended page cache is full, the page with the lowest heat, i.e., the least frequently accessed page, is selected and written back to the disk. Predict whether a page will be accessed again in the volatile NVM extended page cache before it is finally evicted from the volatile NVM extended page cache to the disk. Counters are used on several global events to predict the access distance of a page, and relatively cold pages are selected to be demoted to the volatile NVM extended page cache, such as Figure 2 As shown, the access distance is obtained by utilizing the refault distance mechanism in Linux.

[0060] Specifically, writing the write data into the DRAM page cache or the volatile NVM extended page cache according to the location of the data page includes:

[0061] If the data page is in the DRAM page cache, the write data is written to the DRAM page cache; if the data page is in the volatile NVM extended page cache, it is determined whether the number of uses of the cold page in the volatile NVM extended page cache reaches a preset threshold. If so, the cold page is determined to be a hot page and put into the DRAM page cache; if not, the write data is written to the volatile NVM extended page cache.

[0062] Furthermore, determining the cold page as a hot page and putting it into the DRAM page cache includes:

[0063] An access counter is added to the cold page to obtain the number of accesses to the cold page; the cold page whose accesses reach the promotion level is put into the promotion vector as a hot page. When the promotion vector is full, the cold page in the promotion vector is promoted to the DRAM page cache, where the promotion level is updated according to the average page access time of the DRAM page cache and the volatile NVM extended page cache.

[0064] In this embodiment, when the data page is already in the page cache, it is determined whether it is in the DRAM page cache or the volatile NVM extended page cache. If it is in the DRAM page cache, the data is written to the DRAM page cache. If it is in the volatile NVM extended page cache, the data is moved back to the DRAM page cache or written to the volatile NVM extended page cache according to whether the data is accessed multiple times. Figure 2 As shown in the figure, the DRAM part is the system page cache, and the persistent memory PMEM part is the volatile NVM extended page cache. For the pages in the volatile NVM extended page cache, the same principle as demotion is followed, that is, to reduce unnecessary data movement between the DRAM page cache and the volatile NVM extended page cache. If these pages are used repeatedly and reach a certain threshold, these pages are judged as hot pages and re-promoted to the DRAM page cache. When the volatile NVM extended page cache is full, the page with the lowest temperature is selected and written back to the disk. First, a promotion vector for batch promotion is set to avoid frequent single page migration and lock contention. Then an access counter is added to each page, and a promotion level is set as a threshold. Only those pages that have been accessed more than the promotion level will be put into the promotion vector. Then only when the promotion vector is full, these pages will be promoted to the DRAM page cache. The promotion level will be updated regularly according to the temperature of the DRAM page cache and the volatile NVM extended page cache. When the average page access time of the DRAM page cache is longer than that of the volatile NVM extended page cache, the promotion level will increase to slow down the filling speed of the promotion vector. When the average page access time of the DRAM page cache is less than that of the volatile NVM extended page cache, the promotion level will decrease to increase the filling speed of the promotion vector.

[0065] Specifically, writing the data in the page cache back to the disk through the NVM synchronous absorption area includes: for each page written to the NVM synchronous absorption area, appending a log entry to the end of the inode log of the file corresponding to the written page; when all operations in the transaction are completed, the data in the page cache and the CPU cache data are written to the page in the NVM synchronous absorption area, and then the inode log commits the log tail, and the page data in the NVM synchronous absorption area is asynchronously written back to the disk.

[0066] Furthermore, the tail of the inode log submission includes:

[0067] Update the mapping between the file offset and the latest log entry to obtain the DRAM index;

[0068] The log entry obtains the previous entry of the file offset by searching the DRAM index. If a previous entry exists, the address of the previous entry is recorded in the target field of the latest log entry, and the previous entry is marked as expired through the NVM synchronous absorption area. The useless inode log page is put into the garbage collector through the previous entry marked as expired.

[0069] Further, putting the useless inode log page into the garbage collector by marking the previous entry as expired includes: the garbage collector traverses the inode log page before the latest inode log page, and if all log entries in the previous inode log page are expired, the previous inode log page is returned to the free page manager.

[0070] The working process of the synchronous absorption area in this embodiment includes:

[0071] When performing synchronous writes, data is always written to the page cache first, where the page cache includes the DRAM page cache and the volatile NVM extended page cache. The write operation is broken down into multiple parts based on the page boundaries crossed. Figure 3 As shown in the figure, in order to ensure the consistency of the synchronous absorption area operation, a log mechanism is designed. A fixed-position superblock index header can index all superblocks and inode logs. For each page written to the synchronous absorption area, a log entry will be appended to the end of the inode log of the file corresponding to the written page. To ensure the integrity of the write, the data in the page cache and the data in the CPU cache are written to the NVM synchronous absorption area only when all operations in the entire transaction are completed. After that, the inode log commits the log tail, and the committed log tail (committed_log_tail) is atomically updated. After that, the DRAM index that maintains the mapping between the file offset and its latest written log entry is updated.

[0072] Among them, writing data in the CPU cache to the NVM synchronous absorption area includes using cache line write-back. For example, Intel's clwb explicitly instructs the CPU to write data still in the CPU cache to the NVM synchronous absorption area to avoid the risk of inconsistency caused by the CPU cache, and executes a memory barrier (sfence) to maintain the order of storage operations. Only two memory barriers are used in the synchronous absorption area. The first one is used to ensure that the transaction is completed, and the other memory barrier is used to maintain the order between this transaction and the next transaction.

[0073] After writing the data in the pages in the page cache and the CPU cache into the NVM synchronous absorption area, the data in the pages in the NVM synchronous absorption area will be asynchronously written back to the disk at a later point in time.

[0074] The life cycle of an entry is tracked by its flag field. During a write transaction, each entry checks the previous written entry at its offset by searching the DRAM index. If a previous entry is found, its address is recorded in the last_write field of the latest log entry. The NVPC, or NVM synchronous absorption area, then marks the no longer used previous entry as expired so that the garbage collector can reclaim the inode log whose log entries have all expired. When a dirty page in the non-persistent domain is written back to disk, if there is a page corresponding to the dirty page in the persistent domain, the entry related to this page will be marked as expired. If an expired entry has a data page that is not referenced by any valid entry, the data page will be released. This marking and release process is performed asynchronously to avoid affecting performance.

[0075] like Figure 6 As shown, when a read operation is performed, data is read from the disk, the volatile NVM extended page cache, or the DRAM page cache according to the location where the data needs to be read. If the data is read from the disk, the data is written to the DRAM page cache. When the data is in the volatile NVM extended page cache and is accessed multiple times, the data is moved back to the DRAM page cache.

[0076] Specifically, the acceleration method also includes: when the pages in the free pool of each CPU are less than a low water mark, the free pool obtains pages from the global list, and when the pages in the free pool are more than a high water mark, the pages in the free pool are placed in the global list.

[0077] Free Page Manager: The free NVM page manager is used to handle the allocation and release of NVM pages. The manager isolates NVM pages from the kernel's memory management, thereby improving allocation speed and ensuring the security of data in the persistent domain. Free NVM pages are managed through a global linked list. In addition, each CPU has a free pool. Pages are allocated and released from the pool of each CPU to avoid lock contention on the global list. Once the pages in the pool are less than one low water mark, the pool will get the page from the global list. Otherwise, if the pages in the pool are more than one high water mark, the pool will return the page to the global list, where the pages of the free pool refer to all situations where space on NVM is needed, and are the units of free space allocation.

[0078] Garbage Collector: To reclaim unused NVM space, a garbage collector is provided as a kernel thread. The garbage collector runs periodically in the background, traversing the log pages and checking if there are any log pages that are no longer in use. The traversal stops before the latest inode log page, because it is obvious that the latest page is in use. The scanning process does not require any locks, so it does not affect the foreground work. If all the log entries in an inode log page have expired, the inode log page is considered useless. Once the inode log page is confirmed to be useless, it is returned to the free page manager.

[0079] The prototype version of this embodiment is implemented on Linux kernel 5.15.125, with 7.3K lines of kernel code and no more than 1K lines of auxiliary tool code. Changes to the kernel code are limited to the virtual file system (0.3K LOC), the memory management system (6.2K LOC), and the driver (0.8K LOC). The virtual file system code has been carefully modified without changing the semantics of the current API, thus maintaining full compatibility and transparency with current applications and file systems. The main work is implemented inside the memory management system. The driver is responsible for initializing the DAX NVM device as well as user configuration. In addition, two user space utilities are provided for configuring and monitoring the system status, as well as a modified daxctl tool for initializing PMEM.

[0080] The method of this embodiment can efficiently and transparently improve the performance of the classic file system while maintaining the reliability of the classic file system, and can accelerate the file system IO speed in several aspects:

[0081] The page cache size is expanded, and frequently accessed pages are placed in fast storage devices through excellent scheduling algorithms to cache file system IO operations. A third-level queue is introduced based on the original two-level queue of the page cache replacement strategy, which expands the page cache space. The device heterogeneity is fully considered and a page scheduling algorithm adapted to it is designed to cache hot pages in fast devices, reducing cache misses. The high speed of persistent memory is used to reduce the overhead of volatile memory cache misses, allowing the file system to make full use of the cache to accelerate IO.

[0082] By using persistent memory as the synchronous IO absorption area, inefficient synchronous writes are redirected to high-speed persistent memory devices. The high read and write speeds of persistent memory devices are used to adaptively direct synchronous writes to persistent memory devices, improving the inefficiency of traditional file systems when synchronously writing to slow storage devices, reducing the overhead of synchronous writes, and using a prediction algorithm to adaptively redirect writes to the most suitable storage device based on the file's synchronization mode, making full use of the advantageous intervals of heterogeneous devices. At the same time, an effective heterogeneous device consistency algorithm is used to ensure the consistency of synchronous writes.

[0083] This embodiment can also make full use of all device characteristics of the persistent memory device and fully explore the application of the persistent memory device in file system optimization, which is in line with current development trends.

[0084] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. A file system acceleration method based on a novel persistent memory, characterized in that: include: Get the operation type and write data; When the operation type is a write operation, the write data is written back to the disk or written to a page cache according to a selective degradation strategy, wherein the page cache includes a DRAM page cache and a volatile NVM extended page cache; When the operation type is a write operation, writing the written data back to the disk or writing it to the page cache according to the selective demotion strategy includes: When the data page is not in the page cache, writing the write data into the DRAM page cache; When the DRAM page cache is full, the page data in the DRAM page cache is written back to the disk or written to the volatile NVM extended page cache according to the selective demotion strategy; When the data page is in the page cache, writing the write data into the DRAM page cache or the volatile NVM extended page cache according to the location of the data page; According to the selective demotion strategy, writing the page data in the DRAM page cache back to the disk or writing it to the volatile NVM extended page cache includes: Predicting the access distance of a page in the DRAM page cache by using a counter in a global event, and determining the type of the page in the DRAM page cache based on the access distance, wherein the type includes a page that is no longer accessed and a page that is accessed again; Writing the no longer accessed page back to the disk, and writing the again accessed page to the volatile NVM extended page cache, wherein the page written to the volatile NVM extended page cache is regarded as a cold page; When the cold pages in the volatile NVM extended page cache are full, after writing the cold page with the lowest heat back to the disk, the page that is accessed again is written to the volatile NVM extended page cache; When the operation type is a synchronous write operation, the write data is written into a page cache, and the data in the page cache is written back to the disk through the NVM synchronous absorption area; When the operation type is a read operation, the target data is read from the disk, the volatile NVM extended page cache, or the DRAM page cache according to the target data location.

2. The file system acceleration method based on the novel persistent memory according to claim 1 is characterized in that: Writing the write data into the DRAM page cache or the volatile NVM extended page cache according to the location of the data page comprises: If the data page is in the DRAM page cache, writing the write data into the DRAM page cache; If the data page is in the volatile NVM extended page cache, it is determined whether the number of times the cold page in the volatile NVM extended page cache is used reaches a preset threshold. If so, the cold page is determined to be a hot page and placed in the DRAM page cache. If not, the write data is written into the volatile NVM extended page cache.

3. The file system acceleration method based on the novel persistent memory according to claim 2 is characterized in that: Determining the cold page as a hot page and placing it into the DRAM page cache includes: Adding an access counter to the cold page to obtain the number of accesses to the cold page; The cold page whose access times reach a promotion level is put into a promotion vector as the hot page, and when the promotion vector is full, the cold page in the promotion vector is promoted to the DRAM page cache, wherein the promotion level is updated according to the average page access time of the DRAM page cache and the volatile NVM extended page cache.

4. The file system acceleration method based on the novel persistent memory according to claim 1, characterized in that: Writing the data in the page cache back to the disk through the NVM synchronous absorption area includes: For each page written to the NVM synchronous absorption area, append a log entry to the end of the inode log of the file corresponding to the written page; When all operations in the transaction are completed, the data in the page cache and the CPU cache data are written to the pages of the NVM synchronous absorption area, after which the inode log commits the log tail, and the page data in the NVM synchronous absorption area is asynchronously written back to the disk.

5. The file system acceleration method based on the novel persistent memory according to claim 4 is characterized in that: The tail of the inode log submission includes: Update the mapping between the file offset and the latest log entry to obtain the DRAM index; The log entry obtains the previous entry of the file offset by searching the DRAM index. If the previous entry exists, the address of the previous entry is recorded in the target field of the latest log entry, and the previous entry is marked as expired through the NVM synchronization absorption area. The useless inode log page is put into the garbage collector through the previous entry marked as expired.

6. The file system acceleration method based on the novel persistent memory according to claim 5 is characterized in that: After putting the useless inode log page into the garbage collector via said previous entry marked as expired includes: The garbage collector traverses the inode log page before the latest inode log page, and if all log entries in the previous inode log page have expired, the previous inode log page is returned to the free page manager.

7. The file system acceleration method based on the novel persistent memory according to claim 4 is characterized in that: The method further comprises: When a dirty page of the page cache is written back to disk, the log entry of the corresponding page in the NVM synchronous absorption area will be marked as expired, and if the expired entry has a data page that is not referenced by any valid entry, the data page is released.

8. The file system acceleration method based on the novel persistent memory according to claim 1, characterized in that: The method further comprises: When the pages in the free pool of each CPU are less than one low water mark, the free pool obtains pages from the global list, and when the pages in the free pool are more than one high water mark, the pages in the free pool are put into the global list.