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

Linux noop scheduling algorithm based read-write method and device

A technology of scheduling algorithm and reading and writing method, applied in the field of IO, can solve problems such as low reading and writing efficiency, maximize system performance, reduce the probability of starving read requests, and improve system reading and writing efficiency.

Inactive Publication Date: 2017-11-21
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a method and device for reading and writing based on the Linux noop scheduling algorithm, and the purpose is to solve the problem that the reading and writing efficiency of the existing Linux noop scheduling algorithm is low

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
  • Linux noop scheduling algorithm based read-write method and device
  • Linux noop scheduling algorithm based read-write method and device
  • Linux noop scheduling algorithm based read-write method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0036] Please refer to figure 1 , figure 1 A schematic flowchart of a specific implementation of a reading and writing method based on a Linux noop scheduling algorithm provided by an embodiment of the present invention, the method includes the following steps:

[0037] Step 101: The first process counts the number of reads of eac...

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 Linux noop scheduling algorithm based read-write method and device. The method comprises the steps that read times of all data of a queue in the preset time period are counted through a first process; data with the read times larger than or equal to a preset threshold value is stored to a cache every preset time period through a second process; read requests of to-be-read data are received; whether the to-be-read data exits in the cache or not is judged; if yes, the to-be-read data is read from the cache, and if not, the to-be-read data is read from the queue. Accordingly, data high in read frequency is moved to the cache, when the data high in frequency needs to be read, the required data can be obtained from the cache directly and does not need to be obtained from the queue, the required data is obtained from the queue only when the required data does not exist in the cache, in this way, the probability of the read requests of the noop scheduling algorithm can be lowered, and then the system read-write efficiency is improved, and the system performance is maximized.

Description

technical field [0001] The invention relates to the technical field of IO, in particular to a reading and writing method and device based on a Linux noop scheduling algorithm. Background technique [0002] At present, there are four Linux IO scheduling algorithms, namely the elevator algorithm (no operation, noop), the deadline algorithm (deadline), the anticipatory algorithm (anticipatory), and the complete fair queuing algorithm (complete fair queuing, CFQ). [0003] Among them, the noop algorithm implements a FIFO queue, which organizes IO requests like the working method of an elevator. When a new request arrives, it merges the request into the latest request to ensure that the same medium is requested. [0004] However, the noop algorithm tends to starve reading and favor writing, that is, the write request passes through the file system cache, and the next write operation can be started without waiting for one write to be completed. The write request is merged and accu...

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
IPC IPC(8): G06F9/48
CPCG06F9/4881
Inventor 李佩孙京本毕波
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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