IO task processing method, device and apparatusand readable storage medium

A task processing and task technology, applied in the computer field, can solve the problems of reducing IO task processing efficiency, server processing capacity, occupancy, long time, etc.

Active Publication Date: 2020-03-24
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF9 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It is necessary to apply for a lock before locking the data. When a certain data is being processed by a certain epoll thread, other epoll threads will not be able to apply for the lock, so the lock application will take up more time
Moreover, different stages of the processing flow of an IO task require multiple lock applications, which will reduce the processing efficiency of the IO task and the processing capacity of the server.

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 task processing method, device and apparatusand readable storage medium
  • IO task processing method, device and apparatusand readable storage medium
  • IO task processing method, device and apparatusand readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0041] At present, when processing IO tasks in the prior art, it is necessary to apply for locks multiple times, and the application for locks will take up a lot of time. Moreover, different stages of the processing flow of an IO task require multiple lock applications, which will reduce the processing efficiency of the IO task and the processing capacity of the server. For this reason, this application provides a kind of IO task processing plan, can make an IO task be handled by on...

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 an IO task processing method, device and apparatus and a readable storage medium. The IO task processing method comprises the steps of obtaining an IO task sent by a client; determining a first file descriptor corresponding to the IO task; determining a target of the IO task in the tgt service according to the first file descriptor; using an epoll thread bound with the target target for processing the IO task; wherein, only the epoll thread bound with the target target is used for processing the current IO task; that is to say, one IO task is only processed by one epollthread, so that the lock application is avoided, the lock application time is saved, the IO task processing time can be saved, and IO task processing efficiency and server processing capability are improved. Correspondingly, the IO task processing device and equipment and the readable storage medium disclosed by the invention also have the above technical effects.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to an IO task processing method, device, equipment and readable storage medium. Background technique [0002] In the prior art, in order to improve the ability of the server to process IO tasks, one IO task can be assigned to multiple epoll threads for processing. However, when multiple epoll threads process an IO task at the same time, the same data may be involved. Therefore, in order to avoid processing errors, it is necessary to lock the repeatedly involved data. It is necessary to apply for a lock before locking the data. When a certain data is being processed by a certain epoll thread, other epoll threads will not be able to apply for the lock, so the lock application will take up more time. Moreover, different stages of the processing flow of an IO task require multiple lock applications, which will reduce the processing efficiency of the IO task and the processi...

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/52
CPCG06F9/524
Inventor 曹立霞张端
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD
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