CN105260267A - Data refreshing method and solid state disk - Google Patents

Data refreshing method and solid state disk Download PDF

Info

Publication number
CN105260267A
CN105260267A CN201510629480.2A CN201510629480A CN105260267A CN 105260267 A CN105260267 A CN 105260267A CN 201510629480 A CN201510629480 A CN 201510629480A CN 105260267 A CN105260267 A CN 105260267A
Authority
CN
China
Prior art keywords
data
solid state
state hard
hard disc
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.)
Granted
Application number
CN201510629480.2A
Other languages
Chinese (zh)
Other versions
CN105260267B (en
Inventor
付荣耀
符赞宣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510629480.2A priority Critical patent/CN105260267B/en
Publication of CN105260267A publication Critical patent/CN105260267A/en
Application granted granted Critical
Publication of CN105260267B publication Critical patent/CN105260267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)

Abstract

The invention discloses a data refreshing method and a solid state disk. The method is used for solving the technical problem of relatively poor self-repair capability of the solid state disk. The method comprises: when determining that the solid state disk meets a preset condition through a controller of the solid state disk, obtaining historical data of the solid state disk through the controller of the solid state disk, wherein the historical data is used for indicating a usage state of the solid state disk; and analyzing the historical data through the controller to determine data required to be refreshed in the solid state disk.

Description

A kind of method for refreshing data and solid state hard disc
Technical field
The present invention relates to field of computer technology, particularly a kind of method for refreshing data and solid state hard disc.
Background technology
Along with the high speed development of data storage technology, solid state hard disc (SolidStateDrives, the features such as SSD) read or write speed is fast owing to having, anti-vibration, low-power consumption, noiselessness, low in calories and quality are light, have been widely used in the fields such as military affairs, vehicle-mounted, industrial, medical and aviation.
Adopt flash memory particle as the solid state hard disc of storage medium, because it utilizes electric charge to store the characteristic of data, determining solid state hard disc needs the accuracy of the electric charge by storing to guarantee the reliability of data.But in actual applications, if do not use solid state hard disc for a long time, particularly deposit the environment temperature of solid state hard disc higher time, the quantity being stored in electric charge in solid state hard disc likely can slowly reduce, thus the data stored may be caused to make a mistake.
At present, solid state hard disc can be connected to main frame (such as personal computer (PC)), by main frame, the data stored in solid state hard disc are refreshed, such as, misdata a small amount of in solid state hard disc can be recovered, and keep solid state hard disc to have sufficient electric charge, thus guarantee the reliability of the data stored in solid state hard disc.But this mode needs main frame and solid state hard disc to carry out could realizing alternately the refreshing of data, limitation is comparatively large, and the self-repairing capability of solid state hard disc is more weak.
Summary of the invention
The embodiment of the present invention provides a kind of method for refreshing data and solid state hard disc, the technical matters that the self-repairing capability for solving solid state hard disc is more weak.
First aspect, provides a kind of method for refreshing data, comprising:
When the controller by solid state hard disc determines that described solid state hard disc meets predetermined condition, obtained the historical data of described solid state hard disc by the controller of described solid state hard disc; Described historical data is used to indicate the behaviour in service of described solid state hard disc;
Described historical data is analyzed, to determine the data needing in described solid state hard disc to refresh by described controller.
Optionally, determine that described solid state hard disc meets described predetermined condition by the controller of solid state hard disc, comprising:
Determine that described solid state hard disc is in off-position in the first preset duration by described controller; The terminal moment of described first preset duration is current time;
Determine that described solid state hard disc meets described predetermined condition by described controller.
Optionally, analyze described historical data by described controller, to determine the data needing in described solid state hard disc to refresh, comprising:
Analyze described historical data by described controller, determine that the total data in described solid state hard disc is the data needing to refresh.
Optionally, determine that described solid state hard disc meets described predetermined condition by the controller of solid state hard disc, comprising:
Determine to be included in not by the data read in the second preset duration in the data that described solid state hard disc stores by described controller, or determined in the data that described solid state hard disc stores not included in the data write in the second preset duration by described controller; The terminal moment of described second preset duration is current time;
Determine that described solid state hard disc meets described predetermined condition by described controller.
Optionally, if determine to be included in not by the data read in the second preset duration in the data that described solid state hard disc stores by described controller, then, analyze described historical data by described controller, to determine the data needing in described solid state hard disc to refresh, comprising:
Analyze described historical data by described controller, to determine in described second preset duration being not the data needing to refresh by the data read.
Optionally, if determine not included in the data write in the second preset duration in the data that described solid state hard disc stores, then, to analyze described historical data by described controller by described controller, to determine the data needing in described solid state hard disc to refresh, comprising:
Analyze described historical data by described controller, determine that the total data in described solid state hard disc is the data needing to refresh.
Second aspect, provides a kind of solid state hard disc, comprising:
Storer, for storing data;
Controller, for when determining that described solid state hard disc meets predetermined condition, obtains the historical data of described solid state hard disc; And, analyze described historical data, to determine the data needing in the data that described storer stores to refresh; Described historical data is used to indicate the behaviour in service of described solid state hard disc.
Optionally, described controller is used for:
Determine that described solid state hard disc is in off-position in the first preset duration; The terminal moment of described first preset duration is current time;
Then determine that described solid state hard disc meets described predetermined condition.
Optionally, described controller is used for:
Analyze described historical data, determine that the total data in described storer is the data needing to refresh.
Optionally, described controller is used for:
Determine to be included in not by the data read in the second preset duration in the data that described storer stores, or determine in the data that described storer stores not included in the data write in the second preset duration; The terminal moment of described second preset duration is current time;
Then determine that described solid state hard disc meets described predetermined condition.
Optionally, described controller is used for:
If to be included in the second preset duration not by the data read in determining the data that described storer stores, analyze described historical data, to determine in described second preset duration being not the data needing to refresh by the data read.
Optionally, described controller is used for:
If not included in the data write in the second preset duration in determining the data that described storer stores, analyze described historical data, determine that the total data in described storer is the data needing to refresh.
In the embodiment of the present invention, can determine whether solid state hard disc meets predetermined condition thus determine whether to exist in solid state hard disc the data of needs refreshing by the controller of solid state hard disc, meeting predetermined condition, under namely having data to need brush news in solid state hard disc, what the historical data thus determine can analyzing solid state hard disc by the controller of solid state hard disc needed to refresh is which data stored in solid state hard disc.By such mode, without the need to carrying out alternately with main frame, solid state hard disc just directly can determine that the data stored in solid state hard disc are the need of refreshing, and determine need refresh be which data, weaken the dependence to external unit, enhance the self-repairing capability of solid state hard disc.
Accompanying drawing explanation
Fig. 1 is the structural representation of solid state hard disc in the embodiment of the present invention;
Fig. 2 is the process flow diagram of method for refreshing data in the embodiment of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is 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.
First technical background of the present invention is introduced.
In the embodiment of the present invention, solid state hard disc can be the hard disk made with solid-state electronic storage chip array.At present, the storage medium of solid state hard disc generally can by two kinds, one adopts flash memory (FLASH) chip as storage medium, and another adopts dynamic RAM (DynamicRandomAccessMemory, DRAM) as storage medium.Wherein, adopt FLASH chip as the solid state hard disc of storage medium, namely usually said SSD, its outward appearance can be made into multiple apperance, such as: the patterns such as laptop hard, micro harddisk, storage card, USB flash disk.
Such as refer to Fig. 1, solid state hard disc can comprise controller 101 and storer 102.
Controller 101 can be such as the control chip in solid state hard disc, control chip is the brain of solid state hard disc, its effect one is the load on rational allocation data each flash chip in solid state hard disc, second be assume responsibility for whole data relay, connect flash chip and outside SATA (SerialAdvancedTechnologyAttachment, serial hard disk interface technology) interface.
Storer 102 can be such as the storage medium in solid state hard disc, is such as flash chip or DRAM, may be used for storing data.
In addition, can also comprise cache chip in some solid state hard discs, cache chip at a high speed can carry out data processing by auxiliary control chip.What relate generally to due to the embodiment of the present invention is controller 101 and storer 102, so do not draw cache chip in the drawings.
At present, when the data stored in solid state hard disc need to refresh, solid state hard disc can be connected to main frame (such as personal computer), by main frame, the data stored in solid state hard disc be refreshed.But this mode needs main frame and solid state hard disc to carry out could realizing alternately the refreshing of data, limitation is comparatively large, and the self-repairing capability of solid state hard disc is more weak.
The embodiment of the present invention fully takes into account above problem, can determine whether solid state hard disc meets predetermined condition by the controller 101 of solid state hard disc, thus determine whether to exist in solid state hard disc the data needing to refresh, under having data to need brush news in solid state hard disc, can directly by controller 101 analyze solid state hard disc historical data thus determine need refresh be which data stored in solid state hard disc.By such mode, without the need to carrying out alternately with main frame, solid state hard disc just directly can determine that the data stored in solid state hard disc are the need of refreshing, and determine need refresh be which data, weaken the dependence to external unit, enhance the self-repairing capability of solid state hard disc.
Below in conjunction with accompanying drawing, the preferred embodiment of the present invention is described in detail.
Refer to Fig. 2, the embodiment of the present invention provides a kind of method for refreshing data, and the method can be performed by solid state hard disc, and such as can be performed by the controller 101 of solid state hard disc, the flow process of the method is described below.
Step 201: when the controller 101 by solid state hard disc determines that solid state hard disc meets predetermined condition, obtained the historical data of solid state hard disc by the controller 101 of solid state hard disc; Historical data is used to indicate the behaviour in service of solid state hard disc;
Step 202: by controller 101 analysis of history data, to determine the data needing in solid state hard disc to refresh.
Historical data may be used for the behaviour in service indicating solid state hard disc.Such as, historical data can comprise data corresponding to data corresponding to the power on moment that be each time energized of solid state hard disc from first time energising starts, power-cut time and energising continues data corresponding to duration, or, historical data also can comprise the time data that each data that storer 102 in solid state hard disc stores are read or write, or, historical data can also comprise in the storer 102 of solid state hard disc the last time data be refreshed of each data stored, etc.As long as the data being used to refer to the behaviour in service of solid state hard disc can comprise in the historical data.
Predetermined condition, is namely used for determining that data that the storer 102 in solid state hard disc stores are the need of the condition refreshed, when solid state hard disc meets predetermined condition, then can determines to store in the storer 102 of solid state hard disc the data needing to refresh.About determining whether solid state hard disc meets the mode of predetermined condition, introduction of below illustrating.
The first:
Optionally, in an alternative embodiment of the invention, determine that solid state hard disc meets predetermined condition by the controller 101 of solid state hard disc, comprising:
Determine that solid state hard disc is in off-position in the first preset duration by controller 101; The terminal moment of the first preset duration is current time;
Determine that solid state hard disc meets predetermined condition by controller 101.
First preset duration can be the terminal moment is any duration of current time.Such as, when current time is such as 17 days 10 September in 2015, the first preset duration can be such as from current time forward 30 days, so the first preset duration can be just from during 18 days 10 August in 2015 to this section of duration during 17 days 10 September in 2015.
Generally, if solid state hard disc is all in off-position for a long time, can think that solid state hard disc does not all use for a long time, therefore, likely exist because the electric charge be stored in solid state hard disc reduces and cause the situation that the data stored make a mistake.In this case, can think to there are the data needing to refresh in storer 102.
In the embodiment of the present invention, predetermined condition can be that solid state hard disc is in off-position in the first preset duration, such as, controller 101 can detect data corresponding to the last power-cut time be energized of solid state hard disc, if the power-cut time of last energising is not within the time period that the first preset duration is corresponding, then can determine that solid state hard disc is in off-position in the first preset duration, so can determine that solid state hard disc meets predetermined condition, namely determine in solid state hard disc, to there are the data needing to refresh.
Such as, when current time is such as 1 day 12 October in 2015 30 points, first preset duration is such as from current time forward 60 days, that is, this section of duration when the first preset duration can be 2 days 12 August in 2015 during 30 points to 2015 on October 1,12 between 30 points.If controller 101 gets the power-cut time of solid state hard disc last time energising when 2 days 12 August in 2015 before 30 points, when being such as 1 day 16 April in 2015 30 points, or when being just in time 2 days 12 August in 2015 30 points, then can determine that solid state hard disc is in off-position in the first preset duration, also just determine that solid state hard disc meets predetermined condition.
Like this, solid state hard disc is without the need to by mutual with main frame, just can determine that the data stored are the need of refreshing by the controller 101 of self, process comparatively easily realizes, and detect solid state hard disc whether have energising in certain time length, can determine that data in storer 102 are the need of refreshing comparatively convenient and exactly.
Optionally, in an alternative embodiment of the invention, by controller 101 analysis of history data, to determine the data needing in solid state hard disc to refresh, comprising:
By controller 101 analysis of history data, determine that the total data in solid state hard disc is the data needing to refresh.
In the embodiment of the present invention, if determine that solid state hard disc is in off-position in the first preset duration by controller 101, then can analyze the historical data of solid state hard disc, at this moment historical data can be the data corresponding to power-cut time of solid state hard disc last time energising, or the data that the size of the data total amount stored in storer 102 is corresponding.
Usually, if solid state hard disc is not energized for a long time, then can show that all data stored in storer 102 are all not updated in a long time, the analysis of data that so can be corresponding by the power-cut time be energized to the last time, is all defined as the data needing to refresh by the total data stored in storer 102.
Or, for new solid state hard disc, storer 102 just may store a small amount of data when dispatching from the factory, and such as, stores some for recovering the software of data, therefore, if according to the analysis to historical data, show that the data total amount stored in storer 102 is very little, just likely think that solid state hard disc is new, thus can according to the analysis of size to the data total amount stored in storer 102, think that the data stored in storer 102 do not need to refresh.
Such as, coexist in storer 102 and contain data 1, data 2 and these 3 data of data 3, when current time is such as 1 day 12 October in 2015 30 points, first preset duration is such as from current time forward 60 days, controller 101 has determined that solid state hard disc is in off-position in the first preset duration, so can analyze historical data, such as historical data can be the power-cut time of solid state hard disc last time energising, such as, when being 3 days 12 May in 2015 30 points, thus, the total data that controller 101 can will store in storer 102, namely data 1, data 2 and data 3 are all defined as the data needing to refresh.Like this, total data is all defined as the data needing to refresh, comparatively comprehensively can guarantees the reliability of the data stored in storer 102.
Or such as, data 1 are only stored in storer 102, when current time is such as 1 day 12 October in 2015 30 points, first preset duration is such as that controller 101 has determined that solid state hard disc is in off-position in the first preset duration, so can analyze historical data from current time forward 60 days, such as historical data can be the size of data 1, if the size of data 1 is less than certain preset value, be such as less than 1KB, then can think that data 1 do not need to refresh.By such mode, the refresh activity to new solid state hard disc effectively can be avoided.
The second:
Optionally, in an alternative embodiment of the invention, determine that solid state hard disc meets predetermined condition by the controller 101 of solid state hard disc, comprising:
Determine to be included in not by the data read in the second preset duration in the data that solid state hard disc stores by controller 101, or determined in the data that solid state hard disc stores not included in the data write in the second preset duration by controller 101; The terminal moment of the second preset duration is current time;
Determine that solid state hard disc meets predetermined condition by controller 101.
Second preset duration equally also can be the terminal moment is any duration of current time.Such as, current time is such as 10 o'clock sharps of on September 17th, 2015, second preset duration can be such as that so the second preset duration can be just from this section of duration 10 o'clock sharps of 10 o'clock sharps of on August 18th, 2015 on September 17th, 2015 from current time forward 30 days.
User uses in the process of solid state hard disc in reality, likely often access be a part of data in the data that store of storer 102, seldom even almost may not access another part data that storer 102 stores.Such as, store some data such as photo in the memory 102 or video, user may can not often browse, so situation about making a mistake just likely be there will be for seldom those a part of data accessed, so be necessary regularly to refresh seldom accessed data, therefore, can think in this case in solid state hard disc, to there are the data needing to refresh.
In this embodiment, controller 101 can obtain each data stored in the solid state hard disc the last time be read, thus determine whether each data were read in the second preset duration, if in the second preset duration, the data be not read are had in the data stored in storer 102, so can determine that solid state hard disc meets predetermined condition, namely determine in solid state hard disc, to there are the data needing to refresh.
Or, in this embodiment, controller 101 can according to the time of each data write solid state hard disc stored in storer 102, determine in the second preset duration, whether have data to write, if do not write data in solid state hard disc in the second preset duration, so can determine that solid state hard disc meets predetermined condition, namely determine in solid state hard disc, to there are the data needing to refresh.
Such as, the data that storer 102 stores comprise data 1, when current time is such as 1 day 12 October in 2015 30 points, second preset duration is such as from current time forward 60 days, that is, this section of duration when the second preset duration can be 2 days 12 August in 2015 during 30 points to 2015 on October 1,12 between 30 points.If when knowing that the time that data 1 the last time is read is 3 days 11 July in 2015 by controller 101 50 points, so can think that solid state hard disc meets predetermined condition, namely determine in solid state hard disc, to there are the data needing to refresh.
Or such as, when current time is such as 1 day 12 October in 2015 30 points, second preset duration is such as from current time forward 60 days, that is, this section of duration when the second preset duration can be 2 days 12 August in 2015 during 30 points to 2015 on October 1,12 between 30 points.If detect all do not have data to write in the second preset duration by controller 101, so can think to there are the data needing to refresh in solid state hard disc, namely determine that solid state hard disc meets predetermined condition.
More adequately can determine whether to exist in solid state hard disc the data needing to refresh by the way.
Optionally, in an alternative embodiment of the invention, if determine to be included in the data that solid state hard disc stores in the second preset duration not by the data read by controller 101, then, by controller 101 analysis of history data, to determine the data needing in solid state hard disc to refresh, comprising:
By controller 101 analysis of history data, to determine in the second preset duration being not the data needing to refresh by the data read.
In the embodiment of the present invention, being determined to exist in the second preset duration not by after the data read by controller 101, controller 101 can to historical data analysis, here historical data can be the time data be read each data the last time stored in storer 102, thus can to determine in the second preset duration which being not by the data read, and these are not defined as the data that need to refresh by the data read.
Such as, the data that storer 102 stores comprise data 1 and data 2, when current time is such as 1 day 12 October in 2015 30 points, second preset duration is such as from current time forward 60 days, that is, 30 points of this section of durations during 30 points to 2015 on October 1,12 when the second preset duration can be 2 days 12 August in 2015.Can be analyzed by controller 101 pairs of historical datas, such as historical data can be that data 1 the last time is by the time of reading, when being such as 28 days 11 September in 2015 10 points, and data 2 the last time is by the time of reading, be such as 17: 50 on the 30th June in 2015, so by controller 101, data 2 can be defined as the data needing refreshing.
Can do not thought by the data read the data that user seldom accesses for a long time, this part data may easily be made mistakes or lose, so by long-time be not the data needing to refresh by the data validation read, the reliability of solid state hard disc can be improved, and in the process of Refresh Data, can refresh partial data targetedly, save the time of Refresh Data, alleviated the work load that Refresh Data brings.
Optionally, in an alternative embodiment of the invention, if determined in the data that solid state hard disc stores not included in the data write in the second preset duration by controller 101, then, by controller 101 analysis of history data, to determine the data needing in solid state hard disc to refresh, comprising:
By controller 101 analysis of history data, determine that the total data in solid state hard disc is the data needing to refresh.
In the embodiment of the present invention, if determine do not have data to be written in the second preset duration by controller 101, then controller 101 can be analyzed historical data, here historical data can be the time data that each data of storer 102 storage are written into, thus the total data stored in solid state hard disc can be defined as the data needing refreshing.
Or, historical data also can be the time data be read each data the last time stored in storer 102, if do not have data to be written into solid state hard disc in the second preset duration, but having in storer 102 by the data read, so can be defined as by the total data beyond the data read the data that need to refresh by removing in solid state hard disc in the second preset duration.
Such as, storer 102 comprises data 1 and data 2, when current time is such as 1 day 12 October in 2015 30 points, second preset duration is such as from current time forward 60 days, that is, 30 points of this section of durations during 30 points to 2015 on October 1,12 when the second preset duration can be 2 days 12 August in 2015.If the write time of data 1 and data 2 is all early than during 2 days 12 August in 2015 30 points, so can analyze historical data, such as historical data can be the write time of data 1 is 11: 30 on the 12nd June in 2015, and the write time of data 2 is 12: 30 on the 11st June in 2015, just can determine the total data in solid state hard disc, namely data 1 and data 2 are the data needing to refresh.
Usually, within a period of time, all do not have data to write, so can think that the data stored in solid state hard disc all need to refresh.Like this, total data is all defined as the data needing to refresh, comparatively comprehensively can guarantees the reliability of the data stored in solid state hard disc.
Or such as, storer 102 comprises data 1, data 2 and data 3, when current time is such as 1 day 12 October in 2015 30 points, second preset duration is such as from current time forward 60 days, that is, 30 points of this section of durations during 30 points to 2015 on October 1,12 when the second preset duration can be 2 days 12 August in 2015.If the time that data 1, data 2 and data 3 write solid state hard disc is all early than during 2 days 12 August in 2015 30 points, so can analyze historical data, here historical data can be such as the time data be read three data the last times, if historical data shows in the second preset duration, data 3 are only had to be read, so can by storer 102, the total data beyond removing data 3, namely data 1 and data 2 are defined as the data needing refreshing.
Due in actual use, likely there is read-only fetching data and do not write the situation of data in solid state hard disc, therefore when not having data to write for a long time, again the time data that the last time of the data stored is read is analyzed, thus determine to need the mode of the data refreshed can filter out the data needing refreshing more accurately.
Optionally, in an alternative embodiment of the invention, after determining the data needing in solid state hard disc to refresh, also comprise:
Refreshed needing the data refreshed by the controller 101 of solid state hard disc.
In the embodiment of the present invention, determine in solid state hard disc the data that have and need to refresh and need to refresh be which partial data after, can by controller 101 directly to needing the data refreshed refresh.
Such as, the data stored in storer 102 comprise data 1, data 2 and data 3, determine to need the data refreshed to be data 2 and data 3, so directly can be refreshed data 2 and data 3 by controller 101.By such mode, solid state hard disc need not be connected with main frame, namely solid state hard disc is without the need to carrying out alternately with main frame, and just can realize the refreshing of data, solid state hard disc self-repairing capability is stronger.
In the embodiment of the present invention, can determine whether solid state hard disc meets predetermined condition thus determine whether to exist in solid state hard disc the data of needs refreshing by the controller 101 of solid state hard disc, under having data to need brush news in solid state hard disc, can by controller 101 analyze solid state hard disc historical data thus determine need refresh be which data stored in solid state hard disc.By such mode, without the need to carrying out alternately with main frame, solid state hard disc just directly can determine that the data stored in solid state hard disc are the need of refreshing, and determine need refresh be which data, weaken the dependence to external unit, enhance the self-repairing capability of solid state hard disc.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by solid state hard disc is divided into different functional modules, to complete all or part of function described above.The specific works process of the device of foregoing description, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that the technical scheme of the application contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the application.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
Specifically, the computer program instructions that a kind of method for refreshing data in the embodiment of the present application is corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions corresponding with a kind of method for refreshing data in storage medium is read by an electronic equipment or be performed, comprise the steps:
When the controller by solid state hard disc determines that described solid state hard disc meets predetermined condition, obtained the historical data of described solid state hard disc by the controller of described solid state hard disc; Described historical data is used to indicate the behaviour in service of described solid state hard disc;
Described historical data is analyzed, to determine the data needing in described solid state hard disc to refresh by described controller.
Optionally, that store in described storage medium and step: determine that described solid state hard disc meets described predetermined condition by the controller of solid state hard disc, corresponding computer instruction is being performed in process, comprising:
Determine that described solid state hard disc is in off-position in the first preset duration by described controller; The terminal moment of described first preset duration is current time;
Determine that described solid state hard disc meets described predetermined condition by described controller.
Optionally, that store in described storage medium and step: analyze described historical data by described controller, to determine to need in described solid state hard disc the data refreshed, corresponding computer instruction is being performed in process, comprising:
Analyze described historical data by described controller, determine that the total data in described solid state hard disc is the data needing to refresh.
Optionally, that store in described storage medium and step: determine that described solid state hard disc meets described predetermined condition by the controller of solid state hard disc, corresponding computer instruction is being performed in process, comprising:
Determine to be included in not by the data read in the second preset duration in the data that described solid state hard disc stores by described controller, or determined in the data that described solid state hard disc stores not included in the data write in the second preset duration by described controller; The terminal moment of described second preset duration is current time;
Determine that described solid state hard disc meets described predetermined condition by described controller.
Optionally, if determine to be included in the data that described solid state hard disc stores in the second preset duration not by the data read by described controller, that store in described storage medium and step: analyze described historical data by described controller, to determine the data needing in described solid state hard disc to refresh, corresponding computer instruction is being performed in process, comprising:
Analyze described historical data by described controller, to determine in described second preset duration being not the data needing to refresh by the data read.
Optionally, if determined in the data that described solid state hard disc stores not included in the data write in the second preset duration by described controller, that store in described storage medium and step: analyze described historical data by described controller, to determine the data needing in described solid state hard disc to refresh, corresponding computer instruction is being performed in process, comprising:
Analyze described historical data by described controller, determine that the total data in described solid state hard disc is the data needing to refresh.
The above, above embodiment is only in order to be described in detail the technical scheme of the application, but the explanation of above embodiment just understands method of the present invention and core concept thereof for helping, and should not be construed as limitation of the present invention.Those skilled in the art are in the technical scope that the present invention discloses, and the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.

Claims (12)

1. a method for refreshing data, comprising:
When the controller by solid state hard disc determines that described solid state hard disc meets predetermined condition, obtained the historical data of described solid state hard disc by the controller of described solid state hard disc; Described historical data is used to indicate the behaviour in service of described solid state hard disc;
Described historical data is analyzed, to determine the data needing in described solid state hard disc to refresh by described controller.
2. the method for claim 1, is characterized in that, determines that described solid state hard disc meets described predetermined condition, comprising by the controller of solid state hard disc:
Determine that described solid state hard disc is in off-position in the first preset duration by described controller; The terminal moment of described first preset duration is current time;
Determine that described solid state hard disc meets described predetermined condition by described controller.
3. method as claimed in claim 2, is characterized in that, analyze described historical data by described controller, to determine the data needing in described solid state hard disc to refresh, comprising:
Analyze described historical data by described controller, determine that the total data in described solid state hard disc is the data needing to refresh.
4. the method for claim 1, is characterized in that, determines that described solid state hard disc meets described predetermined condition, comprising by the controller of solid state hard disc:
Determine to be included in not by the data read in the second preset duration in the data that described solid state hard disc stores by described controller, or determined in the data that described solid state hard disc stores not included in the data write in the second preset duration by described controller; The terminal moment of described second preset duration is current time;
Determine that described solid state hard disc meets described predetermined condition by described controller.
5. method as claimed in claim 4, it is characterized in that, if determine to be included in the data that described solid state hard disc stores in the second preset duration not by the data read by described controller, then, described historical data is analyzed by described controller, to determine the data needing in described solid state hard disc to refresh, comprising:
Analyze described historical data by described controller, to determine in described second preset duration being not the data needing to refresh by the data read.
6. method as claimed in claim 4, it is characterized in that, if determined in the data that described solid state hard disc stores not included in the data write in the second preset duration by described controller, then, described historical data is analyzed by described controller, to determine the data needing in described solid state hard disc to refresh, comprising:
Analyze described historical data by described controller, determine that the total data in described solid state hard disc is the data needing to refresh.
7. a solid state hard disc, comprising:
Storer, for storing data;
Controller, for when determining that described solid state hard disc meets predetermined condition, obtains the historical data of described solid state hard disc; And, analyze described historical data, to determine the data needing in the data that described storer stores to refresh; Described historical data is used to indicate the behaviour in service of described solid state hard disc.
8. solid state hard disc as claimed in claim 7, it is characterized in that, described controller is used for:
Determine that described solid state hard disc is in off-position in the first preset duration; The terminal moment of described first preset duration is current time;
Then determine that described solid state hard disc meets described predetermined condition.
9. solid state hard disc as claimed in claim 8, it is characterized in that, described controller is used for:
Analyze described historical data, determine that the total data in described storer is the data needing to refresh.
10. solid state hard disc as claimed in claim 7, it is characterized in that, described controller is used for:
Determine to be included in not by the data read in the second preset duration in the data that described storer stores, or determine in the data that described storer stores not included in the data write in the second preset duration; The terminal moment of described second preset duration is current time;
Then determine that described solid state hard disc meets described predetermined condition.
11. solid state hard discs as claimed in claim 10, it is characterized in that, described controller is used for:
If to be included in the second preset duration not by the data read in determining the data that described storer stores, analyze described historical data, to determine in described second preset duration being not the data needing to refresh by the data read.
12. solid state hard discs as claimed in claim 10, it is characterized in that, described controller is used for:
If not included in the data write in the second preset duration in determining the data that described storer stores, analyze described historical data, determine that the total data in described storer is the data needing to refresh.
CN201510629480.2A 2015-09-28 2015-09-28 A kind of method for refreshing data and solid state hard disk Active CN105260267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510629480.2A CN105260267B (en) 2015-09-28 2015-09-28 A kind of method for refreshing data and solid state hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510629480.2A CN105260267B (en) 2015-09-28 2015-09-28 A kind of method for refreshing data and solid state hard disk

Publications (2)

Publication Number Publication Date
CN105260267A true CN105260267A (en) 2016-01-20
CN105260267B CN105260267B (en) 2019-05-17

Family

ID=55099967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510629480.2A Active CN105260267B (en) 2015-09-28 2015-09-28 A kind of method for refreshing data and solid state hard disk

Country Status (1)

Country Link
CN (1) CN105260267B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802772A (en) * 2016-12-30 2017-06-06 北京联想核芯科技有限公司 The method of data record, device and solid state hard disc
CN107273056A (en) * 2017-06-30 2017-10-20 郑州云海信息技术有限公司 A kind of date storage method and device of Ceph file system
CN107799157A (en) * 2017-11-24 2018-03-13 苏州韦科韬信息技术有限公司 A kind of method for refreshing data
CN109074527A (en) * 2016-04-05 2018-12-21 三菱电机大楼技术服务株式会社 Control data rewriting system
CN109388217A (en) * 2017-08-10 2019-02-26 华为技术有限公司 Determine that hard disk does not power on the method, apparatus and system of duration
CN111104056A (en) * 2018-10-25 2020-05-05 华为技术有限公司 Data recovery method, system and device in storage system
CN111142797A (en) * 2019-12-26 2020-05-12 华中科技大学 Solid state disk refreshing method and device and solid state disk

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286086A (en) * 2008-06-10 2008-10-15 杭州华三通信技术有限公司 Hard disk power down protection method, device and hard disk, and hard disk power down protection system
US20090327581A1 (en) * 2008-06-30 2009-12-31 Coulson Richard L Nand memory
CN102147773A (en) * 2011-03-30 2011-08-10 浪潮(北京)电子信息产业有限公司 Method, device and system for managing high-end disk array data
CN102375693A (en) * 2010-08-16 2012-03-14 成都市华为赛门铁克科技有限公司 Consumption balance processing method and system as well as solid hard disk
CN102592677A (en) * 2010-12-22 2012-07-18 索尼公司 Memory device, memory control method, and program
US8843700B1 (en) * 2013-11-29 2014-09-23 NXGN Data, Inc. Power efficient method for cold storage data retention management

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286086A (en) * 2008-06-10 2008-10-15 杭州华三通信技术有限公司 Hard disk power down protection method, device and hard disk, and hard disk power down protection system
US20090327581A1 (en) * 2008-06-30 2009-12-31 Coulson Richard L Nand memory
CN101981627A (en) * 2008-06-30 2011-02-23 英特尔公司 Nand memory
CN102375693A (en) * 2010-08-16 2012-03-14 成都市华为赛门铁克科技有限公司 Consumption balance processing method and system as well as solid hard disk
CN102592677A (en) * 2010-12-22 2012-07-18 索尼公司 Memory device, memory control method, and program
CN102147773A (en) * 2011-03-30 2011-08-10 浪潮(北京)电子信息产业有限公司 Method, device and system for managing high-end disk array data
US8843700B1 (en) * 2013-11-29 2014-09-23 NXGN Data, Inc. Power efficient method for cold storage data retention management

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109074527A (en) * 2016-04-05 2018-12-21 三菱电机大楼技术服务株式会社 Control data rewriting system
CN109074527B (en) * 2016-04-05 2021-10-22 三菱电机大楼技术服务株式会社 Control data rewriting system
CN106802772A (en) * 2016-12-30 2017-06-06 北京联想核芯科技有限公司 The method of data record, device and solid state hard disc
CN106802772B (en) * 2016-12-30 2020-02-14 深圳忆联信息***有限公司 Data recovery method and device and solid state disk
CN107273056A (en) * 2017-06-30 2017-10-20 郑州云海信息技术有限公司 A kind of date storage method and device of Ceph file system
CN109388217A (en) * 2017-08-10 2019-02-26 华为技术有限公司 Determine that hard disk does not power on the method, apparatus and system of duration
CN109388217B (en) * 2017-08-10 2020-08-14 华为技术有限公司 Method, device and system for determining duration of unpowered hard disk
CN107799157A (en) * 2017-11-24 2018-03-13 苏州韦科韬信息技术有限公司 A kind of method for refreshing data
CN111104056A (en) * 2018-10-25 2020-05-05 华为技术有限公司 Data recovery method, system and device in storage system
CN111142797A (en) * 2019-12-26 2020-05-12 华中科技大学 Solid state disk refreshing method and device and solid state disk

Also Published As

Publication number Publication date
CN105260267B (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN105260267A (en) Data refreshing method and solid state disk
CN111538461B (en) Data reading and writing method and device based on solid state disk cache and storage medium
CN103218173B (en) Storage controlling method and device
CN104216796A (en) Data backup and recovery method and electronic device
CN110515549B (en) Data migration method and device
KR102592796B1 (en) Data storage device and operating method thereof
CN103064792A (en) Method and device for writing data
CN101499313B (en) Method, equipment and memory system for guaranteeing data security
KR102474035B1 (en) Data storage device and operating method thereof
CN110286847B (en) Data storage device and operation method thereof
CN107844165A (en) Hard disk hot-plug realization device
CN104932933A (en) Spin lock acquisition method and apparatus
CN103970665A (en) FPGA (field programmable gate array) system for simulating SPI (serial peripheral interface) FLASH and debugging method
CN110780821A (en) Optimization method and device of distributed storage system, server and storage medium
US20190227788A1 (en) Memory system and operating method thereof
CN109375871A (en) A kind of log processing method, system and electronic equipment and storage medium
CN109656479A (en) A kind of method and device constructing memory command sequence
CN105487953A (en) Bus performance analysis method and apparatus
CA2830868C (en) A digital netlist partitioning system for faster circuit reverse-engineering
EP3745263A1 (en) Electronic device and method for controlling same
CN112204514A (en) Techniques for preserving life expectancy of non-volatile memory
CN108206044B (en) Method and device for testing saturation writing performance of solid state disk
CN109558073A (en) A kind of disk based on educational system extends the method and electronic equipment in service life
CN108108133A (en) A kind of method and apparatus for changing nvme SSD hard disk users and capacity can be used
CN101187849A (en) Storage device and storage system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170206

Address after: The 100176 branch of the Beijing economic and Technological Development Zone fourteen Street No. 99 building 33 building D No. 2226

Applicant after: Beijing legend core technology Co., Ltd.

Address before: 100085 Beijing on the road to entrepreneurship, No. 6 Haidian District

Applicant before: Lenovo (Beijing) Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190808

Address after: 518067 Dongjiaotou Workshop D24/F-02, Houhai Avenue, Shekou Street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Yi Lian Information System Co., Ltd.

Address before: The 100176 branch of the Beijing economic and Technological Development Zone fourteen Street No. 99 building 33 building D No. 2226

Patentee before: Beijing legend core technology Co., Ltd.