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

Pre-reading method for mechanical hard disk in Linux

A mechanical hard disk and pre-reading technology, applied in the direction of input/output to record carrier, etc., can solve the problem of ignoring file system metadata access, etc., and achieve the effect of solving pre-reading interference

Active Publication Date: 2014-09-03
江苏航天龙梦信息技术有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] Second, read-ahead only covers file access at boot time, but ignores access to file system metadata

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
  • Pre-reading method for mechanical hard disk in Linux
  • Pre-reading method for mechanical hard disk in Linux
  • Pre-reading method for mechanical hard disk in Linux

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The invention realizes the LVM subsystem using the Linux kernel, and the LVM subsystem can form a virtual disk with a plurality of disks or image files according to different target requirements.

[0029] In the present invention, a readahead object needs to be added to the LVM subsystem. Under this object, the read-ahead image and the mechanical disk form a virtual disk. The readahead goal implements the three tasks of pre-reading as follows:

[0030] 1) Collect file fragments that need to be pre-read: During the software startup phase, read requests for disk blocks are sequentially recorded into a memory area. figure 1 shows the workflow.

[0031] After the startup is complete, notify the readahead target to generate a read-ahead image. figure 2 This workflow is shown, that is, according to the previous records, the disk blocks are read from the mechanical disk in turn to fill the read-ahead mirror. A read-ahead mirror is a copy of the set of disk blocks read at s...

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 pre-reading method for a mechanical hard disk in Linux, which includes the steps: 1 collecting file fragments needing pre-reading; 2 pre-reading the file fragments; and 3 keeping validity of pre-reading mirror images. The pre-reading method is used for effectively converting random read access of a magnetic disk in software starting time into sequential read, and using properties of the mechanical magnetic disk to the maximum extent. Besides, pre-reading sequence is consistent with normal access sequence, so that the problem of original pre-reading interference is effectively solved. In addition, read access of metadata of a file system can be pre-read.

Description

technical field [0001] The invention relates to a pre-reading method for a mechanical hard disk under Linux. Background technique [0002] As the software becomes more and more complex, the startup speed of the software is also slower and slower, which is usually mainly caused by the random access of the software to the disk at the startup time. [0003] Although the current common mechanical hard disk has good sequential access performance, its random access performance is not high. [0004] So some pre-reading techniques are proposed to optimize the startup speed of the software. Read-ahead is mainly to read the content to be accessed next in advance according to the order of the disk during the free space of the disk. [0005] Pre-reading mainly includes two tasks - "collect file fragments that need to be pre-read" and "pre-read file fragments". [0006] Currently on Linux, the existing read-ahead methods are as follows: [0007] 1. Collect file fragments that need to...

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 Patents(China)
IPC IPC(8): G06F3/06
Inventor 张福新吴少刚陈杰
Owner 江苏航天龙梦信息技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More