Database check point construction method based on virtual memory snapshot

A technology of virtual storage and construction method, which is applied in the field of database checkpoint construction based on virtual storage snapshots, can solve the problems of log writing to disk reducing transaction performance, jitter, and checkpoint blocking transaction performance, so as to avoid transaction performance degradation and avoid performance Jitter, the effect of improving transaction processing power

Active Publication Date: 2016-11-16
UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The invention provides a method for constructing a database checkpoint based on a virtual memory snapshot, which solves the technical problems that the log write disk in the traditional database reduces the transaction performance, and the checkpoint blocks the transaction or brings transaction performance jitter, and realizes the avoidance of log file writing. The decrease in transaction performance caused by the disk improves the transaction throughput rate in the database system, and at the same time avoids the blocking of database transactions or performance jitter caused by the establishment of checkpoints. The technical effect of relying on hardware to provide reliability guarantees while improving transaction performance

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
  • Database check point construction method based on virtual memory snapshot
  • Database check point construction method based on virtual memory snapshot
  • Database check point construction method based on virtual memory snapshot

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] Please refer to Figure 1-Figure 3 , the database checkpoint construction method based on the virtual memory snapshot is as follows:

[0031] The system is initialized, the database is started, the scheduling process, and the transaction process are established successively, and the transaction process and the scheduling process communicate through shared memory. An example of a transaction process is image 3. The transaction process determines the number of transaction threads to start and the data partition characteristics served by each transaction thread according to the configuration file and the metadata of the database. For example, the partition is obtained by modulo. Assuming that 4 is the modulus, a table in a certain database contains 100 rows of data, then the first 25 tuples of the table are maintained by a transaction thread, the next 25 tuples are maintained by another tuple, and so on. For transactions involving only one partition, the transaction t...

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 invention discloses a database check point construction method based on a virtual memory snapshot. The method comprises the steps that only one affair process exists in a database, and when a write-in or modification request is received, turning can be carried out to complete the request through writing in the memory; only one scheduling process exists in the database, when the conditions are met, the scheduling process actively notices an affair process to initiate the action of establishing a check point, then the scheduling process receives reports of the affair process and a check point process, and the system state is updated; after the affair process receives the notice of the scheduling process, the operation of virtually storing snapshot pictures is established, and then the check point process is started; after the check point process is started, the check point writes all updated data and logs in the current memory into a disk according to the virtually stored snapshoot pictures, and the advantages that the throughput rate of affairs in a database system is increased, and database affair blocking or performance shaking caused by check point establishing is avoided are achieved.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a database checkpoint construction method based on virtual memory snapshots. Background technique [0002] In recent years, online transaction processing (OLTP) is facing higher and higher performance requirements in the big data environment, requiring the database to be more efficient, more accurate, and more reliable to handle high-concurrency transactions. In order to meet reliability requirements, traditional databases must rely on logs written to disk to achieve reliability. The speed of the disk is much slower than our memory, even if it is a solid state drive, its speed is an order of magnitude different from that of memory. Traditional databases mostly use logs to ensure the reliability of the database, similar to Oracle's redo log (redo log) and undo log (undo log), and the bin-log in Mysql. When writing data, frequently moving the magnetic head for random writing will...

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): G06F17/30
CPCG06F16/2358
Inventor 段翰聪闵革勇张建张博王瑾郑松陈成
Owner UNIV OF ELECTRONICS SCI & TECH OF CHINA
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