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

Cost-based buffer area replacement method of flash memory database

A technology of memory buffer and database, which is applied in the direction of electronic digital data processing, memory system, memory address/allocation/relocation, etc. It can solve the problem of inconsistency, high cost of flash memory write operation, and does not consider the asymmetry of flash memory read and write cost Differences and other issues, to achieve the effect of reducing write operations, good sequential access mode and long loop access mode, and good performance

Inactive Publication Date: 2011-10-05
孟小峰
View PDF2 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0025] However, the main disadvantages of the above methods are: 1. The buffer strategy designed for disk assumes that all physical operations on auxiliary storage have the same storage cost, so it cannot take advantage of the fast read speed of flash memory and cannot avoid the cost of flash write operations 2. The buffer strategy designed for flash memory assumes that the cost of reading flash memory is negligible compared with the cost of expensive write operations, which is inconsistent with the actual situation
3. The buffer strategy designed for flash memory does not consider the difference in the asymmetry of read and write costs of different flash memories, but only designs a buffer strategy for a certain flash memory
4. The buffer strategy designed for flash memory does not consider the problem that the replacement cost of different data pages is different

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
  • Cost-based buffer area replacement method of flash memory database
  • Cost-based buffer area replacement method of flash memory database
  • Cost-based buffer area replacement method of flash memory database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The present invention will be described in detail below in conjunction with the accompanying drawings and embodiments.

[0051] Such as Figure 4 As shown, the organizational mode of the data pages in the buffer that the present invention adopts is: the data pages in the buffer are stored in two different queues respectively according to whether they have been modified, respectively read-only queue RQ and modification queue WQ, Among them, the read-only queue RQ is used to store read-only pages, and the modification queue WQ is used to store modified pages. According to the variable parameters of the data page, the data pages of the buffer are assigned weights and sorted.

[0052] Such as Figure 5 Shown, the flash memory database buffer replacement method based on cost of the present invention comprises the steps:

[0053] 1) If the data page r requested by the CPU is hit, that is, the data page is in the memory buffer, then judge whether r is in the read-only queue...

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 cost-based buffer area replacement method of a flash memory database. The method comprises the following steps of: classifying data pages in a buffer area and endowing weight values; and during buffer area replacement, selecting a replacement page according to weight values of the data pages. Compared with the other buffer area replacement methods of a database system based on flash memories, the invention has the advantages that: by the method, adaptive strategy adjustment can be carried out according to the flash memories with different functions, so the method can be applied to different flash memory hard disks and better performance can be obtained. On the premise of no reduction of a hit rate, proper replacement pages are fairly selected from a read-only queue or a modification queue according to the weight values of the data pages, so the write operation of the flash memories can be reduced, the abrasion of the flash memories is reduced, and the performance of the system is improved. By the method, a sequence access mode and a long cyclic access mode can be well processed, so compared with other buffer area management methods provided based on the flash memories, the method provided by the invention has the advantages that: better performance can be obtained, and the method can be applied to various flash memories and various access modes.

Description

technical field [0001] The invention relates to a buffer replacement method, in particular to a cost-based flash memory database buffer replacement method. Background technique [0002] A typical computer system contains two layers of memory, namely main memory (buffer) and auxiliary memory (external storage media, such as disk or SSD). The access speed of the buffer is much faster than that of the auxiliary storage, and the two generally use data pages of the same size. [0003] When the system needs to operate a data page, the buffer algorithm needs to prepare the required data page for the system according to the following steps: [0004] (1) Check whether the requested page is in the current buffer. [0005] (2) If the requested page is in the current buffer, obtain the required data directly and end. [0006] (3) Otherwise, select a replacement page according to a certain strategy. [0007] (4) If the replacement page is a read-only page, read the requested page dir...

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): G06F12/08G06F12/121
Inventor 孟小峰汤显
Owner 孟小峰