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

Cache control method and device for solid state hard disk

A solid-state drive and cache control technology, applied in memory systems, memory architecture access/allocation, instruments, etc., to solve problems such as fluctuations and insufficient utilization of solid-state drives

Active Publication Date: 2019-03-15
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen from the examples that the current solutions in the industry make the utilization rate of the solid-state hard disk not constant within a certain range, but fluctuates seriously up and down, which seriously leads to the underutilization of the solid-state hard disk, and even the disk utilization rate reaches 100%. %

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
  • Cache control method and device for solid state hard disk
  • Cache control method and device for solid state hard disk
  • Cache control method and device for solid state hard disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0041] The core of the present invention is to provide a cache control method and device for a solid state disk.

[0042] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0043] figure 1 It is a flowchart of a cache control method for a solid state disk ...

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 method and a device for solid-state drive cache control. The method includes adding a current timestamp for a to-be-cached file and inserting the current timestamp into a level1 db(database); adding 1 to the total data mount of the level1 db and adding 1 to the target cumulant which is of the current timestamp; judging whether the target cumulant is larger than a first preset value, if so, then inserting the new timestamp as the current timestamp; if not, then judging whether the current total data amount is larger than a second preset value or not, if so, then deleting a cache file corresponding to the earliest timestamp while updating the current total data mount. Whether to delete the cache file is determined according to the total data amount of the current database; the deleted cache file is the file corresponding to the earliest timestamp so as to maintain usage rate of the solid-state drives at the stable level without major fluctuations. Besides, by the method and the device, bulk deletion can be realized and cache efficiency can be improved.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a cache control method and device for a solid-state hard disk. Background technique [0002] In the field of data storage technology, especially distributed storage, it is necessary to read a large number of files. If it is read directly from the mechanical hard disk, it will take too long. Therefore, the existing method is usually to cache the data in the mechanical hard disk to When the leveldb database in the solid state disk needs to be read, it is directly taken out from the solid state disk, and then read through the memory. [0003] Since the role of the solid-state drive is a secondary cache, the utilization of the solid-state drive is very important. If there is a large amount of useless data in the solid-state drive, when a new data cache is required, the cache space of the solid-state drive is insufficient. It can be seen that it is very important to improve the ...

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 Patents(China)
IPC IPC(8): G06F12/123G06F12/0897
CPCG06F12/0897G06F12/123G06F2212/1016G06F2212/1032G06F2212/222
Inventor 安祥文
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND