Summary of the invention
According to the above-mentioned problems in the prior art, the technical side of a kind of data storage management system and method is now provided
Case, it is intended to RAID verification and other calculating operations be carried out to solid state hard disk using the computing capability of host, improve solid state hard disk
Operation efficiency and readwrite performance, while the idle computing capability of host is utilized, but also more to the management of solid state hard disk
It is close reliable.
Above-mentioned technical proposal specifically includes:
A kind of data storage management system is applied in computer, is provided with solid state hard disk in the computer;Wherein,
Include:
Flash memory converting unit connects the solid state hard disk, stored data text is executed in Yu Suoshu flash memory converting unit
The logical address of part and the mapping processing of physical address, and execute the RAID checking treatment of the data file, the flash memory
Converting unit is set in the driver of the computer;
Writing unit, connects the flash memory converting unit, and said write unit is according to the data write request of user to institute
The physical address of the Physical Page of solid state hard disk described in flash memory converting unit application is stated, to complete the data file to the solid-state
The write operation of hard disk;
Reading unit, connects the flash memory converting unit, and the reading unit is according to the data read request of user to institute
It states the request of flash memory converting unit and reads the corresponding data file, to complete to read the data text from the solid state hard disk
The read operation of part.
Preferably, data storage management system, wherein the flash memory converting unit specifically includes:
Memory module, for saving the mapping table mapped between the logical address and the physical address;
Distribution module is written, connects the memory module, for being operated according to the said write of said write unit, to this
The secondary physical address for needing the data file being written to distribute corresponding multiple Physical Page in the solid state hard disk, said write
Distribution module writes the mapping relations between the logical address and physical address of the data file after distributing physical address
Enter in the mapping table;
Correction verification module is written, connects said write distribution module, for carrying out the RAID verification to the data file
Processing, the verification data of the data file are calculated;
Writing module connects said write correction verification module, for that will pass through the data text of the RAID checking treatment
Part and the corresponding verification data are stored in multiple Physical Page according to assigned physical address.
Preferably, data storage management system, wherein in the flash memory converting unit further include:
First judgment module is separately connected said write distribution module and said write correction verification module, for according to
The said write of writing unit operates, and judges that said write distribution module distributes whether the physical address succeeds, and output pair
The first judging result answered;
First cue module connects the first judgment module, for indicating described in distribution in first judging result
When physical address fails, to the first prompt information of user feedback write operation exception;
Said write correction verification module indicates to carry out institute again when distributing physical address success in first judging result
State the RAID checking treatment of data file.
Preferably, data storage management system, wherein multiple storage bands are set in Yu Suoshu solid state hard disk, each
It include multiple Physical Page in the storage band;
In the flash memory converting unit further include:
Second judgment module connects the write module, during the data file is written in the write module,
Whether the Physical Page of the current storage band of second judgment module judgement has been fully written, and exports corresponding the
Two judging results;
When second judging result indicates whether the Physical Page for storing band has been fully written, said write
The verification data are written in the solid state hard disk module.
Preferably, data storage management system, wherein the flash memory converting unit specifically includes:
Memory module, for saving the mapping table mapped between the logical address and the physical address;
Third judgment module connects the memory module, for the read operation according to the reading unit, in institute
The physical address for searching whether the data file read there are this needs in mapping table is stated, and exports corresponding third
Judging result;
Read module is separately connected the memory module and the third judgment module, for judging to tie in the third
When fruit indicates the physical address of the data file read in the mapping table there are this needs, in Yu Suoshu mapping table
The physical address for needing the Physical Page of the data file read is obtained, and reads the data text from the physical address
Part;
Second cue module connects the third judgment module, for indicating the mapping in the third judging result
To user feedback clear data when the physical address of the data file read in table there is no this needs, to prompt user
Data file reads failure.
Preferably, data storage management system, wherein multiple storage bands are set in Yu Suoshu solid state hard disk, each
It include multiple Physical Page in the storage band;
When executing said write operation to the data file, the flash memory converting unit is by the data file piecemeal
It is stored in multiple Physical Page, and saves the verification data simultaneously;
In the flash memory converting unit further include:
4th judgment module connects the read module, is for judging that the read module reads the data file
No success, and export corresponding 4th judging result;
Recovery module connects the 4th judgment module, for indicating the data file in the 4th judging result
When reading failure, by the data and the verification data saved in storage band corresponding to the data file,
It calculates and restores the data file;
The data file through over recovery is fed back to user by the flash memory converting unit.
A kind of data storage and management method is applied in computer, is provided with solid state hard disk in the computer;Wherein,
Writing process and reading process including data file;
Said write process specifically includes:
Step A1, using a writing unit obtain user data write request, and according to the data write request to
The physical address of the Physical Page of solid state hard disk described in the flash memory converting unit application, to carry out write operation to data file;
Step A2, use one are set to the flash memory converting unit inside the driver of the computer for the data text
The logical address of part is mapped to the physical address of multiple Physical Page, and executes the RAID checking treatment of the data file, with
The data file piecemeal is stored in the solid state hard disk, with backed off after random;
The mapping table of the logical address and physical address of the data file is set in the flash memory converting unit;
The reading process specifically includes:
Step B1, using a reading unit obtain user data read request, and according to the data read request to
The corresponding data file is read in the flash memory converting unit request, to be read to the data file;
Step B2 obtains the physical address of the data file using the flash memory converting unit in the mapping table,
To read the data file from the solid state hard disk, with backed off after random.
Preferably, data storage and management method, wherein the step A2 is specifically included:
Step A21, the flash memory converting unit operate according to the said write of said write unit, need to be written to this
The data file distribute the physical address of corresponding multiple Physical Page in the solid state hard disk, after distributing physical address
The mapping is written in mapping relations between the logical address and physical address of the data file by the flash memory converting unit
In table;
Step A22, the flash memory converting unit carries out the RAID checking treatment to the data file, to be calculated
The verification data of the data file;
Step A23, the flash memory converting unit carries out the RAID checking treatment to the data file, to be calculated
The verification data of the data file;
Step A24, the flash memory converting unit is by the data file and correspondence Jing Guo the RAID checking treatment
The verification data be stored in multiple Physical Page according to assigned physical address, with backed off after random.
Preferably, data storage and management method, wherein before executing the step A22, following steps are first carried out
It is rapid:
Step A211, the flash memory converting unit judge whether the distribution physical address succeeds:
If it is not, then to the first prompt information of user feedback write operation exception;
If so, turning to the step A22.
Preferably, data storage and management method, wherein multiple storage bands are set in Yu Suoshu solid state hard disk, each
It include multiple Physical Page in the storage band;
In the step A24, Yu Suoshu flash memory converting unit saves the data file and the corresponding check number
Following step is executed during
Whether the Physical Page of the current storage band of the flash memory converting unit judgement has been fully written, and is working as
The verification data are written in the solid state hard disk when the preceding storage band has write full, to complete to current institute
State the write operation of storage band.
Preferably, data storage and management method, wherein the step B2 is specifically included:
Step B21, the flash memory converting unit is according to the read operation of the reading unit, in Yu Suoshu mapping table
Search whether the physical address of the data file read there are this needs:
If it does not exist, then step B23 is turned to;
Step B22, the flash memory converting unit obtain the object for needing the data file read in the mapping table
The physical address of page is managed, and reads from the physical address data file and to user feedback, with backed off after random;
Step B23, the flash memory converting unit are lost to user feedback clear data with prompting subscriber data file to read
It loses, with backed off after random.
Preferably, data storage and management method, wherein the step B22 is specifically included:
Step B221, the flash memory converting unit judge that the read module reads whether the data file succeeds:
If reading successfully, the data file read is fed back to user by the flash memory converting unit, with retrogressing
Out;
Step B222, the flash memory converting unit is by saving in storage band corresponding to the data file
Data and the verification data, calculate and restore the data file;
Step B223, the data file being resumed is fed back to user by the flash memory converting unit, with backed off after random.
The beneficial effect of above-mentioned technical proposal is:
1) a kind of data storage management system is provided, the school RAID can be carried out to solid state hard disk using the computing capability of host
It tests with other calculating operations, improves the operation efficiency and readwrite performance of solid state hard disk, while the idle calculating of host is utilized
Ability, but also even closer to the management of solid state hard disk reliable;
2) a kind of data storage and management method is provided, above-mentioned data storage management system can be supported to operate normally.
Specific embodiment
The present invention will be further explained below with reference to the attached drawings and specific examples, but not as the limitation of the invention.
According to the above-mentioned problems in the prior art, a kind of data storage management system is now provided, is applied to computer
It is interior, solid state hard disk is provided in computer.The data storage management system is specifically as shown in fig. 1, comprising:
Flash memory converting unit 1 connects solid state hard disk 4, patrols in executing stored data file in flash memory converting unit 1
The mapping processing of address and physical address is collected, and executes the RAID checking treatment of data file, flash memory converting unit 1 is set to
In the driver of computer 5, correspondingly, writing unit 2 described below and reading unit 3 are all set in the computer 5
In;
Writing unit 2, connects flash memory converting unit 1, and writing unit 2 is converted according to the data write request of user to flash memory
Unit 1 applies for the physical address of the Physical Page of solid state hard disk, to complete write operation of the data file to solid state hard disk;
Reading unit 3, connects flash memory converting unit 1, and reading unit 3 is converted according to the data read request of user to flash memory
Unit 1 requests to read corresponding data file, to complete to read the read operation of data file from solid state hard disk.
Specifically, in the present embodiment, the configuration of computer (hereinafter referred to host) connection solid state hard disk can form one
The user terminal of a personal use can also form a server, or even form storage server cluster.
In the present embodiment, a flash memory converting unit 1 is set in the driver of above-mentioned host, which can be
The driver of the application program of solid state hard disk is matched in host, or the included driver of host, the purpose is to
Utilize the operational capability in host standby time.Specifically, above-mentioned flash memory converting unit 1 mainly has the function of following two: 1)
Processing forms the mapping relations between the logical address and physical address of the data file to be stored, establishes and saves mapping table;
2) RAID operation is carried out to the data file in the RAID storage array of deposit solid state hard disk, to obtain the check number of data file
According to substitute the RAID processor active task for needing to be executed by the hard disk controller in solid state hard disk originally.
Further, above-mentioned flash memory converting unit 1 can actually be realized relevant function by the processor of host, specifically
For, the processor of host generates one or more relevant processing threads in the driver of host, and using processing line
Journey realizes the function of above-mentioned flash memory converting unit 1.
In the present embodiment, a writing unit 2 is also set up in above-mentioned host, the data write-in for obtaining user's input is asked
It asks, and physical address is applied for flash memory converting unit 1 according to data write request, with the write operation of complete paired data file.
The function of above-mentioned writing unit 2 can be executed by the processor of host in the relevant application program of data storage management in host
Data write-in functions realize.The data write request of user can be manually entered the acquisition (process being locally stored by user
In), it can also be obtained (during cloud storage) by remote data communication, details are not described herein.
In the present embodiment, a reading unit 3 is also set up in above-mentioned host, the reading data for obtaining user's input is asked
It asks, and corresponding physical address is retrieved into flash memory converting unit 2 according to data read request, with the reading of complete paired data file
Extract operation.Similar with above-mentioned writing unit 2, which equally can execute data by the processor in host and deposit
Storage manages the reading data function in relevant application program to realize.The acquisition of above-mentioned data read request is also written with data
Request similar, details are not described herein.
To sum up, in technical solution of the present invention, in the driver of host be arranged flash memory converting unit 1, i.e., will originally by
The RAID operation that the hard disk controller of solid state hard disk executes, which is put into the driver of host, to be executed, and is taken full advantage of not busy in host
The operational capability set, and hard disk controller is released, to improve the readwrite performance of solid state hard disk, and host can be more
It is closely combined with solid state hard disk, plays the role of better hard disk management.
In preferred embodiment of the invention, as shown in Figure 2, above-mentioned flash memory converting unit 1 is specifically included:
Memory module 11, for saving the mapping table mapped between logical address and physical address;
Distribution module 12 is written, connects memory module 11, for the write operation according to writing unit 2, to this needs
The physical address of corresponding multiple Physical Page, write-in distribution module 12 are distributing in the data file distribution solid state hard disk of write-in
It, will be in the mapping relations write-in mapping table between the logical address and physical address of data file after physical address;
Correction verification module 13, connection write-in distribution module 12, for carrying out RAID checking treatment to data file, in terms of is written
Calculation obtains the verification data of data file;
Writing module 14, connection write-in correction verification module 13, for the data file of RAID checking treatment and right will to be passed through
The verification data answered are stored in multiple Physical Page according to assigned physical address.
Specifically, in the present embodiment, after writing unit 2, which writes data into request, to be sent into flash memory converting unit 1, flash memory
Converting unit 1 first according to the data write request, distribute corresponding multiple in solid state hard disk by the data file to need to save
Physical Page, the data file is divided into multiple small data blocks to treat at this time.Subsequent flash memory converting unit 1 is by the data file
Logical address (logical address of each small data block of division) and the physical address of assigned multiple Physical Page are mapped,
And the mapping relations between the logical address of the data file and the physical address of assigned multiple Physical Page are saved supreme
It states in the mapping table in memory module 11.Then, the RAID that flash memory converting unit 1 executes data file, which is verified, to be calculated, with processing
The verification data of the data file are obtained, and according to the physical address of assigned multiple Physical Page, data to be saved will be needed
File block is saved, while above-mentioned verification data being saved in one or more flash chips of solid state hard disk.
In preferred embodiment of the invention, still as shown in Figure 2, in flash memory converting unit 1 further include:
First judgment module 15 is separately connected write-in distribution module 12 and write-in correction verification module 13, for single according to write-in
The write operation of member 2 judges to be written whether 12 allocated physical address of distribution module succeeds, and exports corresponding first judgement knot
Fruit;
First cue module 16 connects first judgment module 15, for indicating allocated physical address in the first judging result
When failure, to the first prompt information of user feedback write operation exception;
Write-in correction verification module 13 carries out data file when the first judging result indicates allocated physical address success again
RAID checking treatment.
Specifically, in the present embodiment, after sending data write request to flash memory converting unit 3, flash memory turns writing unit 2
The case where 3 allocated physical address of unit fails there may be distribution is changed, the above-mentioned needs of first judgment module 15 first determine whether to distribute
Whether physical address succeeds, namely judges that writing unit 2 applies for whether physical address succeeds:
If apply physical address failure, then it represents that this data file storage failure, at this time the first cue module 16 to
The first prompt information of a write operation exception is fed back at family, and the process of this data file write-in terminates.
If applying for physical address success, enter the writing process of normal data file, write-in correction verification module 13 starts
The operation of RAID storage array is carried out, details are not described herein.
In preferred embodiment of the invention, multiple storage bands are set in solid state hard disk, are wrapped in each storage band
Include multiple Physical Page;
Then still as shown in Figure 2, in flash memory converting unit 1 further include:
Second judgment module 17 connects writing module 14, and during data file is written in writing module 14, second sentences
Disconnected module 17 judges whether the Physical Page of current storage band has been fully written, and exports corresponding second judging result;
When the second judging result indicates whether the Physical Page for storing band has been fully written, writing module 14 will verify data
It is written in solid state hard disk.
The concept of above-mentioned storage band with it is identical in the prior art, details are not described herein.
Specifically, in the present embodiment, during above-mentioned data file is stored in solid state hard disk, above-mentioned second judges mould
Block 17 persistently monitors whether the Physical Page that the storage item for being currently assigned to save the data file takes has been fully written.When current
Assigned storage band has been write completely, then data will be verified by, which demonstrating the need for, writes in flash chip, at this time flash memory converting unit 1
One or more flash chips verification data corresponding to strip data in the storage band being written in solid state hard disk
In.
In preferred embodiment of the invention, still as shown in Figure 2, flash memory converting unit 1 is specifically included:
Memory module 11, for saving the mapping table mapped between logical address and physical address;
Third judgment module 18 connects memory module 11, for the read operation according to reading unit 2, in mapping table
It searches whether the physical address of the data file read there are this needs, and exports corresponding third judging result;
Read module 19 is separately connected memory module 11 and third judgment module 18, for indicating in third judging result
When the physical address of the data file read in mapping table there are this needs, the data for needing to read are obtained in mapping table
The physical address of the Physical Page of file, and data file is read from physical address;
Second cue module 20 connects third judgment module 18, for indicating not deposit in mapping table in third judging result
In the physical address for the data file that this needs is read to user feedback clear data, to prompt subscriber data file to read
Failure.
Specifically, in the present embodiment, reading unit 3 sends data read request in flash memory converting unit 1, is read
The first step of extract operation is whether the data file for judging to need to read according to data read request has correlation in the mapping table
Physical address, in other words, it is necessary first to judge to need whether the data file that reads is already saved in solid state hard disk:
If being searched in the mapping table less than relevant physical address, then it represents that the data file is not stored in solid state hard disk
In or mapping table in there are certain mistakes, the second cue module 20 is to user feedback clear data at this time, to prompt user
Reading data failure.
If can search to obtain relevant physical address in the mapping table, read module 19 is directly from the physical address
It obtains data file and feeds back to user.
In preferred embodiment of the invention, multiple storage bands are set in solid state hard disk, are wrapped in each storage band
Include multiple Physical Page, the concept of above-mentioned storage band with it is above identical, details are not described herein.
When executing write operation to data file, data file piecemeal is stored in multiple Physical Page by flash memory converting unit
In, and verification data are saved simultaneously;
Then still as shown in Figure 2, in above-mentioned flash memory converting unit 1 further include:
4th judgment module 21 connects read module 19, for judging that read module 19 reads whether data file succeeds,
And export corresponding 4th judging result;
Recovery module 22 connects the 4th judgment module 21, for indicating that data file reads failure in the 4th judging result
When, by the data and verification data saved in storage band corresponding to data file, calculates and restore data file;
Data file through over recovery is fed back to user by above-mentioned flash memory converting unit 1.
The process that above-mentioned data are restored with it is similar in the prior art, i.e., by the strip data in storage band and relatively
The verification data answered restore the data in the flash chip of failure, to feed back to the complete data file of user.With existing skill
Unlike in art, the calculating and processing that above-mentioned data are restored execute in flash memory converting unit 1, i.e., in the driver of host
Middle progress, it makes use of the operational capabilities that host leaves unused, and the processor active task of the hard disk controller of solid state hard disk are released, to mention
The readwrite performance of solid state hard disk is risen.
In preferred embodiment of the invention, based on the above data storage management system, a kind of number is now provided
According to memory management method, it is applied in computer, solid state hard disk is provided in computer.
The above method includes the writing process and reading process of data file;
As shown in Figure 3, above-mentioned writing process specifically includes:
Step A1 obtains the data write request of user using a writing unit, and according to data write request to flash memory
The physical address of the Physical Page of converting unit application solid state hard disk, to carry out write operation to data file;
Step A2, use one are set to the flash memory converting unit inside the driver of computer for the logic of data file
Address of cache and executes the RAID checking treatment of data file at the physical address of multiple Physical Page, by data file point
Block is stored in solid state hard disk, with backed off after random;
The mapping table of the logical address and physical address of data file is set in flash memory converting unit;
As shown in Figure 4, above-mentioned reading process specifically includes:
Step B1 obtains the data read request of user using a reading unit, and according to data read request to flash memory
Corresponding data file is read in converting unit request, to be read to data file;
Step B2 obtains the physical address of data file using flash memory converting unit in the mapping table, with from solid state hard disk
Middle reading data file, with backed off after random.
In preferred embodiment of the invention, as shown in Figure 5, above-mentioned steps A2 is specifically included:
Step A21, write operation of the flash memory converting unit according to writing unit, the data file point that this needs is written
Physical address with multiple Physical Page corresponding in solid state hard disk, flash memory converting unit is literary by data after distributing physical address
In mapping relations write-in mapping table between the logical address and physical address of part;
Step A22, flash memory converting unit carries out RAID checking treatment to data file, the school of data file is calculated
Test data;
Step A23, flash memory converting unit carries out RAID checking treatment to data file, the school of data file is calculated
Test data;
Step A24, flash memory converting unit by Jing Guo RAID checking treatment data file and corresponding verification data according to
It is stored in multiple Physical Page according to assigned physical address, with backed off after random.
In preferred embodiment of the invention, before executing step A22, following steps as shown in Figure 6 are first carried out
It is rapid:
Step A211, flash memory converting unit judge whether allocated physical address succeeds:
If it is not, then to the first prompt information of user feedback write operation exception;
If so, turning to step A22.
In preferred embodiment of the invention, multiple storage bands are set in solid state hard disk, are wrapped in each storage band
Include multiple Physical Page;
In step A24, under being executed during flash memory converting unit saves data file and corresponding verification data
State step
Whether the Physical Page of the current storage band of flash memory converting unit judgement has been fully written, and in current storage band
Verification data are written in solid state hard disk when having write full, to complete the write operation to current storage band.
In preferred embodiment of the invention, as shown in Figure 7, above-mentioned steps B2 is specifically included:
Step B21, flash memory converting unit search whether that there are this according to the read operation of reading unit in mapping table
The physical address of the secondary data file for needing to read:
If it does not exist, then step B23 is turned to;
Step B22, flash memory converting unit obtain the Physical Page for the data file that needs are read physically in mapping table
Location, and data file and to user feedback is read from physical address, with backed off after random;
Step B23, flash memory converting unit is to user feedback clear data, to prompt subscriber data file to read failure, with
Backed off after random.
In preferred embodiment of the invention, as shown in Figure 8, above-mentioned steps B22 is specifically included:
Step B221, flash memory converting unit judge that read module reads whether data file succeeds:
If reading successfully, the data file read is fed back to user by flash memory converting unit, with backed off after random;
Step B222, flash memory converting unit is by storing the data and verification that save in band corresponding to data file
Data calculate and restore data file;
Step B223, the data file being resumed is fed back to user by flash memory converting unit, with backed off after random.
The above is only preferred embodiments of the present invention, are not intended to limit the implementation manners and the protection scope of the present invention, right
For those skilled in the art, it should can appreciate that and all replace with being equal made by description of the invention and diagramatic content
It changes and obviously changes obtained scheme, should all be included within the scope of the present invention.