CN105224473A - The update method that a kind of solid state hard disc is data cached and device - Google Patents
The update method that a kind of solid state hard disc is data cached and device Download PDFInfo
- Publication number
- CN105224473A CN105224473A CN201510587591.1A CN201510587591A CN105224473A CN 105224473 A CN105224473 A CN 105224473A CN 201510587591 A CN201510587591 A CN 201510587591A CN 105224473 A CN105224473 A CN 105224473A
- Authority
- CN
- China
- Prior art keywords
- data cached
- solid state
- hard disc
- state hard
- speed cache
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
The embodiment of the invention discloses the data cached update method of a kind of solid state hard disc and device, comprising: to the data cached tracking that conducts interviews in solid state hard disc high-speed cache, record described data cached access times within a preset time interval; Calculate described data cached access frequency within a preset time interval; Judge whether described access frequency is greater than predeterminated frequency threshold value; If, then data cached to be set in described solid state hard disc high-speed cache fixing data cached by described, visible, in the present embodiment by access frequency is reached predeterminated frequency threshold value data cached be set to fixing data cached, namely follow-up when data cached in solid state hard disc high-speed cache is replaced, by fixing data cached replacement, hit degree data cached in solid state hard disc can not be improve, thus improves reading and writing data speed.
Description
Technical field
The present invention relates to the data cached technical field of solid state hard disc, more particularly, relate to the data cached update method of a kind of solid state hard disc and device.
Background technology
Super fusion architecture, refer to not only possess resource and the technology such as calculating, network, storage and server virtualization in same set of unit (x86 server), but also comprise the elements such as buffer memory acceleration, data de-duplication, online data compression, backup software, snapping technique, and multinode can be got up by network polymerization, realize modular seamless (scale-out) extending transversely, form unified resource pool; Storage resources is generally combined by hard disk and solid state hard disc (SolidStateDrives, SSD), is used for Optimal performance and capacity, and SSD is as metadata and read/write high-speed cache (Cache).Traditional SSDCache algorithm adopts first in first out strategy (FIFO-FirstInFirstOut), this algorithm realization is simple, efficiency is higher, be applicable to most application scenarios, but to some high hit degree demand scene degraded performance, the effect of SSD as high-speed cache can not be given full play to.
Therefore, how improving height hit degree data cached in solid state hard disc is the problem needing now to solve.
Summary of the invention
The update method that the object of the present invention is to provide a kind of solid state hard disc data cached and device, to improve height hit degree data cached in solid state hard disc.
For achieving the above object, following technical scheme is embodiments provided:
The update method that solid state hard disc is data cached, comprising:
To the data cached tracking that conducts interviews in solid state hard disc high-speed cache, record described data cached access times within a preset time interval;
Calculate described data cached access frequency within a preset time interval;
Judge whether described access frequency is greater than predeterminated frequency threshold value;
If so, then data cached to be set in described solid state hard disc high-speed cache fixing data cached by described.
Preferably, by described data cached after to be set in described solid state hard disc high-speed cache fixing data cached, also comprise:
Whether the described data cached access frequency of real-time monitoring is greater than predeterminated frequency threshold value;
If described data cached access frequency is not more than predeterminated frequency threshold value, then by data cached for the described data cached on-fixed be set in described solid state hard disc high-speed cache.
Preferably, described to the data cached tracking that conducts interviews in solid state hard disc high-speed cache, record described data cached access times within a preset time interval, comprising:
Data cached access temperature in solid state hard disc high-speed cache is followed the tracks of, and in internal memory, records described data cached access times within a preset time interval.
The updating device that solid state hard disc is data cached, comprising:
Logging modle, for the data cached tracking that conducts interviews in solid state hard disc high-speed cache, records described data cached access times within a preset time interval;
Computing module, for calculating described data cached access frequency within a preset time interval;
Judge module, for judging whether described access frequency is greater than predeterminated frequency threshold value;
If so, then arrange module by described for triggering first, described first arranges module for data cached to be set in described solid state hard disc high-speed cache fixing data cached by described.
Preferably, also comprise:
Monitoring module, for arranging module by described data cached after to be set in described solid state hard disc high-speed cache fixing data cached when described first, whether the described data cached access frequency of monitoring is greater than predeterminated frequency threshold value in real time;
If described data cached access frequency is not more than predeterminated frequency threshold value, then triggers and second arrange module, described second arranges module for by data cached for the described data cached on-fixed be set in described solid state hard disc high-speed cache.
Preferably, described logging modle, comprising:
Data cached access temperature in solid state hard disc high-speed cache is followed the tracks of, and in internal memory, records described data cached access times within a preset time interval.
Known by above scheme, the update method that a kind of solid state hard disc that the embodiment of the present invention provides is data cached and device, comprise: to the data cached tracking that conducts interviews in solid state hard disc high-speed cache, record described data cached access times within a preset time interval; Calculate described data cached access frequency within a preset time interval; Judge whether described access frequency is greater than predeterminated frequency threshold value; If, then data cached to be set in described solid state hard disc high-speed cache fixing data cached by described, visible, in the present embodiment by access frequency is reached predeterminated frequency threshold value data cached be set to fixing data cached, namely follow-up when data cached in solid state hard disc high-speed cache is replaced, by fixing data cached replacement, hit degree data cached in solid state hard disc can not be improve, thus improves reading and writing data speed.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The update method process flow diagram that Fig. 1 a kind of solid state hard disc disclosed in the embodiment of the present invention is data cached;
The updating device structural representation that Fig. 2 a kind of solid state hard disc disclosed in the embodiment of the present invention is data cached.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses the data cached update method of a kind of solid state hard disc and device, to improve height hit degree data cached in solid state hard disc.
See Fig. 1, the update method that a kind of solid state hard disc that the embodiment of the present invention provides is data cached, comprising:
S101, to the data cached tracking that conducts interviews in solid state hard disc high-speed cache, record described data cached access times within a preset time interval;
Concrete, in the present embodiment, need to conduct interviews tracking to the data in buffer memory, namely follow the tracks of the number of times that each data are accessed, if data in the caches be all at one time in many data cached of access times, then can improve the hit rate of access cache data again.
S102, calculating described data cached access frequency within a preset time interval;
Concrete, access times are many, and not represent this data cached accessed frequency high, only has many data cached of access times within a preset time interval, could represent its accessed frequency high.
S103, judge whether described access frequency is greater than predeterminated frequency threshold value;
If so, then perform S104, data cached to be set in described solid state hard disc high-speed cache fixing data cached by described;
If not, then continue to perform S101.
Preferably, by described data cached after to be set in described solid state hard disc high-speed cache fixing data cached, also comprise:
Whether the described data cached access frequency of real-time monitoring is greater than predeterminated frequency threshold value;
If described data cached access frequency is not more than predeterminated frequency threshold value, then by data cached for the described data cached on-fixed be set in described solid state hard disc high-speed cache.
Concrete, be not that access frequency is greater than predeterminated frequency value data cached is set to fixing data cachedly just to finish, also to monitor fixing data cached access frequency simultaneously in real time and whether be greater than default flat rate threshold value always, if monitor fixing data cached access frequency to be less than default access frequency, then fixing data cached to be set to on-fixed data cached by described, namely, when performing first in first out strategy, on-fixed is data cached data cached can be replaced by other.
Preferably, described to the data cached tracking that conducts interviews in solid state hard disc high-speed cache, record described data cached access times within a preset time interval, comprising:
Data cached access temperature in solid state hard disc high-speed cache is followed the tracks of, and in internal memory, records described data cached access times within a preset time interval.
Concrete, traditional SSDCache algorithm adopts first in first out strategy (FIFO-FirstInFirstOut), this algorithm realization is simple, efficiency is higher, be applicable to most application scenarios, but to some high hit degree demand scenes, degraded performance, can not give full play to the effect of SSD as high-speed cache.
Therefore in the present embodiment, SSDCache algorithm is optimized, to the frequency of data access or be referred to as access temperature and follow the tracks of, and data access frequency is recorded in internal memory, and real-time servicing, if within certain period, data access reaches certain frequency, illustrates that these data are often accessed, and these data will be stayed in SSDCache always, so just greatly improve data hit degree, improve the efficiency of storage.
The update method that a kind of solid state hard disc that the embodiment of the present invention provides is data cached, comprising: to the data cached tracking that conducts interviews in solid state hard disc high-speed cache, record described data cached access times within a preset time interval; Calculate described data cached access frequency within a preset time interval; Judge whether described access frequency is greater than predeterminated frequency threshold value; If, then data cached to be set in described solid state hard disc high-speed cache fixing data cached by described, visible, in the present embodiment by access frequency is reached predeterminated frequency threshold value data cached be set to fixing data cached, namely follow-up when data cached in solid state hard disc high-speed cache is replaced, by fixing data cached replacement, hit degree data cached in solid state hard disc can not be improve, thus improves reading and writing data speed.
See Fig. 2, the updating device that a kind of solid state hard disc that the embodiment of the present invention provides is data cached, comprising:
Logging modle 100, for the data cached tracking that conducts interviews in solid state hard disc high-speed cache, records described data cached access times within a preset time interval;
Computing module 200, for calculating described data cached access frequency within a preset time interval;
Judge module 300, for judging whether described access frequency is greater than predeterminated frequency threshold value;
If so, then arrange module 400 by described for triggering first, described first arranges module 400 for data cached to be set in described solid state hard disc high-speed cache fixing data cached by described.
Preferably, in another embodiment provided by the invention, also comprise:
Monitoring module, for arranging module by described data cached after to be set in described solid state hard disc high-speed cache fixing data cached when described first, whether the described data cached access frequency of monitoring is greater than predeterminated frequency threshold value in real time;
If described data cached access frequency is not more than predeterminated frequency threshold value, then triggers and second arrange module, described second arranges module for by data cached for the described data cached on-fixed be set in described solid state hard disc high-speed cache.
Preferably, in another embodiment provided by the invention, comprising:
Data cached access temperature in solid state hard disc high-speed cache is followed the tracks of, and in internal memory, records described data cached access times within a preset time interval.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.
Claims (6)
1. the update method that solid state hard disc is data cached, is characterized in that, comprising:
To the data cached tracking that conducts interviews in solid state hard disc high-speed cache, record described data cached access times within a preset time interval;
Calculate described data cached access frequency within a preset time interval;
Judge whether described access frequency is greater than predeterminated frequency threshold value;
If so, then data cached to be set in described solid state hard disc high-speed cache fixing data cached by described.
2. update method according to claim 1, is characterized in that, by described data cached after to be set in described solid state hard disc high-speed cache fixing data cached, also comprises:
Whether the described data cached access frequency of real-time monitoring is greater than predeterminated frequency threshold value;
If described data cached access frequency is not more than predeterminated frequency threshold value, then by data cached for the described data cached on-fixed be set in described solid state hard disc high-speed cache.
3. update method according to claim 2, is characterized in that, described to the data cached tracking that conducts interviews in solid state hard disc high-speed cache, records described data cached access times within a preset time interval, comprising:
Data cached access temperature in solid state hard disc high-speed cache is followed the tracks of, and in internal memory, records described data cached access times within a preset time interval.
4. the updating device that solid state hard disc is data cached, is characterized in that, comprising:
Logging modle, for the data cached tracking that conducts interviews in solid state hard disc high-speed cache, records described data cached access times within a preset time interval;
Computing module, for calculating described data cached access frequency within a preset time interval;
Judge module, for judging whether described access frequency is greater than predeterminated frequency threshold value;
If so, then arrange module by described for triggering first, described first arranges module for data cached to be set in described solid state hard disc high-speed cache fixing data cached by described.
5. updating device according to claim 4, is characterized in that, also comprises:
Monitoring module, for arranging module by described data cached after to be set in described solid state hard disc high-speed cache fixing data cached when described first, whether the described data cached access frequency of monitoring is greater than predeterminated frequency threshold value in real time;
If described data cached access frequency is not more than predeterminated frequency threshold value, then triggers and second arrange module, described second arranges module for by data cached for the described data cached on-fixed be set in described solid state hard disc high-speed cache.
6. updating device according to claim 5, is characterized in that, described logging modle, comprising:
Data cached access temperature in solid state hard disc high-speed cache is followed the tracks of, and in internal memory, records described data cached access times within a preset time interval.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510587591.1A CN105224473A (en) | 2015-09-15 | 2015-09-15 | The update method that a kind of solid state hard disc is data cached and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510587591.1A CN105224473A (en) | 2015-09-15 | 2015-09-15 | The update method that a kind of solid state hard disc is data cached and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105224473A true CN105224473A (en) | 2016-01-06 |
Family
ID=54993457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510587591.1A Pending CN105224473A (en) | 2015-09-15 | 2015-09-15 | The update method that a kind of solid state hard disc is data cached and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105224473A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105849729A (en) * | 2016-03-25 | 2016-08-10 | 马岩 | Date elimination method and system |
CN107168652A (en) * | 2017-05-19 | 2017-09-15 | 郑州云海信息技术有限公司 | A kind of method of lifting SSD Cache reading performances |
CN107943715A (en) * | 2017-10-12 | 2018-04-20 | 记忆科技(深圳)有限公司 | A kind of method of lifting NVMe solid state hard discs read buffer hit |
CN108536854A (en) * | 2018-04-16 | 2018-09-14 | 深圳市国富前海区块链技术股份有限公司 | The method, apparatus and computer readable storage medium of data interaction |
CN110020266A (en) * | 2017-07-13 | 2019-07-16 | 深圳市Tcl高新技术开发有限公司 | Access the method, apparatus and computer readable storage medium, terminal device of picture |
CN110716689A (en) * | 2018-07-11 | 2020-01-21 | 阿里巴巴集团控股有限公司 | Data processing method and device and computing equipment |
CN110941569A (en) * | 2019-11-18 | 2020-03-31 | 新华三半导体技术有限公司 | Data processing method and device and processor chip |
WO2020073328A1 (en) * | 2018-10-12 | 2020-04-16 | 华为技术有限公司 | Data processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8307014B2 (en) * | 2010-08-25 | 2012-11-06 | International Business Machines Corporation | Database rebalancing in hybrid storage environment |
CN103177005A (en) * | 2011-12-21 | 2013-06-26 | 深圳市腾讯计算机系统有限公司 | Processing method and system of data access |
CN103744623A (en) * | 2014-01-10 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Method for realizing intelligent degradation of data cached in SSD (Solid State Disk) of storage system |
EP2881854A1 (en) * | 2012-08-03 | 2015-06-10 | ZTE Corporation | Storage method and apparatus for distributed file system |
CN104715020A (en) * | 2015-02-13 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Cache data deleting method and server |
-
2015
- 2015-09-15 CN CN201510587591.1A patent/CN105224473A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8307014B2 (en) * | 2010-08-25 | 2012-11-06 | International Business Machines Corporation | Database rebalancing in hybrid storage environment |
CN103177005A (en) * | 2011-12-21 | 2013-06-26 | 深圳市腾讯计算机系统有限公司 | Processing method and system of data access |
EP2881854A1 (en) * | 2012-08-03 | 2015-06-10 | ZTE Corporation | Storage method and apparatus for distributed file system |
CN103744623A (en) * | 2014-01-10 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Method for realizing intelligent degradation of data cached in SSD (Solid State Disk) of storage system |
CN104715020A (en) * | 2015-02-13 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Cache data deleting method and server |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105849729A (en) * | 2016-03-25 | 2016-08-10 | 马岩 | Date elimination method and system |
CN107168652A (en) * | 2017-05-19 | 2017-09-15 | 郑州云海信息技术有限公司 | A kind of method of lifting SSD Cache reading performances |
CN110020266A (en) * | 2017-07-13 | 2019-07-16 | 深圳市Tcl高新技术开发有限公司 | Access the method, apparatus and computer readable storage medium, terminal device of picture |
CN107943715A (en) * | 2017-10-12 | 2018-04-20 | 记忆科技(深圳)有限公司 | A kind of method of lifting NVMe solid state hard discs read buffer hit |
CN107943715B (en) * | 2017-10-12 | 2021-10-01 | 记忆科技(深圳)有限公司 | Method for improving read cache hit of NVMe solid state disk |
CN108536854A (en) * | 2018-04-16 | 2018-09-14 | 深圳市国富前海区块链技术股份有限公司 | The method, apparatus and computer readable storage medium of data interaction |
CN110716689A (en) * | 2018-07-11 | 2020-01-21 | 阿里巴巴集团控股有限公司 | Data processing method and device and computing equipment |
WO2020073328A1 (en) * | 2018-10-12 | 2020-04-16 | 华为技术有限公司 | Data processing method and device |
CN112673359A (en) * | 2018-10-12 | 2021-04-16 | 华为技术有限公司 | Data processing method and device |
CN110941569A (en) * | 2019-11-18 | 2020-03-31 | 新华三半导体技术有限公司 | Data processing method and device and processor chip |
CN110941569B (en) * | 2019-11-18 | 2021-01-26 | 新华三半导体技术有限公司 | Data processing method and device and processor chip |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105224473A (en) | The update method that a kind of solid state hard disc is data cached and device | |
CN102156738B (en) | Method for processing data blocks, and data block storage equipment and system | |
CN102609360B (en) | Data processing method, data processing device and data processing system | |
US9128855B1 (en) | Flash cache partitioning | |
US8966170B2 (en) | Elastic cache of redundant cache data | |
US20150193473A1 (en) | Database Storage System based on Optical Disk and Method Using the System | |
CN104267912A (en) | NAS (Network Attached Storage) accelerating method and system | |
CN102117248A (en) | Caching system and method for caching data in caching system | |
CN103399823B (en) | The storage means of business datum, equipment and system | |
CN103763383A (en) | Integrated cloud storage system and storage method thereof | |
CN104503923B (en) | A kind of asymmetric disk array cache dispatching method | |
CN102981783A (en) | Cache accelerating method based on Nand Flash | |
CN103702057A (en) | Block storage algorithm applicable to multiple paths of concurrent-written stream media data | |
CN103645862B (en) | A kind of disk array initializes performance boost method | |
CN106469123A (en) | A kind of write buffer distribution based on NVDIMM, method for releasing and its device | |
CN103699336A (en) | Method and system for distributing and reestablishing data of magnetic disc array | |
CN109375868B (en) | Data storage method, scheduling device, system, equipment and storage medium | |
CN103502925A (en) | Management method and device of monitoring records | |
CN102521161B (en) | Data caching method, device and server | |
US9785562B2 (en) | Adjusting allocation of storage devices | |
US10572464B2 (en) | Predictable allocation latency in fragmented log structured file systems | |
CN105204785A (en) | Disk array writemode selecting method based on I/O queue of disk | |
CN104156327A (en) | Method for recognizing object power failure in write back mode in distributed file system | |
US9852058B2 (en) | NVS thresholding for efficient data management | |
CN104035886A (en) | Magnetic disk remapping method, magnetic disk remapping device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160106 |
|
RJ01 | Rejection of invention patent application after publication |