Disk read-write method and device and computer readable storage medium

A disk, read-write lock technology, applied in the computer field, can solve problems such as increased CPU consumption and disk IO consumption, sharp drop in Web server throughput, Web server performance decline, etc., to improve throughput and shorten disk IO operation time , the effect of reducing the probability of the process waiting

Active Publication Date: 2018-05-11
CHINANETCENT TECH
View PDF14 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The inventor found that there are at least the following problems in the prior art: Web servers usually use shared memory to store resources when dealing with high concurrent connections. Shared memory is to allow two unrelated processes to access the same logical memory. Data consistency storage, but in this way, under a large amount of resource cache and high-frequency disk IO operations, the shared memory method will affect the disk IO read and write rate due to resource critical area protection, resulting in a sudden drop in the throughput of the Web server, resulting in Web server performance drops sharply
In addition to using shared memory, web servers usually also use multi-process storage to store resources separately. Although this method solves the problem that the throughput of the web server drops sharply due to the impact of resource critical section protection on the disk IO read and write rate, However, due to the separate storage of multiple processes, resources will be repeatedly stored and updated, which will increase CPU consumption and disk IO consumption, thereby affecting server processing capabilities

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
  • Disk read-write method and device and computer readable storage medium
  • Disk read-write method and device and computer readable storage medium
  • Disk read-write method and device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the various implementation modes of the present invention will be described in detail below in conjunction with the accompanying drawings. However, those of ordinary skill in the art can understand that, in each implementation manner of the present invention, many technical details are provided for readers to better understand the present application. However, even without these technical details and various changes and modifications based on the following implementation modes, the technical solutions claimed in this application can also be realized.

[0029] The first embodiment of the present invention relates to a method for reading and writing a disk. It can be applied to servers, for example, Web proxy servers and the like. In this implementation manner, a Web proxy server will be taken as an example for detailed description. The specific process ...

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 embodiment of the invention relates to the field of computer technology and discloses a disk read-write method and device and a computer readable storage medium. The disk read-write method comprises the steps that storage positions of to-be-accessed resources corresponding to a resource access request are determined through a process, wherein a corresponding read-write lock is arranged at thestorage position of each to-be-accessed resource; and read-write lock operation is performed on the read-write locks corresponding to the storage positions of the to-be-accessed resources through theprocess, corresponding permissions are acquired, and disk read-write is completed. Through the embodiment, under high-concurrency connection or disk IO operation, read-write speed of disk IO is increased, and the performance of a server is improved.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, and in particular to a method, device, and computer-readable storage medium for reading and writing a magnetic disk. Background technique [0002] With the continuous development of the network, Web applications on the Internet (Internet) have been in the stage of explosive growth. At present, there are a large amount of information published in the form of the Web, and there are various types. Users access information through the Web with a high frequency and a large amount of data. Hypertext Transfer Protocol (Hyper Text Transfer Protocol, referred to as "HTTP") requests have burst characteristics, often accessing web servers in the form of bursts and self-similar flows, and the HTTP request rate is high during peak hours, so large web sites are often in the state of server overload Phenomenon. Just because of the scale and access characteristics of Web applications...

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): G06F3/06G06F9/52
CPCG06F3/0611G06F3/0613G06F3/0623G06F3/0637G06F3/0643G06F3/0676G06F9/526
Inventor 庄益强
Owner CHINANETCENT TECH
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