Configurable mapping granularity system for storage devices
By dynamically configuring the storage device mapping granularity, it solves the problems of low efficiency and increased read-modify-write operations caused by traditional fixed mapping granularity, and improves the performance and efficiency of SSD storage devices.
Patent Information
- Application Number
- CN201910675677.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-07-25
AI Technical Summary
The traditional storage device mapping granularity is fixed, resulting in inefficiency and an increase in read-modify-write operations, which reduces the performance of SSD storage devices, especially when the data size is not 8 LBAs.
Provide an information processing system that dynamically configures the mapping granularity of logical block addresses and physical allocation addresses through storage device mapping granularity configuration commands, allowing the storage controller to flexibly map according to data size and reduce or eliminate unnecessary read-modifications. -Write operations.
It improves the usage efficiency of the mapping table, reduces the resource occupation of the storage controller and SSD storage device, and improves the storage performance, especially when modifying less than 8 LBA data.
Smart Images

Figure CN112286838B
Abstract
Description
Technical Field
[0001] The present disclosure relates generally to information handling systems, and more particularly to configuring mapping granularity for storage devices in an information handling system. Background Art
[0002] As the value and use of information continues to increase, individuals and businesses seek other ways to process and store information. One option available to users is an information processing system. An information processing system typically processes, compiles, stores and / or transmits information or data for commercial, personal or other purposes, thereby allowing users to exploit the value of information. Because the technical and information processing needs and requirements vary between different users or applications, information processing systems may also vary in terms of the information processed, the information processing method, the amount of information processing, storage or transmission, and the speed and efficiency of information processing, storage or transmission. The differences in information processing systems allow information processing systems to be general or configured for specific users or specific purposes, such as financial transaction processing, airline reservations, enterprise data storage or global communications. In addition, an information processing system may include various hardware and software components that can be configured to process, store and transmit information, and may include one or more computer systems, data storage systems and network systems.
[0003] An information processing system typically includes a storage device, such as a solid-state drive (SSD) storage device for storing data. As will be appreciated by those skilled in the art, an SSD storage device stores data in a non-volatile memory device such as a NAND flash memory device, and includes an SSD controller that can utilize a double data rate (DDR) dynamic random access memory (DRAM) subsystem (typically DDR3 or DDR4) to store management data for managing these NAND flash memory devices. One of the management operations performed using the management data stored on the DDR DRAM subsystem includes mapping a logical storage location associated with the SSD storage device to a physical storage location included in the NAND flash memory. As will be appreciated by those skilled in the art, such a logical / physical storage location mapping may map a logical allocation address (LAA) to a physical allocation address (PAA), which allows the SSD controller to receive a data command (e.g., a write command) that points to a logical block address (LBA) to identify the LAA associated with the LBA, and then determines the PAA that is mapped to the LAA and identifies the physical location of the NAND flash memory storing the data.
[0004] However, conventional mapping tables have a fixed mapping granularity that provides eight LBAs for each LAA mapped to a corresponding PAA, which may result in inefficiencies in using mapping tables that store logical / physical storage location mappings. For example, in the case where the size of data to be written to an SSD storage device is equal to 8 LBAs, it may be written to a single PAA associated with a NAND flash memory device, and a single LAA / PAA mapping entry may be provided in the mapping table, identifying the LAA associated with the PAA (and providing 8 LBAs for identifying the logical storage location of the data). However, in the case where the size of data to be written to the SSD storage device is greater than 8 LBAs, it will be divided into multiple data portions, each of which is equal to 8 LBAs in size, and each of these data portions may be written to a corresponding PAA associated with the NAND flash memory device, wherein multiple mapping entries are provided in the LAA / PAA mapping table, each entry identifying the LAA associated with each corresponding PAA (and each entry providing 8 LBAs that define the logical storage location of the corresponding data portion). Thus, data equal to 32 LBAs in size will be divided into 4 8-LBA sized data portions, each of which is written to a corresponding PAA associated with the NAND flash device, and 4 mapping entries may be provided in the mapping table, one for each of the LAAs associated with the corresponding PAA (and each providing 8 LBAs that define the logical storage location of its corresponding 8 LBA sized data portion). Thus, for large data writes, the mapping table can grow very quickly and has been found to occupy up to 80% of the DDR DRAM subsystem in SSD storage devices.
[0005] In addition, this fixed mapping granularity also creates read-modify-write (RMW) events. For example, when new data less than 8 LBAs in size is used to modify existing data associated with a PAA in a NAND Flash device, all of the existing data stored in association with the PAA must be read from the NAND Flash, modified by writing the new data to a portion of the existing data that was changed, and written back to the NAND Flash device. As will be appreciated by those skilled in the art, such RMW operations require additional SSD controller processing cycles, which operate to degrade the performance of the SSD storage device, particularly in situations where all of this data is modified relative to the modification of the existing data in the NAND Flash device (e.g., because the new data can simply be written directly to the NAND Flash device storing the existing data, rather than requiring the RMW operation discussed above).
[0006] Therefore, it is desirable to provide a storage device mapping granularity system that solves the above problems. Summary of the invention
[0007] According to one aspect of the present invention, an information handling system (IHS) is provided, which includes a processing system; a storage system, which is coupled to the processing system and includes instructions, which, when executed by the processing system, cause the processing system to provide a storage controller engine, which is configured to: receive a first storage device mapping granularity configuration command from a host engine, the first storage device mapping granularity configuration command identifying a first number of logical block addresses associated with a first plurality of logical allocation addresses; associate each of the first plurality of logical allocation addresses with the first number of logical block addresses identified in the first storage device mapping granularity configuration command; write first data having a first data size to a first physical allocation address identified at a first physical location in a storage subsystem, the first data size being equal to a first combined logical block address size of the first number of logical block addresses identified in the first storage device mapping granularity configuration command and associated with each of the first plurality of logical allocation addresses; and map the first physical allocation address to a first logical allocation address in a logical / physical storage location mapping database, the first logical allocation address being included in the first plurality of logical allocation addresses and associated with the first number of logical block addresses identified in the first storage device mapping granularity configuration command. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 is a schematic diagram illustrating an embodiment of an information handling system (IHS).
[0009] Figure 2 is a schematic diagram illustrating an embodiment of a computing device including a storage device configurable mapping granularity system of the present disclosure.
[0010] Figure 3 It shows that it can be Figure 2 A schematic diagram of an embodiment of a storage device provided in a computing device.
[0011] Figure 4 is a flow chart illustrating an embodiment of a method for configuring mapping granularity for a storage device.
[0012] Figure 5 It is shown in Figure 4 A schematic diagram of an embodiment of a logical / physical storage device mapping is provided during the method.
[0013] Figure 6 It is shown in Figure 4 A schematic diagram of an embodiment of a logical / physical storage device mapping is provided during the method.
[0014] Figure 7 It is shown in Figure 4 A schematic diagram of an embodiment of a logical / physical storage device mapping is provided during the method. DETAILED DESCRIPTION
[0015] For purposes of this disclosure, an information handling system may include any means or collection of means that can be used to calculate, estimate, determine, classify, process, send, receive, retrieve, initiate, switch, store, display, transmit, indicate, detect, record, copy, process or utilize any form of information, intelligence or data for commercial, scientific, control or other purposes. For example, an information handling system may be a personal computer (e.g., a desktop computer or a notebook computer), a tablet computer, a mobile device (e.g., a personal digital assistant (PDA) or a smart phone), a server (e.g., a blade server or a rack server), a network storage device, or any other suitable device, and may vary in size, shape, performance, functionality and price. An information handling system may include random access memory (RAM), one or more processing resources (such as a central processing unit (CPU) or hardware or software control logic), read-only memory (ROM) and / or other types of non-volatile memory. Additional components of an information handling system may include one or more disk drives, one or more network ports for communicating with external devices, and various input and output (I / O) devices, such as a keyboard, a mouse, a touch screen and / or a video display. The information handling system may also include one or more buses operable to transmit communications between the various hardware components.
[0016] In one embodiment, Figure 1The information handling system 100 includes a processor 102 connected to a bus 104. The bus 104 serves as a connection between the processor 102 and other components of the information handling system 100. An input device 106 is coupled to the processor 102 to provide input to the processor 102. Examples of input devices may include a keyboard, a touch screen, a pointing device such as a mouse, a trackball, and a touch pad, and / or various other input devices known in the art. Applications and data are stored on a mass storage device 108, which is coupled to the processor 102. Examples of mass storage devices may include a hard disk, an optical disk, a magneto-optical disk, a solid-state storage device, and / or various other mass storage devices known in the art. The information handling system 100 also includes a display 110, which is coupled to the processor 102 through a video controller 112. A system memory 114 is coupled to the processor 102 to provide fast storage to the processor to facilitate the execution of computer programs by the processor 102. Examples of system memory may include a random access memory (RAM) device such as a dynamic RAM (DRAM), a synchronous DRAM (SDRAM), a solid-state storage device, and / or various other storage devices known in the art. In one embodiment, chassis 116 houses some or all of the components of information handling system 100. It should be appreciated that other buses and intermediate circuits may be deployed between the above-mentioned components and processor 102 to facilitate interconnection between these components and processor 102.
[0017] Reference now Figure 2 , which shows an embodiment of a computing device 200. In one embodiment, the computing device 200 can be composed of the above reference Figure 1 The information handling system 100 discussed is provided, and / or may include some or all of the components of the information handling system 100. In the embodiments that follow, those skilled in the art with reference to the present disclosure will recognize that the computing device 200 is shown and discussed as being provided by a server device, but will also recognize that the computing device 200 may be provided by a storage system, a desktop computing device, a laptop / notebook computing device, and / or any other device that may be configured to operate similarly to the computing device 200 discussed below. In the illustrated embodiment, the computing device 200 includes a chassis 202 that houses the components of the computing device 200, only some of which are shown below. However, while the components of the computing device 200 are shown as being provided in the chassis 202, those skilled in the art will understand that Figure 2 The components shown in (or similar components) may be distributed in different chassis and still fall within the scope of the present disclosure. In one example, chassis 202 may house a processing system (not shown, but it may include the above reference Figure 1 The processor 102 discussed above) and a storage system (not shown, but which may include the above reference Figure 1The memory 114 discussed above) is coupled to the processing system and includes instructions that, when executed by the processing system, cause the processing system to provide a host engine 204 that is configured to perform the functions of a host engine, a host, and / or a computing device discussed below.
[0018] The chassis 202 may also house a storage system (not shown, but may include the storage system described above). Figure 1 The storage device 108 discussed above is coupled to the host engine 204 (e.g., by coupling between the storage system and the processing system), and in the illustrated embodiment, is provided by a plurality of storage devices 206a, 206b, and 206c. In the embodiment discussed below, the storage devices 206a-206c are provided by solid state drive (SSD) storage devices, but those skilled in the art with reference to the present disclosure will recognize that other types of storage devices may benefit from the teachings of the present disclosure, and those types of storage devices will also fall within the scope of the present disclosure. In the illustrated embodiment, the chassis 202 houses a host database 208, which is accessible by the host engine 204 and is configured to store any information used by the host engine 204 discussed below. Although a particular computing device 200 has been shown, those skilled in the art with reference to the present disclosure will recognize that a computing device (or other device that operates in a manner similar to that described below for the computing device 200 in accordance with the teachings of the present disclosure) may include various components and / or component configurations for providing traditional computing device functionality as well as the functionality discussed below, while also falling within the scope of the present disclosure.
[0019] Reference now Figure 3 , shows an embodiment of a storage device 300, which may provide the above reference Figure 2 As such, the storage device 300 may include any or all of the storage devices 206a-206c discussed above. Figure 1 In the information processing system 100 discussed below, and in a specific example, may be provided by an SSD storage device. However, although shown and discussed as an SSD storage device, those skilled in the art with reference to the present disclosure will recognize that the functionality of the storage device 300 discussed below may be provided by other storage devices configured to operate similarly to the storage device 300 discussed below. In the illustrated embodiment, the storage device 300 includes a chassis 302 that houses the components of the storage device 300, only some of which are shown below. For example, the chassis 302 may house a processing system (not shown, but may include the storage device 300 described above). Figure 11) and a memory system (not shown, but may include the memory 114 discussed above with reference to FIG1) that is coupled to the processing system and includes instructions that, when executed by the processing system, cause the processing system to provide a memory controller 305 having a memory controller engine that is configured to perform the functions of the memory controller and / or storage device discussed below. In the embodiment discussed below, the chassis 302 houses a memory subsystem 304 that is coupled to the memory controller 305 (e.g., through a coupling between the memory subsystem 304 and the processing system) and includes a logical / physical storage location mapping database 306. As will be understood by those skilled in the art with reference to the present disclosure, the memory subsystem 304 may be part of a memory system used with the processing system to provide the memory controller 305, or may be part of a memory system 304 that is separate from the memory controller 305 and also fall within the scope of the present disclosure. In a specific example, the memory subsystem 304 may be provided by a DDR DRAM subsystem, but other memory subsystems will also fall within the scope of the present disclosure.
[0020] The chassis 302 may also house a communication system 308 that is coupled to the storage controller 305 (e.g., via a coupling between the communication system 308 and the processing system) and may be provided by any of a variety of storage controllers (wherein those skilled in the art with reference to this disclosure will recognize that any of these storage controllers will provide the above referenced Figure 2 The chassis 302 may also house a storage subsystem 310 that is coupled to the storage controller 305 (e.g., through a coupling between the storage subsystem 310 and a processing system) and includes storage components in the storage device 300 for storing data. For example, one skilled in the art having reference to the present disclosure will recognize that the SSD storage device includes a storage system provided by a NAND flash memory device, although the teachings of the present disclosure may also be beneficial to other types of storage devices. In the specific example discussed below, one skilled in the art having reference to the present disclosure will recognize that the NAND flash memory device in the storage subsystem 310 provides non-volatile memory that is different from the volatile memory provided by the DDR DRAM used with the memory subsystem 304. However, while a specific storage device 300 has been shown, one skilled in the art having reference to the present disclosure will recognize that a storage device (or other device that operates in accordance with the teachings of the present disclosure similar to that described below for the storage device 300) may include various components and / or component configurations for providing traditional storage device functionality as well as the functionality discussed below, which also falls within the scope of the present disclosure.
[0021] Reference now Figure 4, an embodiment of a method 400 for configuring mapping granularity for a storage device is shown. As described below, the systems and methods of the present disclosure provide the ability for a host to configure mapping granularity associated with a logically allocated address (LAA) and a logical block address (LBA) so as to provide more efficient use of a mapping table in an SSD storage device that maps LAAs to physically allocated addresses (PAAs), while also reducing or even eliminating read-modify-write (RMW) operations required in traditional SSD storage devices, particularly when modifying data stored in a PAA, where the size of the data is less than the number of LBAs associated with the LAA mapped to the PAA. For example, a storage controller in an SSD may receive a storage device mapping granularity configuration command from a host that identifies the number of logical block addresses LBAs to be associated with a plurality of LAAs, and may be operable to associate each of the plurality of LAAs with the number of LBAs identified in a first storage device mapping granularity configuration command. In this way, when the storage controller subsequently writes data to a PAA, the PAA includes a data size equal to the combined LBA size of the number of LBAs identified in the storage device mapping granularity configuration command and associated with each of the multiple LAAs, it can map the PAA to the first LAA (which is included in the multiple LAAs and associated with the multiple LBAs identified in the first storage device mapping granularity configuration command) using a single mapping entry in the mapping table. In addition, since the PAA is mapped to the first LAA associated with the number of LBAs, where the LBA has a combined LBA size equal to the data size of the data written to the PAA, the data can be written directly to the NAND flash storage device identified by the PAA without the need for the RMW operation discussed above. In this way, the mapping table, storage controller, and SSD storage device can be used more efficiently.
[0022] refer to Figure 5 And for the sake of clarity (with respect to terminology used in the following discussion), an embodiment is shown in which multiple logical / physical storage location mappings 500 may be provided in a logical / physical storage location mapping database 306 in a memory subsystem 304 of a computing device 300. In the illustrated embodiment, the logical / physical storage location mappings 500 are shown as being provided for a storage device logical space 502, which is mapped to a storage device physical space 504, which may be included in the storage subsystem 310 and provided by a NAND flash memory device in an SSD storage device, as described above. Figure 5 In the particular example shown, the storage device logical space 502 includes a plurality of LBAs, such as LBA 0, LBA 1, LBA 2, and up to LBA N. In addition, as described above, groups of LBAs can be associated with corresponding LAAs in the storage device logical space 502, wherein Figure 5A conventional association of eight LBAs to each LAA is shown (e.g., LBA 0-LBA 7 are associated with LAA 0, LBA 8-LBA 15 are associated with LAA 1, and so on). Each LAA is also associated with a corresponding PAA in the storage device logical space 502 (e.g., LAA0 is associated with PAAX, LAA 1 is associated with PAA Y, and so on), where each PAA identifies a specific storage location in the storage device physical space 504 (e.g., in a NAND flash memory device). As will be appreciated by those skilled in the art with reference to the present disclosure, storage locations in NAND flash memory devices in SSD storage devices are typically provided in 4KB "allocation units" or "page sizes." Furthermore, in conventional SSD storage devices, each PAA identifying one of those storage locations for storing data is mapped to a corresponding LAA (in a mapping table as discussed above), and each of these LAA / PAA mappings can be considered to be associated with a 4KB "allocation unit" or "page size." Figure 5 The "mapping granularity" of 8 LBAs shown is associated.
[0023] The method 400 begins at box 402, where a storage controller receives a storage device mapping granularity configuration command that identifies the number of logical block addresses (LBAs) to be associated with a plurality of logical allocation addresses (LAAs). In one embodiment, at or prior to box 402, the host engine 204 may determine a desired mapping granularity for a logical / physical storage location mapping to be used to store data. For example, the host engine 204 may identify a data size of a plurality of data to be written to a storage subsystem 310 in a storage device 206a / 300, identify a combined LBA size of a number of LBAs equal to the data size, and determine a desired mapping granularity based on the number of LBAs. As will be understood by those skilled in the art with reference to the present disclosure, the storage devices 206a-206c and / or the storage subsystems 310 in those storage devices may provide a plurality of namespaces, and the host engine 204 may select a namespace to which data will be written and then determine a desired mapping granularity for that namespace as described above. As discussed in further detail below, different mapping granularities may be determined for different namespaces provided by storage devices 206a-206c and / or storage subsystems 310 within those storage devices, so that data of different sizes may be written to a namespace having a mapping granularity determined based on the size of that data / those data.
[0024] Thus, in some examples, the host engine 204 may identify a plurality of data to be written to the storage subsystem 310 in the storage device 206a / 300, including a data size equal to 1 LBA, and in response, may determine a desired mapping granularity of one LBA per LAA. Similarly, in some examples, the host engine 204 may identify a plurality of data to be written to the storage subsystem 310 in the storage device 206a / 300, including a data size equal to 2 LBAs, and in response, may determine a desired mapping granularity of two LBAs per LAA. Similarly, in some examples, the host engine 204 may identify a plurality of data to be written to the storage subsystem 310 in the storage device 206a / 300, including a data size equal to 4 LBAs, and in response, may determine a desired mapping granularity of 4 LBAs per LAA. Similarly, in some examples, the host engine 204 may identify a plurality of data to be written to the storage subsystem 310 in the storage device 206a / 300, including a data size equal to 8 LBAs, and in response, may determine a desired mapping granularity of 8 LBAs per LAA.
[0025] Similarly, in some examples, the host engine 204 may identify multiple data to be written to the storage subsystem 310 in the storage device 206a / 300, including a data size equal to 16 LBAs, and in response, a desired mapping granularity of 16 LBAs per LAA may be determined. Similarly, in some examples, the host engine 204 may identify multiple data to be written to the storage subsystem 310 in the storage device 206a / 300, including a data size equal to 32 LBAs, and in response, a desired mapping granularity of 32 LBAs per LAA may be determined. Those skilled in the art who have referenced the present disclosure will recognize that the traditional mapping granularity of 8 LBAs per LAA discussed above may be provided as a default mapping granularity, and therefore the determination of the desired mapping granularity of 8 LBAs per LAA may not require the mapping granularity configuration operation discussed below. However, those skilled in the art referring to the present disclosure will also recognize that any mapping granularity can be provided as a default value for a namespace, and any desired mapping granularity (e.g., different from the specific examples of desired mapping granularities described above) can also be determined, which will also fall within the scope of the present disclosure.
[0026] Therefore, in one embodiment, at box 404, the host engine 204 can generate a storage device mapping granularity configuration command that identifies the desired mapping granularity discussed above, and the storage device mapping granularity configuration command can be sent to the storage device 206a / 300. However, although discussed as being sent to the storage device 206a / 300, it will be understood by those skilled in the art that the storage device mapping granularity configuration command can be sent to any storage device 206-206c while also falling within the scope of the present disclosure. Thus, at box 404, the storage controller 305 in the storage device 206a / 300 can receive the storage device mapping granularity configuration command via the communication system 308. In some embodiments, the storage device mapping granularity configuration command can be provided by a granularity setting (GR_Set) command, which can be received by the storage controller 305 via a GR_Set command interface, which is provided in the firmware in the storage device 206a / 300 and is used to open the namespace provided by the storage device 206a / 300 to the GR_Set command of the present disclosure. As will be appreciated by those skilled in the art, the GR_Set command may be provided using opcodes defined in the NVMe specification for management command functionality and / or by any other technique known in the art.
[0027] Then, the method 400 proceeds to block 404, where the storage controller associates each of the plurality of LAAs with the number of LBAs identified in the storage device mapping granularity configuration command. In one embodiment, at block 404 and in response to receiving the storage device mapping granularity configuration command at block 402, the storage controller 305 in the storage device 202a may be operated to associate each of the plurality of LAAs identified in the storage device mapping granularity configuration command (e.g., each of the plurality of LAAs of the namespace identified in the storage device mapping granularity configuration command) with the mapping granularity identified in the storage device mapping granularity configuration command (e.g., the number of LBAs identified in the storage device mapping granularity configuration command).
[0028] In a particular example, at box 404, the storage controller 305 can parse (e.g., via a GR_Set command interface provided in firmware in the storage device 206a / 300 and which operates to open a namespace provided by the storage device 206a / 300 to the GR_Set command of the present disclosure) a storage device mapping granularity configuration command (e.g., a GR_Set command) to identify a namespace and a mapping granularity provided therein, and save the mapping granularity in a namespace table associated with the namespace. In this way, a plurality of LAAs provided for the namespace are associated with the number of LBAs identified in the desired mapping granularity in the namespace table. After the mapping granularity is saved in the namespace table associated with the namespace, the namespace table can be stored in association with a mapping table for the namespace in a logical / physical storage location mapping database 306 provided by the memory subsystem 304, which operates to set the mapping granularity of LAA mapping to PAA based on a request of the host engine 204. In addition, in some embodiments, the namespace table can also be saved to the storage subsystem 310. For example, a person skilled in the art having reference to the present disclosure will recognize that the storage subsystem 310 may include a NAND memory device provided for storing host / user data, and a NAND memory device provided for storing flash translation layer (FTL) information, and how a copy of the namespace table may be stored as part of the FTL information to allow the namespace table to be loaded from the storage subsystem 310 into a logical / physical storage location mapping database 306 provided by the memory subsystem 304, for example, during subsequent boot, reset, and / or other initialization operations for the computing device 200, embodiments of which are discussed in further detail below.
[0029] The method 400 then proceeds to block 406, where the storage controller writes data to the physical allocation address (PAA) having a data size equal to the combined LBA size of the number of LBAs identified by the mapping granularity configuration command and associated with each of the plurality of LAAs in the storage device. In one embodiment, at block 406 and after setting the mapping granularity of the namespace as described above, the storage controller 305 in the storage device 206a / 300 may receive data to write to the storage subsystem 310 via its communication system 308, and in response, may write the data to the PAA defining a storage location in the storage subsystem 310. As described above, the configuration of the mapping granularity of the namespace at block 404 may be performed based on a particular size of data to be written to the namespace, and thus, receiving the data may cause the storage controller 305 to identify the namespace for which the mapping granularity is configured to store the data, identify the PAA of the storage location provided by the namespace, and store the data at the storage location identified by the PAA.
[0030] Thus, at block 406, the storage controller 305 may receive data having a data size equal to 1 LBA and may write the data into a PAA associated with the namespace configured at block 406, where a mapping granularity of 1 LBA per LAA is provided for the namespace. Similarly, at block 406, the storage controller 305 may receive data having a data size equal to 2 LBAs and may write the data into a PAA associated with the namespace configured at block 406, where a mapping granularity of 2 LBAs per LAA is provided for the namespace. Similarly, at block 406, the storage controller 305 may receive data having a data size equal to 4 LBAs and may write the data into a PAA associated with the namespace configured at block 406, where a mapping granularity of 4 LBAs per LAA is provided for the namespace. Similarly, at box 406, the storage controller 305 can receive data having a data size equal to 8 LBAs and can write the data to a PAA associated with the namespace configured at box 406, where a mapping granularity of 8 LBAs per LAA is provided for the namespace.
[0031] Similarly, at box 406, the storage controller 305 may receive data having a data size equal to 16 LBAs and may write the data to a PAA associated with a namespace configured at box 406, where a mapping granularity of 16 LBAs per LAA is provided for the namespace. Similarly, at box 406, the storage controller 305 may receive data having a data size equal to 32 LBAs and may write the data to a PAA associated with a namespace configured at box 406, where a mapping granularity of 32 LBAs per LAA is provided for the namespace. However, while various specific examples have been provided, those skilled in the art with reference to the present disclosure will recognize that data may be written to a storage subsystem 310 configured with any mapping granularity while also falling within the scope of the present disclosure.
[0032] Then, the method 400 proceeds to block 408, where the storage controller maps the PAA to a first LAA of the plurality of LAAs associated with the number of LBAs identified in the storage device mapping granularity configuration command. In one embodiment, at block 408, the storage controller 305 may be operable to map the PAA (to which the data was written in block 406) to one of the plurality of LAAs associated with the namespace associated with the PAA. For example, referring to Figure 6 , shows an embodiment of a logical / physical storage location mapping 600, which may be provided in a logical / physical storage location mapping database 306 in the memory subsystem 304 of the computing device 300 at block 408. Similarly, as described above using Figure 5 As described above with respect to the logical / physical storage location map 500, the logical / physical storage location map 600 is shown as having a storage device logical space 602, which may be mapped to a storage device physical space 604, which may be included in the storage subsystem 310 and provided by a NAND flash memory device in an SSD storage device. Figure 6 In the specific example shown, the storage device logical space 602 includes multiple LBAs, including LBA 0, LBA 1, LBA 2, and up to LBA N, and according to the method 400, a mapping granularity of 32 LBAs for each LAA is provided.
[0033] Thus, at block 406, data equal to 32 LBAs in size is written to storage device physical location 604a in storage device physical space 604 identified by PAA 0, and at block 408, the storage controller maps PAA 0 to LAA 0 associated with 32 LBAs (LBA0-LBA 31). As will be appreciated by those skilled in the art with reference to this disclosure, in this case, the PAA to LAA mapping requires only a single mapping entry, such as the mapping entry in the following portion of the mapping table:
[0034] Logical address assignment Physically assigned address LAA 0 PAA 0
[0035] As will be appreciated by those skilled in the art with reference to the present disclosure, the ability to provide a mapping entry as a single entry is achieved through a mapping granularity of LAA 0 to 32 LBAs, which provides a combined LBA size equal to the size of the data written to PAA 0, as shown in this example. In contrast, a traditional mapping granularity of 8 LBAs per LAA would require that the data be broken into four 8-LBA sized portions and written to four PAAs, thus requiring four mapping entries (e.g., one for each PAA / LAA combination). However, while a specific mapping granularity of 32 LBAs per LAA has been described, those skilled in the art will recognize that other mapping granularities will provide similar benefits.
[0036] In another example, reference Figure 7 , shows an embodiment of a logical / physical storage location mapping 700, which may be provided in a logical / physical storage location mapping database 306 in a memory subsystem 304 of a computing device at block 408. Similar to the above-described Figure 5 5, logical / physical storage location mapping 700 is shown having a storage device logical space 702 that may be mapped to a storage device physical space 704 that may be included in the storage subsystem 310 and provided by a NAND flash memory device in an SSD storage device. Figure 7In the specific example shown, the storage device logical space 702 includes multiple LBAs, including LBA 0, LBA 1, LBA 2, and up to LBA N, and a mapping granularity of 4 LBAs per LAA is provided according to the method 400. Thus, at box 406, data equal in size to 4 LBAs is written to the storage device physical location 604a in the storage device physical space 604 identified by PAA 0, and at box 408, the storage controller maps PAA 0 to LAA0 associated with 4 LBAs (LBA 0-LBA 3). As will be understood by those skilled in the art with reference to the present disclosure, in this case, the mapping of PAA to LAA requires only a single mapping entry similar to that described above.
[0037] Furthermore, as will be appreciated by those skilled in the art, by configuring those namespaces with relatively small mapping granularity (e.g. Figure 7 ), a namespace may be provided for data having a relatively small data size so as to reduce and / or eliminate the need for the above-described RMW operation. For example, data written to a storage device physical location 604a in a storage device physical space 604 identified by PAA0 and including a data size equal to four LBAs may be modified by simply writing new data to a storage device physical location 604a having a data size equal to 4 LBAs (e.g., a NAND flash memory device identified by PAA0). Compared to the conventional mapping granularity of 8 LBAs per LAA, writing new data having a data size equal to 4 LBAs will require reading 8 LBAs of existing data from the storage device physical location identified by the PAA, modifying the existing data using the new data to provide the modified data, and writing the 8-LBA-sized modified data back to the storage device physical location identified by the PAA. In this way, resources of the storage controller 305 may be saved through the mapping granularity configuration of the present disclosure.
[0038] The method 400 then proceeds to box 410, where the storage controller receives a storage device mapping granularity reporting command requesting a mapping granularity associated with multiple LAAs. In one embodiment, in box 410, the host engine 204 can generate a storage device mapping granularity reporting command requesting a mapping granularity associated with any namespace provided by the storage subsystem 310 in the storage device 206-206c, and send the storage device mapping granularity reporting command to the storage device 206a-206c. For example, during startup, reset, and / or other initialization operations of the computing device 200, the host engine 204 can operate to request a mapping granularity associated with any namespace provided by the storage device 206a-206c. Thus, in box 404, the storage controller 305 in the storage device 300 can receive the storage device mapping granularity reporting command via the communication system 308. Similar to what is described below for the GR-Set command, the storage device mapping granularity configuration command may be provided by a granularity acquisition (GR_Get) command, which may be received by the storage controller 305 via a GR_Get command interface provided in firmware in the storage device 300 and used to open a namespace provided to the GR_Get command of the present disclosure by the storage device 300. As will be appreciated by those skilled in the art with reference to the present disclosure, the GR_Get command may be provided using the opcode function for management commands defined in the NVMe specification and / or by any other technique known in the art.
[0039] The method 400 then proceeds to box 412, where the storage controller identifies the number of LBAs associated with the plurality of LAAs. In one embodiment, at box 412 and in response to receiving the storage device mapping granularity report command at box 412, the storage controller 305 in the storage device 202a can be operated to retrieve a namespace table stored in the storage subsystem 310 (e.g., in the FTL information in the NAND flash memory device as described above) and provide the namespace table in the logical / physical storage location mapping database 306 in the memory subsystem 304. The storage controller 305 can then access the namespace identified in the storage device mapping granularity report command, retrieve the mapping granularity associated with the namespace, and send the mapping granularity to the host engine 204. As will be understood by those skilled in the art with reference to the present disclosure, the host engine 204 can then provide the mapping granularity for display to a user, and / or use the mapping granularity to perform various other actions known in the art.
[0040] Then, method 400 can return to box 402 so that method 400 can be repeated. In this way, different namespaces provided by the storage subsystem 310 in the storage device 206a-206c / 300 can be configured with different mapping granularities based on, for example, the data size of the data to be stored in those namespaces and / or any other considerations that are obvious to those skilled in the art with reference to the present disclosure. In this way, the host engine 204 can attempt to optimize the data processing operations of the storage controllers in the storage devices 206a-206c, reduce the size of the mapping tables in the storage devices 206a-206c, and / or provide various other benefits that are obvious to those skilled in the art with reference to the present disclosure. For example, a host that processes relatively large data can configure a higher percentage of its accessible namespace to use a relatively large mapping granularity, while a host that processes relatively small data can configure a higher percentage of its accessible namespace to use a relatively small mapping granularity. In addition, hosts that process data of various sizes can configure mapping granularity according to the hierarchy, as shown in the following table:
[0041] Percentage of namespaces Namespace granularity 10% 32X LBA 20% 16X LBA 50% 8X LBA 15% 4X LBA 5% 1X LBA
[0042] In some embodiments, the systems and methods of the present disclosure may be implemented by modifying the data structure of the PAA to, for example, ensure that a wear leveling algorithm can function correctly. For example, some wear leveling algorithms require a fixed-size NAND memory device, so the data structure of the PAA of the present disclosure may be modified to ensure that the wear leveling operation unit is a complete payload. For example, each data payload stored in the PAA may be associated with metadata including information associated with a namespace storing the data (e.g., a namespace identifier), an LAA associated with the PAA identifying the storage location of the data (e.g., an LAA value), a total number of payloads, and a payload offset (as well as error correction code (ECC) information). In this way, each NAND memory device (e.g., an allocation unit or page) may store the following data in the following table:
[0043]
[0044] Furthermore, as discussed, each metadata portion stored in a NAND memory device (e.g., an allocation unit or page) as detailed in the table above may include the following data in the table below:
[0045] Namespace Identifier LAA value Total payload Payload offset
[0046] As will be appreciated by those skilled in the art with reference to the present disclosure, for each data operation (e.g., read, write, erase operation) that is part of a wear leveling operation, the payload total / offset may be checked to ensure that a complete payload is being operated on and that there is no interference between different namespaces. For example, the four payload parts above and their associated metadata may include the information in the following table:
[0047] Namespace Identifier LAA value Total payload Payload offset 3 100 4 0 3 100 4 1 3 100 4 2 3 100 4 3
[0048] Thus, the metadata identifiers in the four payload portions are each associated with the same namespace, LAA, and payload, and are provided in a specific order (e.g., according to payload offset values 0-3).
[0049] Thus, systems and methods have been described that provide a host with the ability to configure a mapping granularity associated with a logical storage location identifier so as to more efficiently use a mapping table in a storage device that maps the logical storage location identifier to a physical storage location identifier, and reduce or eliminate the need for read-modify-write (RMW) operations required in conventional storage devices when modifying data stored in a physical location and the data size is less than the mapping granularity associated with the logical identifier mapped to the physical identifier identifying the physical location. For example, a storage controller in a storage device may receive a configuration command from a host that identifies a number of LBAs associated with a plurality of LAAs, and may be operable to associate each of the plurality of LAAs with the number of LBAs identified in the configuration command. Thus, when the storage controller subsequently writes data to a PAA that includes a data size that is equal to the combined LBA size of the number of LBAs identified in the configuration command and associated with each of the plurality of LAAs, it may map the PAA to a first LAA that is included in the plurality of LAAs and associate the number of LBAs identified in the configuration command with a single mapping entry in the mapping table. In addition, since the PAA is mapped to the first LAA associated with the number of LBAs and its size is equal to the data size of the data written to the PAA, the data can be directly written to the NAND flash memory device identified by the PAA without the need for the RMW operation discussed above. In this way, the mapping table, storage controller, and storage device can be used more efficiently.
[0050] Although illustrative embodiments have been shown and described, various modifications, changes, and substitutions are contemplated in the foregoing disclosure, and in some cases, some features of the embodiments may be employed without correspondingly employing other features. It is appropriate, therefore, that the appended claims be interpreted broadly and in a manner consistent with the scope of the embodiments disclosed herein.
Claims
1. A storage device, include: Storage subsystem; a logical / physical storage location mapping database configured to map logically allocated addresses to physically allocated addresses identifying physical locations in the storage subsystem; as well as a storage controller coupled to the storage subsystem and the logical / physical storage location mapping database, wherein the storage controller is configured to: receiving, from a host engine, a first storage device mapping granularity configuration command, the first storage device mapping granularity configuration command identifying a first number of logical block addresses associated with a first plurality of logically allocated addresses; associating each of the first plurality of logically allocated addresses with the first number of logical block addresses identified in the first storage device mapping granularity configuration command; identifying first data provided for writing to the storage subsystem and having a first data size equal to a first combined logical block address size of the first number of logical block addresses; mapping, in the logical / physical storage location mapping database, a first physically allocated address to a first logically allocated address, the first logically allocated address being included in the first plurality of logically allocated addresses and being associated with the first number of logical block addresses identified in the first storage device mapping granularity configuration command; as well as The first data is directly written to a first physical location in the storage subsystem identified by the first physically assigned address mapped to the first logically assigned address without performing a read-modify-write (RMW) operation.
2. The storage device according to claim 1, in, The storage controller is configured to: receiving from the host engine a second storage device mapping granularity configuration command, the second storage device mapping granularity configuration command identifying a second number of logical block addresses to be associated with a second plurality of logically allocated addresses, wherein the second number of logical block addresses is different from the first number of logical block addresses; associating each of the second plurality of logically allocated addresses with the second number of logical block addresses identified in the second storage device mapping granularity configuration command; identifying second data provided for writing to the storage subsystem and having a second data size equal to a second combined logical block address size of the second number of logical block addresses; mapping, in the logical / physical storage location mapping database, a second physically allocated address to a second logically allocated address, the second logically allocated address being included in the second plurality of logically allocated addresses and being associated with the second number of logical block addresses identified in the second storage device mapping granularity configuration command; as well as Without performing a read-modify-write operation, the second data is directly written to a second physical location in the storage subsystem identified by the second physically assigned address mapped to the second logically assigned address.
3. The storage device of claim 2, wherein the first plurality of logically assigned addresses are associated with a first namespace provided by the storage subsystem, and the second plurality of logically assigned addresses are associated with a second namespace provided by the storage subsystem, and the second namespace is different from the first namespace.
4. The storage device according to claim 1, in, The storage controller is configured to: receiving a storage device mapping granularity reporting command from the host engine, the storage device mapping granularity reporting command requesting a mapping granularity associated with the first plurality of logically allocated addresses; as well as The first number of logical block addresses associated with each of the first plurality of logical allocation addresses is identified to the host engine.
5. The storage device of claim 1, wherein the storage subsystem comprises a NAND flash memory device.
6. The storage device according to claim 1, wherein the storage controller is configured to: Associating, in a mapping granularity table, the first plurality of logically allocated addresses with the first number of logical block addresses identified in the first storage device mapping granularity configuration command; and The mapping granularity table is stored in the storage subsystem.
7. An information processing system, include: Processing systems; as well as a storage system coupled to the processing system and comprising instructions that, when executed by the processing system, cause the processing system to provide a storage controller engine configured to: receiving, from a host engine, a first storage device mapping granularity configuration command, the first storage device mapping granularity configuration command identifying a first number of logical block addresses associated with a first plurality of logically allocated addresses; associating each of the first plurality of logically allocated addresses with the first number of logical block addresses identified in the first storage device mapping granularity configuration command; identifying first data that has been provided for writing to the storage subsystem and has a first data size that is equal to a first combined logical block address size of the first number of logical block addresses; mapping, in a logical / physical storage location mapping database, a first physically allocated address identifying a first physical location in the storage subsystem to a first logically allocated address, the first logically allocated address being included in the first plurality of logically allocated addresses and wherein the first logically allocated address is associated with the first number of logical block addresses identified in the first storage device mapping granularity configuration command; as well as The first data is directly written to the first physical location in the storage subsystem identified by the first physically assigned address mapped to the first logically assigned address without performing a read-modify-write (RMW) operation.
8. The information handling system of claim 7, wherein the storage controller engine is configured to: receiving from the host engine a second storage device mapping granularity configuration command, the second storage device mapping granularity configuration command identifying a second number of logical block addresses associated with a second plurality of logically allocated addresses, wherein the second number of logical block addresses is different from the first number of logical block addresses; associating each of the second plurality of logically allocated addresses with the second number of logical block addresses identified in the second storage device mapping granularity configuration command; identifying second data provided for writing to the storage subsystem and having a second data size equal to a second combined logical block address size of the second number of logical block addresses; In the logical / physical storage location mapping database, a second physical allocation address identifying a second physical location in the storage subsystem is mapped to a second logical allocation address, the second logical allocation address being included in the second plurality of logical allocation addresses and in, The second logical allocation address is associated with the second number of logical block addresses identified in the second storage device mapping granularity configuration command; as well as The second data is directly written to the second physical location in the storage subsystem identified by the second physically assigned address mapped to the second logically assigned address without performing a read-modify-write operation.
9. The information processing system of claim 8, wherein the first plurality of logically assigned addresses are associated with a first namespace provided by the storage subsystem, and the second plurality of logically assigned addresses are associated with a second namespace provided by the storage subsystem, and the second namespace is different from the first namespace.
10. The information handling system of claim 7, wherein the storage controller engine is configured to: receiving a storage device mapping granularity reporting command from the host engine, the storage device mapping granularity reporting command requesting a mapping granularity associated with the first plurality of logically allocated addresses; and The first number of logical block addresses associated with each of the first plurality of logical allocation addresses is identified to the host engine.
11. The information handling system of claim 7, wherein the storage subsystem comprises a NAND flash memory device.
12. The information handling system of claim 7, wherein the storage controller engine is configured to: Associating, in a mapping granularity table, the first plurality of logically allocated addresses with the first number of logical block addresses identified in the first storage device mapping granularity configuration command; and The mapping granularity table is stored in the storage subsystem.
13. The information handling system of claim 12, wherein the mapping granularity table is a namespace table, and the first plurality of logically allocated addresses are associated with a first namespace identified in the namespace table.
14. A method for configuring mapping granularity for a storage device, include: Receiving, by the storage controller from the host engine, a first storage device mapping granularity configuration command, the first storage device mapping granularity configuration command identifying a first number of logical block addresses associated with a first plurality of logically allocated addresses; associating, by the storage controller, each of the first plurality of logically allocated addresses with the first number of logical block addresses identified in the first storage device mapping granularity configuration command; identifying, by the storage controller, first data that has been provided for writing to the storage subsystem and has a first data size that is equal to a first combined logical block address size of the first number of logical block addresses; mapping, by the storage controller, in a logical / physical storage location mapping database, a first physically allocated address to a first logically allocated address, the first logically allocated address being included in the first plurality of logically allocated addresses and the first logically allocated address being associated with the first number of logical block addresses identified in the first storage device mapping granularity configuration command; as well as The first data is directly written by the storage controller to a first physical location in the storage subsystem identified by the first physically assigned address mapped to the first logically assigned address without performing a read-modify-write (RMW) operation.
15. The method according to claim 14, further comprising: include: receiving, by the storage controller from the host engine, a second storage device mapping granularity configuration command, the second storage device mapping granularity configuration command identifying a second number of logical block addresses associated with a second plurality of logically allocated addresses, wherein the second number of logical block addresses is different from the first number of logical block addresses; associating, by the storage controller, each of the second plurality of logically allocated addresses with the second number of logical block addresses identified in the second storage device mapping granularity configuration command; identifying, by the storage controller, second data that has been provided for writing to the storage subsystem and that has a second data size that is equal to a second combined logical block address size of the second number of logical block addresses; mapping, by the storage controller, in the logical / physical storage location mapping database, a second physically allocated address to a second logically allocated address, the second logically allocated address being included in the second plurality of logically allocated addresses and the second logically allocated address being associated with the second number of logical block addresses identified in the second storage device mapping granularity configuration command; as well as The second data is directly written by the storage controller to a second physical location in the storage subsystem identified by the second physically assigned address mapped to the second logically assigned address without performing a read-modify-write operation.
16. The method of claim 15, wherein the first plurality of logically assigned addresses are associated with a first namespace provided by the storage subsystem, and the second plurality of logically assigned addresses are associated with a second namespace provided by the storage subsystem, and the second namespace is different from the first namespace.
17. The method according to claim 14, further comprising: include: receiving, by the storage controller from the host engine, a storage device mapping granularity reporting command requesting a mapping granularity associated with the first plurality of logically allocated addresses; as well as A first number of logical block addresses associated with each of the first plurality of logical allocation addresses is identified, by the storage controller, to the host engine.
18. The method of claim 14, wherein the storage subsystem comprises a NAND flash memory device.
19. The method according to claim 14, further comprising: include: Associating, by the storage controller, in a mapping granularity table, the first plurality of logically allocated addresses with the first number of logical block addresses identified in the first storage device mapping granularity configuration command; as well as The storage controller stores the mapping granularity table in the storage subsystem.
20. The method of claim 19, wherein the mapping granularity table is a namespace table, and the first plurality of logically allocated addresses are associated with a first namespace identified in the namespace table.
