CN107799157A - A kind of method for refreshing data - Google Patents
A kind of method for refreshing data Download PDFInfo
- Publication number
- CN107799157A CN107799157A CN201711187276.5A CN201711187276A CN107799157A CN 107799157 A CN107799157 A CN 107799157A CN 201711187276 A CN201711187276 A CN 201711187276A CN 107799157 A CN107799157 A CN 107799157A
- Authority
- CN
- China
- Prior art keywords
- data
- solid state
- hard disc
- state hard
- controller
- 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
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/04—Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
- G11C29/08—Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
- G11C29/12—Built-in arrangements for testing, e.g. built-in self testing [BIST] or interconnection details
- G11C29/44—Indication or identification of errors, e.g. for repair
- G11C29/4401—Indication or identification of errors, e.g. for repair for self repair
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The present invention provides a kind of method for refreshing data, the technical problem weaker for solving the self-repairing capability of solid state hard disc.When the controller by solid state hard disc determines that the solid state hard disc meets predetermined condition, the historical data of the solid state hard disc is obtained by the controller of the solid state hard disc;The historical data is used for the behaviour in service for indicating the solid state hard disc;The historical data is analyzed by the controller, to determine to need the data refreshed in the solid state hard disc.Determine that the solid state hard disc is in off-position in the first preset duration by the controller;The end of time of first preset duration is current time;Determine that the solid state hard disc meets the predetermined condition by the controller.The historical data is analyzed by the controller, determines the total data in the solid state hard disc to need the data refreshed.
Description
Technical field
The present invention relates to field of computer technology, it is proposed that a kind of method for refreshing data of solid state hard disc.
Background technology
With the high speed development of data storage technology, solid state hard disc (SolidStateDrives, SSD) is due to read-write
Speed is fast, anti-vibration, low-power consumption, noiseless, low in calories and light weight the features such as, be widely used in it is military, vehicle-mounted,
The fields such as industry, medical treatment and aviation.
Using solid state hard disc of the flash memory particle as storage medium, due to its using electric charge come the characteristic of data storage, certainly
Having determined solid state hard disc needs to ensure the reliability of data by the accuracy of the electric charge of storage.But in actual applications, if
For a long time without using solid state hard disc, when the environment temperature of particularly storage solid state hard disc is higher, electric charge in solid state hard disc is stored in
Quantity be possible to slowly to reduce, consequently, it is possible to cause storage data make a mistake.
At present, solid state hard disc can be connected to main frame, the data stored in solid state hard disc is brushed by main frame
Newly, for example, wrong data a small amount of in solid state hard disc can be recovered, and solid state hard disc is kept to have sufficient electric charge, so that it is guaranteed that
The reliability of the data stored in solid state hard disc.However, this mode needs main frame to interact and could realize with solid state hard disc
The refreshing of data, limitation is larger, and the self-repairing capability of solid state hard disc is weaker.
The content of the invention
The present invention provides a kind of method for refreshing data and solid state hard disc, for solve the self-repairing capability of solid state hard disc compared with
Weak technical problem.Including:
When the controller by solid state hard disc determines that the solid state hard disc meets predetermined condition, pass through the control of the solid state hard disc
Device processed obtains the historical data of the solid state hard disc;The historical data is used for the behaviour in service for indicating the solid state hard disc;
The historical data is analyzed by the controller, to determine to need the data refreshed in the solid state hard disc.
Optionally, determine that the solid state hard disc meets the predetermined condition by the controller of solid state hard disc, including:
Determine that the solid state hard disc is in off-position in the first preset duration by the controller;Described first it is default when
Long end of time is current time;
Determine that the solid state hard disc meets the predetermined condition by the controller.
Optionally, the historical data is analyzed by the controller, to determine to need what is refreshed in the solid state hard disc
Data, including:
The historical data is analyzed by the controller, determines the total data in the solid state hard disc to need the number refreshed
According to.
Optionally, determine that the solid state hard disc meets the predetermined condition by the controller of solid state hard disc, including:
Determine to be included in what is do not read in the second preset duration in the data of the solid state hard disc storage by the controller
Data, or determine by the controller not being included in what is write in the second preset duration in the data that the solid state hard disc stores
Data;The end of time of second preset duration is current time;To timely processing.It is described preferentially to may be embodied in:Often handle N
Individual synchronous write request, then an asynchronous write request is handled, reprocesses N number of synchronous write request afterwards, the like, N is more than 1
Positive integer, specific value can be decided according to the actual requirements, for example can be 5.
Determine that the solid state hard disc meets the predetermined condition by the controller.
Optionally, if determining to be included in the second preset duration in the data of the solid state hard disc storage by the controller
The data do not read inside, then, the historical data is analyzed by the controller, to determine to need to brush in the solid state hard disc
New data, including:
The historical data is analyzed by the controller, it is determined that the data do not read in second preset duration are to need
The data to be refreshed.
Optionally, if determine that not being included in second in the data of the solid state hard disc storage presets by the controller
The data of write-in in long, then, the historical data is analyzed by the controller, to determine to need to refresh in the solid state hard disc
Data, including:
The historical data is analyzed by the controller, determines the total data in the solid state hard disc to need the number refreshed
According to.
In the present invention, it can determine whether solid state hard disc meets predetermined condition so as to really by the controller of solid state hard disc
Determine there are data needs in predetermined condition, that is, solid state hard disc is met with the presence or absence of the data for needing to refresh in solid state hard disc
In the case of refreshing, the historical data of solid state hard disc can be analyzed by the controller of solid state hard disc so that it is determined that needing what is refreshed
It is which data stored in solid state hard disc.By such mode, without being interacted with main frame, solid state hard disc just can be straight
Connect whether the data for determining to be stored in solid state hard disc need to refresh, and which data determine to need to refresh is, is weakened external
The dependence of portion's equipment, enhance the self-repairing capability of solid state hard disc.
Processing module, for being handled according to by the clooating sequence after arriving first each request in individual queue.
Wherein, order module can be further used for, after the request is added in read request queue, it is determined that should ask
Seeking Truth is no to be merged with an existing request in read request queue, if it is, merging, otherwise, this is asked
Last position in read request queue is come, order module be can be further used for, and the request is being added into asynchronous write request
After in queue, further comprise:Determine whether the request can be closed with an existing request in asynchronous write request queue
And if it is, merge, otherwise, the request is come to last position in asynchronous write request queue;Order module may be used also
It is further used for, after the request is added in synchronous write request queue, further comprises:Determine that the request whether can
Merged with existing request in synchronous write request queue, if it is, merging, otherwise, the request is come into synchronization
Last position in write request queue.
In addition, processing module can be further used for, in processing write requests, in priority treatment synchronization write request queue
Write request.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God any modification, equivalent substitution and improvements done etc., should be included within the scope of protection of the invention with principle.
Brief description of the drawings
Fig. 1 is the structural representation of solid state hard disc in the embodiment of the present invention;
Fig. 2 is the flow chart of method for refreshing data in the embodiment of the present invention.
Embodiment
Fig. 2 is referred to, the embodiment of the present invention provides a kind of method for refreshing data, and this method can be performed by solid state hard disc,
Such as can be performed by the controller of solid state hard disc, the flow of this method is described as follows.
When determining that solid state hard disc meets predetermined condition by the controller of solid state hard disc, pass through the controller of solid state hard disc
Obtain the historical data of solid state hard disc;Historical data is used for the behaviour in service for indicating solid state hard disc;
By controller analysis of history data, to determine to need the data refreshed in solid state hard disc.
Historical data can serve to indicate that the behaviour in service of solid state hard disc.For example, historical data can include solid state hard disc
Data, data, Yi Jitong corresponding to power-cut time corresponding to the upper electric moment being powered each time since first time is powered
Data corresponding to electric duration, or, historical data can also include each data of the memory storage in solid state hard disc
The time data being read or written, or, historical data can also include the every number stored in the memory of solid state hard disc
Time data being refreshed according to the last time, etc..As long as the data for being used to refer to the behaviour in service of solid state hard disc can
Including in the historical data.
Predetermined condition, that is, it is used for determining whether the data of the memory storage in solid state hard disc need the condition refreshed, when
When solid state hard disc meets predetermined condition, then it can determine to store the data of refreshing in need in the memory of solid state hard disc.On
Determine whether solid state hard disc meets the mode of predetermined condition, citing below is introduced.
The first:
Optionally, in an alternative embodiment of the invention, determine that solid state hard disc meets predetermined condition by the controller of solid state hard disc,
Including:
Determine that solid state hard disc is in off-position in the first preset duration by controller;The end of time of first preset duration
For current time;
Determine that solid state hard disc meets predetermined condition by controller.
Generally, if solid state hard disc is for a long time all in off-position, it is believed that solid state hard disc long-time is all
Do not use, therefore, it is possible to cause the data of storage to make a mistake in the presence of being reduced because of the electric charge being stored in solid state hard disc
Situation.In such a case, it is possible to think the data for needing to refresh in memory be present.
In the embodiment of the present invention, predetermined condition can be that solid state hard disc is in off-position, example in the first preset duration
Such as, controller can detect data corresponding to the last power-cut time being powered of solid state hard disc, if the last power-off being powered
Moment not within the period corresponding to the first preset duration, then can determine solid state hard disc in the first preset duration in power-off
State, then can determine that solid state hard disc meets predetermined condition, that is, determine the data for needing to refresh in solid state hard disc be present.
Optionally, in an alternative embodiment of the invention, by controller analysis of history data, to determine to need in solid state hard disc
The data to be refreshed, including:
By controller analysis of history data, the total data in solid state hard disc is determined to need the data refreshed.
In the embodiment of the present invention, if determining solid state hard disc in the first preset duration in power-off shape by controller
State, then the historical data of solid state hard disc can be analyzed, historical data at this moment can be the last power-off being powered of solid state hard disc
Data corresponding to the size of the data total amount stored in data, or memory corresponding to moment.
Generally, if solid state hard disc is not powered for a long time, may indicate that all data for being stored in memory compared with
It is all not updated in for a long time, then be able to will to be deposited by the analysis of data corresponding to the power-cut time to last time energization
The total data stored in reservoir is all defined as needing the data refreshed.
Or for new solid state hard disc, memory may be stored with a small amount of data when dispatching from the factory, such as,
Some softwares for being used to recover data are stored with, therefore, if according to the analysis to historical data, show what is stored in memory
Data total amount very little, it is possible to which it is new to think solid state hard disc, so as to according to the data total amount to being stored in memory
Size analysis, it is believed that the data stored in memory need not all refresh.
Can relatively accurately it determine through the above way in solid state hard disc with the presence or absence of the data for needing to refresh.
Optionally, in an alternative embodiment of the invention, if determining that the data that solid state hard disc stores include by controller
The data do not read in the second preset duration, then, by controller analysis of history data, to determine to need in solid state hard disc
The data of refreshing, including:
By controller analysis of history data, it is determined that the number that the data do not read in the second preset duration refresh for needs
According to.
In the embodiment of the present invention, by controller determine to exist in the second preset duration the data do not read it
Afterwards, controller can be to historical data analysis, and historical data here can be each data nearest one stored in memory
The secondary time data being read, may thereby determine that the data do not read in the second preset duration is which, and by this
A little data do not read are defined as needing the data refreshed.
Described above, above example is implemented above only the technical scheme of the application to be described in detail
The explanation of example is only intended to help the method and its core concept for understanding the present invention, should not be construed as limiting the invention.This
Those skilled in the art the invention discloses technical scope in, should all be included within the scope of the present invention.
Claims (6)
1. a kind of method for refreshing data, including:Determine that the solid state hard disc meets predetermined bar in the controller by solid state hard disc
During part, the historical data of the solid state hard disc is obtained by the controller of the solid state hard disc;The historical data is used to indicate
The behaviour in service of the solid state hard disc;The historical data is analyzed by the controller, to determine to need in the solid state hard disc
The data to be refreshed.
2. the method as described in claim 1, it is characterised in that determine that the solid state hard disc is expired by the controller of solid state hard disc
The foot predetermined condition, including:Determine the solid state hard disc in the first preset duration in power-off shape by the controller
State;The end of time of first preset duration is current time;Determine that the solid state hard disc meets institute by the controller
State predetermined condition.
3. method as claimed in claim 2, it is characterised in that the historical data is analyzed by the controller, to determine
The data refreshed are needed in the solid state hard disc, including:The historical data is analyzed by the controller, determines the solid-state
The data that total data in hard disk refreshes for needs.
4. the method as described in claim 1, it is characterised in that determine that the solid state hard disc is expired by the controller of solid state hard disc
The foot predetermined condition, including:Determine that being included in second in the data of the solid state hard disc storage presets by the controller
The data do not read in duration, or determine by the controller not to be included in second in the data that the solid state hard disc stores
The data of write-in in preset duration;The end of time of second preset duration is current time;Determined by the controller
The solid state hard disc meets the predetermined condition.
5. method as claimed in claim 4, it is characterised in that if determining what the solid state hard disc stored by the controller
It is included in the data do not read in the second preset duration in data, then, the historical data is analyzed by the controller, with
Determine to need the data refreshed in the solid state hard disc, including:The historical data is analyzed by the controller, it is determined that in institute
State the data that the data do not read in the second preset duration refresh for needs.
6. method as claimed in claim 4, it is characterised in that if determining what the solid state hard disc stored by the controller
It is not included in the data of write-in in the second preset duration in data, then, the historical data is analyzed by the controller, with true
The data refreshed are needed in the fixed solid state hard disc, including:The historical data is analyzed by the controller, determined described solid
The data that total data in state hard disk refreshes for needs.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711187276.5A CN107799157A (en) | 2017-11-24 | 2017-11-24 | A kind of method for refreshing data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711187276.5A CN107799157A (en) | 2017-11-24 | 2017-11-24 | A kind of method for refreshing data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107799157A true CN107799157A (en) | 2018-03-13 |
Family
ID=61536530
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711187276.5A Pending CN107799157A (en) | 2017-11-24 | 2017-11-24 | A kind of method for refreshing data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107799157A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111367466A (en) * | 2018-12-26 | 2020-07-03 | 深圳市茁壮网络股份有限公司 | Disk pre-retirement method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970684A (en) * | 2013-02-04 | 2014-08-06 | 联想(北京)有限公司 | Data storage method and electronic device |
CN105260267A (en) * | 2015-09-28 | 2016-01-20 | 联想(北京)有限公司 | Data refreshing method and solid state disk |
CN106383775A (en) * | 2015-08-18 | 2017-02-08 | 上海景格科技股份有限公司 | Equipment usage time recording method and device thereof |
-
2017
- 2017-11-24 CN CN201711187276.5A patent/CN107799157A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970684A (en) * | 2013-02-04 | 2014-08-06 | 联想(北京)有限公司 | Data storage method and electronic device |
CN106383775A (en) * | 2015-08-18 | 2017-02-08 | 上海景格科技股份有限公司 | Equipment usage time recording method and device thereof |
CN105260267A (en) * | 2015-09-28 | 2016-01-20 | 联想(北京)有限公司 | Data refreshing method and solid state disk |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111367466A (en) * | 2018-12-26 | 2020-07-03 | 深圳市茁壮网络股份有限公司 | Disk pre-retirement method and device |
CN111367466B (en) * | 2018-12-26 | 2023-08-15 | 深圳市茁壮网络股份有限公司 | Disk retirement method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105260267B (en) | A kind of method for refreshing data and solid state hard disk | |
KR102380670B1 (en) | Fine-grained bandwidth provisioning in a memory controller | |
US20180336150A1 (en) | Context-aware dynamic command scheduling for a data storage system | |
US20140281214A1 (en) | Total quotas for data storage system | |
US20150121023A1 (en) | Operating A Memory Management Controller | |
EP3506107A1 (en) | Storing and retrieving training data for models in a data center | |
US20170010992A1 (en) | Power saving feature for storage subsystems | |
JP2016091245A (en) | File migration method in hierarchical storage system | |
US20220301598A1 (en) | Management of thermal throttling in data storage devices | |
CN103136215A (en) | Data read-write method and device of storage system | |
WO2021194534A9 (en) | Power management for data storage devices implementing non-volatile memory (nvm) sets | |
US20160216900A1 (en) | Information processing device, information processing method, and medium | |
US9317447B2 (en) | Systems and methods for background destaging storage tracks | |
CN107799157A (en) | A kind of method for refreshing data | |
CN107783886A (en) | A kind of method and terminal for obtaining operation frame per second | |
CN101957729B (en) | Logical block transformation method and method and device compatible with reading and writing of user based on same | |
CN102880467A (en) | Method for verifying Cache coherence protocol and multi-core processor system | |
CN109656479A (en) | A kind of method and device constructing memory command sequence | |
TW201346578A (en) | PCIE device power state control | |
US10719243B2 (en) | Techniques for preserving an expected lifespan of a non-volatile memory | |
US10289578B2 (en) | Per-DRAM and per-buffer addressability shadow registers and write-back functionality | |
US9520162B2 (en) | DIMM device controller supervisor | |
US10025373B2 (en) | Reduction of power consumption of a buffer in tape drive | |
US9696986B2 (en) | Managing a code load | |
US20140095825A1 (en) | Semiconductor device and operating method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180313 |
|
WD01 | Invention patent application deemed withdrawn after publication |