Key-Value local storage method and system based on solid state disk (SSD)

A technology of local storage and memory pool, applied in memory address/allocation/relocation, special data processing applications, digital data information retrieval, etc., can solve complex lock mechanism, difficult to improve database performance and scalability, and unfavorable overall system performance And other issues

Active Publication Date: 2012-10-10
INST OF COMPUTING TECH CHINESE ACAD OF SCI +1
View PDF3 Cites 60 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But for new loads in the era of big data, relational databases show their inherent limitations:
The first reason is that relatively speaking, there is no strict requirement for the characteristics of ACID in the new business requirements typical of Internet applications. For example, there are temporary inconsistencies in blog posts, related comments, album pictures, and even online store inventory. status is acceptable to the user
Second, the strict ACID feature restrictions make it difficult to improve the overall performance and scalability of the database, which is mainly caused by complex locking mechanisms, log mechanisms, etc.
[0014] Among the existing similar systems, systems such as Flashstore and FAWN use the Hash-type data indexing mechanism. There are two main problems in this indexing method. It is difficult to achieve the effect of both
Second, the Hash data index is difficult to implement range search operations
[0015] For many systems using the traditional B+ tree index mechanism represented by Berkeley DB, the main problem when using it on SSDs is that data insertion will cause a large number of in-place update and write operations, which is an IO mode that is not conducive to SSD performance. , on the other hand, for concurrency support, the B+ tree index needs to introduce a complex locking mechanism, which is not conducive to the overall performance of the system
[0016] The LSM-tree index structure that appeared later is applied in systems such as LevelDB. Its advantage is that the writing mode is large-grained continuous writing, which is very conducive to the performance of SSDs. However, LSM-tree is a mechanism that tends to write optimization. , the performance of the read operation is low due to the large number of hard disk reads introduced
[0017] To sum up, the existing Key-Value system cannot meet the current application requirements, mainly reflected in the following two points:
[0018] First, the concurrency control technology based on the lock mechanism is difficult to meet the requirements of high concurrent read and write load;
[0019] Second, the writing mode of the existing system does not adapt to the characteristics of SSD

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
  • Key-Value local storage method and system based on solid state disk (SSD)
  • Key-Value local storage method and system based on solid state disk (SSD)
  • Key-Value local storage method and system based on solid state disk (SSD)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0087] Specific embodiments of the present invention are given below, and the present invention is described in detail in conjunction with the accompanying drawings.

[0088] (Tree Index) memory snapshot B+ tree index module: use the memory snapshot B+ tree technology to realize the data index mechanism.

[0089] (Memory Pool) memory pool management module: perform space allocation of B+ tree pages and cache management.

[0090] (Log Manager) log-type data management module: perform specific read and write operations on the data persistence function, and realize the mapping management of logical page numbers and physical locations through the empty file mechanism.

[0091] Memory snapshot B+ tree index

[0092] B+ tree is a commonly used data index structure in databases and file systems. The advantage is to keep the stored data stable and orderly, and insert and modify have a relatively stable logarithmic time complexity. The invention uses the memory snapshot mechanism to ...

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 Key-Value local storage method and a Key-Value local storage system based on a solid state disk (SSD). The method comprises the following steps of: 1, performing read-write separation operation of a memory on data by adopting a memory snapshot B+ tree index structure; 2, performing first in first out (FIFO) queue management and caching on the indexed data aiming at a B+ tree; and 3, performing read-write operation on the data. Mapping management of logical page number and physical position is realized through an empty file mechanism in the log type additional write-in data.

Description

technical field [0001] The invention relates to a local data storage management system, in particular to a Key-Value (key-value) type local storage method and system based on SSD (Solid State Disk). Background technique [0002] The organization and management of data is mainly divided into three steps. The first is online access to data, which mainly refers to obtaining data and providing reading services, that is, for traditional OLTP loads. The second is data organization, which traditionally refers to the The data in the OLTP database is converted into a data format suitable for the data warehouse, which is a process called ETL. The third is data analysis, which refers to long-term, complex data mining and other work to discover the connection and potential value in the data, that is, OLAP-type tasks. In this paper, we focus on the online access part of the data. [0003] In the traditional solution, the relational database represented by MySQL satisfies the task of on...

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): G06F12/08
CPCG06F17/30G06F16/2246
Inventor 刘凯捷熊劲孙凝晖
Owner INST OF COMPUTING TECH CHINESE ACAD OF SCI
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