CN107797899A - A kind of method of solid state hard disc data safety write-in - Google Patents
A kind of method of solid state hard disc data safety write-in Download PDFInfo
- Publication number
- CN107797899A CN107797899A CN201710947543.8A CN201710947543A CN107797899A CN 107797899 A CN107797899 A CN 107797899A CN 201710947543 A CN201710947543 A CN 201710947543A CN 107797899 A CN107797899 A CN 107797899A
- Authority
- CN
- China
- Prior art keywords
- state hard
- solid state
- write
- instruction
- time
- 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
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/266—Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/30—Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
- G06F1/305—Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations in the event of power-supply fluctuations
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a kind of method of solid state hard disc data safety write-in, it is characterized in that increase electric power detection module in solid state hard disk system, the time of system worked well can be maintained by obtaining charging capacitor according to the power calculation of electric power detection module and system, when solid state hard disk system receives the notice of system power failure, automatically the pending instruction cached in solid state hard disk system is ranked up according to priority set in advance, according to the charging capacitor of acquisition the time of system worked well can be maintained to assess can perform pending instruction type and quantity safely, control the instruction that can be performed safely in order.By increasing detection to electric capacity electricity, acquisition system can hold time, according to prioritization schemes determine can in it can hold time namely system mode determines the instruction performed safely under link, the data that effectively can prevent to have write safely are destroyed.
Description
Technical field
The present invention relates to solid state hard disc control technology, more particularly to a kind of method of solid state hard disc data safety write-in.
Background technology
If Fig. 1 is Nand Flash composition schematic diagram, Nand Flash inside composition is as follows:Passage DIE, can be independent
The unit of concurrent operations;Block Block, the operating unit of erasing;Page Page, the operating unit of read-write;The data in any region are write
Have to first complete erasing operation before entering.Operation under DIE is serialization, i.e., initiates multiple operations to same DIE, it is necessary to
Latter one operation could be performed after being completed Deng above one operation.Page in same Block must be carried out in order
Write operation:0=>1=>2=>3;Due to Nand Flash internal structure, current Page write operation extremely may be to it
The Page that he has write safely data is impacted.By taking MLC as an example, when Page 0 and Page 1 forms share page,
The safety write-in data of Page 0, and during it is correct to read data, but Page 1 performs write operation, system exception falls
Electricity, now, not only Page 1 write operation is unsuccessful, and Page 0 data can be caused to produce mistake.
Solid state hard disc is in practical application scene, it may occur that powered-off fault situation.When power down point, Nand Flash rectify
Write operation is being performed, the data of the write operation are not only lost, and also because of Nand Flash characteristic Nand Flash can be caused to write
The data having been written near access point are destroyed.
The risk of powered-off fault, which is that, destroys the data that have write safely, in existing design, tackles powered-off fault
Means introduce the standby electricity of electric capacity than relatively limited, when the method for common solution problems is solid state hard disc hardware design, during power down
The completion of Nand Flash ends operation is supported by the of short duration power supply capacity of electric capacity.But because power down point is uncontrollable, during power down
Carve request it is relatively more in the case of, the data that still there is a possibility that unfinished write operation causes to write safely are destroyed.
When i.e. electric capacity electricity is in system workable critical voltage, system mode exist it is uncertain, so exist can not for this scheme
The defects of data for effectively preventing to have write safely are destroyed.
The content of the invention
The loss of data risk that is currently written into for disadvantages described above, during the present invention seeks to how reduce powered-off fault and broken
The risk of bad other data.
A kind of method of solid state hard disc data safety write-in is proposed in order to solve the problem above present invention, it is characterised in that
Increase electric power detection module in solid state hard disk system, charging capacitor is obtained according to the power calculation of electric power detection module and system
The time of system worked well can be maintained, when solid state hard disk system receives the notice of system power failure, automatically by solid state hard disc
The pending instruction cached in system is ranked up according to priority set in advance, can be maintained according to the charging capacitor of acquisition
The time of system worked well, which is assessed, can perform pending instruction type and quantity safely, and control performs can hold safely in order
Capable instruction.
The method of described solid state hard disc data safety write-in, it is characterised in that priority level is carried out according to instruction type and drawn
Point, erasing instruction is low priority, write command is high priority, when solid state hard disk system receives the notice of system power down, is sentenced
It is disconnected currently whether to be carrying out erasing operation, when judging that current erasure operation has begun to the execution performed if being carrying out
Between, continue executing with if the time is performed more than the value pre-set, if performing the time is less than the value pre-set, terminate
The erasing operation.
The method of described solid state hard disc data safety write-in, it is characterised in that PC main frames increase preferentially in the instruction issued
Level mark, PC main frames judge that key request is identified, fallen when solid state hard disk system receives system in being applied for main frame
It is preferential to perform the instruction for being identified as key request during the notice of electricity.
The method of described solid state hard disc data safety write-in, it is characterised in that when solid state hard disk system reception system power down
Notice when after only keep maintaining Nand Flash read operation, write operation and the minimum holding circuit for wiping operation, cut-out is other
The power supply of unrelated circuit;Purpose is the power consumption for reducing the system during power supply is maintained by charging capacitor, extends charging capacitor
The time of power supply can be maintained
The present invention can be held time by increasing the detection to electric capacity electricity, acquisition system, be arranged according to priority level true
Surely namely system mode the instruction performed safely under link can be determined in it can hold time, can effectively prevented to safety
The data of write-in are destroyed.
Brief description of the drawings
Fig. 1 is Nand Flash composition schematic diagram;
Fig. 2 is that powered-off fault occurs to regard program processing flow diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
After electric capacity is introduced for electric scheme, by the of short duration power supply capacity of electric capacity Nand Flash ends can be supported to grasp in power down
The completion of work.But when being in the workable critical voltage of system due to electric capacity electricity, system mode exist it is uncertain, so this
The data that the defects of scheme is effectively to prevent to have write safely are destroyed.There are following two sides in uncertain source
Face:1:Uncontrolled request performs the drastically consumption of aggravation electric capacity electricity, increases the risk of user data loss;2:Fail to supervise
Electric capacity electricity is controlled, the increased risk that electricity exhausts when causing to be carrying out Nand Flash operations.
When fixer system designs, write buffer Write Cache functions can be carried, to ensure write performance.The powered-off fault time
Point, relatively more wait may be cached in write buffer Write Cache needs the amount of physical memory of write-in solid state hard disc
User data.After the completion of Nand Flash only wipe the corresponding amount of physical memory to be write Erase operations, ability
Enter row write Program operations.Firmware design ensures that erasing can just initiate the write request to block Block after the completion of asking, and excludes
Bad block risk.
Nand Flash operating time Erase>Program>Read, wherein Erase average operating times are reachable
5 times of Program.Because electric capacity charging time is shorter, it is therefore desirable to when the system that is eliminated as much as relies on electric capacity for electricity work
Nand Flash Erase operation.
Therefore system increase electric capacity residual capacity measurement module, for detecting the remaining electricity of charging capacitor.Detect electricity
The remaining time that can support that system works is converted to according to the power consumption calculation of system after holding dump energy.
Fig. 2 is that powered-off fault occurs to regard program processing flow diagram, trigger flow after system detectio to powered-off fault, and flow is excellent
First respond key request.
If Nand Flash ends are in Erase modes of operation, flow can be according to certain arbitration mechanism judgement
The no order initiated notice Nand Flash and terminate Erase operations.Arbitrate principle and be based on terminating Erase operations with waiting Erase
The time cost that operation is completed compares.If Erase operations reach enough durations, the time cost for terminating Erase operations is big
The cost continued executing with is operated in tolerance Erase, now system can wait Erase operations to complete.
Request type in flow meeting analysis request queue, distinguishes key request.Key request continues to let pass, no
Then abandon.In the presence of the key request of two classes:Write request;The read request that some follow-up write requests are relied on.
, it is necessary to whether be enough to support current write request, only system spare electricity according to electric power detection after request analysis
Amount can guarantee that current request performs safely and just initiate to operate corresponding to request to Nand Flash.
Only keep maintaining Nand Flash read operation, write operation and the minimum maintenance for wiping operation after receiving power down instructions
Circuit, cut off the power supply of other unrelated circuits;Purpose is the power consumption for reducing the system during power supply is maintained by charging capacitor,
The time of power supply can be maintained by extending charging capacitor.
When solid state hard disc receives the notice of system power failure, it can also increase the reading for setting the very first time to stop Receiving Host
The newer command of operation, write operation and erasing operation.The life of dont answer is gone back in the order main frame received before issued simultaneously
Order, all return the return of processing failure;These orders will be deleted in the command queue in solid state hard disc simultaneously.So handle
Reason is, system known to solid state hard disc will power down, therefore the order maximum probability sent out after main frame can not have enough time handling, therefore
Solid state hard disc needs preferential guarantee processing to have answered that to main frame, i.e. main frame is thought to be successfully written and actual due to caching
Write in the presence of the safety for the data not being actually written into also.
The above disclosed interest field for being only an embodiment of the present invention, sheet can not being limited with this certainly,
One of ordinary skill in the art will appreciate that all or part of flow of above-described embodiment is realized, and according to the claims in the present invention institute
The equivalent variations of work, still fall within the scope that the present invention is covered.
Claims (4)
- A kind of 1. method of solid state hard disc data safety write-in, it is characterised in that increase electric power detection mould in solid state hard disk system Block, the time of system worked well can be maintained by obtaining charging capacitor according to the power calculation of electric power detection module and system, when solid When state hard-disk system receives the notice of system power failure, automatically by the pending instruction cached in solid state hard disk system according to pre- The priority first set is ranked up, and according to the charging capacitor of acquisition the time of system worked well can be maintained to assess and can hold safely Row pending instruction type and quantity, control perform the instruction that can be performed safely in order.
- 2. the method for solid state hard disc data safety write-in according to claim 1, it is characterised in that entered according to instruction type Row major partition of the level, erasing instruction is low priority, write command is high priority, when solid state hard disk system receives system power down Notice when, judgement currently whether be carrying out erasing operation, judge if being carrying out current erasure operate have begun to The execution time of execution, continue executing with if the time is performed more than the value pre-set, set in advance if the execution time is less than The value put, then terminate the erasing operation.
- 3. the method for solid state hard disc data safety according to claim 2 write-in, it is characterised in that PC main frames are issuing Increase priority tag in instruction, PC main frames judge that key request is identified, work as solid state hard disk system in being applied for main frame It is preferential to perform the instruction for being identified as key request when receiving the notice of system power failure.
- 4. the method for the solid state hard disc data safety write-in according to claims 1 to 3 any one, it is characterised in that when solid Only keep maintaining Nand F l ash read operation, write operation and wiping operation after during the notice of state hard-disk system reception system power down Minimum holding circuit, cut off the power supply of other unrelated circuits;Purpose is to reduce during power supply is maintained by charging capacitor The power consumption of system, the time of power supply can be maintained by extending charging capacitor.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710947543.8A CN107797899A (en) | 2017-10-12 | 2017-10-12 | A kind of method of solid state hard disc data safety write-in |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710947543.8A CN107797899A (en) | 2017-10-12 | 2017-10-12 | A kind of method of solid state hard disc data safety write-in |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107797899A true CN107797899A (en) | 2018-03-13 |
Family
ID=61533043
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710947543.8A Pending CN107797899A (en) | 2017-10-12 | 2017-10-12 | A kind of method of solid state hard disc data safety write-in |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107797899A (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108710583A (en) * | 2018-05-28 | 2018-10-26 | 深圳忆联信息系统有限公司 | Management method, device, computer equipment and the medium in SSD write buffers area |
| CN109104091A (en) * | 2018-08-13 | 2018-12-28 | 深圳市普威技术有限公司 | A kind of power circuit and power supply adaptor |
| CN111897685A (en) * | 2020-07-29 | 2020-11-06 | 深圳佰维存储科技股份有限公司 | Method and device for checking data in power failure, storage medium and electronic equipment |
| CN113076564A (en) * | 2021-04-13 | 2021-07-06 | 山东北斗云信息技术有限公司 | Hard disk protection method, device and equipment based on Beidou positioning and storage medium |
| CN113901530A (en) * | 2021-09-10 | 2022-01-07 | 苏州浪潮智能科技有限公司 | Hard disk defensive early warning protection method, device, equipment and readable medium |
| CN114356227A (en) * | 2021-12-17 | 2022-04-15 | 得一微电子股份有限公司 | Solid state disk instruction processing method, device and system and readable storage medium |
| CN117520104A (en) * | 2024-01-08 | 2024-02-06 | 中国民航大学 | System for predicting abnormal state of hard disk |
| CN119415022A (en) * | 2024-09-29 | 2025-02-11 | 山东云海国创云计算装备产业创新中心有限公司 | Abnormal power failure processing method, device, equipment, medium and product for solid state hard disk |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050182981A1 (en) * | 2004-02-12 | 2005-08-18 | Hitachi, Ltd. | Disk array apparatus and power backup method for the same |
| US20100180131A1 (en) * | 2009-01-15 | 2010-07-15 | International Business Machines Corporation | Power management mechanism for data storage environment |
| CN102004707A (en) * | 2010-11-15 | 2011-04-06 | 记忆科技(深圳)有限公司 | Power-fail protection method and device for solid state disk |
| CN103262054A (en) * | 2010-12-13 | 2013-08-21 | 弗森-艾奥公司 | Apparatus, system, and method for auto-commit memory |
-
2017
- 2017-10-12 CN CN201710947543.8A patent/CN107797899A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050182981A1 (en) * | 2004-02-12 | 2005-08-18 | Hitachi, Ltd. | Disk array apparatus and power backup method for the same |
| US20100180131A1 (en) * | 2009-01-15 | 2010-07-15 | International Business Machines Corporation | Power management mechanism for data storage environment |
| CN102004707A (en) * | 2010-11-15 | 2011-04-06 | 记忆科技(深圳)有限公司 | Power-fail protection method and device for solid state disk |
| CN103262054A (en) * | 2010-12-13 | 2013-08-21 | 弗森-艾奥公司 | Apparatus, system, and method for auto-commit memory |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108710583A (en) * | 2018-05-28 | 2018-10-26 | 深圳忆联信息系统有限公司 | Management method, device, computer equipment and the medium in SSD write buffers area |
| CN109104091A (en) * | 2018-08-13 | 2018-12-28 | 深圳市普威技术有限公司 | A kind of power circuit and power supply adaptor |
| CN111897685A (en) * | 2020-07-29 | 2020-11-06 | 深圳佰维存储科技股份有限公司 | Method and device for checking data in power failure, storage medium and electronic equipment |
| CN113076564B (en) * | 2021-04-13 | 2022-10-14 | 山东北斗云信息技术有限公司 | Hard disk protection method, device and equipment based on Beidou positioning and storage medium |
| CN113076564A (en) * | 2021-04-13 | 2021-07-06 | 山东北斗云信息技术有限公司 | Hard disk protection method, device and equipment based on Beidou positioning and storage medium |
| CN113901530A (en) * | 2021-09-10 | 2022-01-07 | 苏州浪潮智能科技有限公司 | Hard disk defensive early warning protection method, device, equipment and readable medium |
| CN113901530B (en) * | 2021-09-10 | 2024-01-09 | 苏州浪潮智能科技有限公司 | A method, device, equipment and readable medium for defensive early warning protection of hard disk |
| CN114356227A (en) * | 2021-12-17 | 2022-04-15 | 得一微电子股份有限公司 | Solid state disk instruction processing method, device and system and readable storage medium |
| CN114356227B (en) * | 2021-12-17 | 2024-07-09 | 得一微电子股份有限公司 | Solid state disk instruction processing method, device and system and readable storage medium |
| CN117520104A (en) * | 2024-01-08 | 2024-02-06 | 中国民航大学 | System for predicting abnormal state of hard disk |
| CN117520104B (en) * | 2024-01-08 | 2024-03-29 | 中国民航大学 | A system for predicting abnormal state of hard disk |
| CN119415022A (en) * | 2024-09-29 | 2025-02-11 | 山东云海国创云计算装备产业创新中心有限公司 | Abnormal power failure processing method, device, equipment, medium and product for solid state hard disk |
| CN119415022B (en) * | 2024-09-29 | 2025-12-09 | 山东云海国创云计算装备产业创新中心有限公司 | Solid state disk abnormal power failure processing method, device, equipment, medium and product |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107797899A (en) | A kind of method of solid state hard disc data safety write-in | |
| US8443221B2 (en) | Methods, systems, and computer readable media for advanced power management for serial advanced technology attachment (SATA)-based storage devices | |
| KR102094902B1 (en) | Storage system and ufs system changing interface mode in active state | |
| TWI628542B (en) | Methods for gc (garbage collection) por (power off recovery) of a flash memory device and apparatuses using the same | |
| JP6334828B2 (en) | Solid state drive with self-refresh power saving mode | |
| US5485623A (en) | Information processor having high speed and safety resume system | |
| JP4536785B2 (en) | Information processing apparatus, control unit for controlling data storage performed in information processing apparatus, and data storage control method | |
| CN105138432B (en) | The method and system of solid state hard disk fast data backup when a kind of abnormal power-down | |
| US8392649B2 (en) | Memory storage device, controller, and method for responding to host write commands triggering data movement | |
| JP4930555B2 (en) | Control device, control method, and storage system | |
| US20130007488A1 (en) | Power management of a storage device including multiple processing cores | |
| CN110488673B (en) | Data processing module and data processing method in low power consumption mode | |
| KR20120092561A (en) | Interruptible nand flash memory | |
| CN104881375A (en) | Power-down data protection method and device of storage system | |
| CN114968839B (en) | Hard disk garbage collection method, device, equipment and computer readable storage medium | |
| US20240176517A1 (en) | Flash memory controller that can quickly enter power saving mode after entering idle state, associated flash memory device, and associated control method | |
| CN107807863A (en) | A kind of method and system that CPU Cache data are protected after AC power down | |
| CN113791738A (en) | Normalized low-power-consumption processing method and device based on solid state disk and computer equipment | |
| CN113050896A (en) | Domestic Feiteng server supporting NVDIMM and data protection method | |
| CN108762669B (en) | Method and device for improving data writing speed in power failure and computer equipment | |
| CN111752367B (en) | Method and device for reducing power consumption of solid state disk, computer equipment and storage medium | |
| CN101788939A (en) | Controller status-monitoring device and method | |
| JPH09330277A (en) | Power failure processing method and power failure processing method in disk cache system | |
| CN119626307B (en) | Memory and optimization method thereof | |
| KR20100106199A (en) | A method and a storage device estimating a completion time for a storage operation |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180313 |
|
| RJ01 | Rejection of invention patent application after publication |