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

A LMDB expansion method and device

An expansion method and database technology, which are applied in the field of LMDB expansion methods and devices, can solve problems such as low LMDB expansion efficiency, and achieve the effect of improving access efficiency

Active Publication Date: 2019-03-01
NEW H3C TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides an LMDB expansion method and device to solve the problem of low LMDB expansion efficiency in the existing LMDB implementation scheme

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
  • A LMDB expansion method and device
  • A LMDB expansion method and device
  • A LMDB expansion method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, and to make the above-mentioned purposes, features and advantages of the embodiments of the present invention more obvious and understandable, the following describes the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings For further detailed explanation.

[0042] See figure 1 , is a schematic flow diagram of an LMDB extension method provided by an embodiment of the present invention, wherein the LMDB extension method can be applied to a network device (such as a switch) running LMDB, such as figure 1 As shown, the LMDB extension method may include the following steps:

[0043] For ease of understanding and description, the following descriptions will be made by taking steps 101 to 102 to be executed by a network device as an example.

[0044] Step 101, when determining that the...

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 provides an LMDB expansion method and device. The method comprises the following steps: when determining that a first virtual memory space of a target process pointed to by a pointer ofa target database file satisfies an expansion condition, mapping a second virtual memory space in the target process for the target database file; when the first virtual memory space of the target process pointed to by a pointer of the target database file satisfies an expansion condition, mapping the second virtual memory space in the target process for the target database file, wherein the length of the second virtual memory space is greater than the length of the first virtual memory space; pointing a pointer of the target database file to the second virtual memory space. The application ofthe embodiment of the invention can improve the access efficiency of the database file.

Description

technical field [0001] The invention relates to the technical field of network communication, in particular to an LMDB extension method and device. Background technique [0002] LMDB (Lightning Memory-Mapped Database, Lightning Memory-Mapped Database) is a database based on MMAP (a method of memory-mapped files). MMAP can map the content of the database file to the inside of the process (virtual memory space), and multiple processes can map a database file at the same time. Based on this, LMDB realizes the sharing of data among different processes. [0003] When the remaining space of the virtual memory space mapped by a database file in a process is zero, the process needs to wait for all transactions accessing the virtual memory space to end, and then call the interface of LMDB to cancel the original memory mapping, that is, release The original virtual memory space (virtual memory space whose remaining space is zero), and re-map a longer virtual memory space for the data...

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): G06F9/46G06F9/50
CPCG06F9/467G06F9/5016
Inventor 王洋
Owner NEW H3C TECH CO LTD