IO scheduling method and system of Linux disk

A scheduling method and technology of a scheduling system, applied in the input/output process of data processing, multi-channel program device, program control design, etc., can solve the problems that Qos service cannot be provided, and IO scheduling method cannot provide good fair service, etc.

Inactive Publication Date: 2022-03-11
海南港航控股有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] For the defects of prior art, the purpose of the present invention is to provide a kind of IO scheduling method and system of Linux disk, aiming at solving the problem that the IO scheduling method of existing Linux disk cannot provide good fair service and cannot provide Qos service

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
  • IO scheduling method and system of Linux disk
  • IO scheduling method and system of Linux disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0028] The present invention puts the weight fairness theory into practice on disk IO scheduling, so that the system can allocate corresponding IO bandwidths to different disk IO processes based on the weight of the process as the allocation standard, so that concurrent disk IO processes can obtain fair Serve.

[0029] figure 1 It is a flow chart of the IO scheduling method of the Linux disk provided by the embodiment of the present invention, such as figure 1 shown, including the following steps:

[0030] S101, the IO scheduling layer receives the request sent by the general block layer;

[00...

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 provides an IO scheduling method and system for a Linux disk. The method comprises the steps that an IO scheduling layer receives a request sent by a universal block layer; the IO scheduling layer allocates corresponding memory resources for the request so as to maintain a data structure related to the request; detecting whether the request is sent by a new process or not, if yes, allocating corresponding memory resources to the new process to maintain the data structure of the new process, adding the request to the FIFO tail of the new process, and adding the new process to the tail of a block device queue; if not, adding the request to the FIFO queue of the corresponding process; when the request is added to the FIFO queue, a starting label is added to the request according to the weight; and comparing the first requests of each process chain, determining the request with the minimum value of the starting label, and assigning the request with the minimum value of the starting label to a block device driver layer. According to the method, the corresponding IO bandwidths are distributed for different disk IO processes according to the weights of the processes, so that the concurrent disk IO processes can obtain fair services.

Description

technical field [0001] The invention belongs to the field of disk scheduling control, and more specifically relates to a Linux disk IO scheduling method and system. Background technique [0002] The Qiongzhou Strait is a channel shared by cargo ships and ferries. Due to the narrow channel and crowded ships, it is easy to cause accidents. Therefore, it is necessary to closely monitor the passing ships and waterways in the Qiongzhou Strait and collect a large amount of data. All data needs to be processed on the server. For the stability of the system, all servers use the Linux system. Due to the frequent reading and writing of data, the pressure is very high, so it is necessary to study the fairness algorithm of the Linux disk scheduler. [0003] The current Linux disk scheduler fairness algorithm has the elevator algorithm (No Operation, NOOP) algorithm: this algorithm implements the simplest first-in-first-out (First Input First Output, FIFO) queue, and all IO requests ar...

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): G06F9/50G06F3/06
CPCG06F9/5016G06F9/5022G06F3/061G06F3/0676
Inventor 武博黄思杨文勇
Owner 海南港航控股有限公司
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