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

A method, system, device, and computer-readable storage medium for reading and writing data

A technology of data reading and writing and storage media, applied in the computer field, can solve the problems of access to blkcg information, limited, unbalanced resource control capabilities, etc., and achieve the effects of reducing mutual influence, eliminating application restrictions, and improving resource control capabilities

Active Publication Date: 2020-09-08
HANGZHOU SHIQU INFORMATION TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] An existing IO speed limit method is to use CGroups V2 (Control Groups, control group), which can limit the speed of writeback (write-back). This function can identify the process of generating dirty data in the memory, so that the The blkcg information (speed limit information) is passed to the block device layer to achieve the purpose of speed limit. However, CGroups V2 has a necessary premise that memcg and blkcg must use the same hierarchical structure, otherwise the blkcg information cannot be obtained according to the memcg logo, and currently The widely used Linux system background process management and most applications are multi-level CGroups user interface. This premise is difficult to meet at present. Therefore, the application of this IO speed limit is very limited, and the resource control ability is unbalanced.

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
  • A method, system, device, and computer-readable storage medium for reading and writing data
  • A method, system, device, and computer-readable storage medium for reading and writing data
  • A method, system, device, and computer-readable storage medium for reading and writing data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The core of this application is to provide a method for reading and writing data. This application can achieve better resource control capabilities, and can set the corresponding speed limit strategy without modifying any application layer interface, eliminating the application restrictions of CGroups, thereby Expanded the IO speed limit application of CGroups. Another core of the present application is to provide a data reading and writing system, device and computer-readable storage medium, all of which have the above beneficial effects.

[0039] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Bas...

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 a data reading / writing method, system and device, and a computer readable storage medium. The method comprises the steps of pre-creating a mapping relationship between an identifier of memcg and an identifier of blkcg; in a data write-back process, obtaining the identifier of the memcg according to an index node of a dirty page; according to the identifier of the memcg, creating a write-back structure; according to the write-back structure and the mapping relationship, obtaining blkcg speed limitation information; and according to the blkcg speed limitation information,performing IO operation on data write-back. In the way, different processes have higher equity degree in IO use; mutual influence among the processes is reduced; especially for IO intensive applications and low-speed disks, a better resource control capability is achieved; realization is easy; corresponding speed limitation policies can be set without modifying an interface of any application layer; and application limitation of CGroups is eliminated, so that the IO speed limitation application of the CGroups is expanded.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method, system, device and computer-readable storage medium for reading and writing data. Background technique [0002] In computers such as Linux systems, IO operations on files, such as read operations and / or write operations, are often involved. Among them, the data is first written to the memory (Page Cache) for caching, and then written back to the disk The way to improve IO performance is buffered IO (buffered IO). Currently, buffered IO is used. Because most applications are read and write operations, when the same storage device is shared by multiple processes, there will be mutual influence, and even a large amount of IO generated by a certain process will cause other processes to block for a long time. For this kind of problem, IO speed limit operation is usually performed. [0003] An existing IO speed limit method is to use CGroups V2 (Control Groups, ...

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): G06F9/54G06F3/06
CPCG06F3/0613G06F3/0647G06F9/544
Inventor 许成光
Owner HANGZHOU SHIQU INFORMATION TECH CO LTD
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