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

Data reading method, data writing method, equipment and system

A technology for writing data and data, applied in the database field, can solve problems affecting database performance, reduce competition for lock resources, and improve performance

Pending Publication Date: 2021-12-31
HUAWEI TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] It can be seen that the lock resources of the buffer will be competed among the business threads, which will affect the performance of the database.

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 reading method, data writing method, equipment and system
  • Data reading method, data writing method, equipment and system
  • Data reading method, data writing method, equipment and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0083] Embodiments of the present application provide a data reading method, a data writing method, a device, and a system. This method is used to reduce the competition of different threads for the lock resource of the log buffer, thereby improving the performance of the database.

[0084] The embodiment of the present application may be applied to a NUMA system, and the NUMA system will be introduced below.

[0085] Such as figure 1 As shown, the NUMA system 100 may include one or more sockets, and one or more nodes (nodes) may be installed in each socket. Each node may include multiple central processing units (central processing units, CPUs) and memories. In each node, the CPU manages memory through a memory controller (MC).

[0086] exist figure 1 In the example, the NUMA system 100 includes a socket 101a and a socket 101b, the socket 101a includes two nodes, and the socket 101b also includes two nodes. Each node includes 4 CPUs. It should be noted, figure 1 The de...

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 discloses a data reading method, a data writing method, equipment and a system, which are used for reducing competition of different threads for lock resources of a log buffer so as to improve the performance of a database. In the embodiment of the invention, the computer equipment comprises storage equipment and a plurality of nodes of a non-uniform memory access architecture (NUMA) system, each node is provided with a buffer area and a controller for controlling the buffer area, and the method comprises the following steps: acquiring a write request of target data; in response to the write request, determining a target page used for storing the target data in the storage device; determining a target buffer region corresponding to the target page from a plurality of buffer regions corresponding to the plurality of nodes; writing the target data into a page of the target buffer area by controlling a target controller of the target buffer area; and writing data of the page of the target buffer into a target page in the storage device.

Description

technical field [0001] The present application relates to the technical field of databases, in particular to a method for reading data, a method for writing data, a device and a system. Background technique [0002] In a database, it often involves reading data from or writing data to the database's disk. However, in some scenarios, the data in the disk will be read multiple times, or data will be written to the same page in the disk multiple times, so if you interact with the disk every time to read data or write data , will inevitably increase a large number of input / output I / O operations, which will increase I / O overhead and reduce the performance of the database. [0003] For this purpose, buffers are usually used for reading and writing data. That is, data is first read from disk into a buffer, and thereafter only the data is read from the buffer, not from disk. Alternatively, write data into the buffer first, and after the data in the buffer reaches a certain amount...

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
IPC IPC(8): G06F16/2455G06F16/2453G06F16/2458
CPCG06F16/24552G06F16/2453G06F16/2471G06F11/3476G06F3/061G06F3/0656G06F3/0659G06F3/0674
Inventor 刘海龙雷杰郑程光张浩龙
Owner HUAWEI TECH 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