Unlock instant, AI-driven research and patent intelligence for your innovation.

Data storage method, device and electronic equipment

A data and data writing technology, applied in the computer field, can solve the problems of high latency of the storage engine, large read and write latency, and slow response of the transaction system

Active Publication Date: 2021-10-19
ALIBABA CLOUD COMPUTING LTD
View PDF20 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In most cases, the read and write speed of this mode is relatively fast, but when the operating system performs dirty page writeback, memory recycling, memory swap in and out, etc., it will generate a large read and write delay, causing the storage engine to occasional high latency
Especially in scenarios with high data concurrency such as Double Eleven, when the flood peak data comes, the high latency will lead to slow response of the trading system, avalanche, and poor user experience.

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
  • Data storage method, device and electronic equipment
  • Data storage method, device and electronic equipment
  • Data storage method, device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] figure 2 It is a schematic flowchart of a data storage method provided by an embodiment of the present application.

[0035] like figure 2 As shown, the data storage method includes the following steps:

[0036] 101. Write data to be stored into a preset memory unit. This step can be done by figure 1 The storage device of the data in is carried out.

[0037] 102. Write the data in the preset memory unit into the page cache in an asynchronous manner with the operation of writing the data into the memory unit. This step can be done by figure 1 The storage device of the data in is carried out.

[0038] 103. Write the data in the page cache to the disk for persistent storage by means of asynchronous disk flushing. This step can be done by figure 1 The storage device of the data in is carried out.

[0039] In an embodiment of the present application, the data to be stored may include data generated by the aforementioned external call service. Exemplarily, when th...

Embodiment 2

[0051] The foregoing describes in detail the embodiments of the data storage method provided by the present application, and the data storage device for implementing the foregoing method will be described in detail below.

[0052] Figure 5 A schematic structural diagram of a data storage device provided in another embodiment of the present application.

[0053] like Figure 5 As shown, a data storage device may include a first writing module 51 , a second writing module 52 and a third writing module 53 . The first writing module 51 is used for writing the data to be stored into the preset memory unit, and the second writing module 52 is used for writing the preset memory unit in an asynchronous manner with the operation of writing data into the memory unit. The data in the page cache is written into the page cache, and the third writing module 53 is used to write the data in the page cache into the disk for persistent storage by asynchronous disk flushing.

[0054] In an e...

Embodiment 3

[0059] The internal functions and structures of the data storage device have been described above. In practice, the data storage device can be implemented as an electronic device. Image 6 A schematic structural diagram of an electronic device provided in another embodiment of the present application. like Image 6 As shown, the electronic device includes a memory 61 and a processor 62 .

[0060] The memory 61 is used to store programs. In addition to the above-mentioned programs, the memory 61 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, etc.

[0061] Memory 61 can be realized by any type of volatile or nonvolatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), ...

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

Embodiments of the present invention provide a data storage method, device, and electronic device, including: writing data to be stored into a preset memory unit; The data in the preset memory unit is written into the page cache; the data in the page cache is written into the disk for persistent storage by asynchronously flushing the disk. In the embodiment of the present application, by first writing the data to be stored into the preset memory unit, then asynchronously submitting it to the page cache, and finally asynchronously flushing the data to the disk, compared with the prior art, the increase of The first-level data buffer storage, through two asynchronous storage processing, effectively avoids the high latency of data storage in high concurrent data scenarios.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a data storage method, device and electronic equipment. Background technique [0002] With the development of Internet technology, the requirements for data storage are getting higher and higher. Most of the existing storage engines adopt the mode of asynchronous disk flushing, first write data into the page cache (Page Cache, page cache, referred to as page cache), and then asynchronously flush the data to the disk for permanent storage , for frequently used data or recent data, it can be read directly from the page cache. In most cases, the read and write speed of this mode is relatively fast, but when the operating system performs dirty page writeback, memory recycling, memory swap in and out, etc., it will generate a large read and write delay, causing the storage engine to Occasional high latency. Especially in scenarios with high data concurrency such as ...

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/06
CPCG06F3/0611G06F3/0656
Inventor 周新宇王小瑞冯嘉
Owner ALIBABA CLOUD COMPUTING LTD