Method and device for realizing small file access

A technology for small files and writing files, applied in file systems, file access structures, special data processing applications, etc., can solve the problem of high latency and achieve the effect of improving speed

Inactive Publication Date: 2014-10-15
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This makes a large number of random reads and writes of small files very slow and has a high delay

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 and device for realizing small file access
  • Method and device for realizing small file access

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0026] figure 1 It is a flow chart of the method for realizing small file access in the present invention, such as figure 1 shown, including the following steps:

[0027] Step 101, detecting the size of the written file.

[0028] The file system provides corresponding functions to realize how to detect the size of the written file, which is common knowledge well known by those skilled in the art, and will not be repeated here.

[0029] Step 102, comparing the size of the written file with a predetermined threshold, when the size of the written file is less than or equal to the given threshold, the data written into the file is stored in the data structure inode, and in the In the inode, the flag bit is added to be 1; otherwise, the written file is stored in the data block pointed to by the inode, and the flag bit is added to the inode to b...

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 and a device for realizing small file access. The method includes: detecting the size of a written file; comparing the size of the written file with a preset threshold, and when the size of the written file is smaller than or equal to the set threshold, storing data of the written file in a data structure inode, and adding a zone bit 1 in the inode; otherwise, storing the written file in a data block pointed by the inode, and adding a zone bit 0 in the inode; reading the data of the written file according to the zone bit in the inode. By the method, speed of small file storage and reading is increased greatly.

Description

technical field [0001] The invention relates to computer storage technology, in particular to a method and device for realizing small file access. Background technique [0002] Small files generally refer to files below 1MB. The storage and reading of a large number of small files has always been a difficult problem for the storage system, especially with the development of computer technology, there will be more and more data. [0003] The existing technology generally stores data in this way: first create a data structure (inode), each inode is unique, and points to a data block respectively, and stores the data written into the file in this data block, the inode and the data block It is one-to-one correspondence. Most of the current file systems do not treat small files and large files differently, that is, they do not distinguish according to the size of the file, and they are all stored and read in the same way. This makes a large number of random reads and writes of...

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): G06F17/30
CPCG06F16/13
Inventor 张敬海
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products