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

A method, device and computer-readable storage medium for reading and writing a disk

A disk, read-write lock technology, applied in the computer field, can solve problems such as the sharp drop in the throughput of the Web server, the decline in the performance of the Web server, and the impact on the processing capacity of the server.

Active Publication Date: 2021-05-04
CHINANETCENT TECH
View PDF14 Cites 0 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
  • A method, device and computer-readable storage medium for reading and writing a disk
  • A method, device and computer-readable storage medium for reading and writing a disk
  • A method, device and computer-readable storage medium for reading and writing a disk

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 method, device, and computer-readable storage medium for reading and writing a magnetic disk. The disk reading and writing method provided in the present invention includes: determining the storage location of the resource to be accessed corresponding to the resource access request through a process, wherein each storage location of the resource to be accessed is provided with a corresponding read-write lock; The process performs a read-write lock operation on the read-write lock corresponding to the storage location of the resource to be accessed, obtains the corresponding permission, and completes disk read and write. The embodiment of the present invention improves the reading and writing speed of the disk IO and improves the performance of the server under high concurrent connection or disk IO operation.

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 Patents(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products