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

File pre-reading method and device based on user space file system FUSE and electronic equipment

A file system and user space technology, applied in the direction of electronic digital data processing, special data processing applications, data processing input/output process, etc., can solve problems such as inability to complete large file pre-reading work, small kernel page settings, etc., to achieve Improving the effect of high-performance file system applications

Pending Publication Date: 2021-01-05
北京星辰天合科技股份有限公司
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The embodiment of the present invention provides a file pre-reading method and device based on the user space file system FUSE, and electronic equipment, to at least solve the problem that the user space file system adopts the VFS layer pre-read mechanism in the related art, and the kernel page setting is small and cannot Technical issues in completing pre-reading of large files

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
  • File pre-reading method and device based on user space file system FUSE and electronic equipment
  • File pre-reading method and device based on user space file system FUSE and electronic equipment
  • File pre-reading method and device based on user space file system FUSE and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] Embodiment 1 File pre-reading method based on user space file system FUSE

[0045] According to an embodiment of the present invention, an embodiment of a file pre-reading method based on the user space file system FUSE is provided. It should be noted that the steps shown in the flow chart of the accompanying drawing can be performed on a computer such as a set of computer-executable instructions system, and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0046] The file pre-reading method based on the user space file system FUSE provided by the embodiment of the present invention, the FUSE includes at least: a kernel state and a user state, the user state file system is pre-mounted in the user state, and the target buffer area is preset in the user state.

[0047] figure 2 It is a flow chart of an optional file pre-reading method based on the...

Embodiment 2

[0085] Embodiment 2 A file pre-reading device based on the user space file system FUSE

[0086] Figure 4 is a schematic diagram of an optional file pre-reading device based on the user space file system FUSE according to an embodiment of the present invention, such as Figure 4 As shown, FUSE includes at least: kernel mode and user mode, user mode file system is pre-mounted on user mode, target cache area is preset on user mode, and the file pre-reading device may include: receiving unit 41, response unit 43, Computing unit 45, cache unit 47, wherein,

[0087] A receiving unit 41, configured to receive a file read request;

[0088] The response unit 43 is used to respond to the file read request, and read the first subfile in the target file from the user mode file system;

[0089] Calculation unit 45, for calculating the pre-reading file information of other pre-reading sub-files after the first sub-file according to the file information and pre-reading parameters of the ...

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 file pre-reading method and device based on a user space file system FUSE and electronic equipment. The FUSE at least comprises a kernel mode and a user mode; a user mode file system is pre-mounted on the user mode, a target cache region is preset on the user mode, and the file pre-reading method comprises the following steps: receiving a file reading request; in responseto the file reading request, reading a first sub-file in the target file from the user mode file system; calculating pre-read file information of other pre-read sub-files after the first sub-file according to the file information and the pre-read parameters of the first sub-file; and caching other pre-read sub-files to the target cache region based on the pre-read file information. According to the invention, the technical problems of relatively small kernel page setting and incapability of finishing large file pre-reading work due to adoption of a VFS layer pre-reading mechanism in a user space file system in related technologies are solved.

Description

technical field [0001] The present invention relates to the technical field of file processing, in particular to a file pre-reading method and device based on user space file system FUSE, and electronic equipment. Background technique [0002] In related technologies, implementing a file system in user space can greatly improve productivity, simplify the workload of providing a new file system for an operating system, and is especially suitable for various virtual file systems and network file systems. Network-based user file systems are often bottlenecked in performance because data is transferred across the network. For example, to read a large file, if every read request reaches the user state through the kernel state, and then transmits it through the network, then each IO will cost a lot, which will inevitably lead to poor application performance. In order to solve this problem, the currently adopted solution borrows the general read-ahead mechanism of the kernel VFS l...

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): G06F16/172G06F3/06
CPCG06F16/172G06F3/061
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