WO2022048109A1 - 数据存储介质的管理方法、系统、终端设备及存储介质 - Google Patents

数据存储介质的管理方法、系统、终端设备及存储介质 Download PDF

Info

Publication number
WO2022048109A1
WO2022048109A1 PCT/CN2021/074793 CN2021074793W WO2022048109A1 WO 2022048109 A1 WO2022048109 A1 WO 2022048109A1 CN 2021074793 W CN2021074793 W CN 2021074793W WO 2022048109 A1 WO2022048109 A1 WO 2022048109A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage medium
data storage
physical blocks
quasi
logical area
Prior art date
Application number
PCT/CN2021/074793
Other languages
English (en)
French (fr)
Inventor
欧永明
吴大畏
李晓强
Original Assignee
深圳市硅格半导体有限公司
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 深圳市硅格半导体有限公司 filed Critical 深圳市硅格半导体有限公司
Publication of WO2022048109A1 publication Critical patent/WO2022048109A1/zh

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/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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • 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/062Securing storage systems
    • G06F3/0623Securing storage systems in relation to content
    • 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/064Management of blocks
    • 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/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • 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/0653Monitoring storage devices or systems
    • 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/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the technical field of data storage, and in particular, to a data storage medium management method, system, terminal device and computer storage medium.
  • data storage media such as Nand Flash: a storage product used for solid-state storage of data
  • data storage medium usually in order to give priority to data read and write performance (such as faster execution of solid-state storage of data or read out data)
  • the data storage medium will simultaneously access the bound physical blocks in a parallel manner by binding physical blocks, so that the data storage medium can perform data read and write processes with the highest performance.
  • the data storage medium cannot be bound for all physical blocks, so that some physical blocks that are not bound in the data storage medium will not be bound. It is not actually accessed to read and write data.
  • the data storage medium cannot guarantee the read and write performance of data.
  • data storage When the medium executes data storage, it needs to traverse each physical block of itself to query the currently available physical block and access it individually to complete the data storage, which will greatly increase the waiting time for data storage.
  • the existing data storage medium prioritizes performance and executes data read and write in parallel based on binding physical blocks, it is easy to cause some physical blocks of the data storage medium to be inaccessible, thereby greatly reducing the overall usage capacity of the data storage medium. , and the data storage medium is difficult to achieve high performance of data reading and writing under the premise of ensuring the capacity of data use.
  • the main purpose of this application is to provide a management method, device, terminal device and computer storage medium for a data storage medium, in order to solve the problem in the prior art that it is difficult to take into account the overall availability of the data storage medium in consideration of data read and write performance. Capacity, the technical problem that an effective balance between performance and capacity cannot be achieved.
  • the present application provides a management method for a data storage medium, and the management method for the data storage medium includes:
  • Detecting status information of the data storage medium wherein the status information includes: bad physical block distribution status and physical block availability status;
  • the physical blocks of each quasi-bound group are respectively bound in the data storage medium to form each first logical area;
  • a target logical area is determined from each of the first logical area and the second logical area to store the data to be stored.
  • the bad physical block distribution state includes: no bad physical blocks exist and bad physical blocks exist
  • the quasi-binding group includes: a first quasi-binding group and a second quasi-binding group
  • the step of binding the physical blocks of each quasi-bonded group in the data storage medium according to the distribution state of the bad physical blocks to form each first logical area includes:
  • the quantity is the total number of storage units owned by the data storage medium
  • the step of respectively binding the second quasi-binding group to form a first logical area according to the target storage unit and the number of bad physical blocks includes:
  • the step of binding the second quasi-binding group to form a first logical area according to the target storage unit and the number of bad physical blocks further includes:
  • Good physical blocks in each of the quasi-bonded groups are respectively bound to form each of the quasi-bonded group pairs into a first logical area of the first preset unit number.
  • the physical block availability status includes a first availability status and a second availability status
  • the step of detecting the state information of the data storage medium includes:
  • the second usable state is determined by detecting the second erasing lifespan of all the physical blocks in the preset second mode, wherein the first erasing and writing lifespan is shorter than the second erasing and writing lifespan.
  • the step of establishing a second logical area in the data storage medium according to the available state of the physical block includes:
  • Each of the first physical blocks is used as an independent storage unit, and a second logical area is established by combining the independent storage units.
  • the step of determining a target logical area from the first logical area and each of the second logical areas to store the to-be-stored data includes:
  • the first logical area or the second logical area corresponding to the available storage capacity is determined as the target logical area for storing the to-be-stored data.
  • the present application also provides a management system for a data storage medium, where the management system for the data storage medium includes:
  • a detection module configured to detect status information of the data storage medium, wherein the status information includes: bad physical block distribution status and physical block availability status;
  • a first building module configured to respectively bind the physical blocks of each quasi-binding group in the data storage medium according to the distribution state of the bad physical blocks to form each first logical area
  • a second building module for establishing a second logical area in the data storage medium according to the available state of the physical block
  • the storage control module is configured to, when receiving the data to be stored, determine a target logical area from each of the first logical area and the second logical area to store the data to be stored.
  • Each functional module of the data storage medium management system of the present application implements the steps of the above-mentioned data storage medium management method when running.
  • the present application also provides a terminal device, the terminal device includes: a memory, a processor, and a management program of a data storage medium stored in the memory and running on the processor, When the management program of the data storage medium is executed by the processor, the steps of the method for managing the data storage medium as described above are implemented.
  • the present application also provides a computer storage medium, where a computer program is stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned data storage medium management method are implemented.
  • the data storage medium management method, system, terminal device and computer storage medium proposed in this application detect the status information of the data storage medium, wherein the status information includes: bad physical block distribution status and physical block availability status;
  • the physical blocks of the quasi-binding groups are respectively bound in the distribution state of the bad physical blocks to form each first logical area;
  • the second logical area is established in the data storage medium according to the available state of the physical blocks. area; when receiving the data to be stored, determine a target logical area from each of the first logical area and the second logical area to store the data to be stored.
  • the present application analyzes and detects the state information of the data storage medium itself at the physical structure level, such as the distribution state of bad physical blocks of the data storage medium and the available state of physical blocks of the data storage medium, and then, based on the distribution state of the bad physical blocks, respectively Binding the physical blocks of each quasi-bound group of the data storage medium, so that each quasi-bound group is formed into a plurality of coexisting first logical areas, and further in the data storage medium based on the available state of the physical blocks A second logical area is established, in this way, after receiving the data to be stored that needs to be stored and written into the data storage medium, the target logical area is determined from the first logical area and the second logical area formed to store the to-be-stored data. data.
  • the physical block is used as an independent storage unit to perform data reading and writing, and the application can perform data reading and writing more quickly through multiple logical regions established in the data storage medium.
  • a good physical block is used to establish different logical areas. In this way, not only the performance of the data storage medium for reading and writing data is guaranteed to a great extent, but also the overall available capacity of the data storage medium is fully taken into account, so that the data storage medium can be read and written. Good balance between write performance and overall capacity.
  • FIG. 1 is a schematic structural diagram of the hardware operation of a terminal device involved in a solution according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of an embodiment of a method for managing a data storage medium of the present application
  • FIG. 3 is a schematic flow diagram of a refinement of step S200 in an embodiment of a method for managing a data storage medium of the present application;
  • FIG. 4 is a schematic structural diagram of a module of a data storage medium management system of the present application.
  • FIG. 1 is a schematic structural diagram of a hardware operating environment of a terminal device involved in an embodiment of the present application.
  • FIG. 1 can be a schematic structural diagram of a hardware operating environment of a terminal device.
  • the terminal device in this embodiment of the present application may be a data storage control terminal, a PC, a portable computer and other terminal devices.
  • the terminal device may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 .
  • the communication bus 1002 is used to realize the connection communication between these components.
  • the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface).
  • the memory 1005 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
  • the structure of the terminal device shown in FIG. 1 does not constitute a limitation on the terminal device, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.
  • the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a processing program for distributed tasks.
  • the operating system is a program that manages and controls hardware and software resources of a sample terminal device, a processing program that supports distributed tasks, and the running of other software or programs.
  • the user interface 1003 is mainly used for data communication with each terminal;
  • the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server;
  • the processor 1001 can be used to call the memory 1005 the management program of the data storage medium stored in the device and perform the following operations:
  • Detecting status information of the data storage medium wherein the status information includes: bad physical block distribution status and physical block availability status;
  • the physical blocks of each quasi-bound group are respectively bound in the data storage medium to form each first logical area;
  • a target logical area is determined from each of the first logical area and the second logical area to store the data to be stored.
  • the bad physical block distribution state includes: no bad physical blocks exist and bad physical blocks exist
  • the quasi-binding group includes: a first quasi-binding group and a second quasi-binding group
  • the processor 1001 can call
  • the management program of the data storage medium stored in the memory 1005 also performs the following operations:
  • processor 1001 can call the management program of the data storage medium stored in the memory 1005, and also perform the following operations:
  • processor 1001 can call the management program of the data storage medium stored in the memory 1005, and also perform the following operations:
  • Good physical blocks in each of the quasi-bonded groups are respectively bound to form each of the quasi-bonded group pairs into a first logical area of the first preset unit number.
  • the physical block available status includes a first available status and a second available status
  • the processor 1001 can call the management program of the data storage medium stored in the memory 1005, and also perform the following operations:
  • the second usable state is determined by detecting the second erasing lifespan of all the physical blocks in the preset second mode, wherein the first erasing and writing lifespan is shorter than the second erasing and writing lifespan.
  • processor 1001 can call the management program of the data storage medium stored in the memory 1005, and also perform the following operations:
  • Each of the first physical blocks is used as an independent storage unit, and a second logical area is established by combining the independent storage units.
  • processor 1001 can call the management program of the data storage medium stored in the memory 1005, and also perform the following operations:
  • the first logical area or the second logical area corresponding to the available storage capacity is determined as the target logical area for storing the to-be-stored data.
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for managing a data storage medium of the present application.
  • Embodiments of the present application provide embodiments of a method for managing a data storage medium. It should be noted that although a logical sequence is shown in the flowchart, in some cases, the sequence shown here may be performed in a different sequence. out or described steps.
  • the method for managing a data storage medium in this embodiment of the present application is applied to the above-mentioned terminal device for controlling data storage.
  • the terminal device in this embodiment of the present application may be a data storage medium itself, a data storage control terminal, a PC, a portable computer, and other terminal devices. No specific restrictions are imposed.
  • Step S100 detecting status information of the data storage medium, wherein the status information includes: bad physical block distribution status and physical block availability status;
  • the data storage medium may be Nand Flash or other relatively mature data storage medium in the existing market. It should be understood that, based on the continuous progress and development of the level of science and technology, more other storage media (such as disks and cards, etc. Therefore, based on the different design needs of practical applications, the data storage medium can of course be other mature storage media in other implementation manners. The types are specifically limited.
  • the terminal device currently used to control data storage traverses all physical blocks in the data storage medium according to a pre-configured detection period or based on a preset algorithm to detect the distribution state of bad physical blocks in the data storage medium and the physical block availability status.
  • the terminal device sets a detection period for cyclic detection of the data storage medium-Nand Flash based on the configuration input by the staff through the user graphical interface of the front-end visual output in advance, and then the terminal device reads the system time to detect Determine whether the next detection cycle has been reached, and when it is determined, start to traverse all the physical blocks that are currently empty in the data storage medium-Nand Flash, and scan and detect the quality of all physical blocks one by one.
  • the terminal device sets a detection period for cyclic detection of the data storage medium-Nand Flash based on the configuration input by the staff through the user graphical interface of the front-end visual output in advance, and then the terminal device reads the system time to detect Determine whether the next detection cycle has been reached, and when it is determined, start to traverse all the physical blocks that are currently empty in the data storage medium-Nand Flash, and scan and detect the quality of all physical blocks one by one.
  • the respective available states of all the physical blocks In the current management mode for the data storage medium-Nand Flash, the respective available states
  • the terminal device may also traverse all physical blocks based on the algorithm operation input by the staff in real time through the user graphical interface of the front-end visual output, and detect the respective good or bad conditions of all the physical blocks, and In the current management mode for the data storage medium-Nand Flash, the respective available states of all the physical blocks.
  • the terminal device can use different management modes to manage the data storage medium-Nand Flash, and the management mode can be various modes commonly seen in the market today, such as SLC (Single Flash).
  • Level Cel single-layer storage
  • MLC Multi-Level Cell: multi-layer storage
  • TLC Triple-Level Cell: 3bit/cell-1 memory storage unit can store 3 bits
  • the algorithm operation input by the staff in real time on the user graphical interface may specifically be by clicking on a preconfigured command control on the user graphical interface, or inputting a corresponding command through a preset command input dialog box content, it should be understood that, based on different design requirements of practical applications, in other embodiments, the staff can of course also perform other algorithm operations to trigger the update instruction, and the management method of the data storage medium in the embodiment of the present application is not aimed at this
  • the operation content of the algorithm operation is specifically limited.
  • Step S200 binding the physical blocks of each quasi-binding group in the data storage medium according to the distribution state of the bad physical blocks to form each first logical area;
  • the quasi-binding group is a physical group formed by all physical blocks at the same physical level in the physical structure of the data storage medium.
  • the data storage medium-Nand Flash has four When the storage unit - "plane0”, “plane1”, “plane2” and “plane3” is used to divide the overall physical structure vertically, each physical layer in the horizontal direction belongs to the “plane0”, “plane1”, “plane2” and “plane3” respectively. "The four physical blocks can be used as a data storage medium-Nand A quasi-binding group of Flash, in which a storage unit (that is, a plane) can be composed of 1024 physical blocks in the vertical physical structure.
  • the terminal device After the terminal device detects the distribution state of bad physical blocks in the data storage medium by traversing all physical blocks of the data storage medium, the terminal device determines each quasi-binding group of the data storage medium according to the distribution state of the bad physical blocks. The bad physical blocks in the quasi-bonding group are bound to other good physical blocks except the bad physical block. Then, the terminal device combines the quasi-bonding groups with the same distribution of bad physical blocks to establish A plurality of first logical regions coexisting in the data storage medium are started.
  • the quasi-binding groups that are combined are determined based on the distribution state of bad physical blocks in the data storage medium, a plurality of quasi-binding groups containing different numbers of good physical blocks are established.
  • the respective capacity sizes of the plurality of first logical areas obtained may be arbitrary.
  • a new data storage medium with a maximum data capacity of 32GB - Nand Flash in the final three first logical areas established, the capacity size allocation of each first logical area can be 20GB, 8GB and 2GB (data storage medium -
  • Nand Flash is brand new, all physical blocks are empty and available , so that each first logical area can only be established based on the distribution state of bad physical blocks, and the data storage medium-Nand Flash itself needs to reserve enough storage space (here, 2GB) for storage management algorithms).
  • the bad physical block distribution state in the above step S200 includes: no bad physical blocks and bad physical blocks exist, and the quasi-binding group includes: a first quasi-binding group and a second quasi-binding group.
  • the physical blocks of each quasi-bound group are respectively bound in the data storage medium to form each first logical area, which may include:
  • Step S201 count each first quasi-binding group that does not have a bad physical block in the data storage medium, and each second quasi-binding group that has a bad physical block;
  • the terminal device Based on the distribution status of bad physical blocks of the data storage medium obtained by the detection, the terminal device counts, among all quasi-binding groups of the data storage medium, a plurality of first quasi-bonding groups that do not have bad physical blocks and a plurality of first quasi-binding groups that have bad physical blocks The second quasi-bonding group.
  • the terminal device detects that the data storage medium-Nand Flash is in the 70th quasi-binding group in the vertical direction by traversing all the physical blocks of the data storage medium-Nand Flash that are vertically divided into four storage units. There is no bad physical block in the 600th quasi-bonding group, and there is no bad physical block in the 705th quasi-bonding group to the 815th quasi-bonding group, then the terminal device determines that the 70th to 600th The first quasi-bonding group and the 705th to 815th quasi-bonding groups are the first quasi-bonding group.
  • the terminal device uses the data storage medium-Nand The 65th to 69th quasi-bonded groups, the 601st to 704th quasi-bond groups, and the 816th to 1024th quasi-bond groups with bad physical blocks in the remaining Flash
  • the block needs to be used for the storage management algorithm, therefore, it can be considered that all physical blocks in this part of the quasi-binding group are not empty), and all of them are determined as the second quasi-binding group.
  • Step S202 Bind the physical blocks in each of the first quasi-bonded groups respectively to form each of the first quasi-bonded groups into a first logical area of a first preset unit number, wherein the first quasi-bonded group is The preset number of units is the total number of units of storage units owned by the data storage medium;
  • the number of the first preset units is the same as the number of storage units possessed by the data storage medium. storage units - "plane0", “plane1”, “plane2” and “plane3”, thus, the number of the first preset unit is 4plane. It should be understood that, based on different design requirements of practical applications, in other feasible implementation manners, if the data storage medium is divided into vertical physical structures with other numbers of storage units, the first preset number of units will of course also follow. If it changes to other quantities, the method for managing the data storage medium in this embodiment of the present application does not specifically limit the numerical value of the first preset unit quantity.
  • the terminal device After the terminal device determines, from the quasi-binding groups of the data storage medium, a plurality of first quasi-binding groups without bad physical blocks and a plurality of second quasi-bonding groups with bad physical blocks, the terminal device first separately All good physical blocks in the plurality of first quasi-binding groups are bound, and all the first quasi-binding groups are combined to form a first logical area of a first preset unit number in the data storage medium.
  • the terminal device determines the 70th to 600th quasi-binding groups and the 705th to 815th quasi-binding groups obtained by detection in the data storage medium-Nand Flash, which has a physical structure vertically divided into four storage units.
  • the terminal devices After being the first quasi-bonding group, the terminal devices are respectively for the 70th to 600th and 705th to 815th quasi-bonding groups, and each quasi-bonding group belongs to the storage unit horizontally - "plane0", "plane1", " Bind the good physical blocks of plane2" and "plane3”, and then combine the 70th to 600th and 705th to 815th quasi-bonded groups into a 4-plane first logical area.
  • Step S203 Detect the target storage unit to which the bad physical blocks belong in each of the second quasi-binding groups and the number of bad physical blocks, and bind the second quasi-specific blocks respectively according to the target storage unit and the number of bad physical blocks. Bind the group to form the first logical area.
  • the terminal device After the terminal device determines from the quasi-binding groups of the data storage medium a plurality of first quasi-binding groups without bad physical blocks and a plurality of second quasi-bonding groups with bad physical blocks, the terminal device further detects the The number of bad physical blocks in each of the plurality of second quasi-binding groups, and the target storage unit to which the bad physical block belongs.
  • the good physical blocks in the plurality of second quasi-bonding groups are respectively bound to combine the second quasi-bonding groups into a plurality of first logical regions with other unit numbers.
  • step S203 "respectively bind the second quasi-binding group according to the target storage unit and the number of bad physical blocks to form a first logical area". steps, which can include:
  • Step S2031 classifying each of the second quasi-binding groups according to the number of bad physical blocks and the target storage unit to obtain each target standard binding group;
  • the terminal device sorts the plurality of second quasi-binding groups in sequence according to different numbers of bad physical blocks and different target storage units, so as to obtain target standard binding groups with different numbers of storage units.
  • the terminal device traverses all the physical blocks in which the physical structure is divided vertically by 4 storage units - the Nand Flash is empty, so that the 65th to 69th quasi-bound groups, After 601 to 704 quasi-bonding groups and the 816th to 1024th quasi-bonding groups are determined as the second quasi-bonding group, the terminal device further detects that in the 65th to 69th quasi-bonding groups, the number of bad physical blocks is 1 and the target storage unit to which the bad physical block belongs is plane0, the terminal device classifies the 65th to 69th quasi-binding groups as the first target standard binding group; in addition, the terminal device further detects the 601st to 704th quasi-binding groups.
  • the terminal device In the binding group, the number of bad physical blocks is 2 and the target storage units to which the bad physical blocks belong are plane0 and plane1, then the terminal device will classify the 601st to 704th quasi-bonding groups as the second target standard binding group; in addition , the terminal device further detects that in the 816th to 1020th quasi-bonding groups, the number of bad physical blocks is 3 and the target storage units to which the bad physical blocks belong are plane0, plane1 and plane2, then the terminal device will be about the 816th to 1020th quasi-bonding groups.
  • the binding group is classified as the third target standard binding group; finally, the terminal device further detects that in the 1021st to 1024th quasi-bonding groups, the number of bad physical blocks is 3 and the target storage units to which the bad physical blocks belong are plane1 and plane2 and plane3, the terminal device classifies the 1021st to 1024th quasi-binding groups as the fourth objective standard binding group.
  • Step S2032 Binding good physical blocks in each target standard binding group respectively to form each target standard binding group into a first logical area with a second preset unit number, wherein the second preset Let the number of units equal the total number of units minus the number of bad physical blocks.
  • the number of the second preset units is equal to the number of storage units owned by the data storage medium, and the number of bad physical blocks in the target standard binding group will be removed, for example, divided vertically by 4 storage units.
  • the data storage medium of physical structure - Nand Flash has 4 storage units - "plane0", “plane1”, “plane2” and “plane3”, and in the first standard binding group, the number of bad physical blocks is 1, then Combining all the first target standard binding groups can form a first logical area with a second preset unit quantity of 3 planes.
  • the data storage medium management method in this embodiment of the present application does not specifically limit the numerical value of the second preset unit quantity.
  • the terminal device After dividing the plurality of second quasi-binding groups into target standard binding groups of different categories, the terminal device respectively binds good physical blocks in the target standard binding groups of each category to bind the target standard.
  • the group is organized into a plurality of other first logical regions of their unit number.
  • the terminal device will give the 65th to 69th quasi-bonding groups belonging to the storage units plane1, plane2 and plane3. Physical block binding, and then combine the 65th to 69th quasi-binding groups to form the first logical area of 3 planes; similarly, the terminal device sequentially targets the second target standard binding group - the 601st to 704th quasi-binding groups , the third objective standard binding group - the 816th to 1020th quasi-binding group and the fourth objective standard binding group - the 1021st to 1024th quasi-binding group, respectively perform physical block binding to form the second plane of the 2plane A logical area (formed by the combination of the 601st to 704th quasi-bonding groups) and the first logical area of 1 plane (formed by the combination of the 816th to 1024th quasi-bonding groups).
  • step S203 "respectively bind the second quasi-binding group according to the target storage unit and the number of bad physical blocks to form a first logical area"
  • the steps may also include:
  • Step S2033 detecting each quasi-bonding group pair in which the number of bad physical blocks and the target storage unit are complementary in each of the second quasi-bonding groups;
  • the terminal device After the terminal device further detects and obtains the respective number of bad physical blocks in the plurality of second quasi-binding groups and the target storage unit to which the bad physical blocks belong, the terminal device preferentially filters out two of the plurality of second quasi-binding groups.
  • the number of bad physical blocks in the second quasi-bonded group and the target storage unit to which the bad physical blocks belong are complementary to each other.
  • the number of bad physical blocks and the target storage unit to which the bad physical blocks belong are complementary to each other.
  • the result of the superposition of the number of bad physical blocks is the total number of storage units owned by the data storage medium
  • the result of the superposition of the target storage units is the storage unit owned by the data storage medium.
  • the terminal device traverses all physical blocks whose physical structure is divided vertically by 4 storage units-Nand Flash is empty, and further classifies the 65th to 69th quasi-binding groups as the first objective criterion
  • the 1021st to 1024th quasi-binding groups as the fourth target standard binding group, because the number of bad physical blocks in the first target standard binding group is 1 and the target to which the bad physical blocks belong
  • the storage unit is plane0
  • the number of bad physical blocks in the fourth-order standard binding group is 3
  • the target storage units to which the bad physical blocks belong are plane1, plane2, and plane3, so the first-order standard binding group and the fourth In the target standard binding group, the number of bad physical blocks and the target storage unit to which the bad physical blocks belong are complementary.
  • Four consecutive fourth-order standard binding groups are determined as four quasi-binding group pairs.
  • Step S2034 Bind the good physical blocks in each of the quasi-bonded groups respectively to form each of the quasi-bonded group pairs into a first logical area of the first preset unit number.
  • the terminal device respectively binds good physical blocks in each of the quasi-binding pairs selected for the plurality of quasi-binding pairs, so as to form the plurality of quasi-binding pairs into a first logical area of a first preset unit number.
  • the terminal device when the terminal device combines the 65th to 69th first objective standard binding groups, four consecutive quasi-binding groups - the 66th to 69th quasi-binding groups, and the 1021st to 1024th fourth quasi-binding groups After the target standard bonding groups are combined to form 4 quasi-bonding group pairs, the terminal device combines the three good physical blocks belonging to plane1, plane2 and plane3 in the 66th to 69th quasi-bonding groups with the 1021st to 69th quasi-bonding groups.
  • a good physical block belonging to plane0 in the 1024 quasi-bonding groups is bound separately, that is, three good physical blocks in the 66th quasi-bonding group and one good physical block in each 1021st quasi-bonding group are bound Binding is performed and so on. Then, the terminal device forms the four quasi-binding group pairs into the first logical area of the 4 plane.
  • the terminal device after the terminal device further detects and obtains the number of bad physical blocks and the target storage unit to which the bad physical blocks belong to each of the plurality of second quasi-binding groups, the terminal device preferentially filters out the plurality of second quasi-binding groups In the fixed group, the number of bad physical blocks in the two second quasi-binding groups and the target storage unit to which the bad physical blocks belong are complementary to each other. Good physical blocks in each quasi-bound pair are respectively bound, so as to form the plurality of quasi-bound pairs into a first logical area of a first preset unit number.
  • Step S300 establishing a second logical area in the data storage medium according to the available state of the physical block
  • the terminal device After the terminal device detects the available status of the physical blocks in the data storage medium by traversing all the physical blocks of the data storage medium, the terminal device determines that the data storage medium is unavailable in the current management mode but is not available in the current management mode according to the available status of the physical block.
  • the physical blocks available in other management modes are organized into a second logical area in the data storage medium.
  • Step S400 when the data to be stored is received, a target logical area is determined from each of the first logical area and the second logical area to store the data to be stored.
  • the terminal device After the terminal device has formed a plurality of first logical areas and second logical areas in the data storage medium, if it detects the data storage task issued by the data owner, it receives the data to be stored that requires the data storage medium for solid-state storage. Afterwards, the terminal device determines one or more from the plurality of first logical areas and the second logical area to be used for processing the to-be-stored data based on judging that the to-be-stored data itself needs to be stored in the data storage medium. The target logical area of solid-state storage, and controls the data storage medium to execute corresponding write and write commands to store the data to be stored.
  • the step of "determining a target logical area from the first logical area and each of the second logical areas to store the data to be stored" may be include:
  • Step S401 determining the storage occupied capacity of the data to be stored, and the respective available storage capacity of each of the first logical area and the second logical area;
  • the terminal device After the terminal device detects the data storage task issued by the data owner, the terminal device determines, based on parsing the data storage task, the storage occupancy capacity of the data storage medium that needs to be occupied by solid-state storage and writing of the data to be stored, and detects the storage capacity of the data storage medium.
  • Step S402 comparing whether each of the available storage capacities is greater than or equal to the storage occupied capacity
  • the terminal device After detecting and obtaining the storage occupied capacity and the respective available storage capacities of the plurality of first logical areas and the second logical areas, the terminal device sequentially compares the storage occupied capacity with the available storage capacities, so as to determine at each comparison. Whether the occupied storage capacity is greater than or equal to the current available storage capacity.
  • Step S403 if yes, determine the first logical area or the second logical area corresponding to the available storage capacity as the target logical area for storing the to-be-stored data.
  • the terminal device compares that the current available storage capacity is greater than or equal to the occupied storage capacity, it immediately determines the first logical area or the second logical area corresponding to the currently available storage capacity as the target logical area, so that the data storage medium can be stored in the target logical area by controlling the data storage medium.
  • the corresponding store and write commands are executed in the target logical region to store the to-be-stored data.
  • the terminal device compares the occupied storage capacity with the available storage capacity of the first logical area of the 4-plane among the multiple first logical areas, it detects that the available storage capacity of the first logical area of the 4-plane is greater than Or equal to the storage occupied capacity, the terminal device then controls the data storage medium-Nand Flash to execute the parallel storage and write commands in the first logical area of the 4plane, so as to store the data to be stored in the first logical area of the 4plane in a parallel storage and write manner. On each physical block bound by 4 planes in a logical area.
  • the terminal device detects and determines that the available storage capacity is greater than or equal to the storage occupied capacity when comparing the storage occupied capacity with the available storage capacity of the first logical area of 1 plane in the plurality of first logical areas, the terminal The device then controls the data storage medium - Nand Flash executes standard write commands in the first logical area of the 1 plane, so that the data to be stored is stored in each independent physical block in the first logical area of the 4 plane in a standard write and write manner superior.
  • the state information of the data storage medium itself at the physical structure level is detected through analysis, such as the distribution state of bad physical blocks of the data storage medium and the available state of physical blocks of the data storage medium, and then, based on the bad physical block
  • the block distribution state respectively binds the physical blocks of each quasi-bound group of the data storage medium, so that each quasi-bound group is formed into a plurality of coexisting first logical regions, and further in this data storage medium based on the available state of the physical block.
  • a second logical area is established in the data storage medium. In this way, after receiving the data to be stored that needs to be stored in the data storage medium, the target logical area is determined from the first logical area and the second logical area. Store the data to be stored.
  • the physical block is used as an independent storage unit to perform data reading and writing, and the application can perform data reading and writing more quickly through multiple logical regions established in the data storage medium.
  • a good physical block is used to establish different logical areas. In this way, not only the performance of the data storage medium for reading and writing data is guaranteed to a great extent, but also the overall available capacity of the data storage medium is fully taken into account, so that the data storage medium can be read and written. Good balance between write performance and overall capacity.
  • the physical block available status includes a first available status and a second available status.
  • the step of detecting status information of the data storage medium may include:
  • Step S101 scan all physical blocks in the data storage medium to determine the distribution state of bad physical blocks of the data storage medium
  • the terminal device When the terminal device detects that the system time reaches the time node of the pre-configured detection period, or detects that the algorithm operation input by the staff triggers the scan command, the terminal device immediately starts to traverse all the physical blocks in the data storage medium to scan.
  • the respective good and bad status of all the physical blocks are respectively recorded and the identification information of the bad physical blocks is recorded, so as to determine the bad physical block distribution state of the data storage medium.
  • the identification information may specifically be the physical block number to which each physical block is allocated when the data storage medium divides the physical block based on its own physical structure.
  • Step S102 detecting the first erasing and writing lifespans of all the physical blocks in the data storage medium in the preset first mode to determine a first usable state
  • Step S103 detecting the second erasing lifespan of all the physical blocks in the preset second mode to determine a second usable state, wherein the first erasing and writing lifespan is shorter than the second erasing and writing lifespan.
  • the preset first mode may specifically be TLC.
  • TLC In the management mode of this TLC, one memory storage unit of each physical block in the data storage medium can store three bits, but, In the management mode of the TLC, each physical block is only allowed to be erased and written about 500-800 times, that is, the first erasing and writing life of each physical block in the management mode of the TLC is about 500-800 times. The erasing and writing of the physical block has exceeded the first erasing and writing life, that is, it is determined that the physical block is unavailable.
  • the preset first mode may also be MLC, in which only about 3000 physical blocks are allowed to be erased and written in the MLC management mode.
  • the first erasing life of each physical block is about 3000-10000 times. If it is detected that the current erasing of the physical block has exceeded the first erasing life, the physical Block is not available.
  • the preset second mode may specifically be SLC, and each physical block of the data storage medium is allowed to be erased and written about 100,000 times in the management mode of the SLC, that is, the first erasing of each physical block in the management mode of the SLC The writing life is about 100,000 times. If it is detected that the current erasing and writing of the physical block has exceeded the second erasing and writing life, it is determined that the physical block is unavailable.
  • the management method of the data storage medium in this embodiment of the present application does not specifically limit the preset first mode and the preset second mode.
  • the terminal device When traversing all physical blocks in the data storage medium, the terminal device further detects the respective erasing times records of each physical block, and then compares the erasing times records with the first erasing and writing lifespan of the physical blocks in the preset first mode. By comparison, it is determined that the first available state of all physical blocks in the data storage medium is available or unavailable, and similarly, the number of times of erasing and writing is recorded with the second erasing and writing of physical blocks in the preset second mode respectively. The lifetimes are compared to determine whether the second availability status of all physical blocks in the data storage medium is available or unavailable.
  • the step of establishing a second logical area in the data storage medium according to the available state of the physical block may include:
  • Step S301 counting all the first physical blocks in which the second available state is available and the first available state is unavailable;
  • step S302 each of the first physical blocks is used as an independent storage unit, and a second logical area is established by combining each of the independent storage units.
  • the terminal device After the terminal device traverses and detects the respective first available states and second available states of all physical blocks in the data storage medium, the terminal device further filters out the second physical block from all the physical blocks as available, but the first available state is For each of the unavailable first physical blocks, the terminal device uses each of the first physical blocks as an independent storage unit to combine all the first physical blocks to form a second logical area of the data storage medium.
  • the terminal device traverses and detects all physical blocks in the data storage medium-Nand Flash, and obtains the records of the erasing and writing times of each of the four physical blocks belonging to the storage unit plane0 in the 61st to 64th quasi-binding groups.
  • the terminal device determines the 4 physical blocks as the first physical block, and uses the 4 physical blocks as 4 independent storage units to combine the 4 physical blocks to form the second logical area of the data storage medium-Nand Flash In this way, when the terminal device controls the data storage medium-Nand Flash uses the second logical area as the target storage area to store the data to be stored issued by the data owner, the data storage medium can execute the standard in the second logical area. Store and write commands, so that the data to be stored is stored in each independent physical block in a standard store and write manner.
  • the terminal device when the terminal device detects that the system time reaches the time node of the pre-configured detection period, or detects that the algorithm operation input by the staff triggers the scanning command, the terminal device immediately starts to traverse the data storage medium. All physical blocks, to scan the respective good and bad status of all physical blocks and record the identification information of bad physical blocks, so as to determine the distribution state of bad physical blocks of the data storage medium, and the terminal device is traversing all the data storage medium.
  • the respective erasing times records of each physical block are further detected, and then the erasing times records are compared with the first erasing and writing lifespan of the physical blocks in the preset first mode, so as to determine the number of times of erasing and writing in the data storage medium.
  • the first available state of all physical blocks is available or unavailable, and similarly, the record of the number of times of erasing and writing is compared with the second erasing and writing life of the physical block in the preset second mode, so as to determine the data storage medium.
  • the second availability status of all physical blocks in is available or unavailable.
  • the terminal device further filters out the second physical block as available from all the physical blocks, but the first available physical block is available. For each first physical block whose status is unavailable, then the terminal device uses each first physical block as an independent storage unit to combine all the first physical blocks into a second logical area of the data storage medium.
  • Units can be combined to build a logical area, which further reduces the occupation of the number of physical blocks, so that more physical blocks can be bound together for data reading and writing, which ensures the overall performance of the data storage medium for reading and writing data, and further A balance between read and write performance of data storage media and data storage capacity is achieved.
  • an embodiment of the present application further proposes a management system for a data storage medium, and the management system for the data storage medium includes:
  • a detection module configured to detect status information of the data storage medium, wherein the status information includes: bad physical block distribution status and physical block availability status;
  • a first building module configured to respectively bind the physical blocks of each quasi-binding group in the data storage medium according to the distribution state of the bad physical blocks to form each first logical area
  • a second building module for establishing a second logical area in the data storage medium according to the available state of the physical block
  • the storage control module is configured to, when receiving the data to be stored, determine a target logical area from each of the first logical area and the second logical area to store the data to be stored.
  • the bad physical block distribution status includes: no bad physical blocks and bad physical blocks
  • the quasi-binding group includes: a first quasi-bonding group and a second quasi-bonding group
  • the The first building block includes:
  • a first statistical unit configured to count the first quasi-binding groups that do not have bad physical blocks and the second quasi-binding groups that have bad physical blocks in the data storage medium;
  • a first binding unit configured to bind the physical blocks in each of the first quasi-bonded groups respectively to form each of the first quasi-bonded groups into a first logical area of a first preset unit number, wherein , the first preset number of units is the total number of units of storage units owned by the data storage medium;
  • the first building unit is used to detect the target storage unit to which the bad physical blocks belong and the number of bad physical blocks in each of the second quasi-binding groups, and bind the target storage unit and the number of bad physical blocks respectively according to the target storage unit and the number of bad physical blocks.
  • the second quasi-binding group is described to form the first logical area.
  • the first building unit includes:
  • a classification subunit configured to classify each of the second quasi-binding groups according to the number of bad physical blocks and the target storage unit to obtain each target standard binding group
  • the second binding unit is configured to bind the good physical blocks in each of the target standard binding groups respectively, so as to form each of the target standard binding groups into a first logical area with a second preset unit number, wherein, The second preset number of units is equal to the total number of units minus the number of bad physical blocks.
  • the first building unit further includes:
  • a detection subunit configured to detect each quasi-bonded group pair in which the number of bad physical blocks and the target storage unit in each of the second quasi-bonded groups are complementary
  • a third binding unit configured to respectively bind good physical blocks in each of the quasi-bonded groups to form each of the quasi-bonded group pairs into a first logical area of the first preset unit number.
  • the physical block availability status includes a first availability status and a second availability status
  • the detection module includes:
  • a scanning unit configured to scan all physical blocks in the data storage medium to determine the distribution state of bad physical blocks of the data storage medium
  • a first detection unit configured to detect the first erasing and writing lifespans of all the physical blocks in the data storage medium in the preset first mode to determine a first usable state
  • the second detection unit is configured to detect the second erasing lifespan of all the physical blocks in the preset second mode to determine a second usable state, wherein the first erasing and writing lifespan is shorter than the second erasing and writing lifespan.
  • the second building block includes:
  • a second statistical unit configured to count all the first physical blocks in which the second available state is available and the first available state is unavailable in all the physical blocks
  • the second building unit is configured to use each of the first physical blocks as independent storage units to combine the independent storage units to build a second logical area.
  • the storage control module includes:
  • a determining unit configured to determine the storage occupied capacity of the data to be stored, and the respective available storage capacity of each of the first logical area and the second logical area;
  • a comparison unit configured to compare whether each of the available storage capacities is greater than or equal to the storage occupied capacity
  • a storage unit configured to determine the first logical area or the second logical area corresponding to the available storage capacity as the target logical area for storing the to-be-stored data
  • an embodiment of the present application also proposes a terminal device, the terminal device includes: a memory, a processor, and a management program of a data storage medium stored on the memory and executable on the processor, the data storage medium When the management program is executed by the processor, the steps of the method for managing a data storage medium as described above are implemented.
  • the steps implemented when the management program of the data storage medium running on the processor is executed may refer to the various embodiments of the management method of the data storage medium of the present application, which will not be repeated here.
  • an embodiment of the present application also proposes a computer storage medium, which is applied to a computer.
  • the computer storage medium may be a non-volatile computer-readable computer storage medium, and a management program of the data storage medium is stored on the computer storage medium.
  • the management program of the data storage medium is executed by the processor, the steps of the above-mentioned management method of the data storage medium are realized.
  • the steps implemented when the management program of the data storage medium running on the processor is executed may refer to the various embodiments of the management method of the data storage medium of the present application, which will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本申请公开了一种数据存储介质的管理方法、系统、终端设备及计算机存储介质,通过检测数据存储介质的状态信息,其中,所述状态信息包括:坏物理块分布状态和物理块可用状态;根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域;根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域;在接收到待存储数据时,从各所述第一逻辑区域和所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据。

Description

数据存储介质的管理方法、系统、终端设备及存储介质
本申请要求于2020年9月3日申请的、申请号为202010920097.3的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据存储技术领域,尤其涉及一种数据存储介质的管理方法、系统、终端设备及计算机存储介质。
背景技术
时下,数据存储介质(如Nand Flash:一种用于将数据进行固态存储的存储产品)对数据进行读写时,通常为了优先考虑数据的读写性能(如更加快速的执行数据的固态存储或者读取出数据),该数据存储介质会通过绑定物理块以并行的方式同时针对绑定的各物理块进行访问,从而使数据存储介质以最高性能进行数据的读写过程。
然而,由于数据存储介质本身可能存在的物理块不可用等情况,将导致该数据存储介质无法针对全部的物理块都进行绑定,从而使得该数据存储介质中没有被绑定的部分物理块并没有被真正访问到来进行数据读写。
相反的,若数据存储介质为了使自身的绝大部分物理块均能够被访问到以用于数据读写,则该数据存储介质也就无法使数据的读写性能也得到保证,如,数据存储介质在执行数据存储时需要遍历自身的每一个物理块,以查询得到当前可用的物理块并单独访问以完成数据存储,如此,将极大的增加数据存储的等待时间。
综上所述,现有数据存储介质在优先考虑性能而基于绑定物理块以并行执行数据读写时,容易造成数据存储介质部分物理块无法被访问,从而大大降低数据存储介质的整体使用容量,而数据存储介质在为了优先保证数据使用容量的前提下,又难以取得数据读写的高性能表现。
技术问题
本申请的主要目的在于提供一种数据存储介质的管理方法、装置、终端设备及计算机存储介质,旨在解决现有技术中,数据存储介质为考虑数据读写性能就难以兼顾数据存储介质整体可用容量,无法实现性能与容量之间的有效平衡的技术问题。
技术解决方案
为实现上述目的,本申请提供一种数据存储介质的管理方法,所述数据存储介质的管理方法包括:
检测数据存储介质的状态信息,其中,所述状态信息包括:坏物理块分布状态和物理块可用状态;
根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域;
根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域;
在接收到待存储数据时,从各所述第一逻辑区域和所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据。
进一步地,所述坏物理块分布状态包括:不存在坏物理块和存在坏物理块,所述准绑定组包括:第一准绑定组和第二准绑定组,
所述根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域的步骤,包括:
统计所述数据存储介质中不存在坏物理块的各第一准绑定组,以及存在坏物理块的各第二准绑定组;
分别绑定各所述第一准绑定组中的物理块以将各所述第一准绑定组组建成第一预设单位数量的第一逻辑区域,其中,所述第一预设单位数量为所述数据存储介质所拥有存储单位的单位总数;
检测各所述第二准绑定组中坏物理块所属的目标存储单位和坏物理块数量,并根据所述目标存储单位和所述坏物理块数量分别绑定所述第二准绑定组以组建第一逻辑区域。
进一步地,所述根据所述目标存储单位和所述坏物理块数量分别绑定所述第二准绑定组以组建第一逻辑区域的步骤,包括:
按照所述坏物理块数量和所述目标存储单位对各所述第二准绑定组进行分类得到各目标准绑定组;
分别绑定各所述目标准绑定组中的好物理块以将各所述目标准绑定组组建成第二预设单位数量的第一逻辑区域,其中,所述第二预设单位数量等于所述单位总数减去所述坏物理块数量。
进一步地,所述根据所述目标存储单位和所述坏物理块数量分别绑定所述第二准绑定组以组建第一逻辑区域的步骤,还包括:
检测各所述第二准绑定组中所述坏物理块数量和所述目标存储单位均互补的各准绑定组对;
分别绑定各所述准绑定组队中的好物理块以将各所述准绑定组对组建成所述第一预设单位数量的第一逻辑区域。
进一步地,所述物理块可用状态包括第一可用状态和第二可用状态,
所述检测数据存储介质的状态信息的步骤,包括:
扫描所述数据存储介质中的全部物理块以确定所述数据存储介质的坏物理块分布状态;
检测预设第一模式下所述数据存储介质中全部所述物理块的第一擦写寿命确定第一可用状态;
检测预设第二模式下全部所述物理块的第二擦写寿命确定第二可用状态,其中,所述第一擦写寿命短于所述第二擦写寿命。
进一步地,所述根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域的步骤,包括:
统计全部所述物理块中,所述第二可用状态为可用且所述第一可用状态为不可用的各第一物理块;
将各所述第一物理块分别作为独立存储单位以组合各所述独立存储单位建立第二逻辑区域。
进一步地,所述从所述第一逻辑区域和各所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据的步骤,包括:
确定所述待存储数据的存储占用容量,以及各所述第一逻辑区域和所述第二逻辑区域各自的可用存储容量;
对比各所述可用存储容量是否大于或者等于所述存储占用容量;
若是,则将所述可用存储容量对应的所述第一逻辑区域或者所述第二逻辑区域确定为所述目标逻辑区域以用于存储所述待存储数据。
此外,为实现上述目的,本申请还提供一种数据存储介质的管理系统,所述数据存储介质的管理系统包括:
检测模块,用于检测数据存储介质的状态信息,其中,所述状态信息包括:坏物理块分布状态和物理块可用状态;
第一组建模块,用于根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域;
第二组建模块,用于根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域;
存储控制模块,用于在接收到待存储数据时,从各所述第一逻辑区域和所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据。
本申请数据存储介质的管理系统的各功能模块在运行时实现如上述中的数据存储介质的管理方法的步骤。
此外,为实现上述目的,本申请还提供一种终端设备,所述终端设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的数据存储介质的管理程序,所述数据存储介质的管理程序被所述处理器执行时实现如上述中的数据存储介质的管理方法的步骤。
此外,为实现上述目的,本申请还提供一种计算机存储介质,所述计算机存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的数据存储介质的管理方法的步骤。
有益效果
本申请提出的数据存储介质的管理方法、系统、终端设备以及计算机存储介质,通过检测数据存储介质的状态信息,其中,所述状态信息包括:坏物理块分布状态和物理块可用状态;根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域;根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域;在接收到待存储数据时,从各所述第一逻辑区域和所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据。
本申请通过分析检测数据存储介质本身在物理结构层面的状态信息,如,该数据存储介质的坏物理块分布状态和该数据存储介质的物理块可用状态,然后,基于该坏物理块分布状态分别对该数据存储介质的各准绑定组的物理块进行绑定,从而分别将各准绑定组组建成多个并存的第一逻辑区域,并基于物理块可用状态进一步在该数据存储介质中建立第二逻辑区域,如此,在接收到需要存写至该数据存储介质当中的待存储数据之后,从组建得到的各第一逻辑区域和第二逻辑区域中确定目标逻辑区域来存储该待存储数据。
相比于现有仅绑定数据存储介质中全部为好物理块的准绑定组作为一个逻辑区域以并行的读写数据,而针对其他含有坏物理块的准绑定组则直接将各好物理块作为独立存储单元进行数据读写,本申请通过在数据存储介质中建立的多个逻辑区域来能够更加快速的执行数据的读写,并且,本申请充分的利用到了数据存储介质中的每一个好物理块来建立不同的逻辑区域,如此,不仅在极大程度上保证了数据存储介质进行数据读写的性能,还充分兼顾了该数据存储介质的整体可用容量,达成了数据存储介质读写性能与整体容量之间的良好平衡。
附图说明
图1是本申请实施例方案涉及终端设备的硬件运行的结构示意图;
图2是本申请一种数据存储介质的管理方法一实施例的流程示意图;
图3是本申请一种数据存储介质的管理方法一实施例中步骤S200的细化流程示意图;
图4是本申请一种数据存储介质的管理系统的模块结构示意图。
本发明的实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
如图1所示,图1是本申请实施例方案涉及终端设备的硬件运行环境的结构示意图。
需要说明的是,图1即可为终端设备的硬件运行环境的结构示意图。本申请实施例终端设备可以是数据存储控制终端,PC,便携计算机等终端设备。
如图1所示,该终端设备可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。
本领域技术人员可以理解,图1中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及分布式任务的处理程序。其中,操作系统是管理和控制样本终端设备硬件和软件资源的程序,支持分布式任务的处理程序以及其它软件或程序的运行。
在图1所示的终端设备中,用户接口1003主要用于与各个终端进行数据通信;网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;而处理器1001可以用于调用存储器1005中存储的数据存储介质的管理程序,并执行以下操作:
检测数据存储介质的状态信息,其中,所述状态信息包括:坏物理块分布状态和物理块可用状态;
根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域;
根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域;
在接收到待存储数据时,从各所述第一逻辑区域和所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据。
进一步地,所述坏物理块分布状态包括:不存在坏物理块和存在坏物理块,所述准绑定组包括:第一准绑定组和第二准绑定组,处理器1001可以调用存储器1005中存储的数据存储介质的管理程序,还执行以下操作:
统计所述数据存储介质中不存在坏物理块的各第一准绑定组,以及存在坏物理块的各第二准绑定组;
分别绑定各所述第一准绑定组中的物理块以将各所述第一准绑定组组建成第一预设单位数量的第一逻辑区域,其中,所述第一预设单位数量为所述数据存储介质所拥有存储单位的单位总数;
检测各所述第二准绑定组中坏物理块所属的目标存储单位和坏物理块数量,并根据所述目标存储单位和所述坏物理块数量分别绑定所述第二准绑定组以组建第一逻辑区域。
进一步地,处理器1001可以调用存储器1005中存储的数据存储介质的管理程序,还执行以下操作:
按照所述坏物理块数量和所述目标存储单位对各所述第二准绑定组进行分类得到各目标准绑定组;
分别绑定各所述目标准绑定组中的好物理块以将各所述目标准绑定组组建成第二预设单位数量的第一逻辑区域,其中,所述第二预设单位数量等于所述单位总数减去所述坏物理块数量。
进一步地,处理器1001可以调用存储器1005中存储的数据存储介质的管理程序,还执行以下操作:
检测各所述第二准绑定组中所述坏物理块数量和所述目标存储单位均互补的各准绑定组对;
分别绑定各所述准绑定组队中的好物理块以将各所述准绑定组对组建成所述第一预设单位数量的第一逻辑区域。
进一步地,所述物理块可用状态包括第一可用状态和第二可用状态,处理器1001可以调用存储器1005中存储的数据存储介质的管理程序,还执行以下操作:
扫描所述数据存储介质中的全部物理块以确定所述数据存储介质的坏物理块分布状态;
检测预设第一模式下所述数据存储介质中全部所述物理块的第一擦写寿命确定第一可用状态;
检测预设第二模式下全部所述物理块的第二擦写寿命确定第二可用状态,其中,所述第一擦写寿命短于所述第二擦写寿命。
进一步地,处理器1001可以调用存储器1005中存储的数据存储介质的管理程序,还执行以下操作:
统计全部所述物理块中,所述第二可用状态为可用且所述第一可用状态为不可用的各第一物理块;
将各所述第一物理块分别作为独立存储单位以组合各所述独立存储单位建立第二逻辑区域。
进一步地,处理器1001可以调用存储器1005中存储的数据存储介质的管理程序,还执行以下操作:
确定所述待存储数据的存储占用容量,以及各所述第一逻辑区域和所述第二逻辑区域各自的可用存储容量;
对比各所述可用存储容量是否大于或者等于所述存储占用容量;
若是,则将所述可用存储容量对应的所述第一逻辑区域或者所述第二逻辑区域确定为所述目标逻辑区域以用于存储所述待存储数据。
基于上述的结构,提出本申请数据存储介质的管理方法的各个实施例。
请参照图2,图2为本申请数据存储介质的管理方法第一实施例的流程示意图。
本申请实施例提供了数据存储介质的管理方法的实施例,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本申请实施例数据存储介质的管理方法应用于上述对数据存储进行控制的终端设备,本申请实施例终端设备可以是数据存储介质本身,数据存储控制终端,PC,便携计算机等终端设备,在此不做具体限制。
本实施例数据存储介质的管理方法包括:
步骤S100,检测数据存储介质的状态信息,其中,所述状态信息包括:坏物理块分布状态和物理块可用状态;
需要说明的是,在本实施例中,数据存储介质可以为Nand Flash或者其他现有市场中较为成熟的数据存储介质。应当理解的是,基于科学技术水平的不断进步和发展,在未来甚至当下当然还会开发或者已经应用有更多基于与该Nand Flash设计原理相似或者相同的其他存储介质(诸如磁盘和卡等等数据存储介质),因此,基于实际应用的不同设计需要,在其他实施方式当中该数据存储介质当然也可以是其他成熟的存储介质本申请实施例数据存储介质的管理方法,并不对数据存储介质的种类进行具体限定。
当前用于对数据存储进行控制的终端设备,按照预先配置好的检测周期或者基于预设的算法操作遍历数据存储介质中的全部物理块,以检测出该数据存储介质中的坏物理块分布状态以及物理块可用状态。
具体地,例如,终端设备基于工作人员预先通过前端可视化输出的用户图形界面所输入的配置来设置一个针对数据存储介质-Nand Flash进行循环检测的检测周期,然后,终端设备通过读取系统时间来判断是否到达了下一个检测周期,并在判断到是时,开始遍历数据存储介质-Nand Flash中当前处于为空的全部物理块,并逐一扫描检测该全部物理块各自的好坏情况,以及检测在当前针对数据存储介质-Nand Flash的管理模式下,该全部物理块各自的可用状态。
在另一种可行的实施例中,终端设备还可以基于工作人员通过前端可视化输出的用户图形界面所实时输入的算法操作来遍历全部物理块,并检测该全部物理块各自的好坏情况,以及在当前针对数据存储介质-Nand Flash的管理模式下,该全部物理块各自的可用状态。
需要说明的是,在本实施例中,终端设备可以采用不同的管理模式来针对数据存储介质-Nand Flash进行管理,该管理模式具体可以为时下市面上常见的各种模式,如,SLC(Single Level Cel:单层式储存)、MLC(Multi-Level Cell:多层式储存)以及TLC(Trinary-Level Cell:3bit/cell-1个内存储存单元可存放3个位)等。此外,在本实施例中,工作人员在用户图形界面实时输入的算法操作具体可以为通过点击该用户图形界面上预先配置好的指令控件,或者,通过预设的指令输入对话框输入对应的指令内容,应当理解的是,基于实际应用的不同设计需要,在其他实施方式中,工作人员当然也可以执行其他算法操作来触发该更新指令,本申请实施例数据存储介质的管理方法并不针对该算法操作的操作内容进行具体限定。
步骤S200,根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域;
需要说明的是,在本实施例中,准绑定组为数据存储介质的物理结构中,处于同一物理层面的全部物理块所形成的物理组,例如,数据存储介质-Nand Flash在以4个存储单位-“plane0”、“plane1”、“plane2”和“plane3”来纵向划分整体物理结构时,处于横向每一物理层上分别属于该“plane0”、“plane1”、“plane2”和“plane3”的四个物理块即可作为数据存储介质-Nand Flash的一个准绑定组,其中,一个存储单位(即1个plane)在纵向的物理结构上可以由1024个物理块组成。
终端设备通过遍历数据存储介质的全部物理块以检测到该数据存储介质中的坏物理块分布状态之后,终端设备即根据该坏物理块分布状态确定出该数据存储介质的每一个准绑定组中的坏物理块,并将该准绑定组中除该坏物理块之外的其他好物理块进行绑定,然后,终端设备将坏物理块分布相同的各个准绑定组进行组合从而建立起该数据存储介质当中并存的多个第一逻辑区域。
需要说明的是,在本实施例中,由于是基于数据存储介质中的坏物理块分布状态来确定组合在一起的准绑定组,进而建立成多个准绑定组中含有不同数量好物理块的第一逻辑区域,如此,建立得到的该多个第一逻辑区域各自的容量大小可以是任意的。例如,一个数据最大容量为32GB且全新的数据存储介质-Nand Flash,在最终建立的3个第一逻辑区域中,各第一逻辑区域的容量大小分配情况具体可以为20GB、8GB和2GB(数据存储介质-Nand Flash全新时全部物理块均为空且均可用,从而仅能够基于坏物理块分布状态建立各第一逻辑区域,且,数据存储介质-Nand Flash本身需要留足部分存储空间(此处为2GB)用于存储管理算法)。
进一步地,在一种可行的实施例中,上述步骤S200中的所述坏物理块分布状态包括:不存在坏物理块和存在坏物理块,所述准绑定组包括:第一准绑定组和第二准绑定组。请参照图3,上述步骤S200,根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域,可以包括:
步骤S201,统计所述数据存储介质中不存在坏物理块的各第一准绑定组,以及存在坏物理块的各第二准绑定组;
终端设备基于检测得到数据存储介质的坏物理块分布状态,统计出该数据存储介质全部准绑定组中,不存在坏物理块的多个第一准绑定组和存在坏物理块的多个第二准绑定组。
具体地,例如,终端设备通过遍历以4个存储单位纵向划分物理结构的数据存储介质-Nand Flash为空的全部物理块,检测得到该数据存储介质-Nand Flash在纵向第70个准绑定组至第600个准绑定组中不存在坏物理块,且,第705个准绑定组至第815个准绑定组中也不存在坏物理块,则终端设备即确定该第70至600个准绑定组以及第705至815个准绑定组为第一准绑定组,此外,终端设备将该数据存储介质-Nand Flash中其余存在坏物理块的第65至69个准绑定组、第601至704个准绑定组以及第816至1024个准绑定组(第1至64个准绑定组中的物理块需要用于存储管理算法,因此,可视为该部分准绑定组的全部物理块不为空),均确定为第二准绑定组。
步骤S202,分别绑定各所述第一准绑定组中的物理块以将各所述第一准绑定组组建成第一预设单位数量的第一逻辑区域,其中,所述第一预设单位数量为所述数据存储介质所拥有存储单位的单位总数;
需要说明的是,在本实施例中,第一预设单位数量与数据存储介质所拥有存储单位的数量相同,例如,以4个存储单位纵向划分物理结构的数据存储介质-Nand Flash,拥有4个存储单位-“plane0”、“plane1”、“plane2”和“plane3”,从而,该第一预设单位数量即为4plane。应当理解的是,基于实际应用的不同设计需要,在其它可行的实施方式中,若数据存储介质以其它数量的存储单位进行纵向物理结构的划分,则该第一预设单位数量当然也随之变化为其它数量,本申请实施例数据存储介质的管理方法并不对该第一预设单位数量的数值大小进行具体限定。
终端设备在从数据存储介质的准绑定组中确定出多个不存在坏物理块的第一准绑定组和多个存在坏物理块的第二准绑定组之后,终端设备首先分别对该多个第一准绑定组中的全部好物理块进行绑定,并将该全部第一准绑定组组合形成该数据存储介质中第一预设单位数量的第一逻辑区域。
具体地,例如,终端设备在以4个存储单位纵向划分物理结构的数据存储介质-Nand Flash中,将检测得到的第70至600个准绑定组以及第705至815个准绑定组确定为第一准绑定组之后,终端设备分别针对该第70至600和705至815个准绑定组中,各准绑定组中横向上属于存储单位-“plane0”、“plane1”、“plane2”和“plane3”的好物理块进行绑定,然后将该第70至600和705至815个准绑定组组合一个4plane的第一逻辑区域。
步骤S203,检测各所述第二准绑定组中坏物理块所属的目标存储单位和坏物理块数量,并根据所述目标存储单位和所述坏物理块数量分别绑定所述第二准绑定组以组建第一逻辑区域。
终端设备在从数据存储介质的准绑定组中确定出多个不存在坏物理块的第一准绑定组和多个存在坏物理块的第二准绑定组之后,终端设备进一步分别检测该多个第二准绑定组各自所存在坏物理块的坏物理块数量,以及该坏物理块所属的目标存储单位,然后,终端设备分别按照不同的物理块数量和不同的目标存储单位,分别针对多个第二准绑定组中的好物理块进行绑定以将各第二准绑定组组合成为多个其他单位数量的第一逻辑区域。
进一步地,在一种可行的实施例中,上述步骤S203中,“根据所述目标存储单位和所述坏物理块数量分别绑定所述第二准绑定组以组建第一逻辑区域”的步骤,可以包括:
步骤S2031,按照所述坏物理块数量和所述目标存储单位对各所述第二准绑定组进行分类得到各目标准绑定组;
终端设备按照不同的坏物理块数量和不同的目标存储单位,将多个第二准绑定组按序进行分类从而得到不同存储单位数量的目标准绑定组。
具体地,例如,终端设备通过遍历以4个存储单位纵向划分物理结构的数据存储介质-Nand Flash为空的全部物理块,以将存在坏物理块的第65至69个准绑定组、第601至704个准绑定组以及第816至1024个准绑定组均确定为第二准绑定组之后,终端设备进一步检测到第65至69个准绑定组中,坏物理块数量为1且坏物理块所属的目标存储单位为plane0,则终端设备即将该第65至69个准绑定组分类作为第一目标准绑定组;此外,终端设备进一步检测到第601至704个准绑定组中,坏物理块数量为2且坏物理块所属的目标存储单位为plane0和plane1,则终端设备即将该第601至704个准绑定组分类作为第二目标准绑定组;此外,终端设备进一步检测到第816至1020个准绑定组中,坏物理块数量为3且坏物理块所属的目标存储单位为plane0和plane1和plane2,则终端设备即将该第816至1020个准绑定组分类作为第三目标准绑定组;最后,终端设备进一步检测到第1021至1024个准绑定组中,坏物理块数量为3且坏物理块所属的目标存储单位为plane1和plane2和plane3,则终端设备即将该第1021至1024个准绑定组分类作为第四目标准绑定组。
步骤S2032,分别绑定各所述目标准绑定组中的好物理块以将各所述目标准绑定组组建成第二预设单位数量的第一逻辑区域,其中,所述第二预设单位数量等于所述单位总数减去所述坏物理块数量。
需要说明的是,在本实施例中,第二预设单位数量等于数据存储介质所拥有存储单位的数量将去目标准绑定组中的坏物理块数量,例如,以4个存储单位纵向划分物理结构的数据存储介质-Nand Flash,拥有4个存储单位-“plane0”、“plane1”、“plane2”和“plane3”,而第一目标准绑定组中,坏物理块数量为1,则组合全部第一目标准绑定组即可形成第二预设单位数量为3plane的第一逻辑区域。应当理解的是,基于实际应用的不同设计需要,在其它可行的实施方式中,若数据存储介质以其它数量的存储单位进行纵向物理结构的划分,则该第二预设单位数量当然也随之变化为其它数量,本申请实施例数据存储介质的管理方法并不对该第二预设单位数量的数值大小进行具体限定。
终端设备在将多个第二准绑定组划分为不同类别的各目标准绑定组之后,分别针对各类别的目标准绑定组中的好物理块进行绑定以将该目标准绑定组组建为多个其他其单位数量的第一逻辑区域。
具体地,例如,终端设备针对第一目标准绑定组-第65至69个准绑定组,终端设备将给第65至69个准绑定组中属于存储单位plane1和plane2和plane3的好物理块绑定,进而将该第65至69个准绑定组组合形成3plane的第一逻辑区域;同理,终端设备依次针对第二目标准绑定组-第601至704个准绑定组、第三目标准绑定组-第816至1020个准绑定组以及第四目标准绑定组-第1021至1024个准绑定组,分别进行好物理块绑定以组建得到2plane的第一逻辑区域(由第601至704个准绑定组组合形成)和1plane的第一逻辑区域(由第816至1024个准绑定组组合形成)。
进一步地,在另一种可行的实施例中,上述步骤S203中,“根据所述目标存储单位和所述坏物理块数量分别绑定所述第二准绑定组以组建第一逻辑区域”的步骤,还可以包括:
步骤S2033,检测各所述第二准绑定组中所述坏物理块数量和所述目标存储单位均互补的各准绑定组对;
终端设备在进一步检测得到该多个第二准绑定组各自的坏物理块数量和坏物理块所属的目标存储单位之后,终端设备优先筛选出该多个第二准绑定组中,两个第二准绑定组的坏物理块数量和坏物理块所属的目标存储单位互为补充的多个准绑定组对。
需要说明的是,在本实施例中,坏物理块数量和坏物理块所属的目标存储单位互为补充具体可以为:坏物理块数量叠加的结果为数据存储介质所拥有的存储单位的总数,目标存储单位叠加的结果为数据存储介质所拥有的存储单位。
具体地,例如,终端设备通过遍历以4个存储单位纵向划分物理结构的数据存储介质-Nand Flash为空的全部物理块,并进一步将第65至69个准绑定组分类作为第一目标准绑定组,且将第1021至1024个准绑定组分类作为第四目标准绑定组之后,由于该第一目标准绑定组中的坏物理块数量为1且坏物理块所属的目标存储单位为plane0,而该第四目标准绑定组中的坏物理块数量为3且坏物理块所属的目标存储单位为plane1和plane2和plane3,从而该第一目标准绑定组和第四目标准绑定组,在坏物理块数量和坏物理块所属的目标存储单位均互为补充,则,终端设备将该5个第一目标准绑定组中连续的4个准绑定组和连续的4个第四目标准绑定组确定为4个准绑定组对。
步骤S2034,分别绑定各所述准绑定组队中的好物理块以将各所述准绑定组对组建成所述第一预设单位数量的第一逻辑区域。
终端设备针对筛选出的多个准绑定对,分别绑定各个准绑定对中的好物理块,以将该多个准绑定对组建成为第一预设单位数量的第一逻辑区域。
具体地,例如,终端设备在将第65至69个第一目标准绑定组中,连续的4个准绑定组-第66至69个准绑定组,与第1021至1024个第四目标准绑定组两两组合形成4个准绑定组对之后,终端设备将该第66至69个准绑定组中属于plane1和plane2和plane3的三个好物理块,与该第1021至1024个准绑定组中属于plane0的一个好物理块分别进行绑定,即,将第66个准绑定组中的三个好物理块与第1021各准绑定组中的一个好物理块进行绑定并以此类推,然后,终端设备将该4各准绑定组对组建成为4plane的第一逻辑区域。
在本实施例中,终端设备在进一步检测得到该多个第二准绑定组各自的坏物理块数量和坏物理块所属的目标存储单位之后,终端设备优先筛选出该多个第二准绑定组中,两个第二准绑定组的坏物理块数量和坏物理块所属的目标存储单位互为补充的多个准绑定组对,并针对筛选出的多个准绑定对,分别绑定各个准绑定对中的好物理块,以将该多个准绑定对组建成为第一预设单位数量的第一逻辑区域。实现了在数据存储介质中形成绑定准绑定组不对齐的好物理块,进而组建出具有该数据存储介质中具有较高读写性能的逻辑区域,达成了在确保数据存储介质可用容量的前提下,极大程度上提高数据存储介质的数据读写性能。
步骤S300,根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域;
终端设备通过遍历数据存储介质的全部物理块以检测到该数据存储介质中的物理块可用状态之后,终端设备即根据该物理块可用状态,将该数据存储介质在当前管理模式下不可用但在其他管理模式下可用的物理块组建成为该数据存储介质中的第二逻辑区域。
步骤S400,在接收到待存储数据时,从各所述第一逻辑区域和所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据。
终端设备在数据存储介质当中组建得到多个第一逻辑区域和第二逻辑区域之后,若检测到数据拥有方下发的数据存储任务,从而接收到需要该数据存储介质进行固态存储的待存储数据之后,终端设备基于判断该待存储数据本身需要在该数据存储介质中的存储占用容量,从多个第一逻辑区域和第二逻辑区域中确定出一个或者多个用于对该待存储数据进行固态存储的目标逻辑区域,并控制该数据存储介质执行相应的存写命令来存储该待存储数据。
进一步地,在一种可行的实施例中,上述步骤S400中,“从所述第一逻辑区域和各所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据”的步骤,可以包括:
步骤S401,确定所述待存储数据的存储占用容量,以及各所述第一逻辑区域和所述第二逻辑区域各自的可用存储容量;
终端设备在检测到数据拥有方下发的数据存储任务之后,终端设备基于解析该数据存储任务确定针对该待存储数据进行固态存写所需要占用该数据存储介质的存储占用容量,并检测在该数据存储介质中建立的多个第一逻辑区域以及第二逻辑区域各自的可用存储容量。
步骤S402,对比各所述可用存储容量是否大于或者等于所述存储占用容量;
终端设备在检测得到存储占用容量以及多个第一逻辑区域和第二逻辑区域各自的可用存储容量之后,依次将该存储占用容量与各可用存储容量进行比对,从而在每一次比对时确定该存储占用容量是否大于或者等于当前可用存储容量。
步骤S403,若是,则将所述可用存储容量对应的所述第一逻辑区域或者所述第二逻辑区域确定为所述目标逻辑区域以用于存储所述待存储数据。
终端设备在比对到当前可用存储容量大于或者等于存储占用容量时,随即将当前该可用存储容量对应的第一逻辑区域或者第二逻辑区域确定为目标逻辑区域,从而通过控制数据存储介质在该目标逻辑区域内执行对应存写命令来存储该待存储数据。
具体地,例如,终端设备在将存储占用容量与多个第一逻辑区域中的4plane的第一逻辑区域的可用存储容量进行比对时,检测到该4plane的第一逻辑区域的可用存储容量大于或者等于该存储占用容量,则终端设备随即控制数据存储介质-Nand Flash在该4plane的第一逻辑区域中执行并行存写命令,从而以并行存写的方式将待存储数据存入该4plane的第一逻辑区域的以4plane进行绑定的各物理块上。
或者,若终端设备在将存储占用容量与多个第一逻辑区域中的1plane的第一逻辑区域的可用存储容量进行比对时,检测确定该可用存储容量大于或者等于该存储占用容量,则终端设备随即控制数据存储介质-Nand Flash在该1plane的第一逻辑区域中执行标准存写命令,从而以标准存写的方式将待存储数据存入该4plane的第一逻辑区域中各个独立的物理块上。
在本实施例中,通过分析检测数据存储介质本身在物理结构层面的状态信息,如,该数据存储介质的坏物理块分布状态和该数据存储介质的物理块可用状态,然后,基于该坏物理块分布状态分别对该数据存储介质的各准绑定组的物理块进行绑定,从而分别将各准绑定组组建成多个并存的第一逻辑区域,并基于物理块可用状态进一步在该数据存储介质中建立第二逻辑区域,如此,在接收到需要存写至该数据存储介质当中的待存储数据之后,从组建得到的各第一逻辑区域和第二逻辑区域中确定目标逻辑区域来存储该待存储数据。
相比于现有仅绑定数据存储介质中全部为好物理块的准绑定组作为一个逻辑区域以并行的读写数据,而针对其他含有坏物理块的准绑定组则直接将各好物理块作为独立存储单元进行数据读写,本申请通过在数据存储介质中建立的多个逻辑区域来能够更加快速的执行数据的读写,并且,本申请充分的利用到了数据存储介质中的每一个好物理块来建立不同的逻辑区域,如此,不仅在极大程度上保证了数据存储介质进行数据读写的性能,还充分兼顾了该数据存储介质的整体可用容量,达成了数据存储介质读写性能与整体容量之间的良好平衡。
进一步地,基于上述本申请数据存储介质的管理方法的第一实施例,提出本申请数据存储介质的管理方法的第二实施例,在本申请数据存储介质的管理方法的第二实施例中,所述物理块可用状态包括第一可用状态和第二可用状态,上述步骤S100,检测数据存储介质的状态信息的步骤,可以包括:
步骤S101,扫描所述数据存储介质中的全部物理块以确定所述数据存储介质的坏物理块分布状态;
终端设备在检测到系统时间到达预先配置好的检测周期的时间节点,或者检测到工作人员输入的算法操作触发了扫描指令时,终端设备随即开始遍历该数据存储介质中的全部物理块,以扫描该全部物理块各自的好坏分别情况并记录坏物理块的标识信息,从而确定该数据存储介质的坏物理块分布状态。
需要说明的是,在本实施例中,标识信息具体可以为数据存储介质基于自身物理结构针对物理块进行划分时,各个物理块所被分配到的物理块编号,基于该物理块编号可以确定到该每一个物理块在纵向划分上所属的存储单位和在横向划分上所属的准绑定组。
步骤S102,检测预设第一模式下所述数据存储介质中全部所述物理块的第一擦写寿命确定第一可用状态;
步骤S103,检测预设第二模式下全部所述物理块的第二擦写寿命确定第二可用状态,其中,所述第一擦写寿命短于所述第二擦写寿命。
需要说明的是,在本实施中,预设第一模式具体可以为TLC,在该TLC的管理模式下,数据存储介质中每个物理块的1个内存储存单元可存放3个位,但是,在该TLC的管理模式下仅允许各个物理块被擦写约500-800次,即在该TLC的管理模式下各个物理块的第一擦写寿命约为500-800次,若检测到当前次针对物理块的擦写已经超过该第一擦写寿命即确定物理块不可用,或者,预设第一模式还可以为MLC,在该MLC的管理模式下仅允许各个物理块被擦写约3000-10000次,即在该TLC的管理模式下各个物理块的第一擦写寿命约为3000-10000次,若检测到当前次针对物理块的擦写已经超过该第一擦写寿命即确定物理块不可用。此外,预设第二模式具体可以为SLC,在该SLC的管理模式下允许数据存储介质的各个物理块被擦写约10万次,即在该SLC的管理模式下各个物理块的第一擦写寿命约为10万次,若检测到当前次针对物理块的擦写已经超过该第二擦写寿命即确定物理块不可用。
应当理解的是,基于实际应用的不同设计需要,在其他实施方式中,只需要保证第二擦写寿命大于第一擦写寿命,当然也可以采用其他针对数据存储介质的管理模式来作为预设第一模式和预设第二模式,本申请实施例数据存储介质的管理方法并不针对该预设第一模式和预设第二模式进行具体限定。
终端设备在遍历数据存储介质中的全部物理块时,进一步检测各物理块各自的擦写次数记录,然后将该擦写次数记录分别与预设第一模式下物理块的第一擦写寿命进行比较,从而确定该数据存储介质中的全部物理块的第一可用状态为可用或者为不可用,并且,同样的将才擦写次数记录分别与预设第二模式下物理块的第二擦写寿命进行比较,从而确定该数据存储介质中的全部物理块的第二可用状态为可用或者为不可用。
进一步地,在一种可行的实施例中,上述步骤S300,根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域的步骤,可以包括:
步骤S301,统计全部所述物理块中,所述第二可用状态为可用且所述第一可用状态为不可用的各第一物理块;
步骤S302,将各所述第一物理块分别作为独立存储单位以组合各所述独立存储单位建立第二逻辑区域。
终端设备在遍历检测到数据存储介质中全部物理块各自的第一可用状态和第二可用状态之后,终端设备进一步从该全部物理块中筛选出第二物理块为可用,但是第一可用状态为不可用的各第一物理块,然后,终端设备分别以各第一物理块单独作为一个独立存储单位以将全部第一物理块组合建立成该数据存储介质的第二逻辑区域。
具体地,例如,终端设备在遍历检测数据存储介质-Nand Flash中的全部物理块,得到第61至64个准绑定组中属于存储单位plane0的4个物理块各自的擦写次数记录依次分别为35052、30981、55231和86052,即确定出该4个物理块各自在TLC的管理模式下的第一可用状态为不可用,而在SLC的管理模式下的第二可用状态为可用,则终端设备随即将该4个物理块确定为第一物理块,并将该4个物理块作为4个独立存储单位以将该4个物理块组合起来建立成数据存储介质-Nand Flash的第二逻辑区域,如此,在终端设备控制数据存储介质-Nand Flash将该第二逻辑区域作为目标存储区域来存储数据拥有方下发的待存储数据时,数据存储介质即可在该第二逻辑区域中执行标准存写命令,从而以标准存写的方式将待存储数据存入各个独立的物理块上。
本实施例中,通过终端设备在检测到系统时间到达预先配置好的检测周期的时间节点,或者检测到工作人员输入的算法操作触发了扫描指令时,终端设备随即开始遍历该数据存储介质中的全部物理块,以扫描该全部物理块各自的好坏分别情况并记录坏物理块的标识信息,从而确定该数据存储介质的坏物理块分布状态,并且,终端设备在遍历数据存储介质中的全部物理块时,进一步检测各物理块各自的擦写次数记录,然后将该擦写次数记录分别与预设第一模式下物理块的第一擦写寿命进行比较,从而确定该数据存储介质中的全部物理块的第一可用状态为可用或者为不可用,并且,同样的将才擦写次数记录分别与预设第二模式下物理块的第二擦写寿命进行比较,从而确定该数据存储介质中的全部物理块的第二可用状态为可用或者为不可用。
然后,终端设备在遍历检测到数据存储介质中全部物理块各自的第一可用状态和第二可用状态之后,终端设备进一步从该全部物理块中筛选出第二物理块为可用,但是第一可用状态为不可用的各第一物理块,然后,终端设备分别以各第一物理块单独作为一个独立存储单位以将全部第一物理块组合建立成该数据存储介质的第二逻辑区域。
实现了将数据存储介质中在擦写寿命较低的管理模式下不可用,但是在擦写寿命较高的管理模式下可用的物理块收集起来组建成该数据存储介质中单独的逻辑区域,进一步提升了数据存储介质中整体可用的存储容量,此外,基于仅仅将该部分物理块(擦写寿命较低的管理模式下不可用但擦写寿命较高的管理模式下可用),单独的作为存储单元来组合构建逻辑区域,又进一步减少了对于物理块数的占用,进而使得更多的物理块能够被统一绑定起来进行数据读写,保证了数据存储介质读写数据的整体性能表现,进一步达成了数据存储介质读写性能与数据存储容量之间的平衡。
此外,请参照图4,本申请实施例还提出一种数据存储介质的管理系统,该数据存储介质的管理系统,包括:
检测模块,用于检测数据存储介质的状态信息,其中,所述状态信息包括:坏物理块分布状态和物理块可用状态;
第一组建模块,用于根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域;
第二组建模块,用于根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域;
存储控制模块,用于在接收到待存储数据时,从各所述第一逻辑区域和所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据。
在一实施例中,所述坏物理块分布状态包括:不存在坏物理块和存在坏物理块,所述准绑定组包括:第一准绑定组和第二准绑定组,所述第一组建模块,包括:
第一统计单元,用于统计所述数据存储介质中不存在坏物理块的各第一准绑定组,以及存在坏物理块的各第二准绑定组;
第一绑定单元,用于分别绑定各所述第一准绑定组中的物理块以将各所述第一准绑定组组建成第一预设单位数量的第一逻辑区域,其中,所述第一预设单位数量为所述数据存储介质所拥有存储单位的单位总数;
第一组建单元,用于检测各所述第二准绑定组中坏物理块所属的目标存储单位和坏物理块数量,并根据所述目标存储单位和所述坏物理块数量分别绑定所述第二准绑定组以组建第一逻辑区域。
在一实施例中,所述第一组建单元,包括:
分类子单元,用于按照所述坏物理块数量和所述目标存储单位对各所述第二准绑定组进行分类得到各目标准绑定组;
第二绑定单元,用于分别绑定各所述目标准绑定组中的好物理块以将各所述目标准绑定组组建成第二预设单位数量的第一逻辑区域,其中,所述第二预设单位数量等于所述单位总数减去所述坏物理块数量。
在一实施例中,所述第一组建单元,还包括:
检测子单元,用于检测各所述第二准绑定组中所述坏物理块数量和所述目标存储单位均互补的各准绑定组对;
第三绑定单元,用于分别绑定各所述准绑定组队中的好物理块以将各所述准绑定组对组建成所述第一预设单位数量的第一逻辑区域。
在一实施例中,所述物理块可用状态包括第一可用状态和第二可用状态,所述检测模块,包括:
扫描单元,用于扫描所述数据存储介质中的全部物理块以确定所述数据存储介质的坏物理块分布状态;
第一检测单元,用于检测预设第一模式下所述数据存储介质中全部所述物理块的第一擦写寿命确定第一可用状态;
第二检测单元,用于检测预设第二模式下全部所述物理块的第二擦写寿命确定第二可用状态,其中,所述第一擦写寿命短于所述第二擦写寿命。
在一实施例中,所述第二组建模块,包括:
第二统计单元,用于统计全部所述物理块中,所述第二可用状态为可用且所述第一可用状态为不可用的各第一物理块;
第二组建单元,用于将各所述第一物理块分别作为独立存储单位以组合各所述独立存储单位建立第二逻辑区域。
在一实施例中,所述存储控制模块,包括:
确定单元,用于确定所述待存储数据的存储占用容量,以及各所述第一逻辑区域和所述第二逻辑区域各自的可用存储容量;
对比单元,用于对比各所述可用存储容量是否大于或者等于所述存储占用容量;
存储单元,用于将所述可用存储容量对应的所述第一逻辑区域或者所述第二逻辑区域确定为所述目标逻辑区域以用于存储所述待存储数据
其中,本申请数据存储装置的各功能模块在运行时所实现的步骤,可参照上述本申请数据存储装置方法的各个三实施例,此处不再赘述。
此外,本申请实施例还提出一种终端设备,该终端设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的数据存储介质的管理程序,该数据存储介质的管理程序被所述处理器执行时实现如上述中的数据存储介质的管理方法的步骤。
其中,在所述处理器上运行的数据存储介质的管理程序被执行时所实现的步骤可参照本申请数据存储介质的管理方法的各个实施例,此处不再赘述。
此外,本申请实施例还提出一种计算机存储介质,应用于计算机,该计算机存储介质可以为非易失性计算机可读计算机存储介质,该计算机存储介质上存储有数据存储介质的管理程序,所述数据存储介质的管理程序被处理器执行时实现如上所述的数据存储介质的管理方法的步骤。
其中,在所述处理器上运行的数据存储介质的管理程序被执行时所实现的步骤可参照本申请数据存储介质的管理方法的各个实施例,此处不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个计算机存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (10)

  1. 一种数据存储介质的管理方法,其中,所述数据存储介质的管理方法包括:
    检测数据存储介质的状态信息,其中,所述状态信息包括:坏物理块分布状态和物理块可用状态;
    根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域;
    根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域;
    在接收到待存储数据时,从各所述第一逻辑区域和所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据。
  2. 如权利要求1所述的数据存储介质的管理方法,其中,所述坏物理块分布状态包括:不存在坏物理块和存在坏物理块,所述准绑定组包括:第一准绑定组和第二准绑定组,
    所述根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域的步骤,包括:
    统计所述数据存储介质中不存在坏物理块的各第一准绑定组,以及存在坏物理块的各第二准绑定组;
    分别绑定各所述第一准绑定组中的物理块以将各所述第一准绑定组组建成第一预设单位数量的第一逻辑区域,其中,所述第一预设单位数量为所述数据存储介质所拥有存储单位的单位总数;
    检测各所述第二准绑定组中坏物理块所属的目标存储单位和坏物理块数量,并根据所述目标存储单位和所述坏物理块数量分别绑定所述第二准绑定组以组建第一逻辑区域。
  3. 如权利要求2所述的数据存储介质的管理方法,其中,所述根据所述目标存储单位和所述坏物理块数量分别绑定所述第二准绑定组以组建第一逻辑区域的步骤,包括:
    按照所述坏物理块数量和所述目标存储单位对各所述第二准绑定组进行分类得到各目标准绑定组;
    分别绑定各所述目标准绑定组中的好物理块以将各所述目标准绑定组组建成第二预设单位数量的第一逻辑区域,其中,所述第二预设单位数量等于所述单位总数减去所述坏物理块数量。
  4. 如权利要求2所述的数据存储介质的管理方法,其中,所述根据所述目标存储单位和所述坏物理块数量分别绑定所述第二准绑定组以组建第一逻辑区域的步骤,还包括:
    检测各所述第二准绑定组中所述坏物理块数量和所述目标存储单位均互补的各准绑定组对;
    分别绑定各所述准绑定组队中的好物理块以将各所述准绑定组对组建成所述第一预设单位数量的第一逻辑区域。
  5. 如权利要求1所述的数据存储介质的管理方法,其中,所述物理块可用状态包括第一可用状态和第二可用状态,
    所述检测数据存储介质的状态信息的步骤,包括:
    扫描所述数据存储介质中的全部物理块以确定所述数据存储介质的坏物理块分布状态;
    检测预设第一模式下所述数据存储介质中全部所述物理块的第一擦写寿命确定第一可用状态;
    检测预设第二模式下全部所述物理块的第二擦写寿命确定第二可用状态,其中,所述第一擦写寿命短于所述第二擦写寿命。
  6. 如权利要求5所述的数据存储介质的管理方法,其中,所述根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域的步骤,包括:
    统计全部所述物理块中,所述第二可用状态为可用且所述第一可用状态为不可用的各第一物理块;
    将各所述第一物理块分别作为独立存储单位以组合各所述独立存储单位建立第二逻辑区域。
  7. 如权利要求1所述的数据存储介质的管理方法,其中,所述从所述第一逻辑区域和各所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据的步骤,包括:
    确定所述待存储数据的存储占用容量,以及各所述第一逻辑区域和所述第二逻辑区域各自的可用存储容量;
    对比各所述可用存储容量是否大于或者等于所述存储占用容量;
    若是,则将所述可用存储容量对应的所述第一逻辑区域或者所述第二逻辑区域确定为所述目标逻辑区域以用于存储所述待存储数据。
  8. 一种数据存储介质的管理系统,其中,所述数据存储介质的管理系统包括:
    检测模块,用于检测数据存储介质的状态信息,其中,所述状态信息包括:坏物理块分布状态和物理块可用状态;
    第一组建模块,用于根据所述坏物理块分布状态在所述数据存储介质中分别绑定各准绑定组的物理块以组建各第一逻辑区域;
    第二组建模块,用于根据所述物理块可用状态在所述数据存储介质中建立第二逻辑区域;
    存储控制模块,用于在接收到待存储数据时,从各所述第一逻辑区域和所述第二逻辑区域中确定目标逻辑区域以存储所述待存储数据。
  9. 一种终端设备,其中,所述终端设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的数据存储介质的管理程序,所述数据存储介质的管理程序被所述处理器执行时实现如权利要求1至7中任一项所述的数据存储介质的管理方法的步骤。
  10. 一种计算机存储介质,其中,所述计算机存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的数据存储介质的管理方法的步骤。
PCT/CN2021/074793 2020-09-03 2021-02-02 数据存储介质的管理方法、系统、终端设备及存储介质 WO2022048109A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010920097.3A CN112068777B (zh) 2020-09-03 2020-09-03 数据存储介质的管理方法、系统、终端设备及存储介质
CN202010920097.3 2020-09-03

Publications (1)

Publication Number Publication Date
WO2022048109A1 true WO2022048109A1 (zh) 2022-03-10

Family

ID=73666487

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/074793 WO2022048109A1 (zh) 2020-09-03 2021-02-02 数据存储介质的管理方法、系统、终端设备及存储介质

Country Status (2)

Country Link
CN (1) CN112068777B (zh)
WO (1) WO2022048109A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112068777B (zh) * 2020-09-03 2023-08-18 深圳市硅格半导体有限公司 数据存储介质的管理方法、系统、终端设备及存储介质
CN116991306A (zh) * 2022-04-25 2023-11-03 深圳市江波龙电子股份有限公司 存储装置的处理方法、存储装置及计算机可读存储装置
CN115687171B (zh) * 2022-10-26 2023-06-06 深圳三地一芯电子股份有限公司 闪存块绑定方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571833A (zh) * 2008-04-29 2009-11-04 深圳市朗科科技股份有限公司 存储介质的保护方法及装置
CN106445408A (zh) * 2016-08-31 2017-02-22 深圳芯邦科技股份有限公司 一种nand闪存管理方法、主机、nand闪存读写方法及nand闪存控制器
CN110457233A (zh) * 2019-08-10 2019-11-15 深圳市德名利电子有限公司 一种基于混合大小单元的闪存管理方法和装置以及设备
CN112068777A (zh) * 2020-09-03 2020-12-11 深圳市硅格半导体有限公司 数据存储介质的管理方法、系统、终端设备及存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645042A (zh) * 2008-08-04 2010-02-10 深圳市朗科科技股份有限公司 闪存管理方法及闪存介质
CN101645310B (zh) * 2008-08-05 2013-09-18 深圳市朗科科技股份有限公司 闪存设备、闪存管理方法及系统
CN109558333B (zh) * 2017-09-27 2024-04-05 北京忆恒创源科技股份有限公司 具有可变额外存储空间的固态存储设备命名空间
CN108038065B (zh) * 2017-12-22 2021-11-12 湖南国科微电子股份有限公司 一种提高Block使用率的方法、装置及系统
CN108073363B (zh) * 2017-12-28 2021-10-01 深圳市得一微电子有限责任公司 数据存储方法、存储设备及计算机可读存储介质
CN111104045A (zh) * 2018-10-25 2020-05-05 深圳市中兴微电子技术有限公司 一种存储控制方法、装置、设备和计算机存储介质
CN110750466A (zh) * 2019-10-18 2020-02-04 深圳豪杰创新电子有限公司 提高闪存擦写寿命的方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571833A (zh) * 2008-04-29 2009-11-04 深圳市朗科科技股份有限公司 存储介质的保护方法及装置
CN106445408A (zh) * 2016-08-31 2017-02-22 深圳芯邦科技股份有限公司 一种nand闪存管理方法、主机、nand闪存读写方法及nand闪存控制器
CN110457233A (zh) * 2019-08-10 2019-11-15 深圳市德名利电子有限公司 一种基于混合大小单元的闪存管理方法和装置以及设备
CN112068777A (zh) * 2020-09-03 2020-12-11 深圳市硅格半导体有限公司 数据存储介质的管理方法、系统、终端设备及存储介质

Also Published As

Publication number Publication date
CN112068777B (zh) 2023-08-18
CN112068777A (zh) 2020-12-11

Similar Documents

Publication Publication Date Title
WO2022048109A1 (zh) 数据存储介质的管理方法、系统、终端设备及存储介质
US20230259310A1 (en) Latency-based Scheduling of Command Processing in Data Storage Devices
US11960726B2 (en) Method and apparatus for SSD storage access
CN109783020B (zh) 一种基于ssd-smr混合键值存储系统的垃圾回收方法
US7984230B2 (en) Allocation of logical volumes to flash memory drives
US8117619B2 (en) System and method for identifying least busy resources in a storage system using values assigned in a hierarchical tree structure
CN107967121A (zh) 数据写入方法和存储设备
US20160328179A1 (en) Multiple virtually over-provisioned, virtual storage devices created from a single physical storage device
US20120191936A1 (en) Just in time garbage collection
CN110471861A (zh) 一种闪存设备中的数据存储方法及闪存设备
US20130238834A1 (en) Dynamic storage parameter tracking
WO2022160317A1 (zh) 一种数据处理方法、装置及系统
US20210181986A1 (en) Storage device, storage system and operating method thereof
CN116400869B (zh) 闪存设备的坏块替换方法、闪存设备控制器及闪存设备
US11307768B2 (en) Namespace auto-routing data storage system
KR101480424B1 (ko) 하이브리드 플래시 메모리의 성능과 수명 최적화 장치 및 방법
CN112148226A (zh) 一种数据存储方法及相关装置
WO2021035555A1 (zh) 一种固态硬盘的数据存储方法、装置及固态硬盘ssd
US7032085B2 (en) Storage system with a data sort function
KR20130139084A (ko) 메모리 시스템 및 메모리 청크 단위로 메모리를 관리하는 메모리 관리 방법
CN117215485A (zh) Zns ssd管理方法及数据写入方法、存储装置、控制器
WO2023193814A1 (zh) 融合系统的数据处理方法、装置、设备和系统
CN113268203B (zh) 存储系统的容量均衡方法、装置、计算机设备和存储介质
CN112352216B (zh) 数据存储方法及数据存储装置
CN113900591A (zh) 延长存储器寿命的方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21863180

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.07.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21863180

Country of ref document: EP

Kind code of ref document: A1