CN115145483A - Solid state disk management method, device, equipment and machine readable storage medium - Google Patents

Solid state disk management method, device, equipment and machine readable storage medium Download PDF

Info

Publication number
CN115145483A
CN115145483A CN202210734030.XA CN202210734030A CN115145483A CN 115145483 A CN115145483 A CN 115145483A CN 202210734030 A CN202210734030 A CN 202210734030A CN 115145483 A CN115145483 A CN 115145483A
Authority
CN
China
Prior art keywords
solid state
state disk
wear
strategy
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210734030.XA
Other languages
Chinese (zh)
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.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Information Technologies 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 New H3C Information Technologies Co Ltd filed Critical New H3C Information Technologies Co Ltd
Priority to CN202210734030.XA priority Critical patent/CN115145483A/en
Publication of CN115145483A publication Critical patent/CN115145483A/en
Pending legal-status Critical Current

Links

Images

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/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
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/10Address translation
    • 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • 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]

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)
  • Optical Recording Or Reproduction (AREA)

Abstract

The present disclosure provides a method, an apparatus, a device and a machine readable storage medium for managing a solid state disk, wherein the method comprises: executing a wear-leveling strategy of the solid state disk according to default configuration, and starting a timer to record the running time of each solid state disk; according to the record of the timer, executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold; and judging whether the available capacity of the solid state disk executing the random wear strategy is lower than a configurable capacity threshold, and considering that the solid state disk with the available capacity lower than the capacity threshold fails. According to the technical scheme, the solid state disk after executing the uniform wear strategy for a certain time is converted into the random wear strategy by configuring various threshold values, so that the service life of the solid state disk converted into the random wear strategy is prolonged while batch failure of the solid state disks in a short time is avoided.

Description

Solid state disk management method, device, equipment and machine readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a machine-readable storage medium for managing a solid state disk.
Background
SSD, solid State Drives (Solid State Drives), are hard disks made with Solid State electronic memory chips, which have higher performance and reliability than mechanical hard disks. SSD wear leveling is a method of programming and erasing all flash memory granules in an SSD, which prevents the same memory Block (Block) from being programmed and erased continuously, and balances the lifetime of the entire NAND flash memory.
The FTL (Flash Translation Layer), one of the functions implemented on the SSD controller, mainly completes the conversion from the logical address (LBA) of Host to the physical address (PBA) of Flash.
From the SSD disk perspective, it is a reasonable strategy to achieve wear leveling of blocks within the disk. But this causes problems from the perspective of the storage system. The commercial storage system, no matter a centralized storage array or a distributed storage system, realizes load balance of read-write data from the perspective of the system, the wear degree of each SSD disk in the storage system is similar, and the SSD disks in the system can be intensively damaged in batches in a short time due to the fact that the service life of the SSD disks is accurately controlled by the number of times of erasing and writing, and the SSD disks in the system are damaged in batches in a short time, so that the data can not be reconstructed in time, and further the data loss and service halt of the storage system can be caused.
Disclosure of Invention
In view of the above, the present disclosure provides a method and an apparatus for managing a solid state disk, an electronic device, and a machine-readable storage medium, so as to solve the problem of SSD batch damage in a short time.
The specific technical scheme is as follows:
the present disclosure provides a solid state disk management method, which is applied to a storage device, wherein the storage device comprises a plurality of solid state disks, and the method comprises: executing a balanced wear strategy of the solid state disk according to default configuration, and starting a timer to record the running time of each solid state disk; according to the record of the timer, executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold; judging whether the available capacity of the solid state disk executing the random wear strategy is lower than a configurable capacity threshold, and considering that the solid state disk with the available capacity lower than the capacity threshold fails; the random wear strategy comprises the steps of configuring mapping between the LBA and the PBA in an FTL algorithm in a random mapping mode; the strategy of wear leveling comprises that mapping between LBAs and PBAs is configured in a mode that blocks have approximately the same erasing times in an FTL algorithm.
As a technical solution, the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold, and considering that the solid state disk with the available capacity lower than the capacity threshold fails includes: and removing the solid state disk which is considered to be invalid, and then performing data reconstruction on the data stored in the storage equipment.
As a technical solution, the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold, and considering that the solid state disk with the available capacity lower than the capacity threshold fails includes: and prompting to replace the solid state disk which is considered to be failed.
As a technical solution, the executing a wear leveling policy of the solid state disk according to a default configuration, and starting a timer to record the running time of each solid state disk includes: starting a write-in counter to record the data write-in amount of each solid state disk; the method for executing the random wear strategy on the solid state disk with the running time exceeding the configurable time threshold according to the record of the timer comprises the following steps: and executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold and the data writing quantity exceeding a configurable writing threshold according to the record of the timer and the writing counter.
This disclosure provides a solid state disk management device simultaneously, is applied to storage device, storage device includes a plurality of solid state disk, the device includes: the wear-leveling module is used for executing a wear-leveling strategy of the solid state disk according to default configuration and starting a timer to record the running time of each solid state disk; the random wear module is used for executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold according to the record of the timer; the failure judgment module is used for judging whether the available capacity of the solid state disk executing the random wear strategy is lower than a configurable capacity threshold value or not, and considering that the solid state disk with the available capacity lower than the capacity threshold value fails; the random wear strategy comprises the steps of configuring mapping between the LBA and the PBA in an FTL algorithm in a random mapping mode; the strategy of wear leveling comprises that mapping between LBAs and PBAs is configured in a mode that blocks have approximately the same erasing times in an FTL algorithm.
As a technical solution, the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold, and considering that the solid state disk with the available capacity lower than the capacity threshold fails includes: and removing the solid state disk which is considered to be invalid, and then performing data reconstruction on the data stored in the storage equipment.
As a technical solution, the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold, and considering that the solid state disk with the available capacity lower than the capacity threshold fails includes: and prompting to replace the solid state disk which is considered to be failed.
As a technical solution, the executing a wear leveling policy of the solid state disk according to a default configuration, and starting a timer to record the running time of each solid state disk includes: starting a write-in counter to record the data write-in amount of each solid state disk; the method for executing the random wear strategy on the solid state disk with the running time exceeding the configurable time threshold according to the record of the timer comprises the following steps: and executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold and the data writing quantity exceeding a configurable writing threshold according to the record of the timer and the writing counter.
The present disclosure also provides an electronic device, which includes a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions capable of being executed by the processor, and the processor executes the machine-executable instructions to implement the foregoing solid state disk management method.
The present disclosure also provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the aforementioned solid state disk management method.
The technical scheme provided by the disclosure at least brings the following beneficial effects:
by configuring various thresholds, the solid state disk executing the uniform wear strategy for a certain time is converted into the random wear strategy, so that the service life of the solid state disk converted into the random wear strategy is prolonged while batch failure of the solid state disks in a short time is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present disclosure or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present disclosure.
Fig. 1 is a flowchart of a solid state disk management method according to an embodiment of the present disclosure;
FIG. 2 is a block diagram of a solid state disk management apparatus according to an embodiment of the disclosure;
fig. 3 is a hardware configuration diagram of an electronic device in an embodiment of the present disclosure.
Detailed Description
The terminology used in the embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information in the embodiments of the present disclosure, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. Depending on the context, moreover, the word "if" is used may be interpreted as "at … …" or "at … …" or "in response to a determination".
An SSD disk typically contains multiple Flash Memory chips, a Flash Memory Package typically contains 1 or more Flash Memory granules (Die), each Die in turn containing multiple planes, each Plane containing multiple blocks, each Block containing multiple pages. The smallest unit of data read or written by an SSD is a Page, with a typical Page size of 4KB. The SSD cannot be overwritten, for example, a Page has data 11001111 written therein, and if the Page wants to overwrite original data with new data 11110011, the Page cannot be overwritten on the SSD. To enable repeated writing, the SSD needs to first perform an erase operation (erase) on the already written grains, but the smallest unit of erase is not a Page, but a Block containing several pages. A Block typically contains 128, 256 or 512 pages.
In practice, for example, assuming that the Page 23 in Block 10 has already written data, and it is now necessary to modify the data of Page 23, the data of all pages contained in this Block is first read into the cache of the SSD controller, the modification of this Page data is completed in the cache, and then the data is written into a new Block.
For this reason, the SSD introduces an FTL mechanism, and from the perspective of the operating system, the SSD disk is a block device, and the operating system can read and write data with the LBA address as the data location of the SSD disk. The SSD controller will dynamically map this LBA logical address to a physical address of the SSD, i.e., a PBA address. Thus, even if the upper layer application modifies the data of the same LBA address repeatedly, the FTL can relieve the wear problem of the PBA as long as mapping the data to different PBA addresses each time. In order to better realize the wear leveling in the SSD disc, a more complex wear leveling algorithm is required to ensure that each Block in the SSD disc keeps an approximate wear count, so that each Block almost reaches the upper limit of the wear count at the same time in the life cycle of the SSD disc. However, if the same wear-leveling strategy is adopted by each SSD in the storage system, and further the SSD disks are damaged in batches in a short time, the data may not be reconstructed in time, and data loss and service shutdown of the storage system may be caused.
In view of the above, the present disclosure provides a method and an apparatus for managing a solid state disk, an electronic device, and a machine-readable storage medium, so as to solve the problem of SSD batch damage in a short time.
Specifically, the technical scheme is as follows.
The present disclosure provides a solid state disk management method, which is applied to a storage device, wherein the storage device comprises a plurality of solid state disks, and the method comprises: executing a wear-leveling strategy of the solid state disk according to default configuration, and starting a timer to record the running time of each solid state disk; according to the record of the timer, executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold; judging whether the available capacity of the solid state disk executing the random wear strategy is lower than a configurable capacity threshold, and considering that the solid state disk with the available capacity lower than the capacity threshold fails; the random wear strategy comprises the steps of configuring mapping between the LBA and the PBA in an FTL algorithm in a random mapping mode; the strategy of wear leveling comprises that mapping between LBAs and PBAs is configured in a mode that blocks have approximately the same erasing times in an FTL algorithm.
Specifically, as shown in fig. 1, the method comprises the following steps:
step S11, executing a wear-leveling strategy of the solid state disk according to default configuration, and starting a timer to record the running time of each solid state disk;
step S12, according to the record of the timer, executing a random wear strategy on the solid state disk with the running time exceeding the configurable time threshold;
and S13, judging whether the available capacity of the solid state disk executing the random wear strategy is lower than a configurable capacity threshold, and considering that the solid state disk with the available capacity lower than the capacity threshold fails.
By configuring various threshold values, the solid state disk which executes the balanced wear strategy for a certain time is converted into the random wear strategy, so that the service life of the solid state disk which is converted into the random wear strategy is prolonged while the solid state disk which executes the balanced wear strategy is prevented from being failed in batches in a short time.
In one embodiment, the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold value, and considering that the solid state disk with the available capacity lower than the capacity threshold value fails includes: and after the solid state disk which is considered to be invalid is removed, data reconstruction is carried out on the data stored in the storage equipment.
In one embodiment, the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold value, and considering that the solid state disk with the available capacity lower than the capacity threshold value fails includes: and prompting to replace the solid state disk which is considered to be failed.
In one embodiment, the executing the wear leveling policy of the solid state disk according to the default configuration and starting a timer to record the running time of each solid state disk includes: starting a write-in counter to record the data write-in amount of each solid state disk; the method for executing the random wear strategy on the solid state disk with the running time exceeding the configurable time threshold according to the record of the timer comprises the following steps: and executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold and the data writing quantity exceeding a configurable writing threshold according to the record of the timer and the writing counter.
In one embodiment, the SSD wear policy is first configured, illustratively: the method comprises the steps of balancing a wear strategy, and basically ensuring that each Block of the SSD has approximately the same erasing times by counting the erasing times of each Block in the SSD; and (3) a random wear strategy, wherein in an FTL algorithm, a random mapping method is adopted to realize the mapping between the LBA and the PBA. Configuring a time threshold T, SSD disk capacity threshold C, enabling the SSD to adopt a balanced wear policy within a specified time T, keeping each Block in the SSD at approximately similar erasing times, and switching to execute a random wear policy after the time T is exceeded, and then considering the SSD to be invalid when the available capacity of the SSD is less than C, where the available capacity refers to a capacity of hardware layer capable of storing and erasing data in the SSD and is different from a remaining available capacity of a software system after the capacity occupied by the stored data is deducted.
The time threshold T may be any value and any time unit such as month, week, day, etc., and in a special case T is 0, i.e., the SSD does not use the wear leveling policy. The capacity threshold C may be an absolute value of the capacity or a percentage of the capacity.
In the balanced wear strategy, in order to ensure that the wear times of the blocks are basically similar, the data of the blocks with less wear time consumption can be actively moved, and the data moving is avoided to a certain extent in the scheme, so that the whole erasable times of the storage device is increased.
In an embodiment, the present disclosure also provides an apparatus for managing solid state disks, as shown in fig. 2, applied to a storage device, where the storage device includes a plurality of solid state disks, the apparatus including: the wear-leveling module 21 is configured to execute a wear-leveling policy of the solid state disk according to a default configuration, and start a timer to record the running time of each solid state disk; the random wear module 22 is used for executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold according to the record of the timer; the failure judgment module 23 is configured to judge whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold, and consider that the solid state disk with the available capacity lower than the capacity threshold fails; the random wear strategy comprises the steps of configuring mapping between the LBA and the PBA in an FTL algorithm in a random mapping mode; the wear-leveling strategy comprises the step of configuring mapping between the LBAs and the PBAs in a mode that each Block has approximately the same erasing times in an FTL algorithm.
In one embodiment, the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold value, and considering that the solid state disk with the available capacity lower than the capacity threshold value fails includes: and after the solid state disk which is considered to be invalid is removed, data reconstruction is carried out on the data stored in the storage equipment.
In one embodiment, the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold value, and considering that the solid state disk with the available capacity lower than the capacity threshold value fails includes: and prompting to replace the solid state disk which is considered to be failed.
In one embodiment, the executing the wear leveling policy of the solid state disk according to the default configuration and starting a timer to record the running time of each solid state disk includes: starting a write-in counter to record the data write-in amount of each solid state disk; the method for executing the random wear strategy on the solid state disk with the running time exceeding the configurable time threshold according to the record of the timer comprises the following steps: and executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold and the data writing quantity exceeding a configurable writing threshold according to the record of the timer and the writing counter.
The device embodiments are the same or similar to the corresponding method embodiments and are not described herein again.
In an embodiment, the present disclosure provides an electronic device, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions executable by the processor, and the processor executes the machine-executable instructions to implement the foregoing solid state disk management method, and from a hardware level, a schematic diagram of a hardware architecture may be as shown in fig. 3.
In one embodiment, the present disclosure provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the aforementioned solid state disk management method.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: RAM (random Access Memory), volatile Memory, non-volatile Memory, flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units described in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in practicing the disclosure.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the disclosed embodiments may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
As will be appreciated by one of skill in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (which may include, but is not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The above description is only an embodiment of the present disclosure, and is not intended to limit the present disclosure. Various modifications and variations of this disclosure will occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.

Claims (10)

1. A solid state disk management method is applied to a storage device, wherein the storage device comprises a plurality of solid state disks, and the method comprises the following steps:
executing a balanced wear strategy of the solid state disk according to default configuration, and starting a timer to record the running time of each solid state disk;
according to the record of the timer, executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold;
judging whether the available capacity of the solid state disk executing the random wear strategy is lower than a configurable capacity threshold, and considering that the solid state disk with the available capacity lower than the capacity threshold fails;
the random wear strategy comprises the steps of configuring mapping between the LBA and the PBA in an FTL algorithm in a random mapping mode;
the strategy of wear leveling comprises that mapping between LBAs and PBAs is configured in a mode that blocks have approximately the same erasing times in an FTL algorithm.
2. The method of claim 1, wherein the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold, and considering that the solid state disk with the available capacity lower than the capacity threshold fails comprises:
and removing the solid state disk which is considered to be invalid, and then performing data reconstruction on the data stored in the storage equipment.
3. The method of claim 1, wherein the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold, and wherein considering the solid state disk with the available capacity lower than the capacity threshold as failed comprises:
and prompting to replace the solid state disk which is considered to be failed.
4. The method of claim 1,
the executing a wear-leveling strategy of the solid state disk according to the default configuration, and starting a timer to record the running time of each solid state disk comprises:
starting a write-in counter to record the data write-in amount of each solid state disk;
the method for executing the random wear strategy on the solid state disk with the running time exceeding the configurable time threshold according to the record of the timer comprises the following steps:
and executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold and the data writing quantity exceeding a configurable writing threshold according to the record of the timer and the writing counter.
5. The solid state disk management device is applied to a storage device, wherein the storage device comprises a plurality of solid state disks, and the device comprises:
the wear-leveling module is used for executing a wear-leveling strategy of the solid state disk according to default configuration and starting a timer to record the running time of each solid state disk;
the random wear module is used for executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold according to the record of the timer;
the failure judgment module is used for judging whether the available capacity of the solid state disk executing the random wear strategy is lower than a configurable capacity threshold value or not, and considering that the solid state disk with the available capacity lower than the capacity threshold value fails;
the random wear strategy comprises the steps of configuring mapping between the LBA and the PBA in an FTL algorithm in a random mapping mode;
the strategy of wear leveling comprises that mapping between LBAs and PBAs is configured in a mode that blocks have approximately the same erasing times in an FTL algorithm.
6. The apparatus of claim 5, wherein the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold, and wherein considering that the solid state disk with the available capacity lower than the capacity threshold fails comprises:
and after the solid state disk which is considered to be invalid is removed, data reconstruction is carried out on the data stored in the storage equipment.
7. The apparatus of claim 5, wherein the determining whether the available capacity of the solid state disk executing the random wear policy is lower than a configurable capacity threshold, and wherein considering that the solid state disk with the available capacity lower than the capacity threshold fails comprises:
and prompting to replace the solid state disk which is considered to be failed.
8. The apparatus of claim 5,
the executing a wear leveling strategy of the solid state disk according to the default configuration, and starting a timer to record the running time of each solid state disk, includes:
starting a write-in counter to record the data write-in amount of each solid state disk;
the method for executing the random wear strategy on the solid state disk with the running time exceeding the configurable time threshold according to the record of the timer comprises the following steps:
and executing a random wear strategy on the solid state disk with the running time exceeding a configurable time threshold and the data writing quantity exceeding a configurable writing threshold according to the record of the timer and the writing counter.
9. An electronic device, comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to perform the method of any one of claims 1 to 4.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of any of claims 1 to 4.
CN202210734030.XA 2022-06-27 2022-06-27 Solid state disk management method, device, equipment and machine readable storage medium Pending CN115145483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210734030.XA CN115145483A (en) 2022-06-27 2022-06-27 Solid state disk management method, device, equipment and machine readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210734030.XA CN115145483A (en) 2022-06-27 2022-06-27 Solid state disk management method, device, equipment and machine readable storage medium

Publications (1)

Publication Number Publication Date
CN115145483A true CN115145483A (en) 2022-10-04

Family

ID=83408416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210734030.XA Pending CN115145483A (en) 2022-06-27 2022-06-27 Solid state disk management method, device, equipment and machine readable storage medium

Country Status (1)

Country Link
CN (1) CN115145483A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117542403A (en) * 2024-01-09 2024-02-09 深圳市领德创科技有限公司 Solid state disk operation management system and method based on temperature control technology

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117542403A (en) * 2024-01-09 2024-02-09 深圳市领德创科技有限公司 Solid state disk operation management system and method based on temperature control technology
CN117542403B (en) * 2024-01-09 2024-04-05 深圳市领德创科技有限公司 Solid state disk operation management system and method based on temperature control technology

Similar Documents

Publication Publication Date Title
CN109902039B (en) Memory controller, memory system and method for managing data configuration in memory
EP1559018B1 (en) Wear leveling in non-volatile storage systems
US6973531B1 (en) Tracking the most frequently erased blocks in non-volatile memory systems
KR100914089B1 (en) Maintaining erase counts in non-volatile storage systems
US7287118B2 (en) Maintaining an average erase count in a non-volatile storage system
US7096313B1 (en) Tracking the least frequently erased blocks in non-volatile memory systems
US8108589B2 (en) Wear leveling method and controller using the same
US8046526B2 (en) Wear leveling method and controller using the same
JP4518951B2 (en) Automatic wear leveling in non-volatile storage systems.
US8103820B2 (en) Wear leveling method and controller using the same
US7649794B2 (en) Wear leveling method and controller using the same
US8275931B2 (en) Block management method for flash memory, and storage system and controller using the same
US20140129758A1 (en) Wear leveling in flash memory devices with trim commands
CN110603532A (en) Memory management
US20100042775A1 (en) Block management method for flash memory, and storage system and controller using the same
US10324833B2 (en) Memory controller, data storage device, and memory control method
JP2011070365A (en) Memory system
CN115145483A (en) Solid state disk management method, device, equipment and machine readable storage medium
US11036414B2 (en) Data storage device and control method for non-volatile memory with high-efficiency garbage collection
CN108920386B (en) Wear leveling and access method, equipment and storage medium for nonvolatile memory

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