The content of the invention
The purpose of this programme be by proposing a kind of method, apparatus and computer-readable recording medium of solid state hard disc subregion,
Aim to solve the problem that current solid state hard disc can not by the autonomous subregion of user to reach the use demand of user the problem of.
To achieve the above object, the present invention provides a kind of method of solid state hard disc subregion, the described method comprises the following steps:
The partitioning instruction of user's input is received, each physical block in solid state hard disc is sorted out according to capacity more to obtain
Individual subregion;
The performance for responding user's input sets instruction, sets instruction to set the solid state hard disc after subregion according to the performance
For the partitionable hard of different performance.
Preferably, the performance of the response user input sets instruction, and instruction is set by after subregion according to the performance
Solid state hard disc is arranged to the partitionable hard of different performance, specifically includes:
The performance of response user's input sets instruction, is set and is instructed from the solid state hard disc after subregion really according to the performance
Fixed first subregion and the second subregion;
First subregion is arranged to security partitioning, second subregion is arranged to performance subregion.
Preferably, it is described that first subregion is arranged to security partitioning, specifically include:
Each target physical block in first subregion is arranged to the abstract model with n abstract pages, the n is institute
State Enable Pin quantity in the number of channels of the flash memory of solid state hard disc, each passage, each passage logic storage unit quantity, respectively deposit
The product of the quantity of storage matrix and the Physical Page quantity of the target physical block in storage unit;
Check information page is selected from the n abstract pages, physics check code is set for the check information page.
Preferably, it is described that check information page is selected from the n abstract pages, for the check information page, physics school is set
Code is tested, is specifically included:
N-th of abstract page is chosen from the n abstract pages as the check information page, is set for the check information page
Glove manages check code, and the physical verification code is characterized as the XOR value of the valid data of each abstract page in the abstract model;
Correspondingly, it is described that check information page is selected from the n abstract pages, for the check information page, physics school is set
Test after code, in addition to:
When occurring the abstract page to be restored of loss of effective data in the abstract model, determine to remain in the abstract model
The valid data of remaining abstract page, to be restored taken out to described according to the valid data of the remaining abstract page and the physical verification code
As page carries out data recovery.
Preferably, it is described that check information page is selected from the n abstract pages, for the check information page, physics school is set
Code is tested, is specifically included:
Check information page is set respectively to the n abstract pages, physics check code is set respectively for each check information page, respectively
Physical verification code is characterized as the Backup Data of each abstract page;
Correspondingly, it is described that check information page is selected from the n abstract pages, for the check information page, physics school is set
Test after code, in addition to:
When occurring the abstract page to be restored of loss of effective data in the abstract model, the abstract page to be restored is determined
Corresponding physical verification code, and data recovery is carried out to the abstract page to be restored according to the corresponding physical verification code.
Preferably, the target physical block by first subregion is arranged to the abstract model with n abstract pages,
Specifically include:
Determine the quantity of each Physical Page of the target physical block in first subregion;
It is single to obtain the number of channels of the flash memory of the solid state hard disc, the quantity of logic storage unit of each passage, each storage
In member in the quantity of storage matrix and each passage can end section quantity;
According to the quantity of the Physical Page, the quantity of the passage, the quantity of logic storage unit of each passage, each storage
In unit in the quantity of storage matrix and each passage can the quantity of end section the target physical block is arranged to n abstract pages
Abstract model.
Preferably, it is described that second subregion is arranged to performance subregion, specifically include:
Each physical block in second subregion is sent into performance enhancement pattern, to each in the performance enhancement pattern
The Physical Page of physical block is compressed respectively.
Preferably, it is described to set instruction to determine the first subregion and second from the solid state hard disc after subregion according to the performance
After subregion, in addition to:
Using the remaining subregion as capacity subregion.
In addition, to achieve the above object, the present invention also proposes a kind of solid state hard disc partitioning device, it is described including:Processor,
Memory and it is stored in the solid state hard disc partition programs that can be run on the memory and on the processor;The solid-state is hard
Disk partition programs are arranged for carrying out the step of method of solid state hard disc subregion as described above.
In addition, to achieve the above object, the present invention also proposes a kind of computer-readable recording medium, in the storage medium
The solid state hard disc partition programs are stored, solid-state as described above is realized when the solid state hard disc partition programs are executed by processor
The step of method of fdisk.
The partitioning instruction that the present invention is inputted by receiving user, each physical block in solid state hard disc is returned according to capacity
Class is to obtain multiple subregions;The performance for responding user's input sets instruction, and instruction is set by consolidating after subregion according to the performance
State hard disk is arranged to the partitionable hard of different performance.And then user can enter according to the different use demands of oneself to solid state hard disc
Row subregion so that the setting of solid state hard disc is more flexible, improves Consumer's Experience.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Reference picture 1, Fig. 1 are the knot of the solid state hard disc partitioning device for the hardware running environment that scheme of the embodiment of the present invention is related to
Structure schematic diagram.
As shown in figure 1, the solid state hard disc partitioning device can include:Processor 1001, such as CPU, user interface 1002,
Solid hard disk interface 1003, memory 1004, communication bus 1005.Wherein, user interface 1002 can be connected including display screen
(Display), input block such as keyboard (Keyboard).Memory 1004 can be stable memory (non-
Volatile memory), while EEPROM (Electrically Erasable Programmable Read- can be included
Only Memory) EEPROM.Communication bus 1005 is used to realize that the connection between these components is led to
Letter.Solid hard disk interface 1003 can be USB interface.
It will be understood by those skilled in the art that the structure of the solid state hard disc partitioning device shown in Fig. 1 is not formed to solid
The restriction of state fdisk device, it can include than illustrating more or less parts, either combine some parts or difference
Part arrangement.
As shown in figure 1, as in a kind of memory 1004 of computer-readable storage medium can include operating system, hard disk control
Molding block, Subscriber Interface Module SIM and solid state hard disc partition programs.
In the solid state hard disc partitioning device shown in Fig. 1, user interface 1002 is mainly used in interacting with user;Solid-state
Hard-disk interface 1003 is used to connect the solid state hard disc for treating subregion;Processor 1001, memory 1004 in this transmitting apparatus can be set
Put in solid state hard disc partitioning device, the solid state hard disc partitioning device is called in memory 1004 by processor 1001 and stored
Solid state hard disc partition programs, and perform following operate:
The partitioning instruction of user's input is received, each physical block in solid state hard disc is sorted out according to capacity more to obtain
Individual subregion;
The performance for responding user's input sets instruction, sets instruction to set the solid state hard disc after subregion according to the performance
For the partitionable hard of different performance.
Further, processor 1001 can call the solid state hard disc partition programs stored in memory 1004, also perform
Operate below:
The performance of response user's input sets instruction, is set and is instructed from the solid state hard disc after subregion really according to the performance
Fixed first subregion and the second subregion;
First subregion is arranged to security partitioning, second subregion is arranged to performance subregion.
Further, processor 1001 can call the solid state hard disc partition programs stored in memory 1004, also perform
Operate below:
Each target physical block in first subregion is arranged to the abstract model with n abstract pages, the n is institute
State Enable Pin quantity in the number of channels of the flash memory of solid state hard disc, each passage, each passage logic storage unit quantity, respectively deposit
The product of the quantity of storage matrix and the Physical Page quantity of the target physical block in storage unit;
Check information page is selected from the n abstract pages, physics check code is set for the check information page.
Further, processor 1001 can call the solid state hard disc partition programs stored in memory 1004, also perform
Operate below:
N-th of abstract page is chosen from the n abstract pages as the check information page, is set for the check information page
Glove manages check code, and the physical verification code is characterized as the XOR value of the valid data of each abstract page in the abstract model;
Further, processor 1001 can call the solid state hard disc partition programs stored in memory 1004, also perform
Operate below:
When occurring the abstract page to be restored of loss of effective data in the abstract model, determine to remain in the abstract model
The valid data of remaining abstract page, to be restored taken out to described according to the valid data of the remaining abstract page and the physical verification code
As page carries out data recovery.
Further, processor 1001 can call the solid state hard disc partition programs stored in memory 1004, also perform
Operate below:
Check information page is set respectively to the n abstract pages, physics check code is set respectively for each check information page, respectively
Physical verification code is characterized as the Backup Data of each abstract page;
Further, processor 1001 can call the solid state hard disc partition programs stored in memory 1004, also perform
Operate below:
When occurring the abstract page to be restored of loss of effective data in the abstract model, the abstract page to be restored is determined
Corresponding physical verification code, and data recovery is carried out to the abstract page to be restored according to the corresponding physical verification code.
Further, processor 1001 can call the solid state hard disc partition programs stored in memory 1004, also perform
Operate below:
Determine the quantity of each Physical Page of the target physical block in first subregion;
It is single to obtain the number of channels of the flash memory of the solid state hard disc, the quantity of logic storage unit of each passage, each storage
In member in the quantity of storage matrix and each passage can end section quantity;
According to the quantity of the Physical Page, the quantity of the passage, the quantity of logic storage unit of each passage, each storage
In unit in the quantity of storage matrix and each passage can the quantity of end section the target physical block is arranged to n abstract pages
Abstract model.
Further, processor 1001 can call the solid state hard disc partition programs stored in memory 1004, also perform
Operate below:
Each physical block in second subregion is sent into performance enhancement pattern, to each in the performance enhancement pattern
The Physical Page of physical block is compressed respectively.
Further, processor 1001 can call the solid state hard disc partition programs stored in memory 1004, also perform
Operate below:
Using the remaining subregion as capacity subregion.
The partitioning instruction that the present embodiment is inputted by receiving user, each physical block in solid state hard disc is carried out according to capacity
Sort out to obtain multiple subregions;The performance for responding user's input sets instruction, and instruction is set by after subregion according to the performance
Solid state hard disc is arranged to the partitionable hard of different performance.Realize user can be by meeting user's to solid state hard disc subregion
Use demand, and then on the premise of ensureing that solid state hard disc uses capacity, the read-write operation performance of solid state hard disc had both been improved, again
It ensure that the safety and stability of data in solid state hard disc.
Based on above-mentioned hardware configuration, the embodiment of the method for solid state hard disc subregion of the present invention is proposed.
Reference picture 2, Fig. 2 are the schematic flow sheet of the method first embodiment of solid state hard disc subregion of the present invention.
S10:The partitioning instruction of user's input is received, each physical block in solid state hard disc is sorted out to obtain according to capacity
Take multiple subregions;
It will be appreciated that Nand flash memories chip reads and writes data with Physical Page (Page) for unit first, and with thing
It is that unit wipes data to manage block (Block), therefore only Block need to be allocated classification according to the different demands of user, these
Block after classification is known as region zone (i.e. subregion), then FTL (Flash translation layer, flash memory conversion
Intermediate layer) it is responsible for these different zone.Wherein, set according to the capacity of subregion, these Block sort out and drawn
Point, the Block for forming these subregions can be continuous Block or discrete Block.
S20:The performance for responding user's input sets instruction, and instruction is set by the solid state hard disc after subregion according to the performance
It is arranged to the partitionable hard of different performance.
In the specific implementation, the performance of response user's input sets instruction, according to performance setting instruction after subregion
Solid state hard disc in determine the first subregion and the second subregion;First subregion is arranged to security partitioning;By described second point
Area is arranged to performance subregion;Using the remaining subregion as capacity subregion.With reference to shown in figure 3, with whole in the flash chip
Lun in have 2048 physical block Block exemplified by;(CH0 represents first of the flash chip to each channel C H in solid state hard disc
Passage, CH1 represent second passage of the flash chip) all LUN in, extract out a physical block Blk0~
For Blk511 as the first subregion zone1, zone1 is arranged into " security partitioning " (can also be as other kinds of subregion, with peace
Exemplified by full subregion), an other physical block Blk512~Blk1023 is extracted out as the second subregion zone2, and zone2 is arranged to
" performance subregion ";It is exactly current market in fact using remaining Blk as the 3rd subregion zone3 " capacity subregion ", " capacity subregion "
On SSD solid state hard discs regular partition, that is, the subregion given tacit consent to, do not possess " performance subregion " and any work(of " security partitioning "
Energy.
The present embodiment, solid state hard disc can be divided into 3 areas by user according to the use demand of oneself (can certainly be allocated as
More areas), when operating system is placed on " performance subregion ", for having the user of high-performance requirement, its experience effect
Can significantly it be lifted, read or write speed is accelerated, and is particularly especially apparent in the use in later stage.Then " security partitioning " can deposit
Some users think crucial data, for example some R&D institutions are when the main frame using supporting solid state hard disc does coding exploitation,
Scientific research personnel is fool proof reliable to protect programming data using " security partitioning ".Finally can using remaining subregion as
In " capacity subregion ", as this " capacity subregion " with the subregion effect of solid state hard disc be on the market now, such as can be with
Deposit the files such as some relatively inessential videos or game.The present embodiment realize user can by solid state hard disc subregion with
Meet the use demand of user, improve the flexibility that user is set to solid state hard disc, capacity is used in guarantee solid state hard disc
Under the premise of, the read-write operation performance of solid state hard disc had both been improved, in turn ensure that the safety and stability of data in solid state hard disc,
Improve Consumer's Experience.
Reference picture 4, Fig. 4 is a kind of second embodiment to solid state hard disc partition method of the invention, based on the above method
First embodiment, Fig. 4 is exemplified by based on the embodiment shown in Fig. 2.
In a second embodiment, it is described that first subregion is arranged to security partitioning, specifically include following steps:
S201:Each target physical block in first subregion is arranged to the abstract model with n abstract pages, it is described
N be Enable Pin quantity in the number of channels of flash memory of the solid state hard disc, each passage, each passage logic storage unit number
The product of the quantity of storage matrix and the Physical Page quantity of the target physical block in amount, each memory cell;
It should be noted that describing for convenience, the present embodiment is with when the number of quantity=1, CE of CH quantity=1, LUN
When measuring=1, plane quantity=1, and each block have during 4 abstract page page exemplified by illustrate, certainly in practice
" chip " has the combination of page quantity in different CH quantity, Lun quantity, CE quantity, plane quantity and a block;
It will be appreciated that processor response sets instruction in the performance that user inputs, it can perform and determine first subregion
In target physical block Physical Page quantity;Obtain the channel C H of the flash memory of solid state hard disc quantity, each passage is patrolled
In volume memory cell Lun quantity, each memory cell in storage matrix plane quantity and each passage can end section Ce number
Amount;And patrolled according to the quantity of quantity Physical Page of the Physical Page of the target physical block, the quantity of the channel C H, each passage
In volume memory cell Lun quantity, each memory cell in storage matrix plane quantity and each passage can end section CE quantity will
The target physical block is arranged to the abstract model with n abstract pages.
It should be noted that describing for convenience, the present embodiment is with when the number of quantity=1, CE of CH quantity=1, LUN
When measuring=1, plane quantity=1, and each block have during 4 abstract page page exemplified by illustrate, certainly in practice
" chip " has the combination of page quantity in different CH quantity, Lun quantity, CE quantity, plane quantity and a block
In the present embodiment, such as user is by each physical block of each plane in each Lun in Nand flash chips
Block page number of Physical Page is arranged to 4 page, and (Page0 is each first Physical Page of physical block, and Page2 is each
Second Physical Page of physical block, Page3 are the 3rd Physical Page of each physical block, and Page4 is the 4th physics of each physical block
Page), each (target) physical block that Fig. 5 is each plane in each Lun from the first subregion zone1 is hard in solid-state
Paging model schematic diagram under disk controller (SSD Controller), CH is passage in figure, and CH0 is first passage, and CH1 is
Second passage;CE is Enable Pin, and CE0 is first Enable Pin of each passage, and CE1 is second Enable Pin of each passage.
In order to ensure the security performance of first subregion zone1 (security partitioning) data of solid state hard disc, the present embodiment is by root
The abstract model of each target physical block shown in Fig. 6 generated according to the paging model of the target physical block shown in Fig. 5, i.e. processor
Can according in the quantity of the Physical Page, the quantity of the passage and each passage can end section quantity by the target in described Fig. 5
Physical block is arranged to the abstract model with 16 abstract pages;The Physical Page Page of the different Enable Pins of different passages exists in Fig. 5
After binding, forming abstract page as shown in Figure 6, (CH0 CE0 Page0 are first Physical Page of the target physical block
The abstract page of first Enable Pin in the first channel, CH1 CE0 Page0 are that first Physical Page is logical at second
The abstract page of first Enable Pin in road, CH0 CE1Page0 are that first Physical Page makes for second in the first channel
Can end abstract page, CH1 CE1Page0 be first Physical Page in second passage second Enable Pin it is abstract
Page;CH0 CE0 Page1 are the abstract of second Physical Page, first Enable Pin in the first channel of the target physical block
Page ... .., 4 Physical Page, 2 passages, 2 Enable Pins one share 16 abstract pages);Target physical in Fig. 4
The order of each caching page of abstract model of block from top to bottom is that each abstract page is written into when performing data write instruction (programming)
The order of data.When main frame host sends data to equipment device, each Physical Page Page can be entered in the order described above
Row bindings, i.e., in the order described above successively to each Physical Page Page of each plane target physical block in each Lun
Carry out bindings.For a block (i.e. target physical block), it can be bound with the abstract of the individual abstract pages of n
Model, wherein, page in n=channel Cs H quantity * Enable Pins CE quantity * Lun quantity * plane quantity * block
Quantity.
S202:Check information page is selected from the n abstract pages, physics check code is set for the check information page;
It will be appreciated that the physical verification code is used for occurring the to be restored of loss of effective data in the abstract model
During abstract page, data recovery is carried out to the abstract page to be restored according to the physical verification code of the check information page.
It should be noted that check information page can be selected by two ways and physics check code is set.
First way is:Last abstract page is check information page, and its data is the verification of remaining 15 abstract page
Code (simple xor operation can be done), as long as (including check information page) has any one abstract page to go out in this 16 abstract pages
The expendable situations such as existing loss of data, can by remaining 15 it is abstract recovered, by the first way,
The capacity for sacrificing 1/16th is protected as secure data.With regard to Nand flash chips used in current solid state hard disc, one
As for a physical block acquiescently at least have 256 Physical Page, correspondingly, it is also just silent to be abstracted physical block (abstract model)
At least have 1024 abstract pages with recognizing, according to above-mentioned saying, in every 1024 abstract pages, last abstract page, which can be used as, to be deposited
Put the page (i.e. raid page) of check code.So solid state hard disc has general millesimal capacitance loss, substantially will not
Influence very much using and promoting for user.
The second way is:Page can certainly be abstracted to each and is both provided with a check information page, is each verification
Information page sets physics check code respectively, and each physical verification code is characterized as the Backup Data of each abstract page, the second way
The capacity for sacrificing half further improves the security of data, in fact here it is the situation of complete Backup Data, so
Although in general capacity can be sacrificed by doing, data protection ability and recovery capability can be stronger.
In the specific implementation, the present embodiment illustrates by taking above-mentioned first way as an example, from above-mentioned abstract model
It is last abstract page (CH1 CE1 Page3 Raid in corresponding diagram 7 that the 16th abstract page is chosen in 16 abstract pages
Page the check information page, i.e. reference picture 7, and be the check information page (CH1 CE1 Page3 Raid Page)) are used as
Physics check code is set, and the physical verification code is characterized as the XOR value of the valid data of each abstract page in the abstract model;
Wherein, the physical verification code is calculated by below equation and obtained:
Wherein, D1 represents the valid data of the 1st abstract page in the abstract model, and D2 represents in the abstract model the
The valid data of 2 abstract pages, D3 represent the valid data of the 3rd abstract page in the abstract model, and Dn represents described abstract
The valid data of n-th of abstract page in model, P represent that the valid data of each abstract page carry out the physics generated after XOR
Check code.
It should be noted that describing for convenience, the present embodiment is with when the number of quantity=1, CE of CH quantity=1, LUN
When measuring=1, plane quantity=1, and each block have during 4 abstract page page exemplified by illustrate, then verification is believed
Ceasing page, (i.e. the 3rd Physical Page of the target physical block is in second passage for the CH1CE1Page3Raid Page in Fig. 5
Corresponding first lun of second Enable Pin first plane abstract page is that check information page is check information page);
Certainly, we may also assume that the quantity of quantity=1, plane of quantity=2, CE of CH quantity=2, LUN=
When 1, and when each block has a case that 4 abstract page page, then at this moment check information page should be
(i.e. the 3rd Physical Page of the target physical block is second in second passage by CH1Lun1plane1CE1Page3Raid Page
Corresponding second lun of individual Enable Pin second plane abstract page is that check information page is check information page).
Detect that valid data damage occurs in one and only one in D1 to Dn in above-mentioned formula by hard disk controlling in main frame
(there is abstract page to be restored) during bad loss, the processor of main frame can determine that residue is taken out in the abstract model by firmware version
Treated as the correct valid data of page, and according to the valid data and the physical verification code P of the remaining abstract page to described
Recover abstract page and carry out data recovery.
Correspondingly, it is described that second subregion is arranged to performance subregion, specifically include following steps:
S301:Each physical block in second subregion is sent into performance enhancement pattern, in the performance enhancement mould
The Physical Page of each physical block is compressed respectively in formula;
It will be appreciated that the performance of solid state hard disc is mainly by " big data order read or write speed " and " 4K small datas
IOPS (number per second for being written and read operation) " is showed, but regardless of erasing of which index all with Nand Flash, programming and
There are relation the busy times (business hours) of read operation.It is to solid state hard disc certainly if the busy times can be compressed as far as possible
Performance greatly lifting again.And Nand Flash are broadly divided into SLC (Single-Level Cell single layer cells), MLC
(Multi-Level Cell multilevel-cells) and TLC (the rank units of Triple Level Cell tri-) three classes, in the common application of market
The mainly flash chip particle (because its cost is advantageous) of MCL flash chips particle and TLC, for taking TLC, each
Block typically has two kinds of operator schemes, and a kind of is common pattern, and another kind is enhance performance enhancement patterns, enters
After enhance performance enhancement patterns, its used Physical Page page data can reduce that (each Physical Page can be compressed, typically
1/3) TLC can be reduced to, but its busy time generally can all shorten, and stability and abrasion number (i.e. service life) can carry significantly
Rise.So user can exchange performance and stability for by sacrificing capacity, but this kind of subregion is because be primarily used to installation operation
System deposits remaining and needs the file of performance.(disk of such as installation operation system needs 15G, then physical capacity sacrifices 30G, but
Long-range performance and stability are exchanged for, so needing to customize according to the demand oneself of user).
S401:Using the remaining subregion as capacity subregion.
It will be appreciated that as the capacity subregion with the subregion effect of solid state hard disc is on the market now, such as
The files such as some relatively inessential videos or game can be deposited.
The present embodiment is by the way that the target physical block of security partitioning to be arranged to have to the abstract models of n abstract pages, from institute
State in n abstract pages and select check information page, physics check code is set for the check information page, factor data can be destroyed
And the data to fail are recovered, and stability and peace that flash chip works can be ensured while data recovery is carried out
Full property is unaffected;Each physical block in the performance subregion is sent into performance enhancement pattern simultaneously, to increasing in the performance
The Physical Page of each physical block is compressed in strong mode so that the flash chip business hours shortens so that solid state hard disc operation
Stability greatly promotes, and extends the service life of solid state hard disc.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, in the storage medium described in storage
Solid state hard disc partition programs, following operation is realized when the solid state hard disc partition programs are executed by processor:
The partitioning instruction of user's input is received, each physical block in solid state hard disc is sorted out according to capacity more to obtain
Individual subregion;
The performance for responding user's input sets instruction, sets instruction to set the solid state hard disc after subregion according to the performance
For the partitionable hard of different performance.
The solid state hard disc partition programs also realize following operation when being executed by processor:
The performance of response user's input sets instruction, is set and is instructed from the solid state hard disc after subregion really according to the performance
Fixed first subregion and the second subregion;
First subregion is arranged to security partitioning, second subregion is arranged to performance subregion.
The solid state hard disc partition programs also realize following operation when being executed by processor:
Each target physical block in first subregion is arranged to the abstract model with n abstract pages, the n is institute
State Enable Pin quantity in the number of channels of the flash memory of solid state hard disc, each passage, each passage logic storage unit quantity, respectively deposit
The product of the quantity of storage matrix and the Physical Page quantity of the target physical block in storage unit;
Check information page is selected from the n abstract pages, physics check code is set for the check information page.
The solid state hard disc partition programs also realize following operation when being executed by processor:
N-th of abstract page is chosen from the n abstract pages as the check information page, is set for the check information page
Glove manages check code, and the physical verification code is characterized as the XOR value of the valid data of each abstract page in the abstract model;
The solid state hard disc partition programs also realize following operation when being executed by processor:
When occurring the abstract page to be restored of loss of effective data in the abstract model, determine to remain in the abstract model
The valid data of remaining abstract page, to be restored taken out to described according to the valid data of the remaining abstract page and the physical verification code
As page carries out data recovery.
The solid state hard disc partition programs also realize following operation when being executed by processor:
Check information page is set respectively to the n abstract pages, physics check code is set respectively for each check information page, respectively
Physical verification code is characterized as the Backup Data of each abstract page;
The solid state hard disc partition programs also realize following operation when being executed by processor:
When occurring the abstract page to be restored of loss of effective data in the abstract model, the abstract page to be restored is determined
Corresponding physical verification code, and data recovery is carried out to the abstract page to be restored according to the corresponding physical verification code.
The solid state hard disc partition programs also realize following operation when being executed by processor:
Determine the quantity of each Physical Page of the target physical block in first subregion;
It is single to obtain the number of channels of the flash memory of the solid state hard disc, the quantity of logic storage unit of each passage, each storage
In member in the quantity of storage matrix and each passage can end section quantity;
According to the quantity of the Physical Page, the quantity of the passage, the quantity of logic storage unit of each passage, each storage
In unit in the quantity of storage matrix and each passage can the quantity of end section the target physical block is arranged to n abstract pages
Abstract model.
The solid state hard disc partition programs also realize following operation when being executed by processor:
Each physical block in second subregion is sent into performance enhancement pattern, to each in the performance enhancement pattern
The Physical Page of physical block is compressed respectively.
The solid state hard disc partition programs also realize following operation when being executed by processor:
Using the remaining subregion as capacity subregion.
The partitioning instruction that the present embodiment is inputted by receiving user, each physical block in solid state hard disc is carried out according to capacity
Sort out to obtain multiple subregions;The performance for responding user's input sets instruction, and instruction is set by after subregion according to the performance
Solid state hard disc is arranged to the partitionable hard of different performance.Realize user can be by meeting user's to solid state hard disc subregion
Use demand, and then on the premise of ensureing that solid state hard disc uses capacity, the read-write operation performance of solid state hard disc had both been improved, again
It ensure that the safety and stability of data in solid state hard disc.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.