CN107665097A - A kind of method, apparatus and computer-readable recording medium of solid state hard disc subregion - Google Patents

A kind of method, apparatus and computer-readable recording medium of solid state hard disc subregion Download PDF

Info

Publication number
CN107665097A
CN107665097A CN201710732949.4A CN201710732949A CN107665097A CN 107665097 A CN107665097 A CN 107665097A CN 201710732949 A CN201710732949 A CN 201710732949A CN 107665097 A CN107665097 A CN 107665097A
Authority
CN
China
Prior art keywords
subregion
page
abstract
solid state
state hard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710732949.4A
Other languages
Chinese (zh)
Other versions
CN107665097B (en
Inventor
余云锋
吴大畏
李晓强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Miancun (Zhejiang) Technology Co.,Ltd.
Original Assignee
SiliconGo Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SiliconGo Microelectronics Co Ltd filed Critical SiliconGo Microelectronics Co Ltd
Priority to CN201710732949.4A priority Critical patent/CN107665097B/en
Publication of CN107665097A publication Critical patent/CN107665097A/en
Application granted granted Critical
Publication of CN107665097B publication Critical patent/CN107665097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of method, apparatus and computer-readable recording medium of solid state hard disc subregion.The partitioning instruction that the present invention is inputted by receiving user, each physical block in solid state hard disc is sorted out to obtain multiple subregions according to capacity;The performance for responding user's input sets instruction, and the solid state hard disc after subregion is arranged to the partitionable hard of different performance according to performance setting instruction.And then user can carry out subregion according to the different use demands of oneself to solid state hard disc so that the setting of solid state hard disc is more flexible, improves Consumer's Experience.

Description

A kind of method, apparatus and computer-readable recording medium of solid state hard disc subregion
Technical field
The present invention relates to technical field of memory, more particularly to a kind of method, apparatus of solid state hard disc subregion and computer can Read storage medium.
Background technology
When in use, the use of single subregion and multiple subregions for a user is only solid state hard disc on the market at present The difference of subregion disk number and each area's amount of capacity.Without area substantially in terms of for using effect and stability Not.
Current hard disk (solid state hard disc and disk) on the market, is essentially all the direct volume production of producer, allows user itself Partition format.If use of the disk substantially conforming to user, but if being solid state hard disc, solid state hard disc is using money Storage-type memory chip Nand flash are expected, because data storage type memory chip Nand flash are as the special of storage medium Property, i.e. Data Preservation Policy (data retention), read operation interference (read disturb) be present and grind in Nand flash The problem of negative factors such as damage, obvious this configuration of dispatching from the factory is endless all standing demand for the user for having requirements at the higher level 's.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill Art.
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.
Brief description of the drawings
Fig. 1 is the solid state hard disc partitioning device structural representation for the hardware running environment that scheme of the embodiment of the present invention is related to;
Fig. 2 is schematic flow sheet of the present invention to solid state hard disc partition method first embodiment;
Fig. 3 is by the model schematic after the progress subregion in solid state hard disc in the embodiment of the present invention;
Fig. 4 is schematic flow sheet of the present invention to solid state hard disc partition method second embodiment;
Fig. 5 is the paging model schematic diagram of the target physical block in data security subregion in the embodiment of the present invention;
Fig. 6 is the abstract model schematic diagram of the paging model schematic diagram generation based on Fig. 3 in the embodiment of the present invention;
It is that abstract model schematic diagram sets the model schematic after check information page in the embodiment of the present invention that Fig. 7, which is,;
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
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.

Claims (10)

  1. A kind of 1. method of solid state hard disc subregion, it is characterised in that 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 to obtain multiple points according to capacity Area;
    The performance for responding user's input sets instruction, sets instruction to be arranged to the solid state hard disc after subregion not according to the performance With the partitionable hard of performance.
  2. 2. the method as described in claim 1, it is characterised in that the performance of the response user input sets instruction, according to institute Stating performance sets instruction that the solid state hard disc after subregion is arranged to the partitionable hard of different performance, specifically includes:
    The performance for responding user's input sets instruction, sets instruction to determine from the solid state hard disc after subregion the according to the performance One subregion and the second subregion;
    First subregion is arranged to security partitioning, second subregion is arranged to performance subregion.
  3. 3. method as claimed in claim 2, it is characterised in that it is described that first subregion is arranged to security partitioning, specifically Including:
    Each target physical block in first subregion is arranged to the abstract model with n abstract pages, the n is described solid Enable Pin quantity in the number of channels of the flash memory of state hard disk, each passage, the quantity of logic storage unit of each passage, each storage are single The product of the quantity of storage matrix and the Physical Page quantity of the target physical block in member;
    Check information page is selected from the n abstract pages, physics check code is set for the check information page.
  4. 4. method as claimed in claim 3, it is characterised in that it is described that check information page is selected from the n abstract pages, be The check information page sets physics check code, specifically includes:
    N-th of abstract page is chosen from the n abstract pages as the check information page, is the check information page arranging thing Check code is managed, 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 check code is set Afterwards, in addition to:
    When occurring the abstract page to be restored of loss of effective data in the abstract model, determine that residue is taken out in the abstract model As the valid data of page, according to the valid data of the remaining abstract page and the physical verification code to the abstract page to be restored Carry out data recovery.
  5. 5. method as claimed in claim 3, it is characterised in that it is described that check information page is selected from the n abstract pages, be The check information page sets physics check code, specifically includes:
    Check information page is set respectively to the n abstract pages, physics check code, each physics are set respectively for each check information page Check 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 check code is set Afterwards, in addition to:
    When occurring the abstract page to be restored of loss of effective data in the abstract model, determine that the abstract page to be restored is corresponding Physical verification code, and data recovery is carried out to the abstract page to be restored according to the corresponding physical verification code.
  6. 6. the method as described in claim any one of 3-5, it is characterised in that the target physical by first subregion Block is arranged to the abstract model with n abstract pages, specifically includes:
    Determine the quantity of each Physical Page of the target physical block in first subregion;
    Obtain in the number of channels of the flash memory of the solid state hard disc, the quantity of logic storage unit of each passage, each memory cell The quantity of energy end section in the quantity of storage matrix and each passage;
    According to the quantity of the Physical Page, the quantity of the passage, each passage logic storage unit quantity, each memory cell The target physical block is arranged to have taking out for the individual abstract pages of n by the quantity of energy end section in the quantity of middle storage matrix and each passage As model.
  7. 7. method as claimed in claim 2, it is characterised in that it is described that second subregion is arranged to performance subregion, specifically Including:
    Each physical block in second subregion is sent into performance enhancement pattern, to each physics in the performance enhancement pattern The Physical Page of block is compressed respectively.
  8. 8. method as claimed in claim 2, it is characterised in that described that instruction is set from the solid-state after subregion according to the performance After the first subregion and the second subregion are determined in hard disk, in addition to:
    Using the remaining subregion as capacity subregion.
  9. 9. a kind of solid state hard disc partitioning device, it is characterised in that described device includes:Processor, memory and is stored in described On memory and the solid state hard disc partition programs that can run on the processor;The solid state hard disc partition programs are configured to reality Now as any one of claim 1 to 8 the step of the method for solid state hard disc subregion.
  10. 10. a kind of computer-readable recording medium, it is characterised in that the solid state hard disc subregion journey is stored in the storage medium Sequence, the solid state hard disc point as any one of claim 1 to 8 is realized when the solid state hard disc partition programs are executed by processor The step of method in area.
CN201710732949.4A 2017-08-22 2017-08-22 Method and device for partitioning solid state disk and computer readable storage medium Active CN107665097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710732949.4A CN107665097B (en) 2017-08-22 2017-08-22 Method and device for partitioning solid state disk and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710732949.4A CN107665097B (en) 2017-08-22 2017-08-22 Method and device for partitioning solid state disk and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107665097A true CN107665097A (en) 2018-02-06
CN107665097B CN107665097B (en) 2021-02-23

Family

ID=61097855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710732949.4A Active CN107665097B (en) 2017-08-22 2017-08-22 Method and device for partitioning solid state disk and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107665097B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445705A (en) * 2018-10-29 2019-03-08 湖南国科微电子股份有限公司 Firmware authentication method and solid state hard disk
CN109947598A (en) * 2019-03-20 2019-06-28 浪潮商用机器有限公司 A kind of SSD microcode backup method, system, equipment and computer storage medium
WO2019205449A1 (en) * 2018-04-27 2019-10-31 江苏华存电子科技有限公司 Management method for improving data-array-based data protection in flash storage device
CN111857572A (en) * 2020-06-20 2020-10-30 苏州浪潮智能科技有限公司 Data writing method, device and equipment of TLC solid state disk and storage medium
CN112732182A (en) * 2020-12-29 2021-04-30 北京浪潮数据技术有限公司 NAND data writing method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023925A (en) * 2009-09-23 2011-04-20 翔晖科技股份有限公司 A solid state disk and the application method thereof
CN102968381A (en) * 2012-11-19 2013-03-13 浪潮电子信息产业股份有限公司 Method for improving snapshot performance by using solid state disk
CN103558994A (en) * 2013-09-29 2014-02-05 记忆科技(深圳)有限公司 Method for encrypting solid state disk partitions and solid state disk
US20140149647A1 (en) * 2012-11-28 2014-05-29 Lenevo (Beijing) Co., Ltd. Method and electronic apparatus for implementing multi-operating system
CN105723679A (en) * 2013-11-11 2016-06-29 亚马逊科技公司 Client-configurable security options for data streams
CN106708433A (en) * 2016-12-06 2017-05-24 深圳市深信服电子科技有限公司 Read-write method and device for stored data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023925A (en) * 2009-09-23 2011-04-20 翔晖科技股份有限公司 A solid state disk and the application method thereof
CN102968381A (en) * 2012-11-19 2013-03-13 浪潮电子信息产业股份有限公司 Method for improving snapshot performance by using solid state disk
US20140149647A1 (en) * 2012-11-28 2014-05-29 Lenevo (Beijing) Co., Ltd. Method and electronic apparatus for implementing multi-operating system
CN103558994A (en) * 2013-09-29 2014-02-05 记忆科技(深圳)有限公司 Method for encrypting solid state disk partitions and solid state disk
CN105723679A (en) * 2013-11-11 2016-06-29 亚马逊科技公司 Client-configurable security options for data streams
CN106708433A (en) * 2016-12-06 2017-05-24 深圳市深信服电子科技有限公司 Read-write method and device for stored data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
田洪亮 等: "可信固态硬盘:大数据安全的新基础", 《计算机学报》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019205449A1 (en) * 2018-04-27 2019-10-31 江苏华存电子科技有限公司 Management method for improving data-array-based data protection in flash storage device
CN109445705A (en) * 2018-10-29 2019-03-08 湖南国科微电子股份有限公司 Firmware authentication method and solid state hard disk
CN109445705B (en) * 2018-10-29 2022-03-22 湖南国科微电子股份有限公司 Firmware authentication method and solid state disk
CN109947598A (en) * 2019-03-20 2019-06-28 浪潮商用机器有限公司 A kind of SSD microcode backup method, system, equipment and computer storage medium
CN111857572A (en) * 2020-06-20 2020-10-30 苏州浪潮智能科技有限公司 Data writing method, device and equipment of TLC solid state disk and storage medium
CN111857572B (en) * 2020-06-20 2022-07-26 苏州浪潮智能科技有限公司 Data writing method, device and equipment of TLC solid state disk and storage medium
CN112732182A (en) * 2020-12-29 2021-04-30 北京浪潮数据技术有限公司 NAND data writing method and related device

Also Published As

Publication number Publication date
CN107665097B (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN107665097A (en) A kind of method, apparatus and computer-readable recording medium of solid state hard disc subregion
CN109783017B (en) Storage device bad block processing method and device and storage device
US9043536B2 (en) Method of recording mapping information, and memory controller and memory storage apparatus using the same
CN105786411B (en) Method of operating a non-volatile memory device
CN106484316A (en) Method for managing a memory device, memory device and controller
US20200285393A1 (en) Unbalanced plane management method, associated data storage device and controller thereof
CN104346290A (en) Storage device, computer system and methods of operating same
US8769243B2 (en) Apparatus with smart card chip for storing communication file in non-volatile memory
CN102890655B (en) Memory storage device, memory controller and valid data recognition method thereof
CN106681932A (en) Memory management method, memory control circuit unit and memory storage device
CN102592670B (en) Method for writing data, Memory Controller and memorizer memory devices
CN104765569A (en) Data write-in method, memory control circuit unit and memory storing device
CN107092566A (en) Data storage device and data maintenance method thereof
CN106951186A (en) Data programming method, memory storage apparatus and memorizer control circuit unit
CN105988950B (en) Storage management method, memorizer control circuit unit and memory storage apparatus
CN102968385B (en) Method for writing data, Memory Controller and storage device
CN107704338A (en) A kind of data reconstruction method and device of data storage type flash
CN105224238B (en) Storage management method, memory storage apparatus and memorizer control circuit unit
CN104731710B (en) Storage management method, memorizer control circuit unit and memorizer memory devices
CN101739350B (en) Memory storage device and control method thereof
CN102890617A (en) Memory control method, memory controller and memory storage device
CN105868046B (en) The method of management, write-in and loading firmware code in storage device
CN110442299B (en) Data writing method, memory control circuit unit and memory storage device
CN104238956A (en) Method for writing data, controller of storage, and storage device of storage
TW201227294A (en) Dada writing method, memory controller and memory storage apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518051 Units 05-2 and 06-08, 6th Floor, Changhong Science and Technology Building, 18 Science and Technology South 12 Road, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen SiliconGo Semiconductor Co., Ltd.

Address before: Units 05-2 and 06-08, 6th floor, Changhong Science and Technology Building, 18 Science and Technology South 12 Road, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SILICONGO MICROELECTRONICS CO., LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210927

Address after: 314200 room 1201, R & D building, No. 198, Qin'an Road, Caoqiao street, Pinghu City, Jiaxing City, Zhejiang Province

Patentee after: Miancun (Zhejiang) Technology Co.,Ltd.

Address before: 518051 unit 05-2, 06-08, 6th floor, Changhong science and technology building, 18 Keji South 12th Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN SILICONGO MICROELECTRONICS Co.,Ltd.

TR01 Transfer of patent right