Storage medium management method and device, memory and system
By moving the storage control unit and FTL algorithm to the host side and having the memory actively report status information, the problems of RAID strategy and wear leveling control in terminal storage media management are solved, achieving efficient and flexible storage media management and data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-10-18
- Publication Date
- 2026-04-21
AI Technical Summary
During the architecture optimization of terminal storage media, the host cannot perceive the data arrangement inside the storage media, which makes it difficult to control RAID strategies and wear leveling. In addition, the existing methods of obtaining status information are inefficient, affecting the stability of data transmission and management.
By moving the storage control unit and FTL algorithm to the host side, and having the memory actively report media information, the management device directly stores and utilizes status information, simplifying the interaction process and improving information acquisition efficiency and link utilization.
It achieves efficient and flexible storage media management, reduces command interaction overhead, improves the efficiency of obtaining and managing storage media status information, and enhances data transmission efficiency and stability.
Smart Images

Figure CN121900681A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to methods, apparatus, memory and systems for managing storage media. Background Technology
[0002] With the development of terminal technology, the types of terminals are becoming increasingly diverse. Different types of terminals have varying requirements for storage media capacity and performance, but their functions share certain commonalities. Therefore, by optimizing the architecture and standardizing the storage interfaces of different types of terminals, costs in design and production can be saved, while also providing greater flexibility. However, in this approach, since the host cannot perceive the data arrangement within the storage media, issues arise regarding redundant array of independent disks (RAID) strategies and wear leveling control among multiple devices. Therefore, the storage control unit and the corresponding flash translation layer (FTL) algorithm are moved upwards. How to manage the storage media under these circumstances becomes a pressing problem to be solved. Summary of the Invention
[0003] This application provides a method, apparatus, memory, and system for managing storage media, the technical solution of which is as follows.
[0004] In a first aspect, a method for managing a storage medium is provided, the method comprising: a management device receiving storage medium information reported by a memory, the storage medium information including status information of the storage medium; and storing the status information in a storage area of the management device so that the management device can use the status information to manage the storage medium.
[0005] In the method provided in this application, the memory actively reports the media information of the storage medium in the memory to the management device. The management device does not need to issue commands to the memory to obtain the status information of the storage medium, which simplifies the interaction process and improves the efficiency of the management device in obtaining the status information of the storage medium. Furthermore, since the management device no longer issues commands to obtain status information, no additional command interaction overhead is introduced, reducing the occupancy of the link between the management device and the memory and improving the link utilization.
[0006] In one possible implementation, the storage medium includes multiple storage spaces, and the storage area includes multiple memory units. Storing the status information into the storage area of the management device includes: storing the status information of the storage space into the memory unit corresponding to the storage space.
[0007] In one possible implementation, the media information further includes identification information of the storage medium, which is used by the management device to store the status information of the storage medium in a queue in the storage area.
[0008] This application is not limited to the method of storing state information in the storage area. State information can be stored either in the corresponding memory unit or in a queue based on the identification information of the storage medium, offering high flexibility in storing state information. Furthermore, different storage methods can have corresponding management methods, resulting in high management flexibility and wide applicability.
[0009] In one possible implementation, the medium information is reported by the memory when the state of the storage medium changes. This approach triggers the memory to report the storage medium's state information as soon as its state changes, providing strong real-time performance. This not only improves management efficiency but also makes the state information used by the management device when managing the storage medium more accurate, thus enhancing management accuracy.
[0010] In one possible implementation, the method further includes: establishing or updating the flash translation layer (FTL) mapping relationship corresponding to the storage medium based on the status information.
[0011] In one possible implementation, the storage area is a double-data-rate synchronous dynamic random access memory (DDR SDRAM) storage area or a random access memory (RAM) storage area.
[0012] Secondly, a method for managing a storage medium is provided, the method comprising: acquiring status information of the storage medium; reporting media information of the storage medium to a management device, the media information including status information of the storage medium, the status information being stored by the management device in the storage area of the management device, so that the management device can use the status information to manage the storage medium.
[0013] By proactively reporting the storage medium information in the memory to the management device, the management device no longer needs to issue commands to obtain the storage medium's status information, simplifying the interaction process and improving the efficiency of the management device in obtaining the storage medium's status information. Furthermore, since the management device no longer issues commands to obtain status information, no additional command interaction overhead is introduced, reducing the command's impact on the link between the management device and the memory, and improving link utilization.
[0014] In one possible implementation, reporting the status information of the storage medium to the management device includes: reporting the status information to the management device when the status of the storage medium changes. Reporting the status information of the storage medium when its status changes provides strong real-time performance, which not only improves management efficiency but also makes the status information used by the management device when managing the storage medium more accurate, thus improving management accuracy.
[0015] In one possible implementation, the media information further includes identification information of the storage medium. This identification information is used by the management device to store the status information of the storage medium in a queue within the storage area. By reporting the identification information of the storage medium to the management device, the management device can store the status information of the storage medium in a queue within the storage area based on this identification information, making the storage method more flexible.
[0016] Thirdly, a management device is provided, the management device including a processor and a storage area:
[0017] The processor is configured to receive media information of the storage medium in the memory reported by the memory, the media information including the status information of the storage medium;
[0018] The status information is stored in the storage area so that the processor can use the status information to manage the storage medium.
[0019] In one possible implementation, the processor includes a first processor and a second processor, wherein the first processor is configured to receive media information of the storage medium in the memory reported by the memory, the media information including the status information of the storage medium;
[0020] The second processor is used to store the status information in the storage area so that the second processor can use the status information to manage the storage medium.
[0021] In one possible implementation, the storage medium includes multiple storage spaces, the storage area includes multiple memory units, and the processor is used to store the state information into the storage area, specifically for:
[0022] The status information of the different storage spaces included in the storage medium is stored in the different storage spaces included in the storage area.
[0023] In one possible implementation, the medium information further includes identification information of the storage medium, which is used to store the status information of the storage medium in a queue in the storage area.
[0024] In one possible implementation, the processor is further configured to: establish or update the flash translation layer (FTL) mapping relationship based on the status information.
[0025] In one possible implementation, the storage area is a Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM) storage area or a Random Access Memory (RAM) storage area.
[0026] Fourthly, a storage medium management device is provided, the device comprising:
[0027] A receiving module is configured to receive media information of the storage medium in the memory reported by the memory, wherein the media information includes the status information of the storage medium;
[0028] The management module is used to store the status information in the storage area of the management device so that the management device can use the status information to manage the storage medium.
[0029] In one possible implementation, the storage medium includes multiple storage spaces, the storage area includes multiple memory units, and the management module is used to store the status information of the storage space into the memory unit corresponding to the storage space.
[0030] In one possible implementation, the media information further includes identification information of the storage medium, which is used by the management device to store the status information of the storage medium in a queue in the storage area.
[0031] In one possible implementation, the medium information is reported by the memory when the state of the storage medium changes.
[0032] In one possible implementation, the management module is further configured to establish or update the flash translation layer (FTL) mapping relationship corresponding to the storage medium based on the status information.
[0033] In one possible implementation, the storage area is a Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM) storage area or a Random Access Memory (RAM) storage area.
[0034] Fifthly, a storage medium management device is provided, the device comprising:
[0035] The acquisition module is used to acquire the status information of the storage medium;
[0036] The reporting module is used to report the media information of the storage medium to the management device. The media information includes the status information of the storage medium. The status information is stored by the management device in the storage area of the management device so that the management device can use the status information to manage the storage medium.
[0037] In one possible implementation, the reporting module is used to report the status information to the management device when the status of the storage medium changes.
[0038] In one possible implementation, the medium information may also include identification information of the storage medium.
[0039] In a sixth aspect, a memory is provided, the memory including a storage medium and a controller, the controller being configured to perform a management method for the storage medium as described in any of the second aspects.
[0040] In a seventh aspect, a management system for a storage medium is provided, the system including a management device and a memory, the management device being configured to execute a storage medium management method as described in any of the first aspects, and the memory being configured to execute a storage medium management method as described in any of the second aspects.
[0041] In the specific implementation process, the memory described in the above aspects can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or set on different chips. This application does not limit the type of memory or the way the memory and processor are set.
[0042] Eighthly, a computer program (product) is provided, the computer program (product) comprising: computer program / instructions, which, when executed by a processor, cause a computer to perform the method described in either the first or second aspect above.
[0043] A ninth aspect provides a chip including a memory for causing a communication device on which the chip is mounted to perform any of the methods described in the second aspect above.
[0044] It should be understood that the storage medium management device mentioned in the fourth and fifth aspects above can be the chip mentioned in the ninth aspect. The beneficial effects achieved by the technical solutions and corresponding possible implementations of the second to ninth aspects of this application can be found in the above description of the technical effects of the first aspect and its corresponding possible implementations, and will not be repeated here. Attached Figure Description
[0045] Figure 1A schematic diagram of a terminal architecture provided in an embodiment of this application;
[0046] Figure 2 This application provides an example of an interaction diagram between a host and a device.
[0047] Figure 3 This is a schematic diagram illustrating the interaction between another host and device provided in an embodiment of this application;
[0048] Figure 4 A schematic diagram of an implementation environment provided for an embodiment of this application;
[0049] Figure 5 This is a schematic diagram of another implementation environment provided for an embodiment of this application;
[0050] Figure 6 A flowchart illustrating a storage medium management method provided in an embodiment of this application;
[0051] Figure 7 A schematic diagram illustrating the connection between a management device and a memory provided in an embodiment of this application;
[0052] Figure 8 A schematic diagram illustrating the connection between another management device and a memory provided in an embodiment of this application;
[0053] Figure 9 A schematic diagram illustrating the connection between a management device and a memory provided in an embodiment of this application;
[0054] Figure 10 A schematic diagram illustrating the interaction between a management device and a memory, provided for an embodiment of this application;
[0055] Figure 11 A schematic diagram illustrating the interaction between another management device and a memory provided in an embodiment of this application;
[0056] Figure 12 A schematic diagram of a storage medium management device provided in an embodiment of this application;
[0057] Figure 13 A schematic diagram of the structure of another storage medium management device provided in an embodiment of this application. Detailed Implementation
[0058] The terminology used in the embodiments section of this application is only for explaining specific embodiments of this application and is not intended to limit this application. To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings.
[0059] In the field of communication technology, terminals include various types, such as smartphones, tablets, and personal computers (PCs). While different types of terminals differ in terms of storage media capacity and performance requirements, they share common functionalities in their storage media. Therefore, by optimizing the storage media architecture and standardizing the storage interfaces of different types of terminals, costs in design and production can be saved, and storage flexibility can be improved.
[0060] However, if the interfaces of different types of terminal storage are unified during architecture optimization, the terminal host may still be unable to perceive the data layout inside the storage. Furthermore, since the terminal host needs to refer to the data layout inside the storage when executing algorithms such as redundant array of independent disks (RAID) strategies and wear leveling control on multiple storage devices, splicing various storage devices can lead to problems such as the host being unable to implement RAID strategies and wear leveling control. Therefore, the storage control unit and its corresponding algorithm can be moved to the terminal host side to solve the problems of RAID and wear leveling control not being implemented. In some cases, the storage control unit can be called a storage controller. Moving the storage control unit up means moving the storage control unit originally configured in the storage to the host side; moving the storage algorithm up means updating the storage algorithm originally executed through the storage to be executed through the storage control unit. The storage algorithm is, for example, a flash translation layer (FTL) algorithm.
[0061] Figure 1 This application provides an interface normalization architecture. Figure 1 The upper part is the host computer, and the lower part is the memory. Figure 1 The host computer in the system connects to multiple storage devices. See also... Figure 1 The memory includes the memory corresponding to mobile phones and the memory corresponding to PCs. The memory includes a controller, a high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIe) interface and multiple channels (CH). Optionally, the controller can be a NAND flash memory controller. Figure 1 The host in the system includes a system-on-chip (SoC), a memory controller, an FTL, and a physical address interface, such as a high-speed serial bus interface (PCIe X1).
[0062] See Figure 1 By moving the storage controller within the memory to the host side, the connected memory only provides basic storage control functions. This allows for more flexible product combinations and better scalability through the splicing of different memory modules and the integration of the upper-level storage controller. Figure 1 Furthermore, the storage algorithm is moved up to the host side, using the FTL algorithm, which reduces adaptation costs and design expenses. By moving the storage control unit up, the host can implement RAID and wear leveling algorithms based on the different storage media types. In addition, Figure 1 This is intended to illustrate an interface-normalized architecture, not to limit the type of memory. The memory can be any memory required by the terminal, and the terminal can be... Figure 1 The host and PC shown can also be other smart terminals such as tablets, and the interfaces included in the memory are in addition to those for... Figure 1 The PCIe interface shown may also include other interfaces such as Universal Flash Storage (UFS) interface.
[0063] In one possible implementation, while moving the storage control unit up provides better support for expansion and meets the requirements of higher-level algorithms such as wear leveling and RAID, it also introduces other problems. For example, the moved storage control unit cannot directly obtain the media status of the connected storage devices, causing the host to be unable to quickly obtain the storage media status and manage it in a timely manner based on the storage media status. Therefore, there is an urgent need for a storage media management method to improve the efficiency of the host in obtaining the status information of each storage medium.
[0064] Figure 2 In the related technology shown, the device corresponds to a memory that can be used to store command-flow (cmd flow) and NAND gate flash memory state (NANDsta) information. Figure 2 The stored command flows are cmd1 and cmd2. The host sends a command (cmd) to the device, and the device returns an acknowledgment (ack) after receiving the cmd. The ack carries the status (sta) information of the storage medium. The fields carrying the status information in the ack are agreed upon by the host and the device. In related technology one, the latency for the host to obtain status information depends on the processing speed of the cmd on the device side. If some cmds are processed slowly, the response time will be prolonged. Figure 2 The latency shown causes fluctuations in the state update synchronization time, resulting in low stability.
[0065] Figure 3 In the second related technology shown, the host uses a standard command interface and custom fields or command types to synchronously obtain the media's status information by polling and issuing cmd commands. Polling commands occupy the link's command path, leading to a decrease in the proportion of effective data transmitted through the link, affecting data transmission efficiency and the overall performance of the terminal. Furthermore, since the command issuance process involves framing and parsing, it also introduces CPU command processing overhead, resulting in high processing costs.
[0066] This application provides a method for managing storage media. Please refer to... Figure 4 The illustration shows an implementation environment provided in this application embodiment, which includes a management device 01 and a memory 02, with a communication connection established between the management device 01 and the memory 02. Exemplarily, the memory 02 includes a storage medium for storing data. When the management device 01 and the memory 02 are configured on a terminal, the data stored in the storage medium can be instructions scheduled during terminal runtime, or runtime data generated during terminal runtime, etc. Furthermore, the storage medium can be a single storage space or divided into multiple storage spaces, i.e., dies.
[0067] Exemplarily, the management device 01 is used to handle the computational and logical tasks involved in the operation of the terminal, and to allocate and manage the terminal's resources, such as memory, storage, and network bandwidth. Storage refers to the storage medium in the memory 02, and the management device 01 may be referred to as a host in some cases. In one possible implementation, the management device 01 includes a storage controller, which controls access to the storage medium according to timing rules. The storage controller can also perform interface conversion, converting read, write, and other commands issued by the management device 01 into signals that the storage medium can recognize. In some cases, the storage controller may be referred to as a storage control unit.
[0068] For example, the management device 01 and the memory 02 can interactively execute the storage medium management method provided in the embodiments of this application. The memory 02 reports medium information carrying status information to the management device 01. After receiving the medium information, the management device 01 stores the status information in the medium information in the storage area of the management device 01 so as to manage the storage medium using the status information in the storage area.
[0069] Figure 5 This is a schematic diagram of another implementation environment provided by an embodiment of this application. Figure 5 The memory (storage) in the middle corresponds to Figure 4The memory 02 in the text refers to NAND, which is the storage medium within the memory. The memory also includes a controller, which manages the data read and write operations of the NAND. See also... Figure 5 The host corresponds to Figure 4 The management device 01, controller, and NAND flash memory are connected to various modules included in the management device, such as CPU and DDR. Figure 5 In this context, the CPU includes a storage controller, which executes the storage medium management method provided in the embodiments of this application. See also... Figure 5 The management module also includes DDR as a storage area, which contains FTL. Here, "DDR containing FTL" refers to the DDR including FTL mapping information, or it can refer to the inclusion of executable code for the FTL. Alternatively, a separate hardware module can be used to execute the functions corresponding to the FTL.
[0070] Furthermore, the above examples are intended to illustrate the structure of management device 01 and memory 02, and not to limit the structural type of management device 01 and memory 02. Memory 02 can be any type of memory, including but not limited to UFS or solid state drive (SSD). And management device 01 can also be as follows: Figure 5 The method for managing storage media shown is executed by a single processor, which in this case is also the storage controller. Management device 01 can also execute the storage media management method interactively through multiple processors, one of which can be the storage controller; that is, the storage controller and the processor can be configured independently within the management device.
[0071] For example, multiple processors may be referred to as a first processor and a second processor. Then, the management device 01 can receive the media information reported by the memory through the first processor and store the status information in the media information in the storage area through the second processor.
[0072] For example, the terminal can be any device with the storage controller moved up to the management device. The terminal can be a desktop computer, laptop computer, or smartphone, etc. The terminal can be an operating system kernel (Linux kernel) or another kernel. Besides being a standalone device, the terminal can also be a component on a device, such as a transceiver, processor, or chip. Furthermore, the storage medium management method provided in this application embodiment can be executed by one terminal or multiple terminals. In some cases, multiple terminals can be referred to as a device cluster. This application embodiment does not specifically limit the executing entity of the method.
[0073] This application provides a method for managing storage media, which can be applied to... Figure 4 or Figure 5 The implementation environment shown is used by this method. Figure 4 Taking the interaction between the management device and the memory as an example, the flowchart of this method is as follows: Figure 6 As shown, it includes S601-S604.
[0074] S601, the memory obtains the status information of the storage medium.
[0075] In one possible implementation, the status information of the storage medium is used to indicate the operating status of the storage medium, including but not limited to Fail, Busy, and Ready. Fail indicates that the storage medium has encountered an anomaly, such as a write failure or erase failure. Busy indicates that the storage medium is running, such as writing or reading data. Ready indicates that the storage medium is not running, such as not starting operation or having stopped operation. Ready also indicates that the storage medium is in an idle state and can be read and written. When the storage medium is not divided into multiple storage spaces, the status information indicates the overall operating status of the storage medium. When the storage medium is divided into multiple storage spaces, the status information can be the status information of each storage space, used to indicate the operating status of that specific storage space.
[0076] The memory can periodically acquire the status information of the storage medium. The acquisition period can be based on experience and the implementation environment settings. The memory can also acquire the status information of the storage medium when its operating state changes. For example, based on programming instructions issued by the management device, the memory reads and writes data to any storage medium. Based on this, the operating state of the storage medium changes from idle to running. The memory acquires the status information of the storage medium as "Busy," indicating that it is running, based on the change in the operating state of the storage medium.
[0077] S602, the memory reports the storage medium information to the management device. The storage medium information includes the status information of the storage medium.
[0078] In one possible scenario, after acquiring the status information of the storage medium, the memory can send the storage medium's status information to the management device. For example, it can send medium information, which includes the status information. Exemplarily, the memory can send only the storage medium's status information; in this case, the status information can be directly reported as medium information. Alternatively, the memory can send other information about the storage medium, such as the storage medium's identification information, in addition to the status information. In this case, the memory encapsulates the status information and the identification information together to obtain the medium information.
[0079] Regardless of how the memory acquires media information, it can send media information to the management device, so that the memory can... Figure 1 The diagram includes a controller and a memory interface. The memory can execute operations S601 and S602 through the controller to send media information to the memory interface, which in turn sends it to the management device, thereby realizing the process of reporting media information to the management device.
[0080] S603, the management device receives the storage medium information reported by the memory.
[0081] For example, the media information of the storage medium received by the management device includes the status information of the storage medium. The media information may also include the identification information of the storage medium.
[0082] S604, the management device stores the status information in the storage area of the management device so that the management device can use the status information to manage the storage medium.
[0083] In one possible scenario, the management device includes a storage area, which can be any unit with storage functionality, including but not limited to DDR SRAM or RAM. The management device can store the status information of any storage medium in a location within the storage area, where different storage media correspond to different locations within the storage area. The following examples illustrate different storage methods by which the management device writes status information to the storage area, considering different scenarios of storing status information in the storage area.
[0084] Storage Method 1: When the storage medium includes multiple storage spaces and the storage area includes multiple memory units, the status information of the storage space is stored in the memory unit corresponding to the storage space.
[0085] In one possible implementation, the storage region comprises multiple memory units, the number of which is greater than the number of storage spaces. For example, the number of memory units and the number of storage spaces are the same, meaning there is a one-to-one correspondence between memory units and storage spaces, and each memory unit is used to store the state information of the storage space corresponding to that memory unit. Figure 7 For example, Device corresponds to Figure 4 or Figure 5 The memory in the system, whose storage medium is divided into multiple storage spaces, is located in... Figure 7 The boxes are used to represent different states of storage space. For example, black indicates that the storage space is Busy, and white indicates that the storage space is Ready. Figure 7 In this context, a single row of storage space is temporarily referred to as a cache array, where N is any positive integer indicating the row in which the cache array is located. Figure 7The memory shown includes an N+1 row cache array.
[0086] Figure 7 In DDR, the NAND st region corresponds to a storage region, which also includes multiple memory cells indicated by squares, and there is a one-to-one correspondence between memory cells and storage spaces. Therefore, each storage space has a location within the storage region for storing state information, i.e., a corresponding memory cell. Furthermore, the above example is intended to illustrate the process of corresponding storage spaces to memory cells, rather than to limit the correspondence between storage spaces and memory cells. The correspondence between storage spaces and memory cells can be a one-to-one correspondence as described in the above embodiment, or multiple storage spaces can correspond to one memory cell. The state information of different storage spaces stored in the same memory cell can be distinguished by different locations or by identification information.
[0087] against Figure 5 As shown, the terminal includes multiple memory devices, that is, multiple storage spaces located on different storage media. The storage areas may not be distinguished from each storage medium, or, based on the existence of corresponding memory units in each storage space, the multiple memory units may be further distinguished according to the storage medium where each storage space is located.
[0088] See Figure 8 , Figure 8 The terminal includes multiple memories, namely Device 1 to Device m. Figure 8 In this context, m can be any positive integer greater than 2. The structure of any Device and... Figure 7 The device shown has a similar structure, also including storage media and a controller. Each memory includes a storage medium, and the storage medium of any memory is divided into multiple storage spaces. When the terminal includes multiple storage media, the storage area also includes multiple sub-regions, namely Nand Sta 1 to Nand Sta m. The number of sub-regions is the same as the number of storage media, both being m, and there is a one-to-one correspondence between sub-regions and storage media. For example, Nand Sta 1 corresponds to Device 1. Other correspondences can be found in [reference needed]. Figure 8 This will not be repeated here.
[0089] For example, each sub-region can be obtained by equally dividing the storage region, or it can be divided according to the amount of storage space included in the corresponding storage medium. Regardless of how the sub-regions in the storage region are divided, each sub-region includes multiple memory units, and the number of memory units included is the same as the amount of storage space in the corresponding Device.
[0090] Regardless of the correspondence between storage space and memory unit, the management device can obtain the mapping relationship between storage space and memory unit, and after receiving the status information of any storage space, find the memory unit corresponding to any storage space in the mapping relationship, and write the status information reported by the storage space into the found memory unit.
[0091] In one possible implementation, the mapping relationship can be established by the device providing the memory or by the device using the memory. For example, the management device can also allocate memory cells corresponding to each storage space to obtain the mapping relationship between the storage space and the memory cell. The allocation process, for example, involves the management device, upon receiving media information reported by any storage space, selecting an unused memory cell as the memory cell corresponding to that storage space if it is the first time the storage space has reported the information, and recording the mapping relationship between the storage space and the selected memory cell. The management device can randomly select a memory cell from multiple memory cells, or it can select a memory cell from multiple memory cells according to the storage order of the memory cells.
[0092] In one possible implementation, the management device can also access memory space to obtain mapping relationships stored within it. The accessed memory space can be the management device's storage area or other memory spaces outside that area. Regardless of the method used to obtain the mapping relationship, the management device can locate the memory unit corresponding to the storage medium after receiving the storage space's media information. For example, the management device can search using the storage space's identification information. This identification information can be any information that distinguishes different storage spaces, including but not limited to the storage space's identification number (ID). Taking the inclusion of identification information in the media information as an example, the management device can extract the identification information from the media information, search in the mapping relationship based on the identification information, and obtain the memory unit matching the identification information. This memory unit is also the location of the storage space's status information within the storage area, and the management device stores the status information in the matching memory unit.
[0093] For example, if the memory cell does not store status information, the management device can directly write the received status information into the memory cell. If the memory cell stores status information, the management device can directly replace the previously stored status information with the received status information to update the status information. Alternatively, the management device can first determine whether the status information stored in the memory cell is the same as the status information reported by the memory. If they are the same, the received status information can be discarded directly since there is no need to repeat the storage operation. If the stored status information is different from the received status information, the status information stored in the memory cell can be replaced with the received status information. Furthermore, the management device can store only status information in the memory cell, or it can store status information and other information, storing the received media information in the memory cell.
[0094] Storage Method 2: Store the status information of the storage medium in the queue of the storage area according to the identification information of the storage medium.
[0095] In one possible scenario, the storage area stores state information sequentially in a queue-like manner, for example... Figure 9 As shown, Figure 9 The Host, which serves as the management device, includes a storage area in DDR, and the stored status information is indicated by black rectangles as Nand sta. Figure 9 Different state information is stored sequentially in DDR to obtain Figure 9 The Nand queue shown has corresponding identifier information for each status message. For example, the identifier information is... Figure 9 The ID or physical page number (ppn) shown indicates the physical address of the storage space.
[0096] Figure 9 For now, we take the storage of multiple status information as the status information of different storage spaces in the same storage medium as an example. In practical applications, the multiple status information stored in the storage area can also be the status information of multiple storage media. Each storage medium can be divided into multiple storage spaces, or it can not be divided into multiple storage spaces. That is, one storage medium corresponds to one status information.
[0097] The embodiments of this application do not limit the method of determining the position of each state information in the queue. The determination process is similar to the mapping relationship between storage space and memory unit. Please refer to the relevant description of obtaining the mapping relationship in storage method one, which will not be repeated here.
[0098] For example, after receiving the media information reported by the storage medium, the management device can determine the identification information in the media information, determine the position of the storage medium's status information in the queue based on the identification information (e.g., which position it is stored in), and store the status information in the corresponding position, continuing in... Figure 9 For example, after the management device receives the storage space media information reported by the Nand controller in the Device, it searches for the various status information stored in the storage area based on the identification information in the media information. It determines that the identification information corresponding to the first status information stored on the right is the same as the identification information in the media information reported by the Nand controller, and belongs to the same storage space at different times. Therefore, the management device updates the first stored status information on the right with the new status information received, thereby realizing the storage of status information.
[0099] In one possible implementation, the management device, in addition to storing status information, also manages the storage medium based on the status information. For example, the management device obtains management instructions; reads the status information of the storage medium from the storage area according to the management instructions, and manages the storage medium based on the status information. For the different storage methods used by the management device to store status information in the storage area as shown in S604, the management device will also use different reading methods to read the status information from the storage area during the process of managing the storage medium based on the status information.
[0100] Reading Method 1: Read the status information of the storage medium from the storage area based on the mapping relationship.
[0101] Reading Method 1 corresponds to the storage method 1, where the status information of each storage space is stored in the corresponding memory unit in the storage area. Since the process of managing different storage spaces in the storage medium is similar, the following will use any one storage space as an example to illustrate the process of reading the status information of any storage space according to the mapping relationship. For example, the management device obtains the identification information of any storage space to be managed; looks up the mapping relationship based on the identification information of any storage space to obtain the memory unit corresponding to any storage space; and obtains the status information of any storage space from the memory unit corresponding to any storage space.
[0102] In one possible implementation, the management device receives a management command, which may be for example, reading data from or writing data to any storage space. The management device can determine the storage space to be read or written based on the management command; this determined storage space is the storage space to be managed. In some cases, the management command received by the management device includes identification information of the storage space. For example, if the management command is a write instruction for writing data to any storage space, the write instruction includes not only the data to be written but also the identification information of the storage space, indicating the location where the data is written.
[0103] For example, the management device can also select a storage space to be managed. This storage space could be one where no data is specified to be written in the management command; that is, the data can be written to any storage space. Based on this, the management device selects one storage space from multiple storage spaces as the storage space to be written to, i.e., the storage space to be managed. The management device can select the storage space randomly, or it can select it based on the location of the storage space on the device, or it can select it based on the number of times the storage space has been used.
[0104] Regardless of the method used by the management device to determine the storage space to be managed, it will look up the mapping relationship based on the identification information of the storage space to be managed to obtain the matching memory unit. The lookup process is similar to the mapping relationship lookup process shown in Storage Method 1, and can be found in the relevant description, so it will not be described again here. Afterwards, the management device can read the status information stored in the searched memory unit.
[0105] Method 2: Based on the identification information of the storage medium, retrieve the status information of the storage medium from the queue of the storage area.
[0106] Reading method two corresponds to the storage method two shown in S604, where multiple status information is stored in a queue in the storage area, and each status information corresponds to an identifier. The management device can determine the position of the status information in the queue of the storage space based on the identifier information of the storage space, and read the status information from the determined position. The process of the management device reading the status information from the queue is similar to the process of the management device storing the status information in the queue in storage method two, and can be found in the relevant description, which will not be repeated here.
[0107] Regardless of the method by which the management device obtains the status information of the storage medium to be managed from the storage area, it can manage the storage medium based on the status information. This application embodiment does not limit the process by which the management device manages the storage medium based on status information; the management device can process the flash translation layer (FTL) mapping relationship corresponding to the storage medium based on the status information. See also Figure 5 As shown, the DDR in the management device can be used to execute FTL to complete the translation or mapping from the logical address space of the management device to the physical address space of the flash memory. In other words, the logical address issued by the management device is converted into the physical address to be written to the storage medium, so as to realize the storage or retrieval of data.
[0108] For example, the FTL mapping relationship is used to indicate the correspondence between the physical addresses and logical addresses of the storage medium. The management device processes the FTL mapping relationship corresponding to the storage medium based on the storage medium's status information. This means adjusting the physical address or the corresponding logical address of the storage medium in the FTL mapping relationship based on the storage medium's status information. Processing the FTL mapping relationship can involve establishing a correspondence between the physical addresses and logical addresses of the storage medium within the FTL mapping relationship. For example, after determining that data will be written to the storage space, a correspondence is established between the logical address of the data and the physical address of the storage space. Processing the FTL mapping relationship can also involve updating the included correspondence between physical addresses and logical addresses when the FTL mapping relationship already includes such a correspondence. For example, after completing read / write operations on the storage space, the status of the physical addresses in the correspondence is updated.
[0109] In one possible scenario, the management device can also schedule the storage medium based on the acquired status information of the storage medium. Scheduling the storage medium can involve reading data from or writing data to it. For example, the management device acquires the status information of the storage medium; issues programming instructions to the memory based on the status information; the memory receives the programming instructions; schedules the storage medium indicated by the programming instructions; updates the status information of the storage medium based on the scheduling result, and reports the status information of the storage medium to the management device.
[0110] Figure 10 This application provides an embodiment of the interaction flowchart between a management device and a memory. Figure 10 The write command in the above embodiment corresponds to the management command, DDR corresponds to the storage area in the above embodiment, the current write position corresponds to the memory unit in the above embodiment, and Die corresponds to the storage space in the above embodiment. Hereafter, we will use... Figure 10 This example illustrates the process by which the management device acquires status information and schedules storage media based on that information.
[0111] In step 1001, after receiving the write command, the management device obtains the status information of the storage space to be managed through DDR.
[0112] For example, the status information acquired by the management device is used to indicate the operating status of the die corresponding to the current write position, that is, the operating status of the storage space to be managed. For details on the process of acquiring status information, please refer to the relevant content of reading method one, which will not be repeated here.
[0113] In step 1002, it is determined that the die corresponding to the current write position has not failed.
[0114] The Die corresponding to the current write position is the storage space to be managed in the above embodiment. After the management device obtains the status information of the storage space by executing step 1001, it can determine whether the status of the storage space is Fail based on the status information. If the status information indicates that the status of the storage space is Fail, it means that there is an abnormality in the storage space, and step 1003 can be executed. If the status information indicates that the status of the storage space is not Fail, such as Busy or Ready, it means that the storage space can operate normally and there is no abnormality, and step 1004 can be executed.
[0115] In step 1003, if the status information of the storage space is Fail, the management device executes the exception handling process.
[0116] For example, the exception handling process includes recording failure location information, i.e., the location of the storage space where the exception occurred on the Device, and the mapping state of the storage space before the failure, which indicates the data already stored in the storage space. If the storage space is a storage space where data needs to be written as indicated by a write command, the mapping state can also indicate the data to be stored in the storage space, i.e., the data written via the write command. The maintained failure location information and mapping state are also the control information related to FTL processing in the above embodiments.
[0117] In one possible scenario, the abnormal process may also include refreshing the write position, that is, selecting a new storage space as the storage space to be written, repeatedly executing the operations of steps 1001 and 1002, obtaining the status information of the newly selected storage space, and then detecting whether there is an abnormality in the storage space based on the status information.
[0118] In step 1004, if the status information of the storage space is not Fail, the management device determines whether the number of Die tasks corresponding to the current write position is less than the maximum limit.
[0119] Under certain circumstances, the number of tasks that can be executed synchronously in any storage space is limited. The maximum number of tasks that can be executed is called the maximum limit. This maximum limit can be set before the storage space leaves the factory or defined by the user based on experience. The number of tasks executed by the storage space refers to the number of read and write tasks currently being executed by the storage space.
[0120] The management device can determine whether to write data to the storage space based on whether the number of tasks in the storage space is less than the maximum limit. For example, if the number of tasks is not less than the maximum limit, but the current storage space has reached its maximum capacity for executing tasks, continuing to execute new tasks may cause abnormalities such as slower read / write speeds or data corruption. The management device thus determines that data cannot be written to the storage space at the current moment and can wait for the tasks running on the storage space to complete before writing data. Alternatively, it can re-execute step 1001, select a new storage space, and obtain the status information of the new storage space. By polling the storage space status information, it can find a storage space where data can be written at the current moment.
[0121] For example, if the number of tasks in the storage space is less than the maximum limit, it means that the number of tasks currently being executed in the storage space has not exceeded the upper limit. Even if data is written to the storage space, it will not cause the storage space to be damaged due to too many tasks being executed at the same time. The management device can then execute step 1005.
[0122] Furthermore, similar to step 1003, the management device can maintain FTL-related control information not only when the storage space fails, but also when the storage space does not fail. For example, it can record the mapping relationship between the storage space and the data based on the data to be written and the selected storage space.
[0123] In step 1005, if the number of tasks is less than the maximum limit, the management device issues programming instructions.
[0124] For example, the programming instructions issued by the management device are used to write data to the storage space. In one possible scenario, the management device can convert the logical address into a physical address of the storage space by looking up the FTL mapping relationship, program the programming instructions based on the converted physical address, send the programming instructions to the memory, and then have the memory write data to the storage space according to the programming instructions.
[0125] In step 1006, the memory maintains the corresponding Die state as Busy.
[0126] For example, since the memory schedules the storage space to start running after executing programming instructions, the storage space's status information is updated to the corresponding Busy state. The memory can update its status information to Busy based on the scheduling of the storage space.
[0127] In step 1007, the memory reports status information.
[0128] In addition to updating the status information of the storage space, the memory also reports the status information of the storage space to the management device. The reporting process can be found in the relevant description of S602, and will not be repeated here.
[0129] In step 1008, the memory programs the storage space and determines whether the programming of the medium was successful.
[0130] In one possible scenario, programming the storage space involves executing the corresponding operation indicated by the programming instructions, such as writing data to or reading data from the storage space. Afterward, the memory determines whether the storage space has been successfully programmed. If programming is unsuccessful, the memory executes step 1009; if programming is successful, the memory executes step 1010.
[0131] In step 1009, in the event of a memory programming failure, the memory maintenance corresponding die state is set to Fail.
[0132] Since the memory programming failed, it indicates that writing data to the memory space failed, and the memory space may be abnormal. The memory then updates the memory space's status information to "Fail" and executes step 1011 to report the status information. This allows the management device to restrict read and write operations on the memory space based on its "Fail" status information, preventing wasted processing resources caused by failed programming instructions. This is especially useful when there is still data to be written to or data to be read from the memory space.
[0133] In step 1010, if the memory programming is successful, the memory maintains the corresponding Die state as Ready.
[0134] If programming is successful, meaning the memory successfully writes data to the storage space, and since the storage space has finished writing data and is no longer operational, the memory can update the storage space's status information to "Ready" and execute step 1011 to report the status information to the management device. Afterward, the memory can wait for subsequent Host instructions from the management device to continue managing the storage medium based on those instructions.
[0135] Figure 11 This is a schematic diagram of the interaction between another management device and memory provided in an embodiment of this application, illustrating the scheduling process of the storage medium based on the status information after obtaining the status information when using read method two.
[0136] In step 1101, after receiving the write command, the management device obtains the status information by using the status ID of the die corresponding to the write location.
[0137] For example, the management device can determine the storage location of the storage space in the queue based on the status ID, and read the status information of the storage space from the determined location. For a description of the process of obtaining status information based on the status ID, please refer to the relevant description of reading method two, which will not be repeated here.
[0138] In step 1102, the management device determines that the die corresponding to the current write position has not failed.
[0139] For example, the process by which the management device determines whether the storage space is Fail based on the status information is similar to the process in step 1002 where the management device determines whether the storage space is Fail based on the status information. Please refer to the description of step 1002, and it will not be repeated here.
[0140] In step 1103, in the event of a storage space failure, the management device executes an exception handling procedure.
[0141] For example, the process of the management device executing the exception handling procedure is similar to the process of the management device executing the exception handling procedure in step 1003. Please refer to the description of step 1003, and it will not be repeated here.
[0142] In step 1104, the management device determines whether the number of Die tasks corresponding to the current write position is less than the maximum limit.
[0143] The process by which the management device determines whether the number of tasks is less than the maximum limit is similar to the process in step 1004, and can be found in the description of step 1004. It will not be repeated here.
[0144] In step 1105, the management device assigns a status ID, sets it to Busy, and issues programming instructions.
[0145] For example, the management device updates the status information of the storage space stored in the array of storage areas to indicate a Busy status. If the storage space did not previously store status information in the storage area, the management device assigns an identification information, i.e., a status ID, to the storage space and initializes the status information corresponding to the identification information in the array of storage areas to Busy. Afterwards, the management device issues programming instructions. If the management device assigned identification information to the storage space before issuing the instructions, it will include the assigned identification information in the programming instructions.
[0146] In step 1106, the memory acquires the status ID and begins programming.
[0147] For example, the memory obtains a status ID from the programming instructions, determines that the status of the storage space to be written is Busy, and writes data into the storage space.
[0148] In step 1107, the memory determines whether the media programming was successful.
[0149] The process of determining whether the memory has been successfully programmed is similar to the process of determining whether the programming has been successful in step 1008. Please refer to the relevant description in step 1008, which will not be repeated here.
[0150] In step 1108, in the event of programming failure, the memory maintains the corresponding die state as Fail.
[0151] For details on the operations performed by the memory in the event of a programming failure, please refer to the description in step 1009, which will not be repeated here.
[0152] In step 1109, if programming is successful, the memory maintains the corresponding Die state as Ready.
[0153] For details regarding the successful execution of memory programming, please refer to the description of step 1010, which will not be repeated here.
[0154] In step 1110, the memory reports the status information of the storage medium.
[0155] For the process of the memory reporting status information, please refer to step 1011, which will not be repeated here.
[0156] also, Figure 10 and Figure 11 This is intended to illustrate the different processes by which a management device acquires status information when the device uses different methods to store it, rather than to define the correspondence between acquiring status information and issuing programming instructions. In other words, it is used by the management device to execute... Figure 10 After obtaining the status information using the method shown, it can be done as follows: Figure 11 The system first sets the status information to Busy, then issues programming instructions, and the management device executes them. Figure 11 After obtaining the status information using the method shown, it can also be done as follows: Figure 10 After the programming instructions are issued, the memory sets the status information to Busy.
[0157] Furthermore, the examples above are intended to illustrate the process by which a management device manages storage media through status information, and are not intended to limit the management device's management of storage media. In addition to performing the management operations shown in the above embodiments, the management device can also perform other management of storage media, including but not limited to determining the data arrangement and distribution strategy within the storage media based on the storage media's status information. For example, the management device may determine the data arrangement and distribution strategy for each storage media using a RAID strategy based on the status information of each storage media.
[0158] In summary, the storage medium management method provided in this application allows the storage medium to actively report its status information, eliminating the need for the management device to issue commands to request and retrieve status information. This improves the efficiency of the management device in obtaining the storage medium's status information and simplifies the status management logic. Furthermore, since the process of issuing commands by the management device involves frame querying, the elimination of commands to retrieve status information reduces the overhead of CPU frame querying and the occupancy of the link between the management device and the memory, thus improving link utilization. This application is not limited to storing status information in the storage area; it can store it in the corresponding memory unit or in a queue, offering high flexibility. Moreover, different storage methods also have corresponding management methods, resulting in broad applicability.
[0159] The methods of the embodiments of this application have been described above, and the apparatus of the embodiments of this application is described below. It should be understood that the apparatus described below has any of the functions of the management apparatus in the above methods. It should be understood that the technical features described in the method embodiments are also applicable to the apparatus embodiments below.
[0160] like Figure 12 As shown in the figure, this application embodiment provides a storage medium management device 1200, which includes:
[0161] The receiving module 1201 is used to receive the storage medium information reported by the memory, which includes the status information of the storage medium.
[0162] The management module 1202 is used to store status information in the storage area of the management device so that the management device can use the status information to manage the storage medium.
[0163] In one possible implementation, the storage medium includes multiple storage spaces, the storage area includes multiple memory units, and the management module 1202 is used to store the status information of the storage space into the memory unit corresponding to the storage space.
[0164] In one possible implementation, the media information also includes identification information of the storage medium, which is used to manage the status information of the storage medium stored in the queue of the storage area.
[0165] In one possible implementation, the media information is reported by the memory when the state of the storage medium changes.
[0166] In one possible implementation, the management module 1202 is also used to establish or update the flash translation layer (FTL) mapping relationship corresponding to the storage medium based on the status information.
[0167] In one possible implementation, the storage area is a DDR SDRAM storage area or a RAM storage area.
[0168] It should be understood that Figure 12 The storage medium management device 1200 shown can be the management device involved in the aforementioned method embodiment, used to execute the storage medium management method executed by the aforementioned management device. Each module in the storage medium management device 1200 and the aforementioned other operations and / or functions are respectively to implement various steps and methods implemented by the management device in the method embodiment. For specific details, please refer to the aforementioned method embodiment. For the sake of brevity, they will not be repeated here.
[0169] like Figure 13 As shown in the figure, this application embodiment also provides a storage medium management device 1300, which includes:
[0170] The acquisition module 1301 is used to acquire the status information of the storage medium;
[0171] The reporting module 1302 is used to report the media information of the storage medium to the management device. The media information includes the status information of the storage medium. The status information is stored by the management device in the storage area of the management device so that the management device can use the status information to manage the storage medium.
[0172] In one possible implementation, the reporting module 1302 is used to report status information to the management device when the state of the storage medium changes.
[0173] In one possible implementation, the media information also includes identification information of the storage medium.
[0174] It should be understood that Figure 13 The storage medium management device 1300 shown can be the memory involved in the aforementioned method embodiment, used to execute the storage medium management method executed by the memory. Each module in the storage medium management device 1300 and the other operations and / or functions described above are respectively for implementing various steps and methods implemented by the memory in the method embodiment. For specific details, please refer to the aforementioned method embodiment. For the sake of brevity, they will not be repeated here.
[0175] In addition, the above Figure 12 or Figure 13 The provided device, in implementing its functions, is only illustrated by the division of the above-described functional modules. In practical applications, the functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation processes are detailed in the method embodiments, and will not be repeated here.
[0176] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting the Advanced Reduced Instruction Set Computing (RISC) machine (ARM) architecture.
[0177] Furthermore, in an alternative embodiment, the memory described above may include read-only memory and random access memory, and provide instructions and data to the processor. The memory may also include non-volatile random access memory. For example, the memory may also store device type information.
[0178] The memory can be volatile or non-volatile, or may include both. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which serves as an external cache. Many forms of RAM are available by way of example, but not limitation. Examples include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0179] This application provides a computer program that, when executed by a computer, causes a processor or computer to perform the corresponding steps and / or processes in the above method embodiments.
[0180] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive).
[0181] The above description is merely an embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method for managing a storage medium, characterized in that, The method includes: The receiver reports media information of the storage medium in the receiver, the media information including the status information of the storage medium; The status information is stored in the storage area of the management device so that the management device can use the status information to manage the storage medium.
2. The method according to claim 1, characterized in that, The storage medium includes multiple storage spaces, and the storage area includes multiple memory units. Storing the status information in the storage area of the management device includes: The status information of the storage space is stored in the memory unit corresponding to the storage space.
3. The method according to claim 1, characterized in that, The media information also includes the identification information of the storage medium, which is used by the management device to store the status information of the storage medium in the queue of the storage area.
4. The method according to any one of claims 1-3, characterized in that, The media information is reported by the memory when the state of the storage medium changes.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: Based on the status information, establish or update the flash translation layer (FTL) mapping relationship corresponding to the storage medium.
6. The method according to any one of claims 1-5, characterized in that, The storage area is a Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM) storage area or a Random Access Memory (RAM) storage area.
7. A method for managing a storage medium, characterized in that, The method includes: Obtain the status information of the storage medium; The storage medium information, including its status information, is reported to the management device. This status information is stored in the management device's storage area so that the management device can use the status information to manage the storage medium.
8. The method according to claim 7, characterized in that, The step of reporting the status information of the storage medium to the management device includes: When the state of the storage medium changes, the status information is reported to the management device.
9. The method according to claim 7 or 8, characterized in that, The media information also includes the identification information of the storage medium, which is used by the management device to store the status information of the storage medium in the queue of the storage area.
10. A management device, characterized in that, The management device includes a processor and a storage area: The processor is configured to receive media information of the storage medium in the memory reported by the memory, the media information including the status information of the storage medium; The status information is stored in the storage area so that the processor can use the status information to manage the storage medium.
11. The apparatus according to claim 10, characterized in that, The processor includes a first processor and a second processor. The first processor is used to receive media information of the storage medium in the memory reported by the memory. The media information includes the status information of the storage medium. The second processor is used to store the status information in the storage area so that the second processor can use the status information to manage the storage medium.
12. The management device according to claim 10 or 11, characterized in that, The storage medium includes multiple storage spaces, and the storage area includes multiple memory units. The processor is used to store the status information into the storage area, specifically for: The status information of the different storage spaces included in the storage medium is stored in the different storage spaces included in the storage area.
13. The management device according to any one of claims 10-12, characterized in that, The media information also includes the identification information of the storage medium, which is used to store the status information of the storage medium in the queue of the storage area.
14. The management device according to any one of claims 10-13, characterized in that, The processor is also used to: establish or update the flash translation layer (FTL) mapping relationship based on the status information.
15. The management device according to any one of claims 10-14, characterized in that, The storage area is a Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM) storage area or a Random Access Memory (RAM) storage area.
16. A memory, characterized in that, The memory includes a storage medium and a controller, the controller being configured to perform the storage medium management method as described in any one of claims 7-9.
17. A management system for a storage medium, characterized in that, The system includes a management device and a memory, the management device being used to perform the management method of the storage medium as described in any one of claims 1-6, and the memory being used to perform the management method of the storage medium as described in any one of claims 7-9.
18. A computer program product, characterized in that, The computer program product includes a computer program / instruction that is executed by a processor to cause a computer to perform the storage medium management method as described in any one of claims 1-9.