CN101963891A - Method and device for data storage and processing, solid-state drive system and data processing system - Google Patents
Method and device for data storage and processing, solid-state drive system and data processing system Download PDFInfo
- Publication number
- CN101963891A CN101963891A CN 201010291528 CN201010291528A CN101963891A CN 101963891 A CN101963891 A CN 101963891A CN 201010291528 CN201010291528 CN 201010291528 CN 201010291528 A CN201010291528 A CN 201010291528A CN 101963891 A CN101963891 A CN 101963891A
- Authority
- CN
- China
- Prior art keywords
- relationship information
- correspondence relationship
- pba
- lba
- module
- 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
Images
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The embodiment of the invention discloses a method and a device for data storage and processing, a solid-state drive system and a data processing system, wherein the method comprises the steps of: receiving a writing instruction sent by a host, wherein the writing instruction comprises operating data, and corresponding relationship information between a logic address LBA of the operating data in the host and a physical address PBA of a flash memory chip in the solid-state drive SSD system to be written in; writing the operating data in a cache memory in the SSD system, and writing the corresponding relationship information between the LBA and the PBA in a nonvolatile storage medium unit; and writing the operating data in the flash memory chip in the solid-state drive SSD system from the cache memory, and sending a writing instruction completion result message to the host. According to the embodiment of the invention, the SSD system can be enabled to timely respond to the writing instruction sent by the host in order to guarantee normal communication between the SSD system and the host.
Description
Technical field
The present invention relates to data storage technology, especially a kind of data storage handling method and device, solid state hard disc system and data handling system.
Background technology
(Solid State Disk, SSD) system generally includes the storage medium chip as storage medium, the power backup module that is used to control the main control chip of SSD system and is used for when the power down of SSD system exception the SSD system being powered to existing solid state hard disc.In the existing SSD system, adopt the fast flash memory bank chip usually, make the SSD system have advantages such as fast, shockproof anti-low, zero noise of falling, generate heat of access speed, volume are little as the storage medium chip.
In the SSD system, the read or write speed of fast flash memory bank chip is a lot of slowly with respect to the interface rate of SSD system.In order to improve the performance of SSD system, in existing SSD system, be provided with a cache memory (CACHE), in the process of SSD system works, come the mapping relations list item of buffer memory main frame to the data of storing in the service data of fast flash memory bank chip, the fast flash memory bank chip, can also store the management information data of some crucial SSD systems in addition, operation wherein specifically can be read operation, write operation or move operation.Existing cache memory is usually by synchronous dynamic random-access memory body (Synchronous Dynamic Random Access Memory, SDRAM) or the double data rate (DDR) Synchronous dynamic RAM (DOUBLE DATA RATE DDR) waits storage medium at a high speed to form.As shown in Figure 1, be a structural representation of prior art SSD system.
Because the storage medium of high speeds such as SDRAM, DDR all is a volatile storage medium, after the power down, the data on this storage medium will be lost.If when powered-off fault, the data in the cache memory are not written back in the fast flash memory bank chip, will cause losing of service data and management information data.For can be with in the cache memory when the power down data cached, that is: service data and management information data, be written back in the fast flash memory bank chip, in present high performance SSD system, usually adopt super capacitor as the power backup module in the SSD system, super capacitor can play the electric capacity of power backup effect, and the common capacitor of its volume ratio is much bigger.After powering at every turn, the SSD system needs to begin the power backup module is charged, and at first the mapping relations list item of preserving on the fast flash memory bank chip is written in the cache memory, the electric weight of waiting for the power backup module then reaches certain threshold level, and the electric weight of this certain threshold level can be supported data cached the writing in the fast flash memory bank chip in the cache memory.In addition, in order to improve the reliability of SSD system, can be periodically the duty of power backup module be detected, so that in time find and get rid of fault.
In realizing process of the present invention, the inventor finds, during SSD system handles data, has following problem at least in the prior art:
Reach in the process of certain threshold level at the electric weight that begins the power backup module is charged to the power backup module, the mapping relations list item is modified in the cache memory because write order can cause, if this moment SSD system generation powered-off fault, the electric weight of power backup module is not enough to support data cached the writing in the fast flash memory bank chip with in the cache memory, will cause service data to be lost, serious problems such as mapping relations entry error, therefore, the SSD system does not respond the write order that host side sends in this process, this will cause the dish behavior of playing of host side, that is: main frame can be thought as this SSD system failure of equipment end, no longer communicates with this SSD system.
In addition, in the process that the duty to the power backup module detects, the SSD system does not equally respond the write order that host side sends yet, and along with the increase day by day of the buffer memory capacity of cache memory, the capacity of the power backup module that needs is also big more, and its certain threshold level is also just high more, and it is long more just to mean that also the electric weight charging of waiting for the power backup module reaches charging deadline of certain threshold level, increase host side and played the probability of happening of dish behavior, can't guarantee the proper communication of SSD system and main frame.
Summary of the invention
The purpose of the embodiment of the invention is: a kind of data storage handling method and device, solid state hard disc system and data handling system are provided, make the SSD system in time respond the write order that host side sends, thereby guarantee the proper communication of SSD system and main frame.
A kind of data storage handling method that the embodiment of the invention provides comprises:
Receive the write order that main frame sends, this write order comprises service data, and described service data the logical address LBA of described main frame and in the solid-state hard disk SSD system that will be written into the correspondence relationship information between the physical address PBA of fast flash memory bank chip;
Described service data is write in the cache memory in the described SSD system, and the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit;
Described service data from described cache memory writes fast flash memory bank chip the described SSD system, and is sent write order to described main frame and finishes results messages.
A kind of data storage processing device that the embodiment of the invention provides comprises:
Receiver module is used to receive the write order that main frame sends, and this write order comprises service data, and described service data the LBA of described main frame and in the SSD system that will be written into the correspondence relationship information between the PBA of fast flash memory bank chip;
The first operational processes module is used for described service data is write in the cache memory of described SSD system, and the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit;
The second operational processes module is used for described service data is write the fast flash memory bank chip of described SSD system from described cache memory;
Sending module is used for after the second operational processes module writes described fast flash memory bank chip with described service data, sends write order to described main frame and finishes results messages.
A kind of solid state hard disc system that the embodiment of the invention provides comprises primary power, fast flash memory bank chip, cache memory and main control chip, and described main control chip is specially the data storage processing device that the above embodiment of the present invention provides.
A kind of data handling system that the embodiment of the invention provides comprises main frame, also comprises the SSD system that the above embodiment of the present invention provides.
The data storage handling method and the device that provide based on the above embodiment of the present invention, solid state hard disc system and data handling system, can be behind the write order that receives the main frame transmission, wherein service data is write in the cache memory in the SSD system, and the correspondence relationship information between LBA and the PBA write in the non-volatile memory medium unit, afterwards with service data from cache memory writes fast flash memory bank chip the SSD system, and send write order to main frame and finish results messages, thereby the write order that can send main frame is in real time handled and in time main frame is responded, even reach in the process of certain threshold level at the electric weight that begins the power backup module is charged to the power backup module, perhaps in the process that the duty to the power backup module detects, even when the power backup module failure, can in time respond the write order that host side sends reliably, thereby avoid the dish behavior of playing of host side, guarantee the reliability of service data, the correctness of mapping relations list item and reliability, improve the communication speed between main frame and the SSD system, effectively guarantee the proper communication of SSD system and main frame.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a structural representation of prior art SSD system;
Fig. 2 is the process flow diagram of an embodiment of data storage handling method of the present invention;
Fig. 3 is the process flow diagram of another embodiment of data storage handling method of the present invention;
Fig. 4 is the process flow diagram of another embodiment of data storage handling method of the present invention;
Fig. 5 is the structural representation of an embodiment of data storage processing device of the present invention;
Fig. 6 is the structural representation of another embodiment of data storage processing device of the present invention;
Fig. 7 is the structural representation of another embodiment of data storage processing device of the present invention;
Fig. 8 is the structural representation of another embodiment of data storage processing device of the present invention;
Fig. 9 is the also structural representation of an embodiment of data storage processing device of the present invention;
Figure 10 is the structural representation of the next embodiment of data storage processing device of the present invention;
Figure 11 is the structural representation of a SSD embodiment of system of the present invention;
Figure 12 is the structural representation of SSD another embodiment of system of the present invention;
Figure 13 is the structural representation of SSD another embodiment of system of the present invention;
Figure 14 is the structural representation of an embodiment of data handling system of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 2 is the process flow diagram of an embodiment of data storage handling method of the present invention.As shown in Figure 2, the data storage handling method of this embodiment comprises:
Particularly, according to a specific embodiment of the present invention, can adopt the mode of snapshot increment that the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit.For example: can be increment storage unit one by one in advance with the non-volatile memory medium dividing elements, store the LBA of this write operation and the correspondence relationship information between the PBA in each unit respectively.
In the embodiment of the invention earlier with service data from cache memory writes fast flash memory bank chip the SSD system, send the mode that write order is finished results messages to main frame again, can be referred to as the tracing mode.
Need to prove that the non-volatile memory medium unit in the present embodiment can be to read and write and programme by bit, and need not wipe before writing, after the power down, the mapping relations of storing in this non-volatile memory medium unit can be preserved and do not lost.Non-volatile memory medium unit in the present embodiment can be ferroelectric random storer (FRAM), magnetic RAM (MRAM), the storage medium of Nonvolatile static random access memory (NVSRAM) and EEPROM (Electrically Erasable Programmable Read Only Memo) types such as (EEPROM), and not needing as the fast flash memory bank chip need reclaim the piece in the fast flash memory bank chip before revising or when writing data wipes, because under most of situation, operation to the non-volatile memory medium unit only needs a few bytes to be written into, if and mapping table is stored in the flash memory, whole page or leaf may be rewritten at every turn when writing flash memory, if not having blank page can use, comprise that piece operation such as wipes and can make that processing speed is slow, so the non-volatile memory medium unit in the present embodiment is used for Storage Mapping relation under the tracing pattern.Fast flash memory bank chip in the present embodiment also is non-volatile, the fast flash memory bank chip can be to read and write by page or leaf, need to wipe before writing, and the block size of reading and writing and wiping can be different, also needs to carry out operations such as garbage reclamation before wiping.
The data storage handling method that provides based on the above embodiment of the present invention, the SSD system can be behind the write order that receives the main frame transmission, wherein service data is write in the cache memory in the SSD system, and the correspondence relationship information between LBA and the PBA write in the non-volatile memory medium unit, afterwards with service data from cache memory writes fast flash memory bank chip the SSD system, and send write order to main frame and finish results messages, like this, when main frame transmission write order is finished results messages, because service data has successfully write in non-volatile fast flash memory bank chip, even powered-off fault takes place in the SSD system under the situation that does not have the power backup module, service data can not take place is yet lost, serious problems such as mapping relations entry error, and for the service data that is not written into as yet in non-volatile fast flash memory bank chip, finish results messages owing to do not send write order as yet to main frame, during SSD system generation powered-off fault, host side knows that this write order does not execute as yet, therefore in the follow-up data processing procedure, can carry out write operation again, and can not taking place, service data do not lost, serious problems such as mapping relations entry error, thereby the write order that can send main frame is in real time handled and in time main frame is responded, even reach in the process of certain threshold level at the electric weight that begins the power backup module is charged to the power backup module, perhaps in the process that the duty to the power backup module detects, even when the power backup module failure, can in time respond the write order that host side sends reliably, thereby avoid the dish behavior of playing of host side, guarantee the reliability of service data, the correctness of mapping relations list item and reliability, improve the communication speed between main frame and the SSD system, effectively guarantee the proper communication of SSD system and main frame.
As a specific embodiment of the present invention, before embodiment shown in Figure 2, the mapping relations list item of storing in the fast flash memory bank chip can be copied in the cache memory; Accordingly, by step 103, write service data in the fast flash memory bank chip after, also according to the correspondence relationship information between LBA and the PBA, the mapping relations list item in the cache memory is upgraded, generate new mapping relations list item.
Further, as another specific embodiment of the present invention, generate after the new mapping relations list item, the fast flash memory bank chip can also utilize new mapping relations list item that the mapping relations list item of storing in the fast flash memory bank chip is upgraded, so that can obtain up-to-date mapping relations list item and preserve this new mapping relations list item reliably.
In addition, further, as another specific embodiment of the present invention, when the primary power in the SSD system is stopped power supply, that is: during the power down of SSD system exception, can detect the electric weight of the power backup module in the SSD system, and judge whether the electric weight of this power backup module reaches certain threshold level.If the electric weight of power backup module reaches certain threshold level, can handle according to the flow process of the above embodiment of the present invention, promptly begin to carry out: the operation of the mapping relations list item in the cache memory being upgraded according to the correspondence relationship information between LBA and the PBA.Otherwise, if the electric weight of power backup module does not reach certain threshold level, can handle according to the flow process of prior art, that is: according to the correspondence relationship information between LBA and the PBA mapping relations list item in the fast flash memory bank chip be upgraded, generate new mapping relations list item.
Fig. 3 is the process flow diagram of another embodiment of data storage handling method of the present invention.As shown in Figure 3, the data storage handling method of this embodiment comprises:
For instance, the quantity of correspondence relationship information can be the quantity of list item in the mapping relations table.
In addition, according to a specific embodiment of the present invention, can detect the electric weight of the power backup module in the SSD system in real time, and when the electric weight of power backup module reaches certain threshold level, judge the correspondence relationship information that whether stores in the non-volatile memory medium unit between LBA and the PBA, and when the correspondence relationship information that stores between LBA and the PBA, LBA that stores in the deletion non-volatile memory medium unit and the correspondence relationship information between the PBA.So-called certain threshold level is and can supports the service data in the cache memory is written back to charge value in the fast flash memory bank chip.Because the electric weight of power backup module reaches after the certain threshold level, even SSD system generation powered-off fault, the electric weight of power backup module also can be supported the service data in the cache memory is written back in the fast flash memory bank chip, in the case, stored relation information can discharge finite storage space in the deletion non-volatile memory medium unit, so that follow-uply reach in the process of certain threshold level at the electric weight that begins the power backup module is charged to the power backup module, perhaps in the process that the duty to the power backup module detects, even when the power backup module failure, make full use of this storage space and write down LBA in other write orders and the correspondence relationship information between the PBA.
In addition, also can be after receiving the write order that main frame sends, whether discern needs according to this write order of flow processing of the above embodiment of the present invention according to the electric weight of the power backup module in the SSD system.Fig. 4 is the process flow diagram of another embodiment of data storage handling method of the present invention.As shown in Figure 4, the data storage handling method of this embodiment comprises:
Step 303 writes service data in the cache memory in the SSD system, and the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit.
Particularly, this step 303 can realize by step 202-step 204 embodiment illustrated in fig. 3.
Step 304 from cache memory writes fast flash memory bank chip the SSD system, and sends service data write order to main frame and finishes results messages.Afterwards, no longer carry out the follow-up flow process of present embodiment.
Step 305 writes service data in the cache memory in the SSD system, and utilizes the correspondence relationship information between LBA and the PBA that the mapping relations list item in the cache memory is upgraded, and generates new mapping relations list item.
Because after the electric weight of power backup module reaches certain threshold level, can support data cached the writing in the fast flash memory bank chip in the cache memory, can again the correspondence relationship information between LBA and the PBA be write in the non-volatile memory medium unit, and directly handle; In addition, also can delete the correspondence relationship information between the existing LBA and PBA in the non-volatile memory medium unit this moment, thereby in time discharge storage space.
Step 306 sends write order to main frame and finishes results messages.
Fig. 5 is the structural representation of an embodiment of data storage processing device of the present invention.The data storage processing device of this embodiment can be used for realizing the data storage handling method of the above embodiment of the present invention.As shown in Figure 5, it comprises receiver module 401, the first operational processes module 402, the second operational processes module 403 and sending module 404.Wherein, receiver module 401 is used to receive the write order that main frame sends, and this write order comprises service data, and service data the LBA of main frame and in the SSD system that will be written into the correspondence relationship information between the PBA of fast flash memory bank chip.The first operational processes module 402 is used for service data with write order and writes in the cache memory in the SSD system, and the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit.The second operational processes module 403 is used for service data is write the fast flash memory bank chip of SSD system from cache memory.Sending module 404 is used for after the second operational processes module 403 writes the fast flash memory bank chip with service data, sends write order to main frame and finishes results messages.
The data storage processing device that provides based on the above embodiment of the present invention, can be behind the write order that receives the main frame transmission, wherein service data is write in the cache memory in the SSD system, and the correspondence relationship information between LBA and the PBA write in the non-volatile memory medium unit, afterwards with service data from cache memory writes fast flash memory bank chip the SSD system, and send write order to main frame and finish results messages, thereby the write order that can send main frame is in real time handled and in time main frame is responded, even reach in the process of certain threshold level at the electric weight that begins the power backup module is charged to the power backup module, perhaps in the process that the duty to the power backup module detects, even when the power backup module failure, can in time respond the write order that host side sends reliably, thereby avoid the dish behavior of playing of host side, guarantee the reliability of service data, the correctness of mapping relations list item and reliability, improve the communication speed between main frame and the SSD system, effectively guarantee the proper communication of SSD system and main frame.
Fig. 6 is the structural representation of another embodiment of data storage processing device of the present invention.Compare with embodiment shown in Figure 5, the data storage processing device of this embodiment also comprises replication processes module 405 and update processing module 406, to realize the data storage handling method of the above-mentioned corresponding embodiment of the present invention.Wherein, the replication processes module 405 mapping relations list item that is used for the fast flash memory bank chip is stored copies in the cache memory.Update processing module 406 is used for according to the LBA of cache memory and the correspondence relationship information between the PBA mapping relations list item in the cache memory being upgraded, and generates new mapping relations list item.
In addition, as further embodiment, update processing module 406 in embodiment illustrated in fig. 6 also can be used for utilizing the new mapping relations list item of generation that the mapping relations list item of storing in the fast flash memory bank chip is upgraded, to keep the synchronous of mapping relations list item in fast flash memory bank chip and the cache memory.
Fig. 7 is the structural representation of another embodiment of data storage processing device of the present invention.Compare with embodiment shown in Figure 6, the data storage processing device of this embodiment comprises that also first detects identification module 407, to realize the data storage handling method of the above-mentioned corresponding embodiment of the present invention.Particularly, first detects identification module 407 is used for when the primary power of SSD system is stopped power supply, and detects the electric weight of the power backup module in the SSD system, and judges that the electric weight of power backup module reaches certain threshold level.Accordingly, update processing module 406 is specifically according to first judged result that detects identification module 407, when the electric weight of power backup module reaches certain threshold level, according to the correspondence relationship information between LBA and the PBA, mapping relations list item in the cache memory is upgraded, generate new mapping relations list item.When the electric weight of power backup module does not reach certain threshold level, according to the correspondence relationship information between LBA and the PBA mapping relations list item in the fast flash memory bank chip is upgraded, generate new mapping relations list item.
Fig. 8 is the structural representation of another embodiment of data storage processing device of the present invention.The data storage processing device of this embodiment can be used for the data storage handling method of realizing that the present invention is embodiment illustrated in fig. 3.Compare with embodiment shown in Figure 5, in the data storage processing device of this embodiment, the first operational processes module 402 specifically comprises first writing unit 501, recognition unit 502, delete cells 503 and second writing unit 504.Wherein, first writing unit 501 is used for service data is write in the cache memory of SSD system.Whether the quantity that recognition unit 502 is used for discerning the existing correspondence relationship information in non-volatile memory medium unit reaches default value.Delete cells 503 is used for the recognition result according to recognition unit 502, when the quantity of existing correspondence relationship information reaches default value, and existing correspondence relationship information in the deletion non-volatile memory medium unit.Second writing unit 504 is used for after the existing correspondence relationship information in delete cells 503 deletion non-volatile memory medium unit, correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit, and according to the recognition result of recognition unit 502, when the quantity of existing correspondence relationship information does not reach default value, the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit.
Fig. 9 is the also structural representation of an embodiment of data storage processing device of the present invention.Compare with embodiment shown in Figure 5, the data storage processing device of this embodiment comprises that also second detects identification module 408, judge module 409 and removing module 410, to realize the data storage handling method of the above-mentioned corresponding embodiment of the present invention.Particularly, second detects the electric weight that identification module 408 is used for detecting the power backup module of SSD system, and judges whether the electric weight of the power backup module in the SSD system reaches certain threshold level.Judge module 409 is used for the judged result according to the second detection identification module 408, when the electric weight of the power backup module in the SSD system reaches certain threshold level, judges the correspondence relationship information that whether stores in the non-volatile memory medium unit between LBA and the PBA.Removing module 410 is used for the judged result according to judge module 409, when the correspondence relationship information that stores between LBA and the PBA, and stored relation information in the deletion non-volatile memory medium unit.
Figure 10 is the structural representation of the next embodiment of data storage processing device of the present invention.In the data storage processing device that the above-mentioned arbitrary embodiment of the present invention provides, can comprise further that the 3rd detects identification module 411, the data storage processing device of this embodiment can be used for the data storage handling method of realizing that the present invention is embodiment illustrated in fig. 4.Particularly, the 3rd detects identification module 411 is used for detecting the electric weight of the power backup module in the SSD system after receiver module 401 receives the write order of main frame transmission, and judges that the electric weight of power backup module reaches certain threshold level.Accordingly, the first operational processes module 402 is specifically according to the 3rd testing result that detects identification module 411, when the electric weight of power backup module does not reach certain threshold level, service data is write in the cache memory in the SSD system, and the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit.
Further, again referring to Figure 10, as another data storage processing device specific embodiment of the present invention, in the embodiment shown in fig. 10, update processing module 406 specifically can be in the testing result according to the 3rd detection identification module 411, when the electric weight of power backup module reaches certain threshold level, according to the correspondence relationship information between LBA and the PBA, mapping relations list item in the cache memory is upgraded, generate new mapping relations list item.
The embodiment of the invention also provides a kind of SSD system, can be used for realizing the data storage handling method of the above embodiment of the present invention, and it comprises primary power 1, fast flash memory bank chip 2, cache memory 3 and main control chip 4.Wherein, main control chip 4 specifically can be realized by the data storage processing device that the above-mentioned arbitrary embodiment of the present invention provides.As shown in figure 11, be the structural representation of a SSD embodiment of system of the present invention.
The SSD system that provides based on the above embodiment of the present invention, can be behind the write order that receives the main frame transmission, service data is wherein write in the cache memory, and the correspondence relationship information between LBA and the PBA write in the non-volatile memory medium unit, afterwards service data is write the fast flash memory bank chip from cache memory, and send write order to main frame and finish results messages, thereby the write order that can send main frame is in real time handled and in time main frame is responded, even reach in the process of certain threshold level at the electric weight that begins the power backup module is charged to the power backup module, perhaps in the process that the duty to the power backup module detects, even when the power backup module failure, can in time respond the write order that host side sends reliably, thereby avoid the dish behavior of playing of host side, guarantee the reliability of service data, the correctness of mapping relations list item and reliability, improve the communication speed between main frame and the SSD system, effectively guarantee the proper communication of SSD system and main frame.
Figure 12 is the structural representation of SSD another embodiment of system of the present invention, compares with embodiment shown in Figure 11, and the SSD system of this embodiment also comprises non-volatile memory medium unit 5, is used to store the correspondence relationship information between LBA and the PBA.
Figure 13 is the structural representation of SSD another embodiment of system of the present invention, compares with Figure 11 or embodiment shown in Figure 12, and the SSD system of this embodiment also comprises power backup module 6, is used for the power backup module as primary power.
In addition, the embodiment of the invention also provides a kind of data handling system, and it comprises the SSD system that main frame and the above-mentioned arbitrary embodiment of the present invention provide.As shown in figure 14, be the structural representation of an embodiment of data handling system of the present invention.
The data handling system that provides based on the above embodiment of the present invention, can be behind the write order that receives the main frame transmission, wherein service data is write in the cache memory in the SSD system, and the correspondence relationship information between LBA and the PBA write in the non-volatile memory medium unit, afterwards with service data from cache memory writes fast flash memory bank chip the SSD system, and send write order to main frame and finish results messages, thereby the write order that can send main frame is in real time handled and in time main frame is responded, even reach in the process of certain threshold level at the electric weight that begins the power backup module is charged to the power backup module, perhaps in the process that the duty to the power backup module detects, even when the power backup module failure, can in time respond the write order that host side sends reliably, thereby avoid the dish behavior of playing of host side, guarantee the reliability of service data, the correctness of mapping relations list item and reliability, improve the communication speed between main frame and the SSD system, effectively guarantee the proper communication of SSD system and main frame.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
Data storage handling method that the embodiment of the invention provides and device, SSD system and data handling system, the write order that main frame is sent is handled and in time main frame is responded in real time, even reach in the process of certain threshold level at the electric weight that begins the power backup module is charged to the power backup module, perhaps in the process that the duty to the power backup module detects, even when the power backup module failure, can in time respond the write order that host side sends reliably, thereby avoid the dish behavior of playing of host side, guarantee the reliability of service data, the correctness of mapping relations list item and reliability, improve the communication speed between main frame and the SSD system, effectively guarantee the proper communication of SSD system and main frame.
It should be noted last that: above embodiment is only in order to illustrating technical scheme of the present invention, but not the present invention is made restrictive sense.Although the present invention is had been described in detail with reference to above-mentioned preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and this modification or be equal to the spirit and scope that replacement does not break away from technical solution of the present invention.
Claims (17)
1. a data storage handling method is characterized in that, comprising:
Receive the write order that main frame sends, this write order comprises service data, and described service data the logical address LBA of described main frame and in the solid-state hard disk SSD system that will be written into the correspondence relationship information between the physical address PBA of fast flash memory bank chip;
Described service data is write in the cache memory in the described SSD system, and the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit;
Described service data from described cache memory writes fast flash memory bank chip the described SSD system, and is sent write order to described main frame and finishes results messages.
2. method according to claim 1 is characterized in that,
Before the write order that described reception main frame sends, also comprise: the mapping relations list item of storing in the described fast flash memory bank chip is copied in the described cache memory;
After writing described service data in the described fast flash memory bank chip, also comprise: according to the correspondence relationship information between described LBA and the PBA, the mapping relations list item in the described cache memory is upgraded, generate new mapping relations list item.
3. method according to claim 2, it is characterized in that, described according to the correspondence relationship information between described LBA and the PBA, mapping relations list item in the described cache memory is upgraded, generate new mapping relations list item, specifically comprise: when the primary power in described SSD system is stopped power supply, detect the electric weight of the power backup module in the described SSD system, and judge whether the electric weight of described power backup module reaches certain threshold level;
If the electric weight of described power backup module reaches certain threshold level, carry out the described operation of mapping relations list item in the described cache memory being upgraded according to the correspondence relationship information between described LBA and the PBA;
If the electric weight of described power backup module does not reach certain threshold level, according to the correspondence relationship information between described LBA and the PBA mapping relations list item in the described fast flash memory bank chip is upgraded, generate new mapping relations list item.
4. method according to claim 1 is characterized in that, the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit comprise:
Whether the quantity of discerning existing correspondence relationship information in the described non-volatile memory medium unit reaches default value;
If the quantity of existing correspondence relationship information reaches default value, delete existing correspondence relationship information in the described non-volatile memory medium unit, carry out described correspondence relationship information between LBA and the PBA is write operation in the non-volatile memory medium unit then;
If the quantity of existing correspondence relationship information does not reach default value, then directly carry out described correspondence relationship information between LBA and the PBA is write operation in the non-volatile memory medium unit.
5. method according to claim 1 is characterized in that, also comprises:
Detect the electric weight of the power backup module in the described SSD system, and when the electric weight of described power backup module reaches certain threshold level, judge the correspondence relationship information that whether stores in the described non-volatile memory medium unit between LBA and the PBA, and when the correspondence relationship information that stores between LBA and the PBA, delete stored relation information in the described non-volatile memory medium unit.
6. according to any described method of claim 2 to 5, it is characterized in that, after the write order that described reception main frame sends, also comprise: the electric weight that detects the power backup module in the described SSD system, and whether the electric weight of judging described power backup module reaches certain threshold level, and when the electric weight of described power backup module does not reach certain threshold level, carry out described described service data is write in the cache memory in the described SSD system, and the correspondence relationship information between LBA and the PBA is write operation in the non-volatile memory medium unit.
7. method according to claim 6, it is characterized in that, when the electric weight of described power backup module reaches certain threshold level, also comprise: described service data is write in the described cache memory, and utilize the correspondence relationship information between LBA and the PBA that the mapping relations list item in the described cache memory is upgraded, generate new mapping relations list item, and finish results messages to described main frame transmission write order.
8. a data storage processing device is characterized in that, comprising:
Receiver module is used to receive the write order that main frame sends, and this write order comprises service data, and described service data the LBA of described main frame and in the SSD system that will be written into the correspondence relationship information between the PBA of fast flash memory bank chip;
The first operational processes module is used for described service data is write in the cache memory of described SSD system, and the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit;
The second operational processes module is used for described service data is write the fast flash memory bank chip of described SSD system from described cache memory;
Sending module is used for after the second operational processes module writes described fast flash memory bank chip with described service data, sends write order to described main frame and finishes results messages.
9. device according to claim 8 is characterized in that, also comprises:
The replication processes module is used for the mapping relations list item that described fast flash memory bank chip is stored is copied in the described cache memory;
Update processing module is used for according to the correspondence relationship information between described LBA and the PBA, and the mapping relations list item in the described cache memory is upgraded, and generates new mapping relations list item.
10. device according to claim 9 is characterized in that, also comprises:
First detects identification module, is used for when the primary power of described SSD system is stopped power supply, and detects the electric weight of the power backup module in the described SSD system, and judges that the electric weight of described power backup module reaches certain threshold level;
Update processing module, specifically according to described first judged result that detects identification module, when the electric weight of described power backup module reaches certain threshold level, according to the correspondence relationship information between described LBA and the PBA, mapping relations list item in the described cache memory is upgraded, generate new mapping relations list item; When the electric weight of described power backup module does not reach certain threshold level, according to the correspondence relationship information between described LBA and the PBA mapping relations list item in the described fast flash memory bank chip is upgraded, generate new mapping relations list item.
11. device according to claim 8 is characterized in that, the described first operational processes module comprises:
First writing unit is used for described service data is write in the cache memory of described SSD system;
Recognition unit, whether the quantity that is used for discerning the existing correspondence relationship information in described non-volatile memory medium unit reaches default value;
Delete cells is used for the recognition result according to described recognition unit, when the quantity of existing correspondence relationship information reaches default value, deletes existing correspondence relationship information in the described non-volatile memory medium unit;
Second writing unit, be used for after described delete cells is deleted the existing correspondence relationship information in described non-volatile memory medium unit, correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit, and according to the recognition result of described recognition unit, when the quantity of existing correspondence relationship information does not reach default value, the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit.
12. device according to claim 8 is characterized in that, also comprises:
Second detects identification module, is used for detecting the electric weight of the power backup module of described SSD system, and judges whether the electric weight of the power backup module in the described SSD system reaches certain threshold level;
Judge module, be used for judged result according to the described second detection identification module, when the electric weight of the power backup module in described SSD system reaches certain threshold level, judge the correspondence relationship information that whether stores in the described non-volatile memory medium unit between LBA and the PBA;
Removing module is used for the judged result according to described judge module, when the correspondence relationship information that stores between LBA and the PBA, deletes stored relation information in the described non-volatile memory medium unit.
13. to 12 any described devices, it is characterized in that according to Claim 8, also comprise:
The 3rd detects identification module, is used for after described receiver module receives the write order that main frame sends, and detects the electric weight of the power backup module in the described SSD system, and judges that the electric weight of described power backup module reaches certain threshold level;
The described first operational processes module is specifically according to the described the 3rd testing result that detects identification module, when the electric weight of described power backup module does not reach certain threshold level, described service data is write in the cache memory in the described SSD system, and the correspondence relationship information between LBA and the PBA is write in the non-volatile memory medium unit.
14. a solid state hard disc system comprises primary power, fast flash memory bank chip, cache memory and main control chip, it is characterized in that, described main control chip is specially any described data storage processing device of claim 8 to 13.
15. solid state hard disc according to claim 14 system is characterized in that, also comprises:
The non-volatile memory medium unit is used to store the correspondence relationship information between described LBA and the PBA;
The power backup module is used for the power backup module as described primary power.
16. solid state hard disc according to claim 15 system is characterized in that described non-volatile memory medium unit is ferroelectric random storer, magnetic RAM, Nonvolatile static random access memory or EEPROM (Electrically Erasable Programmable Read Only Memo).
17. a data handling system comprises main frame, it is characterized in that, also comprises each described solid state hard disc system of claim 14~16.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010291528 CN101963891A (en) | 2010-09-25 | 2010-09-25 | Method and device for data storage and processing, solid-state drive system and data processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010291528 CN101963891A (en) | 2010-09-25 | 2010-09-25 | Method and device for data storage and processing, solid-state drive system and data processing system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101963891A true CN101963891A (en) | 2011-02-02 |
Family
ID=43516776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010291528 Pending CN101963891A (en) | 2010-09-25 | 2010-09-25 | Method and device for data storage and processing, solid-state drive system and data processing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101963891A (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102681952A (en) * | 2012-05-12 | 2012-09-19 | 北京忆恒创源科技有限公司 | Method for writing data into memory equipment and memory equipment |
CN102693198A (en) * | 2012-05-12 | 2012-09-26 | 北京忆恒创源科技有限公司 | DMA (direct memory access) transmission method and system |
CN102819511A (en) * | 2012-05-12 | 2012-12-12 | 北京忆恒创源科技有限公司 | Storage device and method for creating chain table in storage device |
CN103377152A (en) * | 2012-04-26 | 2013-10-30 | 深圳市朗科科技股份有限公司 | Write operation control method and write operation device for solid state disk |
CN105204786A (en) * | 2015-10-22 | 2015-12-30 | 湖南国科微电子股份有限公司 | PCIE SSD array data writing method and system |
CN108009101A (en) * | 2017-11-30 | 2018-05-08 | 郑州云海信息技术有限公司 | A kind of solid state hard disc powered-off fault processing method, system, medium and equipment |
CN108228470A (en) * | 2016-12-21 | 2018-06-29 | 北京忆恒创源科技有限公司 | A kind of method and apparatus for handling the write order to NVM write-in data |
CN108762989A (en) * | 2018-06-05 | 2018-11-06 | 郑州云海信息技术有限公司 | Date storage method, device, equipment and the readable storage medium storing program for executing of solid state disk |
CN109375112A (en) * | 2018-08-16 | 2019-02-22 | 江苏玖宇实业有限公司 | A kind of accumulator capacity detection power-failure memory method |
CN109471596A (en) * | 2018-10-31 | 2019-03-15 | 北京小米移动软件有限公司 | Method for writing data, device, equipment and storage medium |
CN109542331A (en) * | 2017-09-21 | 2019-03-29 | 东芝存储器株式会社 | Storage system and the control method for controlling nonvolatile memory |
WO2019227180A1 (en) * | 2018-06-01 | 2019-12-05 | Gafarov Aghasalim Javan | Private cloud drive |
CN110658999A (en) * | 2019-09-26 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Information updating method, device, equipment and computer readable storage medium |
CN111065997A (en) * | 2017-06-14 | 2020-04-24 | 波利伍德有限责任公司 | Coordinated data migration for storage media |
CN111091861A (en) * | 2019-12-27 | 2020-05-01 | 尧云科技(西安)有限公司 | Solid state disk power failure protection method based on high-speed nonvolatile memory |
TWI696951B (en) * | 2018-08-31 | 2020-06-21 | 威剛科技股份有限公司 | System and method for processing abnormal power failure of storage device |
CN112817533A (en) * | 2021-01-29 | 2021-05-18 | 深圳忆联信息系统有限公司 | SSD management method, device computer equipment and storage medium |
CN114303125A (en) * | 2019-08-20 | 2022-04-08 | 美光科技公司 | Garbage collection in a memory subsystem during low battery states |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101114492A (en) * | 2006-07-27 | 2008-01-30 | 日立环球储存科技荷兰有限公司 | Disk drive with nonvolatile memory having multiple modes of operation |
US20080307156A1 (en) * | 2007-06-08 | 2008-12-11 | Sinclair Alan W | System For Interfacing A Host Operating Through A Logical Address Space With A Direct File Storage Medium |
CN101719103A (en) * | 2009-11-25 | 2010-06-02 | 成都市华为赛门铁克科技有限公司 | Memory device and information processing method based on same |
US20100185830A1 (en) * | 2009-01-21 | 2010-07-22 | Micron Technology, Inc. | Logical address offset |
CN101826060A (en) * | 2010-05-24 | 2010-09-08 | 中兴通讯股份有限公司 | Method and device for protecting power failure data of solid state disk |
-
2010
- 2010-09-25 CN CN 201010291528 patent/CN101963891A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101114492A (en) * | 2006-07-27 | 2008-01-30 | 日立环球储存科技荷兰有限公司 | Disk drive with nonvolatile memory having multiple modes of operation |
US20080307156A1 (en) * | 2007-06-08 | 2008-12-11 | Sinclair Alan W | System For Interfacing A Host Operating Through A Logical Address Space With A Direct File Storage Medium |
US20100185830A1 (en) * | 2009-01-21 | 2010-07-22 | Micron Technology, Inc. | Logical address offset |
CN101719103A (en) * | 2009-11-25 | 2010-06-02 | 成都市华为赛门铁克科技有限公司 | Memory device and information processing method based on same |
CN101826060A (en) * | 2010-05-24 | 2010-09-08 | 中兴通讯股份有限公司 | Method and device for protecting power failure data of solid state disk |
Cited By (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103377152A (en) * | 2012-04-26 | 2013-10-30 | 深圳市朗科科技股份有限公司 | Write operation control method and write operation device for solid state disk |
US9395921B2 (en) | 2012-05-12 | 2016-07-19 | Memblaze Technology (Beijing) Co., Ltd. | Writing data using DMA by specifying a buffer address and a flash memory address |
CN102693198A (en) * | 2012-05-12 | 2012-09-26 | 北京忆恒创源科技有限公司 | DMA (direct memory access) transmission method and system |
CN102819511A (en) * | 2012-05-12 | 2012-12-12 | 北京忆恒创源科技有限公司 | Storage device and method for creating chain table in storage device |
WO2013170731A1 (en) * | 2012-05-12 | 2013-11-21 | 北京忆恒创源科技有限公司 | Method for writing data into storage device and storage device |
CN102681952B (en) * | 2012-05-12 | 2015-02-18 | 北京忆恒创源科技有限公司 | Method for writing data into memory equipment and memory equipment |
CN102693198B (en) * | 2012-05-12 | 2015-03-25 | 北京忆恒创源科技有限公司 | DMA (direct memory access) transmission method and system |
CN102819511B (en) * | 2012-05-12 | 2015-07-08 | 北京忆恒创源科技有限公司 | Storage device and method for creating chain table in storage device |
CN102681952A (en) * | 2012-05-12 | 2012-09-19 | 北京忆恒创源科技有限公司 | Method for writing data into memory equipment and memory equipment |
CN105204786A (en) * | 2015-10-22 | 2015-12-30 | 湖南国科微电子股份有限公司 | PCIE SSD array data writing method and system |
CN105204786B (en) * | 2015-10-22 | 2016-10-12 | 湖南国科微电子股份有限公司 | The data write method of a kind of PCIE SSD array and system |
CN108228470A (en) * | 2016-12-21 | 2018-06-29 | 北京忆恒创源科技有限公司 | A kind of method and apparatus for handling the write order to NVM write-in data |
CN108228470B (en) * | 2016-12-21 | 2021-05-18 | 北京忆恒创源科技有限公司 | Method and equipment for processing write command for writing data into NVM (non-volatile memory) |
CN111065997A (en) * | 2017-06-14 | 2020-04-24 | 波利伍德有限责任公司 | Coordinated data migration for storage media |
CN109542331A (en) * | 2017-09-21 | 2019-03-29 | 东芝存储器株式会社 | Storage system and the control method for controlling nonvolatile memory |
CN108009101A (en) * | 2017-11-30 | 2018-05-08 | 郑州云海信息技术有限公司 | A kind of solid state hard disc powered-off fault processing method, system, medium and equipment |
WO2019227180A1 (en) * | 2018-06-01 | 2019-12-05 | Gafarov Aghasalim Javan | Private cloud drive |
CN108762989A (en) * | 2018-06-05 | 2018-11-06 | 郑州云海信息技术有限公司 | Date storage method, device, equipment and the readable storage medium storing program for executing of solid state disk |
CN108762989B (en) * | 2018-06-05 | 2021-08-31 | 郑州云海信息技术有限公司 | Data storage method, device and equipment of solid state disk and readable storage medium |
CN109375112A (en) * | 2018-08-16 | 2019-02-22 | 江苏玖宇实业有限公司 | A kind of accumulator capacity detection power-failure memory method |
TWI696951B (en) * | 2018-08-31 | 2020-06-21 | 威剛科技股份有限公司 | System and method for processing abnormal power failure of storage device |
US11016839B2 (en) | 2018-08-31 | 2021-05-25 | Adata Technology Co., Ltd. | System and method for processing storage device abnormally powered down |
CN109471596A (en) * | 2018-10-31 | 2019-03-15 | 北京小米移动软件有限公司 | Method for writing data, device, equipment and storage medium |
CN109471596B (en) * | 2018-10-31 | 2022-03-18 | 北京小米移动软件有限公司 | Data writing method, device, equipment and storage medium |
CN114303125A (en) * | 2019-08-20 | 2022-04-08 | 美光科技公司 | Garbage collection in a memory subsystem during low battery states |
CN110658999A (en) * | 2019-09-26 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Information updating method, device, equipment and computer readable storage medium |
CN110658999B (en) * | 2019-09-26 | 2022-07-22 | 苏州浪潮智能科技有限公司 | Information updating method, device, equipment and computer readable storage medium |
CN111091861A (en) * | 2019-12-27 | 2020-05-01 | 尧云科技(西安)有限公司 | Solid state disk power failure protection method based on high-speed nonvolatile memory |
CN112817533A (en) * | 2021-01-29 | 2021-05-18 | 深圳忆联信息系统有限公司 | SSD management method, device computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101963891A (en) | Method and device for data storage and processing, solid-state drive system and data processing system | |
US10289408B2 (en) | Managing wear of system areas of storage devices | |
CN102043727B (en) | Method and device for recovering solid-state hard disc mapping table | |
US9075733B1 (en) | Selective storage of address mapping metadata in a system having multiple memories | |
US20150331624A1 (en) | Host-controlled flash translation layer snapshot | |
CN101782875B (en) | Storage unit and data storage method | |
US20100042773A1 (en) | Flash memory storage system and data writing method thereof | |
US9443591B2 (en) | Storage device out-of-space handling | |
KR102515137B1 (en) | Data storage device and operating method thereof | |
TW201527973A (en) | Data writing method, memory control circuit unit and memory storage apparatus | |
US10459803B2 (en) | Method for management tables recovery | |
CN108874574B (en) | Garbage recycling method and related device | |
CN108614744B (en) | Power-down protection method and device based on NAND flash | |
CN103984506A (en) | Method and system for data writing of flash memory storage equipment | |
US20220043713A1 (en) | Meta Data Protection against Unexpected Power Loss in a Memory System | |
US10877853B2 (en) | Data storage device and operation method optimized for recovery performance, and storage system having the same | |
EP2264602A1 (en) | Memory device for managing the recovery of a non volatile memory | |
CN112347001B (en) | Verification method and device for flash memory garbage collection and electronic equipment | |
CN104794066A (en) | Storage apparatus and method for selecting storage area where data is written | |
CN113711189B (en) | System and method for managing reduced power failure energy requirements on solid state drives | |
CN101425334A (en) | Method for implementing NOR FLASH bad block management and control circuit thereof | |
US9348741B1 (en) | Systems and methods for handling write data access requests in data storage devices | |
CN111813340A (en) | Instruction response method, system and device based on solid state disk and electronic equipment | |
CN111324289B (en) | Memory device | |
US20190361608A1 (en) | Data storage device and operation method for recovery, and storage system having the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110202 |