Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data consistency and wear leveling-based memory file system management method

A memory file system and wear leveling technology, applied in memory systems, electrical digital data processing, memory address/allocation/relocation, etc., can solve problems such as high overhead and performance reduction of memory file systems

Active Publication Date: 2016-12-21
诸葛晴凤
View PDF4 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This creates a large overhead and reduces the performance of the memory file system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data consistency and wear leveling-based memory file system management method
  • Data consistency and wear leveling-based memory file system management method
  • Data consistency and wear leveling-based memory file system management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0103] Abbreviations and key terms involved in this embodiment are defined as follows:

[0104]NVM, Non-Volatile Memory, non-volatile memory;

[0105] SCM, Storage Class Memory, storage class memory;

[0106] The file is updated in place, the internal data of the file is modified, and the file size remains unchanged;

[0107] File appending, content is added at the end of the file, and the file size becomes larger;

[0108] Adding part of the file, modifying the file data and adding content at the end, the file size becomes larger;

[0109] Page write count recording area, which records the number of times memory page data is updated;

[0110] The free page management module is a system function module responsible for allocating and reclaiming free memory pages.

[0111] As shown in the figure, the persistent memory file system provided by this embodiment divides the non-volatile storage area into three parts: a super block, a page write count recording area, and a data ar...

Embodiment 2

[0127] A data consistency and wear leveling memory file system management method provided in this embodiment includes the following steps:

[0128] S1: Set a continuous storage space on the non-volatile storage medium as the page write count recording area, the page write count recording area is used to record and store the write count of all data area pages, and the write count of each memory page Update the write times counter of the corresponding memory page in the recording area when a change occurs; the free page management module can allocate the memory page with the smallest write times in the current system according to the data recorded in this area; as long as the system follows the architecture proposed by the patent of this embodiment and method implementation, the write operations in the page write count recording area itself are relatively evenly distributed, and will not exceed the maximum tolerable write count of the non-volatile memory before any other memory p...

Embodiment 3

[0147] Such as Figure 5 as shown, Figure 5 It is a flow chart of opening the file in the present invention, and the specific process is as follows:

[0148] Open the file to determine whether the file exists. If it exists, open the file. If the file does not exist, perform the process of creating a file. The process of creating a file is as follows:

[0149] Step 1: Generate metadata to determine whether to apply for a page; if you need to apply for a new page, go to step 2; if you don’t need to apply for a new page, go to step 3;

[0150] Step 2, apply for a page with the least number of writes from the free page management module, write metadata, modify relevant data, and execute step 4;

[0151] Step 3, write metadata to the page, go to step 4;

[0152] Step 4, increase the corresponding write count value of the involved memory page in the page write count recording area, and execute step 5;

[0153] Step 5, complete.

[0154] in, Figure 6 It is a flow chart of upd...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data consistency and wear leveling-based memory file system management method. A persistent memory file system is subjected to data consistency and writing wear leveling at the same time in data updating operation, and file updating operations include three updating modes of file on-site updating, appending and partial appending. The data consistency of the memory file system is cooperatively realized through three modules of metadata management, data consistency and log management, and the file updating operations. A nonvolatile storage management function is cooperatively realized through three modules of page allocation, idle page management and wear leveling, and the file updating operations. A wear leveling function is cooperatively realized by two sub-modules of data area page writing frequency management and indexing, and other modules in storage management, so that all the file updating operations are subjected to writing wear leveling while data consistency updating is realized.

Description

technical field [0001] The invention relates to the field of computer system software, in particular to a data consistency and wear leveling method for a memory file system. Background technique [0002] With the emergence of a new type of non-volatile memory (Non-Volatile Memory, NVM), the business community and academia have proposed non-volatile storage with high storage density, fast read and write speed, addressable by byte and anti-vibration Made as a memory data storage device, it is called storage class memory (Storage Class Memory, referred to as SCM). To manage this storage-class memory, various in-memory file systems have been devised. For example, PMFS designed by Intel, "System software for persistent memory," in Proc.9th ACM Euro.Conf.Comput.Syst., pp 15:1—15:15, 2014, ISBN: 978-1-4503-2704-6. ("System Software for Persistent Memory", The 9th ACM European Computer Systems Conference, Chapter 15, pp. 1-15, 2014, ISBN: 978-1-4503-2704-6), designed by Chongqing ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F12/02
CPCG06F12/0246
Inventor 诸葛晴凤沙行勉
Owner 诸葛晴凤
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products