Supercharge Your Innovation With Domain-Expert AI Agents!

Data writing method and device

A data writing and data technology, applied in the Internet field, can solve the problems of sector space waste, difficulty in improving throughput, increasing delay, etc., and achieve the effect of improving throughput

Active Publication Date: 2018-06-05
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the current Serial Advanced Technology Attachment (Serial Advanced Technology Attachment; hereinafter referred to as: SATA) disk environment, since the minimum unit of each write is a sector, if the amount of data is too small, the excess space in the sector will be will be wasted
In the driver layer or operating system layer, the write cache is usually a page size (4K or 8K). Therefore, if a write operation is called for each update or write of a small amount of data, the delay will be increased, and it is difficult to improve the throughput. quantity

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 writing method and device
  • Data writing method and device
  • Data writing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents coming within the spirit and scope of the appended claims.

[0019] The data writing method provided by the present invention is based on two mutually switching cache mechanisms, and on this basis, the parallel execution of sync operation (data flushing) and writing operation is realized, thereby realizing the improvement of writing throughput.

[0020] According to the call semantics of the application, the write operation request ...

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 present invention proposes a data writing method and device. The data writing method includes: receiving a write operation request sent by an application; storing the write operation request into a first cache; when the type of the write operation request is write immediate When returning or writing and synchronously operating, or when the first cache has met the cache switching condition, the cache for storing the received write operation request is switched from the first cache to the second cache; for the first cache The write operation requested to perform a write operation. The invention can give full play to the parallelism of batch reading and writing and disk writing operations, and can maximize throughput without affecting the semantics of application writing operations.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a data writing method and device. Background technique [0002] In a high-throughput storage system, the pressure of reading and writing often reaches tens of thousands of requests per second, and the amount of requested data varies in size. Especially in structured storage engines, write requests are often only for modifying or updating a few effective short attribute fields, and require immediate read visibility after updating to ensure session transactionality. [0003] At the same time, more and more systems adopt a log-based system design (Write Append Logging; hereinafter referred to as: WAL) design to convert all writes into sequential writes as much as possible, so as to reduce the movement of the magnetic head and persist data. Since the WAL design needs to transfer data to the disk in real time, which requires calling the synchronization (sync) interface of the op...

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
Inventor 覃安颜世光李康徐佩林谭待
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More