Storage management method and device
By dynamically adjusting the capacity utilization of SSD and using storage management equipment to allocate garbage collection space, the problem of over-configuration of SSD reserved space is solved and space utilization and performance are improved.
Patent Information
- Application Number
- CN202310373575.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
AI Technical Summary
Due to the characteristics of flash media, solid-state drives (SSDs) cannot be rewritten in place, which requires additional capacity to be reserved for garbage collection, resulting in write amplification and performance impact. In addition, the reserved space is often over-configured in actual operating scenarios, resulting in a waste of space. .
Obtain the maximum available capacity of the SSD through the storage management device, subtract the system operating capacity, dynamically adjust the capacity utilization, avoid reserving separate garbage collection space, use the storage management device to allocate garbage collection space, and make full use of the SSD storage space.
It improves SSD space utilization, reduces media costs, optimizes performance and lifespan, and avoids space waste and performance impacts caused by excessive reserved space.
Smart Images

Figure CN118732932A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of storage technology, and specifically to a storage management method and device. Background Art
[0002] Due to the characteristics of the flash memory (NandFlash) media used in solid state disks (SSDs), data cannot be rewritten in situ and can only be erased in batches and then rewritten. Therefore, a portion of extra capacity needs to be reserved inside the SSD as over-provisioning (OP) for garbage collection of data on the disk.
[0003] The reserved OP size will directly affect the write amplification (WA) in the disk, which in turn affects the performance and life of the SSD. When the SSD reserves OP, it reserves space according to the worst business scenario. However, the actual operation of the storage system in most scenarios is not as bad as the preset scenario of the SSD, which results in excessive configuration of the SSD OP space. At the same time, since the reserved OP space in the SSD is invisible and unusable to the storage management device, it causes a certain degree of space waste.
[0004] Therefore, how to make full use of the space of SSD is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The embodiments of the present application provide a storage management method and apparatus, wherein the SSD can report all available capacity except the capacity required for the operation of the SSD system to the storage management device, that is, the SSD does not need to reserve an OP for garbage collection separately, and the storage management device can make full use of the space of the SSD.
[0006] In a first aspect, a storage management method is provided, which is executed by a storage management device or a storage management apparatus arranged in the storage management device, the storage management device is connected to a solid state drive (SSD), and the method comprises: obtaining a first maximum available capacity of the SSD, the first maximum available capacity being all flash memory capacity of the SSD minus a system operation capacity of the SSD, the system operation capacity not including the capacity of the SSD used for garbage collection; and operating the storage management device according to the first maximum available capacity.
[0007] In the storage management method provided by the present application, the storage management device can obtain all available space except the minimum space required for the operation of the SSD system to operate, and the SSD does not need to reserve OP for garbage collection separately, but the storage management device allocates the space to the SSD, so that the storage space of the SSD can be fully utilized. At the same time, the SSD will use the space without valid data written as the OP in the disk.
[0008] It should be understood that the storage management device is composed of the engine of the storage system and the software running on the engine. The SSD can be directly plugged into the storage management device or electrically connected to the storage management device.
[0009] It should be understood that all the flash memory capacity of the SSD is the physical capacity of the SSD. The SSD itself needs system operating capacity to implement the on-disk business logic, and the system operating capacity is the capacity required by the system running the SSD. The system operating capacity can include the capacity overhead of the SSD to implement the on-disk redundant array of independent drives (RAID) and the data space required for other functions, but does not include the OP used for garbage collection.
[0010] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: obtaining at least one performance prediction data, wherein the at least one performance prediction data corresponds one-to-one to a capacity utilization of at least one of the SSDs; determining the performance requirements of the storage management device; and adjusting the capacity utilization of the SSD based on the first maximum available capacity, the at least one performance prediction data and the performance requirements.
[0011] In a possible implementation, the SSD can provide performance prediction data corresponding to increasing or decreasing the capacity utilization rate based on the current capacity utilization rate as a baseline. The storage management device can adjust the capacity utilization rate of the SSD according to its own performance requirements through these performance prediction data, thereby adjusting the performance of the SSD. Exemplarily, the current capacity utilization rate of the SSD is 70%, and the at least one performance prediction data includes performance prediction data corresponding to the capacity utilization rate adjusted from -5% to +5% based on 70% as a baseline, that is, performance prediction data corresponding to the capacity utilization rate of 65% to 75%. The storage management device can select the maximum capacity utilization rate that meets the performance requirements based on its own performance requirements through the performance prediction data corresponding to the capacity utilization rate of 65% to 75%. It should be understood that the adjustment of the capacity utilization rate of the SSD by the storage management device can be a step-by-step feedback process. For example, adjusting the capacity utilization rate from 70% to 80% may require 2 to 3 feedback adjustments.
[0012] It should be understood that the capacity utilization corresponding to the performance prediction data provided above is based on the current capacity utilization as a baseline for example only, and the at least one performance prediction data obtained by the storage management device may also be independent of the current capacity utilization. Exemplarily, the at least one performance prediction data obtained by the storage management device may correspond to 50%, 60%, and 90% capacity utilization, respectively.
[0013] Optionally, the performance prediction data obtained by the storage management device may also correspond to a specific capacity utilization, such as 5000 megabits (MB) and 1000 MB of capacity utilization. The storage management device may select the maximum capacity utilization that meets the performance requirements according to its own performance requirements through the performance prediction data corresponding to different capacity utilizations.
[0014] In the storage management method provided in the present application, the storage management device can adjust the space utilization of the SSD according to the actual operating conditions, maximize the SSD space utilization and reduce the media cost of the SSD while meeting the performance requirements of the storage device.
[0015] In some possible implementations, the storage management device can also obtain the maximum available performance that can be provided under the current capacity utilization of the SSD, and the storage management device can adjust the performance estimate according to the maximum available performance. For example, when the current SSD capacity utilization remains unchanged, the maximum available performance of the SSD obtained by the storage management device is 500 megabits per second (MB / S), which is greater than the 300MB / s required by the storage management device. The extra performance can provide users with better service quality, such as increasing the performance ceiling, or making the excess performance available to other users.
[0016] In combination with the first aspect, in some implementations of the first aspect, adjusting the capacity utilization of the SSD includes: deleting or adding data in the SSD.
[0017] If the storage management device needs higher SSD performance and needs to reduce SSD capacity utilization, some of the written data will be directly deleted. If the current performance is higher than the storage management device's requirements and the SSD capacity utilization can be improved, the written data capacity will be directly increased.
[0018] In the storage management method provided in the present application, the storage management device can adjust the space utilization of the SSD according to the actual operating conditions, maximize the SSD space utilization and reduce the media cost of the SSD while meeting the performance requirements of the storage device.
[0019] In combination with the first aspect, in some implementations of the first aspect, the method also includes: obtaining at least one write amplification (WA) coefficient of the SSD, the at least one write amplification coefficient of the SSD corresponding one-to-one to the at least one capacity utilization; adjusting the capacity utilization of the SSD according to the first maximum available capacity, the at least one performance prediction data and the performance requirement, including: adjusting the capacity utilization of the SSD according to the at least one write amplification coefficient of the storage management device, at least one write amplification coefficient of the SSD, the first maximum available capacity, the at least one performance prediction data and the performance requirement, the at least one write amplification coefficient of the storage management device corresponding one-to-one to the at least one write amplification coefficient of the SSD.
[0020] When the end-to-end OP (storage management device OP + SSD OP) is certain, the storage management device pursues optimal performance and can consider the end-to-end WA (storage management device WA × SSD WA) to be minimum. Exemplarily, the OP of the storage management device and the OP of the SSD account for 10% of the maximum available capacity of the SSD. In the first scheme, when the OP of the storage management device accounts for 5% of the maximum available capacity and the OP of the SSD accounts for 5% of the maximum available capacity, the WA of the storage management device is 2, and the WA of the SSD is 2. At this time, the storage management device WA × SSD WA = 4. In the second scheme, when the OP of the storage management device accounts for 9% of the maximum available capacity and the OP of the SSD accounts for 1% of the maximum available capacity, the WA of the storage management device is 1, and the WA of the SSD is 10. At this time, the storage management device WA × SSD WA = 10. 4<10, the first scheme is better than the second scheme, and the storage management device can consider adjusting the capacity utilization of the SSD according to the first scheme. It should be understood that the first scheme may not be the global optimal solution, and the storage management device can gradually adjust the OP allocation scheme to find a global optimal solution.
[0021] Optionally, the storage management device may also obtain data such as the read and write bandwidth of the SSD, so as to facilitate the storage management device to more accurately adjust the capacity utilization of the SSD.
[0022] In the storage management method provided in the present application, the storage management device minimizes the end-to-end WA while meeting the actual performance requirements, that is, the end-to-end OP space is less and the space utilization rate is higher.
[0023] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: obtaining a capacity loss event reported by the SSD; obtaining a second maximum available capacity of the SSD, the second maximum available capacity being the first maximum available capacity minus the capacity lost by the SSD due to the capacity loss event; and operating the storage management device according to the second maximum available capacity.
[0024] Exemplarily, the capacity loss events of the SSD include events such as bad blocks and Die failures of the SSD.
[0025] During the use of SSD, bad blocks or damage to the NandFlash media will cause the SSD available capacity to decrease, which will in turn affect the performance of the storage management device. Therefore, during the use of SSD, if bad blocks or Die failures occur, resulting in capacity loss, it is necessary to report to the storage management device through asynchronous events. At the same time, the increase in physical bad blocks will cause the maximum available capacity of the SSD to decrease, so the calculation of the maximum available capacity needs to subtract the capacity lost due to the failure.
[0026] In one possible implementation, the second maximum available capacity is calculated by the formula A=BCD, where A is the second maximum available capacity, B is the total flash memory capacity of the SSD, C is the system operating capacity of the SSD, and D is the capacity lost by the SSD due to a capacity loss event, and C does not include space used for garbage collection.
[0027] In the storage management method provided in the present application, the storage management device can obtain asynchronous events such as capacity loss caused by bad blocks and Die failures, and the storage management device cooperates with the SSD to process them, ensuring that the normal operation of the storage management device will not be affected by the capacity loss of the SSD.
[0028] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: obtaining the capacity of the data written in the SSD; determining that the second maximum available capacity is less than or equal to the capacity of the data written in the SSD; and migrating the written data.
[0029] It should be understood that if the second maximum available capacity is less than or equal to the currently written capacity after the SSD removes the lost capacity, the storage management device needs to migrate part or all of the data to other disks. It should be understood that the other disks can be SSDs or mechanical hard disks and other storage media, as long as they are managed by the same storage system as the current SSD, and this application does not limit the specific types of other disks.
[0030] In the storage management method provided in the present application, the storage management device can migrate other data in the SSD after a capacity loss event occurs in the SSD, ensuring that the normal operation of the storage management device is not affected by the capacity loss of the SSD.
[0031] In a second aspect, a storage management method is provided, which is executed by an SSD or a storage management device arranged in the SSD, and the SSD is connected to the storage management device. The method includes: generating a first maximum available capacity of the SSD, the first maximum available capacity being all flash memory capacity of the SSD minus the system operation capacity of the SSD, and the system operation capacity does not include the capacity of the SSD used for garbage collection; and sending the first maximum available capacity to the storage management device.
[0032] In the storage management method provided by the present application, the SSD can report all available spaces except the minimum space required for the operation of the SSD system to the storage management device. The SSD does not need to reserve OP separately, but the storage management device allocates space for garbage collection in the disk to the SSD, which can make full use of the storage space of the SSD. At the same time, the SSD will use the space without valid data written as the OP in the disk.
[0033] It should be understood that the storage management device is composed of the engine of the storage system and the software running on the engine. The SSD can be directly plugged into the storage management device or electrically connected to the storage management device.
[0034] It should be understood that all the flash memory capacity of the SSD is the physical capacity of the SSD. The SSD itself needs system operating capacity to implement the on-disk business logic, and the system operating capacity is the capacity required by the system running the SSD. The system operating capacity can include the capacity overhead of the SSD to implement the on-disk redundant array of independent drives (RAID) and the data space required for other functions, but does not include the OP used for garbage collection.
[0035] In combination with the second aspect, in certain implementations of the second aspect, the method further includes: generating at least one performance prediction data, wherein the at least one performance prediction data corresponds one-to-one to a capacity utilization of at least one of the SSDs; and sending the at least one performance prediction data to the storage management device.
[0036] In the storage management method provided in the present application, the SSD can predict the operating performance under different space utilizations under the current model, and report the performance prediction data to the storage management device to facilitate the storage management device to adjust the capacity utilization of the SSD.
[0037] Exemplarily, the prediction methods adopted by SSD include neural network models, statistical-based data feedback, mapping tables and other methods.
[0038] In a possible implementation, at least one performance prediction data includes the maximum performance that the SSD can provide under different capacity utilizations. Exemplarily, the at least one performance prediction data includes performance prediction data corresponding to a capacity utilization adjusted from -5% to +5% with a capacity utilization of 70% as a baseline, that is, performance prediction data corresponding to a capacity utilization of 65% to 75%. The storage management device can select the maximum capacity utilization that meets the performance requirements according to its own performance requirements through the performance prediction data corresponding to the capacity utilization of 65% to 75%.
[0039] It should be understood that the capacity utilization corresponding to the performance prediction data provided above is based on the current capacity utilization as a baseline for example only, and the at least one performance prediction data obtained by the storage management device may also be independent of the current capacity utilization. Exemplarily, the at least one performance prediction data obtained by the storage management device may correspond to 50%, 60%, and 90% capacity utilization, respectively.
[0040] Optionally, the performance prediction data obtained by the storage management device may also correspond to a specific capacity utilization, such as 5000MB and 1000MB of capacity utilization. The storage management device may select the maximum capacity utilization that meets the performance requirements according to its own performance requirements through the performance prediction data corresponding to different capacity utilizations.
[0041] In the storage management method provided in the present application, the storage management device can adjust the space utilization of the SSD according to the actual operating conditions, maximize the SSD space utilization and reduce the media cost of the SSD while meeting the performance requirements of the storage device.
[0042] In combination with the second aspect, in some implementations of the second aspect, the method further includes: sending at least one write amplification factor of the SSD to the storage management device, and the at least one write amplification factor of the SSD corresponds one-to-one to the at least one capacity utilization.
[0043] When the storage management device has a certain end-to-end OP (storage management device OP + SSD OP), in order to achieve optimal performance, the end-to-end WA (storage management device WA × SSD WA) can be minimized. Optionally, the SSD can also send data such as the read and write bandwidth of the SSD to the storage management device, so that the storage management device can more accurately adjust the capacity utilization of the SSD.
[0044] In the storage management method provided in the present application, the storage management device minimizes the end-to-end WA while meeting the actual performance requirements, that is, the end-to-end OP space is less and the space utilization rate is higher.
[0045] In combination with the second aspect, in certain implementations of the second aspect, before generating the first maximum available capacity of the SSD, the method also includes: determining that a capacity loss event has occurred in the SSD; sending the capacity loss event to the storage management device; and sending the second maximum available capacity of the SSD to the storage management device, the second maximum available capacity being the first maximum available capacity minus the capacity lost by the SSD due to the capacity loss event.
[0046] Exemplarily, the capacity loss events of the SSD include events such as bad blocks and Die failures of the SSD.
[0047] During the use of SSD, bad blocks or damage to the NandFlash media will cause the SSD available capacity to decrease, which will in turn affect the performance of the storage management device. Therefore, during the use of SSD, if bad blocks or Die failures occur, resulting in capacity loss, it is necessary to report to the storage management device through asynchronous events. At the same time, the increase in physical bad blocks will cause the maximum available capacity of the SSD to decrease, so the calculation of the maximum available capacity needs to subtract the capacity lost due to the failure.
[0048] In one possible implementation, the second maximum available capacity is calculated by the formula A=BCD, where A is the second maximum available capacity, B is the total flash memory capacity of the SSD, C is the system operating capacity of the SSD, and D is the capacity lost by the SSD due to a capacity loss event, and C does not include space used for garbage collection.
[0049] In the storage management method provided in the present application, the storage management device can obtain asynchronous events such as capacity loss caused by bad blocks and Die failures, and the storage management device cooperates with the SSD to process them, ensuring that the normal operation of the storage management device will not be affected by the capacity loss of the SSD.
[0050] In combination with the second aspect, in some implementations of the second aspect, the method further includes: determining that the second maximum available capacity is greater than a capacity required for data reconstruction of the SSD; and reconstructing data on the SSD.
[0051] After a capacity loss event caused by a bad block or die failure occurs, the SSD can periodically detect the available capacity in the disk. If the available capacity is greater than the capacity required to reconstruct the data, data reconstruction is initiated. If the available capacity is insufficient, wait for a period of time, such as waiting for the storage management device to migrate part of the data, and then check to determine whether the capacity is sufficient and whether data reconstruction can be initiated. It should be understood that the present application does not limit the level of data reconstruction, for example, data reconstruction can be performed at the die, chip, bank, row / column, etc.
[0052] In the storage management method provided in the present application, after an event of capacity loss caused by a bad block, Die failure, etc. occurs, the SSD performs data reconstruction to ensure that the normal operation of the storage management device is not affected by the capacity loss of the SSD.
[0053] In a third aspect, an embodiment of the present application provides a storage management device, which includes a unit for implementing the first aspect or any possible implementation method of the first aspect.
[0054] In a fourth aspect, an embodiment of the present application provides a storage management device, which includes a processor, which is used to couple with a memory, read and execute instructions and / or program codes in the memory to execute the first aspect or any possible implementation of the first aspect.
[0055] In a fifth aspect, an embodiment of the present application provides a storage management device, which includes a unit for implementing the second aspect or any possible implementation method of the second aspect.
[0056] In a sixth aspect, an embodiment of the present application provides an SSD, comprising a controller, the controller being coupled to a storage unit, the storage unit storing instructions, and when the instructions are executed by the controller, the controller executes the second aspect or any possible implementation of the second aspect.
[0057] In the seventh aspect, a storage management system is provided, which includes the aforementioned storage management device and SSD, wherein the storage management device is used to execute the method in the above-mentioned first aspect or any possible implementation of the first aspect, and the SSD is used to execute the method in the above-mentioned second aspect or any possible implementation of the second aspect.
[0058] In an eighth aspect, a storage management system method is provided, the system method comprising: an SSD generates a first maximum available capacity of the SSD, the first maximum available capacity being all flash memory capacity of the SSD minus the system operation capacity of the SSD, the system operation capacity not including the capacity of the SSD used for garbage collection; the SSD sends the first maximum available capacity to a storage management device; the storage management device obtains the first maximum available capacity; the storage management device operates the storage management device according to the first maximum available capacity.
[0059] In a ninth aspect, a computer program product comprising instructions is provided. When the instructions are executed by a storage management device, the storage management device executes the method in the first aspect and any one of the implementations of the first aspect.
[0060] In a tenth aspect, a computer program product comprising instructions is provided. When the instructions are executed by an SSD, the SSD executes the method in the second aspect and any one of the implementations of the second aspect.
[0061] In the eleventh aspect, a computer-readable storage medium is provided, characterized in that it includes computer program instructions. When the computer program instructions are executed by a storage management device, the storage management device executes the method in the above-mentioned first aspect and any one of the implementation methods of the first aspect.
[0062] By way of example, these computer-readable storages include, but are not limited to, one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), Flash memory, electrically EPROM (EEPROM), and hard drive.
[0063] Optionally, as an implementation manner, the above-mentioned storage medium may specifically be a non-volatile storage medium.
[0064] In the twelfth aspect, a computer-readable storage medium is provided, characterized in that it includes computer program instructions. When the computer program instructions are executed by an SSD, the SSD executes the method in the above-mentioned second aspect and any one of the implementation methods of the second aspect.
[0065] By way of example, these computer-readable storages include, but are not limited to, one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), Flash memory, electrically EPROM (EEPROM), and hard drive.
[0066] Optionally, as an implementation manner, the above-mentioned storage medium may specifically be a non-volatile storage medium. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 This is a schematic diagram of space utilization of a standard SSD provided by this application.
[0068] Figure 2 It is a schematic diagram of an application scenario of a storage management method provided in an embodiment of the present application.
[0069] Figure 3 It is a schematic diagram of an application scenario of another storage management method provided in an embodiment of the present application.
[0070] Figure 4 This is a schematic diagram of space utilization of an SSD provided in an embodiment of the present application.
[0071] Figure 5 It is a schematic diagram of an application scenario of another storage management method provided in an embodiment of the present application.
[0072] Figure 6 It is an exemplary flowchart of a storage management method provided in an embodiment of the present application.
[0073] Figure 7 It is an exemplary flowchart of another storage management method provided in an embodiment of the present application.
[0074] Figure 8 It is an exemplary flowchart of another storage management method provided in an embodiment of the present application.
[0075] Fig. 9 It is an exemplary flowchart of another storage management method provided in an embodiment of the present application.
[0076] Fig.10 This is a structural example diagram of a storage management device 1000 provided in an embodiment of the present application.
[0077] Fig.11 This is a structural example diagram of a storage management device 1100 provided in an embodiment of the present application.
[0078] Fig.12 This is a diagram showing an example structure of a computer device 1200 provided in an embodiment of the present application.
[0079] Fig.13 It is an example diagram of a computer program product provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present application.
[0081] In the embodiments of the present application, words such as "exemplary" and "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a concrete way.
[0082] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0083] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0084] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: including the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0085] Due to the characteristics of the flash memory (NandFlash) media used in solid state disks (SSDs), data cannot be rewritten in situ and can only be erased in batches and rewritten. Therefore, a portion of extra capacity needs to be reserved inside the SSD as over-provisioning (OP) for garbage collection of data in the disk. The size of the reserved OP will directly affect the write amplification (WA) in the disk, which in turn affects the performance and life of the SSD. Figure 1 This is a schematic diagram of space utilization of a standard SSD provided by the present application. The system operating capacity represents the space required by the system to operate the SSD. The maximum available capacity reported by the SSD to the storage management device is only 81.4%, and 18.6% is reserved as OP.
[0086] In order to meet the performance / lifespan specifications of the SSD, when reserving OP, the SSD will reserve space according to the worst business scenario, generally reserving 13% to 30% of the OP space. However, in most actual operation scenarios, the conditions are not as bad as the SSD preset scenarios, which results in over-configuration of the SSD OP space. At the same time, since the reserved OP space in the SSD is invisible and unusable to the storage management device, it causes a certain degree of space waste.
[0087] At the same time, due to the existence of the garbage collection (GC) mechanism inside the SSD, in general (random write model), a larger available OP space in the SSD can bring a smaller WA and provide better bandwidth performance. Similarly, a smaller available OP space in the SSD brings a larger WA and provides worse bandwidth performance.
[0088] Generally, SSDs use the space where data is not written as OP. Therefore, storage management devices can affect the available OP of SSDs by adjusting the write capacity, and further affect SSD performance. Under the same IO model, smaller write capacity brings larger SSD OP and provides better bandwidth performance.
[0089] Figure 2 It is a schematic diagram of an application scenario of a storage management method provided in an embodiment of the present application.
[0090] exist Figure 2 In the application scenario shown, users access data through applications. Computers that run these applications are called "application servers". Application server 100 can be a physical machine or a virtual machine. Physical application servers include but are not limited to desktop computers, servers, laptops, and mobile devices. Application servers access the storage system through fiber optic switch 110 to access data. It should be understood that switch 110 is an optional device, and application server 100 can also communicate directly with storage system 120 through the network. Alternatively, fiber optic switch 110 can also be replaced with an Ethernet switch, InfiniBand switch, RoCE (RDMA over Converged Ethernet) switch, etc.
[0091] Figure 2 The storage system 120 shown is a centralized storage system. The centralized storage system is characterized by having a unified entrance through which all data from external devices must pass, and this entrance is the engine 121 of the centralized storage system. The engine 121 is the core component of the centralized storage system, and many advanced functions of the storage system are implemented in it.
[0092] like Figure 2 As shown, the engine 121 has one or more controllers. Figure 2 Take the example of an engine containing two controllers. There is a mirror channel between controller 0 and controller 1. When controller 0 writes a copy of data into its memory 124, it can send a copy of the data to controller 1 through the mirror channel, and controller 1 stores the copy in its local memory 124. In this way, controller 0 and controller 1 back up each other. When controller 0 fails, controller 1 can take over the business of controller 0. When controller 1 fails, controller 0 can take over the business of controller 1, thereby avoiding the unavailability of the entire storage system 120 due to hardware failure. When 4 controllers are deployed in the engine 121, there is a mirror channel between any two controllers, so any two controllers back up each other.
[0093] The engine 121 also includes a front-end interface 125 and a back-end interface 126, wherein the front-end interface 125 is used to communicate with the application server 100, thereby providing storage services for the application server 100. The back-end interface 126 is used to communicate with the hard disk 134 to expand the capacity of the storage system. Through the back-end interface 126, the engine 121 can connect more hard disks 134, thereby forming a very large storage resource pool.
[0094] In hardware, such as Figure 2 As shown, the controller 0 includes at least a processor 123 and a memory 124. The processor 123 is a central processing unit (CPU) used to process data access requests from outside the storage system (server or other storage system), and also used to process requests generated inside the storage system. Exemplarily, when the processor 123 receives a write data request sent by the application server 100 through the front-end port 125, the data in these write data requests will be temporarily stored in the memory 124. When the total amount of data in the memory 124 reaches a certain threshold, the processor 123 sends the data stored in the memory 124 to the hard disk 134 through the back-end port for persistent storage.
[0095] The memory 124 refers to an internal memory that directly exchanges data with the processor. It can read and write data at any time and at a very fast speed. It serves as a temporary data storage for the operating system or other running programs. The memory includes at least two types of memories. For example, the memory can be either a random access memory or a read-only memory (ROM). For example, the random access memory is a dynamic random access memory (DRAM) or a storage class memory (SCM). DRAM is a semiconductor memory, and like most random access memories (RAM), it is a volatile memory device. SCM is a composite storage technology that combines the characteristics of traditional storage devices and memory. Storage class memory can provide faster read and write speeds than hard disks, but has a slower access speed than DRAM and is cheaper than DRAM in terms of cost. However, DRAM and SCM are only exemplary descriptions in this embodiment, and the memory can also include other random access memories, such as static random access memory (SRAM). As for the read-only memory, for example, it can be a programmable read only memory (PROM), an erasable programmable read only memory (EPROM), etc. In addition, the memory 124 can also be a dual in-line memory module or a dual-line memory module (DIMM), that is, a module composed of a dynamic random access memory (DRAM), or a solid state disk (SSD). In actual applications, multiple memories 124 and different types of memories 124 can be configured in the controller 0. This embodiment does not limit the number and type of memory 113. In addition, the memory 124 can be configured to have a power-saving function. The power-saving function means that when the system loses power and then powers on again, the data stored in the memory 124 will not be lost. The memory with a power-saving function is called a non-volatile memory.
[0096] The memory 124 stores software programs, and the processor 123 runs the software programs in the memory 124 to manage the hard disk. For example, the hard disk is abstracted into a storage resource pool, and then divided into LUNs for use by the server. The LUN here is actually the hard disk seen on the server. Of course, some centralized storage systems are also file servers themselves, which can provide shared file services for the server.
[0097] Controller 1 (and others Figure 2 The hardware components and software structure of the controller (not shown in the figure) are similar to those of the controller 0 and will not be repeated here.
[0098] Figure 2 What is shown is a centralized storage system with a disk-controller separation. In this system, the engine 121 may not have a hard disk slot, and the hard disk 134 needs to be placed in the hard disk frame 130, and the back-end interface 126 communicates with the hard disk frame 130. The back-end interface 126 exists in the engine 121 in the form of an adapter card, and two or more back-end interfaces 126 can be used simultaneously on one engine 121 to connect multiple hard disk frames. Alternatively, the adapter card can also be integrated on the motherboard, in which case the adapter card can communicate with the processor 112 via a high-speed serial expansion bus (peripheral component interface express, PCIe).
[0099] It should be noted that Figure 2 Only one engine 121 is shown in the figure. However, in actual applications, the storage system may include two or more engines 121, and redundancy or load balancing is performed between the multiple engines 121.
[0100] The hard disk frame 130 includes a control unit 131 and a plurality of hard disks 134. The control unit 131 may have various forms. The number of control units 131 may be one, two or more. In some embodiments, the hard disk frame 130 does not have a control unit 131 inside, but the network card 104 performs data reading and writing, address conversion and other computing functions. In this case, the network card 104 is an intelligent network card. It may include a CPU and memory.
[0101] According to the type of communication protocol between the engine 121 and the hard disk frame 130, the hard disk frame 130 may be a serial attached small computer system interface (SAS) hard disk frame, or a non-volatile memory express (NVMe) hard disk frame, an Internet protocol (IP) hard disk frame, and other types of hard disk frames. The SAS hard disk frame adopts the SAS3.0 protocol, and each frame supports 25 SAS hard disks. The engine 121 is connected to the hard disk frame 130 through an onboard SAS interface or a SAS interface module. The NVMe hard disk frame is more like a complete computer system, and the NVMe hard disk is inserted in the NVMe hard disk frame. The NVMe hard disk frame is then connected to the engine 121 through a remote direct memory access (RDMA) port.
[0102] Figure 3 It is a schematic diagram of an application scenario of another storage management method provided in an embodiment of the present application.
[0103] Figure 3 The system is a centralized storage system with integrated disk and controller. In the system, the engine 121 has a hard disk slot, and the hard disk 134 can be directly deployed in the engine 121. The back-end interface 126 is an optional configuration. When the storage space of the system is insufficient, more hard disks or hard disk frames can be connected through the back-end interface 126.
[0104] Figure 3 For other parts, see Figure 2 The introduction in , this application will not repeat it again.
[0105] The storage management device is composed of the engine 121 of the storage system 120 and the software running on the engine 121 (not shown in Figure 2 and Figure 3 It should be understood that in some possible application scenarios, the storage management device may also be directly referred to as a storage system, and this name should not be construed as a limitation to the present application.
[0106] It should be understood that Figure 2 and Figure 3 The centralized storage system shown is only an example. The storage management method provided in this application can also be applied to a distributed storage system. This example should not be understood as a limitation to this application.
[0107] Below, this application Figure 2 and Figure 3 Based on the application scenario shown, the process of the storage management method is described in detail.
[0108] Figure 4 : is a schematic diagram of SSD space utilization provided by an embodiment of the present application. The SSD will report all capacity except the system operation capacity of the SSD to the storage management device. The storage management device can cooperate with the SSD to dynamically adjust the capacity utilization of the SSD according to the operation status to maximize the use of the physical medium capacity of the SSD. At the same time, the SSD will use the space where valid data is not written as the disk OP. For example, the SSD in the embodiment of the present application can be Figure 2 or Figure 3 Hard disk 134 is shown.
[0109] Figure 5 1 is a schematic diagram of an application scenario of another storage management method provided in an embodiment of the present application. The storage management system corresponding to the storage management method provided in an embodiment of the present application includes a storage management device and an SSD.
[0110] The main features of SSD include:
[0111] 1. The SSD calculates the maximum available capacity that can be provided to the storage management device and reports all available space (the space after removing the SSD system operating capacity, such as Figure 4 The variable usable capacity portion) is given to the storage management device.
[0112] 2. The SSD regularly collects statistics on disk operation under the current business model, and predicts the operating performance under the current capacity utilization and / or different capacity utilization under the current business load model, and reports the performance prediction data to the storage management device to assist the storage management device in adjusting the capacity utilization of the SSD.
[0113] 3. Real-time statistics of the internal operating status of the SSD are collected and the data is reported to the storage management device so that the storage management device can perceive the end-to-end system operating status.
[0114] 4. The SSD can use the part of the capacity that the storage management device has not written data to as the SSD internal OP. Therefore, the storage management device only needs to adjust the data capacity written to the SSD to control the size of the actual OP in the SSD.
[0115] 5. When the SSD has a capacity loss event such as a bad block or die failure, it actively reports the capacity loss asynchronous event to the storage management device and updates the maximum available capacity. The storage management device cooperates with the SSD to handle the capacity loss event.
[0116] The main functions of the storage management device include:
[0117] 1. Obtain the maximum available capacity, performance prediction data, and operation statistics of the SSD to perceive the current operation status of the storage management device.
[0118] 2. Based on the operating conditions and business load, and on the premise of meeting performance requirements, decide on the SSD capacity adjustment strategy and send it to the SSD.
[0119] 3. Obtain the capacity loss event reported by the SSD. After the storage management device queries the updated maximum available capacity, readjust the SSD capacity utilization and migrate the data on the SSD with lost capacity to other locations.
[0120] Figure 6 It is an exemplary flowchart of a storage management method provided in an embodiment of the present application.
[0121] 610 , the SSD generates a first maximum available capacity.
[0122] The first maximum available capacity is the total flash memory capacity of the SSD minus the capacity required by the system running the SSD. Exemplarily, the first maximum available capacity can be calculated by the formula A=BC, where A is the first maximum available capacity, B is the total flash memory capacity of the SSD, and C is the space required by the system running the SSD, excluding the space used for garbage collection.
[0123] It should be understood that all the flash memory capacity of the SSD is the physical capacity of the SSD. The SSD itself needs system operating capacity to implement the on-disk business logic, and the system operating capacity is the capacity required by the system running the SSD. The system operating capacity can include the capacity overhead of the SSD to implement the on-disk redundant array of independent drives (RAID) and the data space required for other functions, but does not include the OP used for garbage collection.
[0124] 620. The SSD reports the first maximum available capacity to the storage management device.
[0125] 630. The storage management device operates the device according to the first maximum available capacity.
[0126] In the storage management method provided in the present application, the storage management device can obtain all available space except the minimum space required for the operation of the SSD system for operation. The SSD does not need to reserve an OP for garbage collection separately. Instead, the storage management device allocates this space to the SSD, which can fully utilize the storage space of the SSD.
[0127] Figure 7 It is an exemplary flowchart of another storage management method provided in an embodiment of the present application.
[0128] 710. The storage management device queries the maximum available capacity of the SSD.
[0129] When the SSD is connected, the storage management device can identify the SSD as a hard disk supporting the technical solution provided by the present application through the interface. The storage management device queries the maximum available capacity of the SSD through the interface.
[0130] Optionally, the storage management device may query the maximum available capacity of the SSD periodically or at a fixed time point. The present application does not limit the specific query method.
[0131] 720, SSD calculates the maximum available capacity.
[0132] The physical capacity of SSD comes from all the physical capacity of NandFlash media. SSD itself needs system operation capacity to implement the business logic in the disk. System operation capacity is the capacity required by the system running SSD. The system operation capacity can include the capacity overhead of SSD to implement RAID in the disk and the data space required for other functions, but does not include OP used for garbage collection. For this part of the capacity, please refer to Figure 4 system operating capacity.
[0133] NandFlash media may have some physical bad blocks, and the number of bad blocks will gradually increase during use. The increase in physical bad blocks will cause the maximum available capacity of the SSD to decrease, so the calculation of the maximum available capacity needs to subtract the capacity lost due to bad blocks. Therefore, the maximum available capacity that can be used by the storage management device reported by the SSD = all NandFlash capacity - the system operation capacity of the SSD - the physical capacity lost due to the failure. It should be understood that if the NandFlash media has no bad blocks, the maximum available capacity that can be used by the storage management device reported by the SSD = all NandFlash capacity - the system operation capacity of the SSD.
[0134] Exemplarily, the SSD can actively trigger capacity calculation and report updated data when the storage management device queries the operating status or maximum available capacity of the SSD. Alternatively, the maximum available capacity can be regularly updated through a timer for SSD background statistics of operating status. This application does not limit the mechanism for triggering the calculation of the maximum available capacity of the SSD.
[0135] 730, the SSD reports the maximum available capacity to the storage management device.
[0136] Figure 8 It is an exemplary flowchart of another storage management method provided in an embodiment of the present application.
[0137] 810. The storage management device obtains performance prediction data.
[0138] During operation, the storage management device can periodically query the maximum available capacity of the SSD and obtain the performance prediction data of the SSD under the current input output (IO) model. In addition, the storage management device can also periodically obtain the operation statistics of the SSD, which include the read and write bandwidth, the current space usage of the SSD and / or the write amplification factor of the SSD corresponding to different capacity utilization of the SSD.
[0139] 820, SSD reports performance prediction data.
[0140] The SSD can count the current IO model and predict the current IO model, the maximum performance that can be provided under the current disk capacity utilization and / or the maximum performance that can be provided under different capacity utilizations. Exemplarily, the prediction methods used include neural network models, statistical-based data feedback, mapping tables, and other methods.
[0141] Exemplarily, the performance prediction data reported by the SSD can be divided into two categories. The first type of performance prediction data indicates the maximum available performance that the SSD can provide under the current IO model and the current capacity utilization. The storage management device can use this prediction value to understand the maximum performance that can be provided under the current disk capacity utilization. The second type of performance prediction data takes the current capacity utilization as the baseline, and indicates the maximum performance that can be provided by increasing or decreasing the capacity utilization. It is estimated in gears. The storage management device can use this prediction value to evaluate the maximum capacity available to meet the current performance requirements. Optionally, the SSD can report these two types of performance prediction data to the storage management device at the same time, or it can choose only one of them to report.
[0142] In a possible implementation, the SSD can report these two types of performance prediction data at the same time. The data reported by the SSD is shown in Table 1, where the performance prediction data (current utilization) belongs to the first type of performance prediction data, and the performance prediction data from -5% to +5% belongs to the second type of performance prediction data. It should be understood that the performance prediction data from -5% to +5% is only an example, and it can also be performance prediction data from -10% to +5%, and performance prediction data from -8% to +8%. This example should not be understood as a limitation on this application. The written capacity and SSD WA in Table 1 are operating statistics and are optional reporting data.
[0143] Table 1
[0144]
[0145]
[0146] In a possible implementation, the SSD only reports the second type of performance prediction data, and the data reported by the SSD is shown in Table 2, wherein the performance prediction data from -2% to +2% belongs to the second type of performance prediction data. It should be understood that the second type of performance prediction data in Table 2 is only an example, and can also be expressed in the form shown in Table 3, that is, each performance prediction data corresponds to a specific capacity utilization, or can also be expressed in the form shown in Table 4, that is, each performance prediction data corresponds to a specific capacity utilization.
[0147] Table 2
[0148]
[0149] Table 3
[0150]
[0151]
[0152] Table 4
[0153]
[0154] In a possible implementation, the SSD only reports the first type of performance prediction data. The data reported by the SSD is shown in Table 5, wherein the performance prediction data (current utilization) belongs to the first type of performance prediction data.
[0155] Table 5
[0156]
[0157]
[0158] Optionally, the storage management device may also first send the current performance requirement to the SSD, and the SSD evaluates the maximum capacity available under the current performance requirement based on the performance prediction data, and then sends the capacity utilization data to the storage management device. Exemplarily, the performance requirement sent by the storage management device to the SSD is 200MB / S, and the SSD predicts that under the current IO model, the maximum available performance that the SSD can provide is 250MB / S when the capacity utilization is 68%, the maximum available performance that the SSD can provide is 240MB / S when the capacity utilization is 69%, the maximum available performance that the SSD can provide is 200MB / S when the capacity utilization is 71%, and the maximum available performance that the SSD can provide is 190MB / S when the capacity utilization is 72%. The SSD can choose to send the maximum capacity utilization that is available under the performance requirement of the current storage management device to the storage management device, that is, send the capacity utilization of 71% to the storage management device.
[0159] 830. The storage management device determines an SSD capacity utilization plan.
[0160] The storage management device can select the adjustment scheme with the highest SSD capacity utilization under the condition of meeting the performance requirements according to the second type of performance prediction data. For example, the performance requirement of the storage management device is 200MB / S, and the performance prediction data obtained by the storage management device include: the maximum available performance that the SSD can provide at a capacity utilization of 68% is 250MB / S, the maximum available performance that the SSD can provide at a capacity utilization of 69% is 240MB / S, the maximum available performance that the SSD can provide at a capacity utilization of 71% is 200MB / S, and the maximum available performance that the SSD can provide at a capacity utilization of 72% is 190MB / S. The storage management device can select the maximum available capacity utilization (capacity utilization waterline of the SSD) that meets the performance requirements of the current storage management device for adjustment, that is, use 71% of the capacity utilization as the capacity adjustment scheme. The storage management device adjusts the SSD capacity utilization scheme based on the calculated capacity utilization waterline of the SSD. If higher SSD performance is required and the SSD capacity utilization needs to be reduced, some of the written data is directly deleted and the capacity utilization is controlled below the allocated waterline. If the current performance is higher than the performance requirement, the SSD capacity utilization can be improved. In this case, the write data capacity is directly increased and the capacity utilization is controlled at the allocated waterline.
[0161] The storage management device may also select an adjustment scheme for the maximum performance that can be provided when using a fixed capacity based on the first type of performance prediction data. For example, when the current SSD capacity utilization rate remains unchanged, the maximum available performance of the SSD obtained by the storage management device is 500MB / S, which is greater than the 300MB / s required by the storage management device. The extra performance can provide users with better service quality, such as increasing the performance ceiling, or making the excess performance available to other users.
[0162] Optionally, the storage management device pursues optimal performance when the end-to-end OP (storage management device OP + SSD OP) is certain, and the end-to-end WA (storage management device WA × SSD WA) can be considered to be minimal. Exemplarily, the OP of the storage management device and the OP of the SSD account for 10% of the maximum available capacity of the SSD. In the first solution, when the OP of the storage management device accounts for 5% of the maximum available capacity and the OP of the SSD accounts for 5% of the maximum available capacity, the WA of the storage management device is 2, and the WA of the SSD is 2. At this time, the storage management device WA × SSD WA = 4. In the second solution, when the OP of the storage management device accounts for 9% of the maximum available capacity and the OP of the SSD accounts for 1% of the maximum available capacity, the WA of the storage management device is 1, and the WA of the SSD is 10. At this time, the storage management device WA × SSD WA = 10. 4<10, the first solution is better than the second solution, and the storage management device can consider adjusting the capacity utilization of the SSD according to the first solution. It should be understood that the first solution may not be the global optimal solution, and the storage management device can gradually adjust the OP allocation solution to find a global optimal solution.
[0163] Fig. 9 It is an exemplary flowchart of another storage management method provided in an embodiment of the present application.
[0164] 910, SSD reports capacity loss event.
[0165] During the use of SSD, bad blocks or damage to the NandFlash media will cause the SSD available capacity to decrease, thus affecting the performance of the storage system. Therefore, during the use of SSD, if bad blocks or Die failures occur, resulting in capacity loss, it needs to be reported to the storage management device through asynchronous events.
[0166] 920, the storage management device queries the maximum available capacity.
[0167] After receiving the asynchronous event, the storage management device queries the current maximum available capacity of the SSD through the interface and updates the actual maximum available capacity of the SSD. The actual maximum available capacity of the SSD = all NandFlash capacity - the system operating capacity of the SSD - the capacity lost by the SSD due to the capacity loss event.
[0168] 930, data migration.
[0169] If the maximum available capacity of the SSD is less than or equal to the current written capacity after removing the lost capacity, the storage management device needs to migrate part or all of the data to other disks. It should be understood that the other disks can be SSDs or mechanical hard disks and other storage media, as long as they are managed by the same storage system as the current SSD. This application does not limit the specific types of other disks.
[0170] 940, data reconstruction.
[0171] The SSD periodically checks the available capacity in the disk. If the available capacity is greater than the capacity required for reconstructing the data, data reconstruction is started. If the available capacity is insufficient, it waits for a period of time, that is, waits for step 930. After the storage management device migrates part or all of the data to other disks, it checks and determines whether the capacity is sufficient and whether data reconstruction can be started. It should be understood that the present application does not limit the level of data reconstruction. For example, it can be data reconstruction at the level of bare crystal (die), particle (chip), array (bank), row (row) / column (column), etc.
[0172] It should be understood that any scenario that requires data storage can use the storage management method provided in the embodiments of the present application to improve the capacity utilization of the SSD and reduce the media cost.
[0173] The above describes the storage management method according to the embodiment of the present application. Fig.10 and Fig.11 The apparatus and device according to the embodiments of the present application are described.
[0174] The present application also provides a computer storage medium in which program instructions are stored. When the program is executed, it may include: Figure 5-9 Part or all of the steps of the storage management method in the corresponding embodiment.
[0175] Fig.10 The following is a structural example diagram of a storage management device 1000 provided in an embodiment of the present application. The storage management device 1000 may include an acquisition module 1010 and a processing module 1020 .
[0176] The storage management device provided in the present application can be set in a storage management device and connected to an SSD. The acquisition module is used to acquire the first maximum available capacity of the SSD, where the first maximum available capacity is the total flash memory capacity of the SSD minus the system operation capacity of the SSD, and the system operation capacity does not include the capacity of the SSD used for garbage collection; the processing module is used to operate the storage management device according to the first maximum available capacity.
[0177] Optionally, in some implementations, the acquisition module is also used to acquire at least one performance prediction data, and the at least one performance prediction data corresponds one-to-one to the capacity utilization of at least one of the SSDs; the processing module is also used to determine the performance requirements of the storage management device; the processing module is also used to adjust the capacity utilization of the SSD based on the first maximum available capacity, the at least one performance prediction data and the performance requirement.
[0178] Optionally, in some implementations, the processing module is specifically used to: delete or add data in the SSD.
[0179] Optionally, in some implementations, the acquisition module is also used to acquire at least one write amplification factor of the SSD, and the at least one write amplification factor of the SSD corresponds one-to-one to the at least one capacity utilization; the processing module is specifically used to: adjust the capacity utilization of the SSD according to at least one write amplification factor of the storage management device, at least one write amplification factor of the SSD, the first maximum available capacity, the at least one performance prediction data and the performance requirement, and the at least one write amplification factor of the storage management device corresponds one-to-one to the at least one write amplification factor of the SSD.
[0180] Optionally, in some implementations, the acquisition module is further used to obtain a capacity loss event reported by the SSD; the acquisition module is further used to obtain a second maximum available capacity of the SSD, where the second maximum available capacity is the first maximum available capacity minus the capacity lost by the SSD due to the capacity loss event; the processing module is further used to operate the storage management device according to the second maximum available capacity.
[0181] Optionally, in some implementations, the acquisition module is also used to obtain the capacity of the data written in the SSD; the processing module is also used to determine that the second maximum available capacity is less than or equal to the capacity of the data written in the SSD; the processing module is also used to migrate the written data.
[0182] Fig.11 The following is a structural example diagram of a storage management device 1100 provided in an embodiment of the present application. The storage management device 1100 may include a processing module 1110 and a sending module 1120 .
[0183] An embodiment of the present application also provides a storage management device, which is arranged in an SSD and connected to a storage management device.
[0184] Among them, the processing module is used to generate the first maximum available capacity of the SSD, and the first maximum available capacity is all the flash memory capacity of the SSD minus the system operation capacity of the SSD, and the system operation capacity does not include the capacity of the SSD used for garbage collection; the sending module is used to send the first maximum available capacity to the storage management device.
[0185] Optionally, in some implementations, the processing module is further used to generate at least one performance prediction data, and the at least one performance prediction data corresponds one-to-one to the capacity utilization of at least one of the SSDs; the sending module is further used to send the at least one performance prediction data to the storage management device.
[0186] Optionally, in some implementations, the sending module is further used to send at least one write amplification factor of the SSD to the storage management device, and the at least one write amplification factor of the SSD corresponds one-to-one to the at least one capacity utilization.
[0187] Optionally, in some implementations, the processing module is further used to determine whether a capacity loss event has occurred in the SSD; the sending module is further used to send the capacity loss event to the storage management device; the sending module is further used to send the second maximum available capacity of the SSD to the storage management device, wherein the second maximum available capacity is the first maximum available capacity minus the capacity lost by the SSD due to the capacity loss event.
[0188] Optionally, in some implementations, the processing module is further used to determine that the second maximum available capacity is greater than the capacity required for data reconstruction of the SSD; the processing module is further used to reconstruct data on the SSD.
[0189] Fig.12 This is a diagram showing an exemplary structure of a computer device 1200 provided in an embodiment of the present application. The computer device 1200 includes a processor 1202 , a communication interface 1203 , and a memory 1204 .
[0190] The method disclosed in the above embodiment of the present application can be applied to the processor 1202, or implemented by the processor 1202. The processor 1202 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc. In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor 1202 or an instruction in the form of software. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution.
[0191] The memory 1204 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct rambus RAM (DRRAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0192] The processor 1202, the memory 1204 and the communication interface 1203 can communicate with each other via a bus. The memory 1204 stores executable code, and the processor 1202 reads the executable code in the memory 1204 to execute the corresponding method. The memory 1204 may also include an operating system and other software modules required for running processes. The operating system may be LINUX TM , UNIX TM , WINDOWS TM wait.
[0193] For example, the executable code in the memory 1204 is used to implement Figure 5-9 The method shown in the figure, the processor 1202 reads the executable code in the memory 1204 to execute Figure 5-9 The method shown.
[0194] In some embodiments of the present application, the disclosed methods may be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or encoded on other non-transitory media or articles of manufacture. Fig.13Schematically illustrates a conceptual partial view of an example computer program product arranged according to at least some embodiments presented herein, the example computer program product comprising a computer program for executing a computer process on a computing device. In one embodiment, the example computer program product 1400 is provided using a signal bearing medium 1401. The signal bearing medium 1401 may include one or more program instructions 1402, which when executed by one or more processors may provide the above-described Figure 5-9 Thus, for example, reference to Figure 5-9 In the embodiment shown in , one or more features thereof may be borne by one or more instructions associated with the signal bearing medium 1401 .
[0195] In some examples, the signal bearing medium 1401 may include a computer readable medium 1403, such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM) or a random access memory (RAM), etc. In some embodiments, the signal bearing medium 1401 may include a computer recordable medium 1404, such as, but not limited to, a memory, a read / write (R / W) CD, a R / W DVD, etc. In some embodiments, the signal bearing medium 1401 may include a communication medium 1405, such as, but not limited to, a digital and / or analog communication medium (e.g., a fiber optic cable, a waveguide, a wired communication link, a wireless communication link, etc.). Thus, for example, the signal bearing medium 1401 may be communicated by a wireless form of the communication medium 1405 (e.g., a wireless communication medium that complies with the IEEE 802.11 standard or other transmission protocol). One or more program instructions 1402 may be, for example, computer executable instructions or logic implementation instructions. In some examples, the aforementioned computing device may be configured to provide various operations, functions, or actions in response to program instructions 1402 communicated to the computing device by one or more of computer-readable media 1403, computer-recordable media 1404, and / or communication media 1405. It should be understood that the arrangement described herein is only for the purpose of example. Thus, it will be appreciated by those skilled in the art that other arrangements and other elements (e.g., machines, interfaces, functions, sequences, and functional groups, etc.) can be used instead, and some elements can be omitted together according to the desired results. In addition, many of the described elements are functional entities that can be implemented as discrete or distributed components, or in any appropriate combination and position to be implemented in conjunction with other components.
[0196] An embodiment of the present application also provides a storage management system, which is composed of a storage management device and an SSD, wherein the storage management device is used to execute the steps of the method performed by the storage management device in the aforementioned method embodiment, and the SSD is used to execute the steps of the method performed by the SSD in the aforementioned method embodiment.
[0197] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0198] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0199] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0200] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0201] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0202] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0203] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0204] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0205] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0206] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0207] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0208] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0209] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0210] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A storage management method, characterized in that: The method is performed by a storage management device or a storage management apparatus provided in the storage management device, the storage management device is connected to a solid state drive SSD, and includes: Obtaining a first maximum available capacity of the SSD, where the first maximum available capacity is the total flash memory capacity of the SSD minus the system operation capacity of the SSD, where the system operation capacity does not include the capacity of the SSD used for garbage collection; The storage management device is operated according to the first maximum available capacity.
2. The method according to claim 1, characterized in that The method further comprises: Acquire at least one performance prediction data, where the at least one performance prediction data corresponds one-to-one to a capacity utilization rate of at least one of the SSDs; Determining performance requirements of the storage management device; The capacity utilization of the SSD is adjusted according to the first maximum available capacity, the at least one performance prediction data and the performance requirement.
3. The method according to claim 2, characterized in that The adjusting the capacity utilization of the SSD includes: Delete or add data in the SSD.
4. The method according to claim 2 or 3, characterized in that: The method further comprises: Acquire at least one write amplification factor of the SSD, where the at least one write amplification factor of the SSD corresponds one-to-one to the at least one capacity utilization; The adjusting the capacity utilization of the SSD according to the first maximum available capacity, the at least one performance prediction data and the performance requirement includes: The capacity utilization of the SSD is adjusted according to at least one write amplification factor of the storage management device, at least one write amplification factor of the SSD, the first maximum available capacity, the at least one performance prediction data and the performance requirement, and the at least one write amplification factor of the storage management device corresponds one-to-one to the at least one write amplification factor of the SSD.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Obtaining a capacity loss event reported by the SSD; Acquire a second maximum available capacity of the SSD, where the second maximum available capacity is the first maximum available capacity minus the capacity lost by the SSD due to the capacity loss event; The storage management device is operated according to the second maximum available capacity.
6. The method according to claim 5, characterized in that The method further comprises: Obtaining the capacity of the SSD in which data has been written; Determine that the second maximum available capacity is less than or equal to the capacity of the SSD to which data has been written; The written data is migrated.
7. A storage management method, characterized in that: The method is performed by a solid state drive SSD or a storage management device arranged in the SSD, the SSD is connected to the storage management device, and the method includes: Generate a first maximum available capacity of the SSD, where the first maximum available capacity is the total flash memory capacity of the SSD minus the system operation capacity of the SSD, where the system operation capacity does not include the capacity of the SSD used for garbage collection; The first maximum available capacity is sent to the storage management device.
8. The method according to claim 7, characterized in that The method further comprises: Generate at least one performance prediction data, wherein the at least one performance prediction data corresponds to a capacity utilization rate of at least one of the SSDs; The at least one performance prediction data is sent to the storage management device.
9. The method according to claim 7 or 8, characterized in that: The method further comprises: At least one write amplification factor of the SSD is sent to the storage management device, where the at least one write amplification factor of the SSD corresponds one-to-one to the at least one capacity utilization.
10. The method according to any one of claims 7 to 9, characterized in that: Before generating the first maximum available capacity of the SSD, the method further includes: Determining that a capacity loss event occurs on the SSD; sending the capacity loss event to the storage management device; A second maximum available capacity of the SSD is sent to the storage management device, where the second maximum available capacity is the first maximum available capacity minus the capacity lost by the SSD due to the capacity loss event.
11. The method according to claim 10, characterized in that The method further comprises: Determining that the second maximum available capacity is greater than a capacity required by the SSD for data reconstruction; Data is reconstructed on the SSD.
12. A storage management device, characterized in that: include: an acquisition module, configured to acquire a first maximum available capacity of the SSD, where the first maximum available capacity is the total flash memory capacity of the SSD minus the system operation capacity of the SSD, where the system operation capacity does not include the capacity of the SSD used for garbage collection; A processing module is used to operate the storage management device according to the first maximum available capacity.
13. The device according to claim 12, characterized in that The acquisition module is further used to acquire at least one performance prediction data, where the at least one performance prediction data corresponds to a capacity utilization rate of at least one of the SSDs; The processing module is further used to determine the performance requirements of the storage management device; The processing module is further configured to adjust the capacity utilization of the SSD according to the first maximum available capacity, the at least one performance prediction data and the performance requirement.
14. The device according to claim 13, characterized in that The processing module is specifically used for: Delete or add data in the SSD.
15. The device according to claim 13 or 14, characterized in that The acquisition module is further used to acquire at least one write amplification factor of the SSD, where the at least one write amplification factor of the SSD corresponds one-to-one to the at least one capacity utilization rate; The processing module is specifically used for: The capacity utilization of the SSD is adjusted according to at least one write amplification factor of the storage management device, at least one write amplification factor of the SSD, the first maximum available capacity, the at least one performance prediction data and the performance requirement, and the at least one write amplification factor of the storage management device corresponds one-to-one to the at least one write amplification factor of the SSD.
16. The device according to any one of claims 12 to 15, characterized in that The acquisition module is further used to acquire the capacity loss event reported by the SSD; The acquisition module is further used to acquire a second maximum available capacity of the SSD, where the second maximum available capacity is the first maximum available capacity minus the capacity lost by the SSD due to the capacity loss event; The processing module is further configured to operate the storage management device according to the second maximum available capacity.
17. The device according to claim 16, characterized in that The acquisition module is further used to acquire the capacity of the SSD in which data has been written; The processing module is further configured to determine that the second maximum available capacity is less than or equal to the capacity of the SSD to which data has been written; The processing module is further used to migrate the written data.
18. A storage management device, characterized in that: include: A processing module, configured to generate a first maximum available capacity of the SSD, where the first maximum available capacity is the total flash memory capacity of the SSD minus the system operation capacity of the SSD, where the system operation capacity does not include the capacity of the SSD used for garbage collection; A sending module is used to send the first maximum available capacity to the storage management device.
19. The device according to claim 18, characterized in that The processing module is further used to generate at least one performance prediction data, wherein the at least one performance prediction data corresponds to a capacity utilization rate of at least one of the SSDs; The sending module is further used to send the at least one performance prediction data to the storage management device.
20. The device according to claim 18 or 19, characterized in that The sending module is further used to send at least one write amplification factor of the SSD to the storage management device, and the at least one write amplification factor of the SSD corresponds one-to-one to the at least one capacity utilization.
21. The device according to any one of claims 18 to 20, characterized in that The processing module is further used to determine that a capacity loss event occurs in the SSD; The sending module is further used to send the capacity loss event to the storage management device; The sending module is further used to send the second maximum available capacity of the SSD to the storage management device, where the second maximum available capacity is the first maximum available capacity minus the capacity lost by the SSD due to the capacity loss event.
22. The device according to claim 21, characterized in that The processing module is further used to determine that the second maximum available capacity is greater than the capacity required by the SSD for data reconstruction; The processing module is also used to reconstruct data on the SSD.
23. A storage management system, characterized in that: It comprises a storage management device and an SSD; wherein the storage management device is used to execute the method as claimed in any one of claims 1 to 6, and the SSD is used to execute the method as claimed in any one of claims 7 to 11.
24. A storage management system method, characterized in that: include: The SSD generates a first maximum available capacity of the SSD, where the first maximum available capacity is the total flash memory capacity of the SSD minus the system operation capacity of the SSD, where the system operation capacity does not include the capacity of the SSD used for garbage collection; The SSD sends the first maximum available capacity to the storage management device; The storage management device acquires the first maximum available capacity; The storage management device operates the storage management device according to the first maximum available capacity.
25. A computer readable medium, characterized in that The computer readable medium stores a program code, and when the computer program code is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.
26. A computer readable medium, characterized in that The computer readable medium stores a program code, and when the computer program code is executed on a computer, the computer is caused to execute the method according to any one of claims 7 to 11.
Citation Information
Cited By
Storage management method and apparatus
EP4679249A1
Storage management method and apparatus
WO2024198470A1
