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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 