Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for consistent update of data in memory file system

A memory file system and update method technology, which is applied in the field of ensuring the consistency of file data updates in memory file systems, can solve problems such as increased data update request overhead, and achieve the effects of avoiding large amounts of data copying, reducing overhead, and high performance

Inactive Publication Date: 2016-10-12
CHONGQING UNIV
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0018] The problem with the existing adaptive log writing technology when updating file data is: the performance difference in the data update process is ignored, resulting in an increase in the overhead of data update requests

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
  • Method for consistent update of data in memory file system
  • Method for consistent update of data in memory file system
  • Method for consistent update of data in memory file system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] Below in conjunction with accompanying drawing and embodiment the present invention will be further described:

[0050] The method of the invention is as follows: firstly, when the file is opened, an exclusive backup file is assigned to the file. Then in the subsequent process, whenever the file data is to be updated, the backup file is used for data consistency update. Finally, when the file is closed, the corresponding backup file is recycled.

[0051] Such as figure 2 As shown, the flow process of the present invention begins in step 101, then:

[0052] In step 102, determine whether the file is opened for the first time, if so, then perform step 103; otherwise, perform step 105;

[0053] In step 103, the memory file system allocates an idle index node, and allocates a backup file to the file;

[0054] In step 104, the memory file system opens the backup file in the kernel virtual address space;

[0055] When opening the backup file, first allocate a section of...

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 method for consistent update of data in a memory file system. The method comprises a backup file is allocated; an index node number of an original file, a requested update position and length are acquired; new data is written into a file data region of the backup file; if the data update amount is greater than a threshold value T, first indexes corresponding to the data to be updated in the original file are replaced by an index structure of the backup file; if the data update amount is smaller than a threshold value T, a first starting virtual address of the data to be updated is calculated, and the new data is copied to the position of the data to be updated in the original file at a time. The method has the advantages of high copying speed according to the data update amount, namely by utilizing the memory file system, update is also performed in an atomic update mode, and the performance of the memory file system is improved on the premise that the file data update consistency is ensured.

Description

technical field [0001] The invention belongs to the field of computer system software, and in particular relates to a method for ensuring the consistency of updating file data in a memory file system. Background technique [0002] Chinese patent document CN105404667A disclosed a file data consistency update method for memory file system on March 16, 2016, which includes the following steps: 1. When the process is initialized, the system opens a dummy file for the process in the kernel space ;2. The process requests to update the "target file", and the memory file system allocates all the required physical memory to the pseudo-file at one time according to the amount of data to be updated; 3. Builds the data structure of the index data page in the pseudo-file, which is called " Data index"; 4. Call the data copy function once to write all the new data into the dummy file at one time; 5. Use an atomic operation to insert the data index of the dummy file into the corresponding ...

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): G06F3/06G06F17/30G06F11/14
CPCG06F3/0614G06F3/0629G06F3/0643G06F3/065G06F3/0665G06F11/1471G06F11/1474G06F16/11G06F16/13G06F16/1734
Inventor 沙行勉陈咸彰诸葛晴凤孙志龙姜炜文
Owner CHONGQING UNIV