Host interface layer in storage device and method for processing request

By introducing an arbitrator and command parser at the host interface layer into the storage device and dynamically adjusting the weights, the problems of performance isolation and QoS guarantee in multi-tenant systems are solved, and effective isolation and priority processing between tenants are achieved.

CN114461133BActive Publication Date: 2024-08-23SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111251989.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-03-01
Filing Date
2021-10-25
Publication Date
2024-08-23
Estimated Expiration
2041-10-25

AI Technical Summary

Technical Problem

Existing technologies struggle to achieve effective performance isolation in multi-tenant systems, especially with a large number of tenants, making it difficult to meet Quality of Service (QoS) guarantees.

Method used

By introducing a host interface layer into the storage device, using an arbiter, command retrieval unit, and command parser to select the commit queue (SQ), and dynamically adjusting weights based on namespace (NS) and QoS level, performance isolation between tenants is achieved.

Benefits of technology

It achieves effective performance isolation and quality of service guarantee in multi-tenant systems, ensuring that I/O requests from different tenants are processed according to priority, thereby improving the QoS balance and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114461133B_ABST
    Figure CN114461133B_ABST
Patent Text Reader

Abstract

A host interface layer in a storage device and a method for processing a request are described. The host interface layer may include an arbitrator for selecting a first submission queue (SQ) from a set including at least a first SQ and a second SQ. The first SQ may be associated with a first quality of service (QoS) level, and the second SQ may be associated with a second QoS level. A command acquirer may acquire an input / output (I / O) request from the first SQ. A command parser may place the I / O request in a first command queue from a set including at least a first command queue and a second command queue. The arbitrator may be configured to select the first SQ based at least in part on a first weight associated with the first SQ and a second weight associated with the second SQ. The first weight may be based at least in part on a first total storage capacity of at least one first namespace (NS) associated with the first QoS level, and the second weight may be based at least in part on a second total storage capacity of at least one second NS associated with the second QoS level.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the benefit of U.S. Provisional Patent Application No. 63 / 112,146 filed on November 10, 2020 and U.S. Provisional Patent Application No. 63 / 112,150 filed on November 10, 2020, both of which are incorporated herein by reference for all purposes.

[0002] This application is related to U.S. patent application No. 17 / 189,255 filed on March 1, 2021, which is incorporated herein by reference for all purposes. Technical Field

[0003] The disclosure relates generally to systems including storage devices, and more particularly to a host interface layer in a storage device and a method of processing requests. Background Art

[0004] Enterprises that provide storage to tenants, such as hyperscalers and enterprise solutions, desire to achieve performance isolation between tenants in their multi-tenant systems. That is, these enterprises desire to provide Quality of Service (QoS) / Service Level Agreement (SLA) guarantees. Various solutions have been explored to achieve such isolation. However, the large number of tenants (which can number in the thousands or more) limits the applicability of tested solutions for truly providing performance isolation.

[0005] There is still a need to provide performance isolation for systems involving a large number of tenants. Summary of the invention

[0006] In one general aspect, a host interface layer in a storage device includes: an arbiter for selecting a first submission queue (SQ) from a set including at least a first SQ and a second SQ, the first SQ being associated with a first quality of service (QoS) level and the second SQ being associated with a second QoS level; a command fetcher for fetching input / output (I / O) requests from the first SQ; and a command parser for placing the I / O requests in the first command queue from the set including at least the first command queue and the second command queue. The arbiter is configured to select the first SQ from the set including at least the first SQ and the second SQ based at least in part on a first weight associated with the first SQ and a second weight associated with the second SQ. The first weight is based at least in part on a first total storage capacity of at least one first namespace (NS) associated with the first QoS level. The second weight is based at least in part on a second total storage capacity of at least one second NS associated with the second QoS level.

[0007] In another general aspect, a method includes: determining a first weight for a first submission queue (SQ) based at least in part on a first total storage capacity of at least one first namespace (NS) associated with a first quality of service (QoS) level; determining a second weight for a second SQ, the second SQ based at least in part on a second total storage capacity of at least one second NS associated with a second QoS level; selecting a first SQ from the first SQ and the second SQ based at least in part on the first weight and the second weight; selecting an input / output (I / O) request in the first SQ; selecting a first command queue from a set including at least a first command queue and a second command queue based at least in part on a first QoS level for the I / O request; and placing the I / O request in the first command queue based at least in part on the first QoS level for the I / O request.

[0008] In another general aspect, an article comprising a non-transitory storage medium having instructions stored thereon that, when executed by a machine, result in: determining a first weight for a first submission queue (SQ) based at least in part on a first total storage capacity of at least one first namespace (NS) associated with a first quality of service (QoS) level; determining a second weight for a second SQ based at least in part on a second total storage capacity of at least one second NS associated with a second QoS level; selecting a first SQ from the first SQ and the second SQ based at least in part on the first weight and the second weight; selecting an input / output (I / O) request in the first SQ; selecting a first command queue from a set including at least a first command queue and a second command queue based at least in part on a first QoS level for the I / O request; and placing the I / O request in the first command queue based at least in part on the first QoS level for the I / O request. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 A system including a storage device that can provide end-to-end tenant isolation is shown.

[0010] Figure 2 Show Figure 1 Details of the machine.

[0011] Figure 3 Show Figure 1 A processor with multiple cores, multiple submission queues (SQs), and multiple non-volatile memories (NVM) sets.

[0012] FIG. 4A to FIG. 4C Shows the use of Figure 1 Running on a processor Figure 3 The NVM set is associated with Figure 3Various applications of the namespace (NS).

[0013] Figure 5 Show Figure 1 Details of the SSD.

[0014] Figure 6 Show Figure 5 Details of the host interface layer.

[0015] Fig. 7A Show management for Figure 6 The weight of the scheduling algorithm implemented by the arbiter.

[0016] Figure 7B Show management for Figure 6 The weight of the scheduling algorithm implemented by the arbiter.

[0017] Figure 8 Show Figure 5 Details of the Flash Translation Layer.

[0018] Fig. 9 Show Figure 1 The superblock of the partition in the SSD.

[0019] Fig.10 Show Figure 1 An optional diagram of the superblocks of a partition in an SSD.

[0020] Fig.11 Show Figure 1 SSD Figure 5 The super block in the flash chip.

[0021] Fig.12 Show Figure 5 Details of the NAND interface layer.

[0022] Fig.13 Write requests associated with quality of service (QoS) classes are shown.

[0023] FIG. 14A to FIG. 14B Shown for Fig.13 Write requests are mapped to Figure 3 Flowchart of an example process of SQ.

[0024] FIG. 15A to FIG. 15B Shown for Figure 5 The host interface layer handles the Figure 3 A flowchart of an example process for an SQ request.

[0025] Fig.16 Shown is the method for determining Figure 6 A flowchart of an example process for using weights for an arbitrator.

[0026] Fig.17 Shown for Fig.13 The data in the write request is written Fig. 9 Flowchart of an example process for locating a superblock in a partition.

[0027] Fig.18 Shown for selection Fig. 9 The superblock in the partition Fig.13 Flowchart of an example process by which data in a write request may be written to a SuperBlock.

[0028] Fig.19 Shown for Fig. 9 A flowchart of an example process for performing garbage collection or wear leveling on a partition of

[0029] Fig. 20 Shown for Fig. 9 Flowchart of an example process for removing a superblock from a partition. DETAILED DESCRIPTION

[0030] Reference will now be made in detail to the disclosed embodiments, examples of which are shown in the accompanying drawings. In the following detailed description, many specific details are set forth to enable a thorough understanding of the disclosure. However, it should be understood that one of ordinary skill in the art may practice disclosure without these specific details. In other cases, well-known methods, processes, components, circuits, and networks are not described in detail to avoid unnecessarily obscuring aspects of the embodiments.

[0031] It will be understood that although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, without departing from the scope of the disclosure, a first module may be referred to as a second module, and similarly, a second module may be referred to as a first module.

[0032] The terms used in the disclosed descriptions herein are only for the purpose of describing specific embodiments and are not intended to limit disclosure. As used in the disclosed descriptions and the appended claims, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. It will also be understood that the term "and / or" as used herein represents and encompasses any and all feasible combinations of one or more of the relevant listed items. It will also be understood that the terms "including" and / or "comprising" when used in this specification indicate the presence of the features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their groups. The components and features of the accompanying drawings do not have to be drawn to scale.

[0033] As device capacity and performance increase, multi-tenant support in storage devices has become important. The disclosed embodiments introduce a new architecture for a system including a storage device (such as a solid-state drive (SSD)) for multi-tenant support in terms of quality of service (QoS) and space. Such an architecture can provide performance isolation and integrate spatial isolation, performance isolation, and a host interface set to implement the multi-tenant concept. The disclosed embodiments may include a full-system architecture that provides end-to-end performance isolation between tenants, from applications to NAND modules, and a QoS service level agreement (SLA) for each tenant (e.g., an application or virtual machine (VM) or container) in a multi-tenant system.

[0034] Using the host and SSD internal architecture design, the disclosed embodiments can support performance isolation between tenants without using technologies such as streaming, single root input / output (I / O) virtualization (SR-IOV), or multi-function network devices. By utilizing the non-volatile memory express (NVMe) standard technology, almost no host-side software overhead is required.

[0035] The host may implement a performance isolation scheme based on namespaces (NS) and non-volatile memory (NVM) sets. (NVM sets may also be referred to as sets.) Storage for applications in a storage device may be allocated through NSs. NSs may be associated with NVM sets. NVM sets may be associated with submission queues (SQs) with QoS levels. SQs may provide performance isolation and control based on QoS levels.

[0036] An NVM set can be understood as a collection of NVMs that includes a set of NSs that are logically and potentially physically separated from other NVMs. By making the set create command a logical but "vendor specific" extension of NVMe, a set can be created by an administrator using a private interface or a published interface.

[0037] Each NVM set may have the following attributes: an identifier (ID) associated with the NVM set (which may be, for example, a 16-bit value); an optimal size for writing to the NVM set; a total capacity of the NVM set; and an unallocated capacity of the NVM set. The NVM set may also include an attribute for the QoS level / type of the set.

[0038] An administrator may create multiple NVM sets, one (or more) NVM set for each QoS level. Any number (one or more) of QoS levels may be used, and therefore, any number of NVM sets may be used. For example, if a core includes four I / O operations per second (IOPS) QoS levels labeled Urgent (U), High (H), Medium (M), and Low (L), then an administrator may create four NVM sets. Each NVM set may be initialized with an NVM set attribute indicating the corresponding QoS level.

[0039] The processor may include one or more cores. For each core in the processor of the machine, the administrator may create one or more SQs. Each SQ may be assigned a priority corresponding to one of the QoS levels used by the NVM set. In each core, there may be one or more SQs for each QoS level. In some disclosed embodiments, if one (or more) QoS levels are to be defined but not used, the administrator will not assign any SQs to that QoS level / those QoS levels. The administrator may assign a priority to each SQ to correspond to one of the QoS levels of the NVM set. The administrator may also associate an SQ with an NVM set.

[0040] The command submitted to the I / O SQ may include various fields. One of these fields, such as command double word (CDW) 11 (bits 02:01), may indicate the SQ priority for the Weighted Round Robin (WRR) scheduling algorithm. Another of these fields, such as CDW 12 (bits 15:00), may be used to indicate the NVM set bound to the SQ. When creating an SQ, an administrator may use "CDW 12 bit 15:00" to bind a specific SQ to an NVM set.

[0041] There may be a 1:1 correspondence between QoS levels and NVM sets and between NVM sets and SQs. Thus, there may be a 1:1 correspondence between QoS levels and SQs. In some embodiments, there may be a many-to-one relationship between some (or all) SQs and NVM sets. There may also be more than one NVM set associated with a single QoS level.

[0042] The host may also include a controller management section for each core in the processor of the machine, which may include management submission and completion queues. The host may also include an I / O completion queue for receiving data from the storage device.

[0043] The disclosed embodiments may include a mechanism for binding an application to a NS, which in turn may be bound to a NVM set, which in turn may be bound to an SQ. Performance SLAs may then be assigned to commands from an application and passed to a storage device based on the QoS level assigned to the SQ. By limiting the I / O path for an application to a specific SQ, the I / O path may be from the application to the NS to the NVM set to the SQ, and the associated QoS attributes may be passed to the storage device. Priority scheduling for I / O commands may also be achieved by limiting the I / O path from the application to the SQ. An application may obtain any SQ priority level for its I / O commands by running on any core without running on a specific core. The same NVM set may be bound to one (or more) SQ in each core of a processor. By using more than one NS, each NS may be associated with a different NVM set, and a single application may have multiple QoS and priority levels depending on the NS used. The disclosed embodiments may also support different QoS options (e.g., IOPS, latency, bandwidth, throughput, etc.) by having more NVM sets.

[0044] When an application needs to access a storage device, the application can create a NS and tag the NS with an NVM set ID, which can occur as part of a NS create command, which can be an NVMe command (e.g., a "vendor specific" extension). By binding the NS to the NVM set, the NS can inherit the associated QoS level of the NVM set. The binding can also create a path from the application to the SQ associated with the QoS level. Therefore, I / O commands from the application can be sent to the SQ associated with the NVM set. The application can create more than one NS and associate each NS with a different NVM set (and therefore, a different QoS level). Additional NSs can be given different identifiers to support uniquely identifying the NS.

[0045] When an application creates a NS using the NS create command, the application can select what NVM set the NS is associated with (it can use, for example, bits 101:100 of the NS create command as the NVM set identifier). The created NS can get attributes (such as QoS level) from the NVM set.

[0046] Based on the priority of the SQ, different I / O commands may have different weights, which may result in priority scheduling based on, for example, the WRR scheduling algorithm.

[0047] An application can be dedicated to only one NS and QoS level. An application can run in any core and maintain the QoS level and priority level. Each core can have its own SQ and completion queue. Therefore, commands sent by an application can be mapped to an NVM set, which in turn can be mapped to the appropriate SQ within the core.

[0048] An application can run in any core (e.g., a multi-threaded application) using one NS and maintain its QoS level and priority level. For example, application App1 can create an NS identified as "NS 10" and associate it with NVM set L. Because the administrator may have created an SQ with a low priority level in core 0 and associated it with NVM set L, and created an SQ with a low priority level in core 1 and associated it with NVM set L, application App1 can run in core 0, core 1, or both, and I / O commands from App1 will still have a restricted path to the SQ with a low priority and the SQ associated with the NVM set with a low QoS level. Therefore, application App1 can maintain QoS level and priority level when running on any core or multiple cores. Requests sent by applications running on core 0 can be sent to the appropriate SQ associated with core 0; requests sent by applications running on core 1 can be sent to the appropriate SQ associated with core 1.

[0049] An application may also have multiple QoS levels and priority levels running in one or more cores. For example, an application may create multiple NSs, associate those NSs with different NVM sets, and thereby have access to multiple QoS levels and priority levels. Requests associated with NSs associated with NVM set M may be sent to a medium SQ, and requests associated with NSs associated with NVM set U may be sent to an urgent SQ.

[0050] Different QoS options (e.g., IOPS, latency, bandwidth, throughput, etc.) may be supported by having more NVM sets. For example, one pair of cores may use NVM sets with IOPS-based priorities, while another pair of cores may use NVM sets with latency-based priorities. The disclosed embodiments may be extended to any number of cores using any number of priority levels. In some disclosed embodiments, a core may support NVM sets with different QoS options and different QoS levels for each QoS option.

[0051] The disclosed embodiments implement restricted paths for I / O commands, implement QoS support for I / O commands, and enable one application to have multiple QoS levels.Applications are not restricted to run on a specific core to take advantage of priority scheduling in SQ.

[0052] The host interface layer (HIL) in the storage device can perform QoS control based on the NS capacity. The higher the capacity, the higher the QoS level that can be used.

[0053] As discussed above, the host may map applications to NSs using NVM sets, which in turn may be mapped to SQs associated with the NVM sets (each SQ may be assigned a QoS level). Because each SQ has its own QoS level, one or more NVM sets associated with each SQ may have a QoS level associated with the SQ. Similarly, because each NVM set may have a QoS level, one or more NSs associated with each NVM set may have a QoS level associated with the NVM set. Finally, because each NS may have a QoS level, one or more applications associated with each NS may have a QoS level associated with the NS.

[0054] Each NVM set may be mapped to an SQ within each core; each core may also include a completion queue for receiving information returned from storage.

[0055] The NS QoS table may map NS to QoS levels within the HIL. The QoS Weight table may map QoS levels to weights that may be used when scheduling commands from the HIL to the Flash Translation Layer (FTL).

[0056] At the HIL, the I / O command may include the NS ID. The HIL may implement QoS control based on NS capacity and key management based on NS. The WRR scheduling algorithm may be used to schedule the I / O command based on the weight obtained according to the NS capacity.

[0057] The HIL may include an arbitrator, a command acquirer, a command parser, a QoS-aware scheduler, a host completion queue (HCQ), and a write buffer. The arbitrator may include the above-mentioned WRR scheduling algorithm. The arbitrator may set a weight for each SQ according to the SQ QoS priority level. The command acquirer may retrieve and process commands from each SQ according to the weight assigned to each SQ by the arbitrator. The command parser may parse the command and check its NS QoS level from the NS QoS table. The command parser may also insert the command into the relevant command queue according to the priority level: there may be one or more command queues for each QoS level. The QoS-aware scheduler may schedule commands from the command queue according to the QoS weight table and then send those commands to the identified FTL core. The HCQ may send I / O completion messages from the storage device back to the host. The write buffer may be used to buffer write data traffic.

[0058] The disclosed embodiments may include systems and methods for creating multiple QoS levels, wherein corresponding dynamic weights are based on the total storage capacity assigned to each level. By assigning priorities to each capacity range, increased QoS levels may be introduced. The disclosed embodiments may provide balanced weights based on the total storage capacity of each QoS level.

[0059] By adjusting the weights based on the total storage capacity of the QoS levels, a better QoS balance between all tenants can be provided. Since hyperscalers can use storage QoS models, adjusting the weights based on the total storage capacity of the QoS levels can provide improved command balance. In addition, the disclosed embodiments can provide different QoS levels / weights for tenants with similar capacity but different priorities.

[0060] In some disclosed embodiments, the ranges of capacity (buckets) and corresponding QoS levels are predefined. For example, range-1 may be assigned QoS-1, range-2 may be assigned QoS-2, etc. Whenever a NS is created, the QoS level for that NS may be assigned based on its storage capacity. Thus, for example, if the storage capacity of a new NS falls into range-2, its QoS level is QoS-2.

[0061] The weight for each QoS level may be adjusted based on the total storage capacity of each level (the storage capacity of all NSs). For example, if the total storage capacity of a QoS level may be moved from range-i to range-n (which may happen if a new NS is created or an existing NS is deleted), the weight for that QoS level may be automatically updated to the weight corresponding to the QoS level of range-n.

[0062] For example, consider the following approach. The total storage capacity of the SSD may be labeled "Tc". The supported QoS levels may be labeled QoS-1 to QoS-n. The capacity of a particular NS may be labeled Ci (where i ranges from 1 to the maximum number of NS supported). The capacity-based buckets for each QoS level may be labeled CB-i (where i ranges from 1 to n). CB-i may be defined manually or using a predefined formula.

[0063] There may be a 1:1 correspondence between buckets and QoS levels. Bucket-1 may range from 0 bytes (or some minimum supported NS size) to CB-1. Bucket-2 may range from CB-1 to CB-2, and so on up to bucket-N, which may range from CB-n-1 to Tc.

[0064] The weight assigned to each QoS level may be labeled as Wi. Although there may be a 1:1 correspondence between weights and QoS levels, any QoS level may have the same or different weights based on the total storage capacity assigned to each QoS level. The total storage capacity of each QoS level may be labeled as TC_QoS-i. TC_QoS-i may be calculated based on the number of NSs in the corresponding bucket / QoS level. For example, if there are 10 NSs with a capacity less than CB-1, TC_QoS-1 may be calculated as the sum of the capacities of these 10 NSs.

[0065] Three tables may be maintained. One table may match the capacity of each bucket with the total storage capacity of the bucket. Another table may match the NS with its corresponding QoS level. A third table may match the QoS level with its weight.

[0066] In other disclosed embodiments, QoS priority may also be a factor. For example, consider a situation where four NSs (NS-1, NS-2, NS-3, and NS-4) may each have the same capacity, but two NSs (NS-1 and NS-2) may have one priority, and the other two NSs (NS-3 and NS-4) may have another priority. Even if all four NSs have the same capacity, by considering the priority, NS-1 and NS-2 may be assigned to one QoS level, and NS-3 and NS-4 may be assigned to another QoS level. Therefore, the weight assigned to NS-1 and NS-2 may be Wi, and the weight assigned to NS-3 and NS-4 may be W-i+1.

[0067] Now consider the case of creating a fifth NS with the same capacity and the same priority as NS-3 and NS-4. If the total storage capacity of the QoS levels remains within the same range, the weights will not change again. But if the total storage capacity of the QoS levels changes, the weights for the QoS levels may change based on their total storage capacity.

[0068] By including host priorities, NSs with the same capacity can still be assigned different QoS levels.

[0069] With respect to the previous discussion, host priority Pi can be introduced. The total storage capacity of a QoS level can now be the sum of the capacities of each NS at that QoS level for a particular priority level. (Thus, if there are NSs with different priorities assigned to a particular QoS level, there may be more than one total storage capacity for that QoS level.) The table that matches the capacity of each bucket to the total storage capacity of the bucket can also include a priority level that is used to distinguish between QoS levels that include NSs with different priorities.

[0070] QoS levels and weights based on total storage capacity may be stored as a table and used by the SSD internal IO scheduler.

[0071] The disclosed embodiments may include a system that (dynamically) assigns weights to each QoS level based on the total storage capacity assigned at each level. The weights may be adjusted in real time whenever there is a change (addition / removal) in total storage capacity at any QoS level, and the weights may be based on a combination of priority and capacity.

[0072] Various applications may use various NSs associated with different NVM sets. These different NVM sets may then be mapped to different one or more I / O SQs and one or more I / O completion queues.

[0073] The NS QoS table may map NSs (or NS identifiers) to QoS levels within the HIL. Similarly, the QoS weight table may map QoS levels to weights that may be used when scheduling commands from the HIL to the FTL.

[0074] The Flash Translation Layer (FTL) in the SSD can perform super-block-level storage space isolation based on the SSD internal QoS level associated with the NS. Priority-based scheduling can be achieved by combining application (or NS) QoS with SSD internal priorities. The FTL can implement I / O completion management based on QoS level: the higher the QoS level in the die, the faster the command completion can be processed.

[0075] SSDs can also perform NAND management. Using QoS-based partition management, NAND can be divided into super blocks. Each partition can be assigned a QoS level. Unused super blocks can be assigned to partitions as needed.

[0076] Within each FTL, there may be a die queue manager (DQM) for each die, which may place commands in one of a plurality of queues to submit requests to the storage device. For example, there may be one queue within each die corresponding to each QoS level. The die may also include a die completion queue, which may store data received from the die in the FTL.

[0077] In FTL, storage space isolation based on QoS level can be implemented. FTL can combine application (or NS) QoS with SSD internal priority to implement priority-based scheduling. FTL can also implement I / O completion management based on QoS level. FTL can be QoS-aware: I / O commands from the same QoS weight level can be sent to the same partition maintained by the QoS-aware super block manager, and the QoS-aware super block manager can handle super block allocation based on the QoS level of the partition.

[0078] The FTL may include a completion manager and a DQM. The completion manager may perform QoS level based scheduling of completion messages between dies. The completion manager may deliver completion messages from the FTL to the HCQ in the HIL. The higher the priority of the I / O completion message, the faster the message may be scheduled for delivery. The DQM may allocate NAND storage in partitions based on QoS aware superblock management. Each die may have multiple priority queues. The DQM may relay NAND commands to relevant queues based on command QoS level.

[0079] The NAND interface layer (NIL) can communicate with the various channels in the die. Each channel can have an associated block that stores data accessible across the channel.

[0080] The NIL may perform scheduling of commands to be sent to the physical NAND chips. The NIL may include a NAND command scheduler that may schedule NAND commands based on channel / die busy / idle status and / or die queue priority. The NAND command scheduler may deliver command completion status to a die completion queue in the FTL.

[0081] Finally, a partition may include blocks for storing new data entering the partition. Garbage collection may also result in data being written (programmed) to blocks in a partition.

[0082] NAND management can establish partitions in the NAND chip based on QoS levels. Each partition may include super blocks with the same allocation method but different from other partitions (e.g., 4-channel one-way super blocks, 4-channel two-way super blocks, etc.).

[0083] NAND management can establish partitions aligned with QoS levels. There can be partitions for each QoS level, and write I / O commands at the same QoS level can be stored in the same partition. Each partition can include super blocks (e.g., 4-channel unidirectional super blocks, 4-channel bidirectional super blocks, etc.) that can be assigned to the partition. Garbage collection (GC) can occur within a partition: valid data in blocks / super blocks erased due to garbage collection can be copied to other blocks / super blocks in the same partition. A free block pool can be shared between partitions.

[0084] Since GC may be performed on a partition, garbage collection may involve adding a SuperBlock to the SuperBlock List assigned to the partition. The newly added SuperBlock (for data or GC) is available (open block) for write I / O commands of that QoS level. Valid pages may be moved from the SuperBlock targeted by garbage collection to the SuperBlock newly added to the SuperBlock List for the partition.

[0085] A collection of similar super blocks (a collection of NAND blocks) can be grouped to form partitions. Different groups of super blocks can be used to form different partitions for each QoS level. The number of super blocks for each partition does not need to be fixed, but can grow as needed. Each partition can apply different RAID (Redundant Array of Independent Disks) levels based on the QoS level of the partition. For example, some partitions may support RAID, while other partitions may not support RAID. Among the partitions that support RAID, each partition may have a different RAID level. Each partition can also be allocated a portion of overprovisioning space.

[0086] The SSD may be designed with one or more NAND block allocation schemes for partitioning various superblocks. By partitioning superblocks, the SSD may provide isolation between tenants and provide different performance options.

[0087] For example, there may be a single SuperBlock allocation scheme for all SuperBlocks that may have similar NAND types. Alternatively, there may be SuperBlock allocation schemes with different parallelisms: different numbers (one or more) of SuperBlocks from different numbers (one or more) of Channels may be allocated to a Partition. Alternatively, there may be SuperBlock allocation schemes based on the NAND type of the block: for example, some SuperBlocks may include Single Level Cell (SLC) NAND, and other SuperBlocks may include Multi-Level Cell (MLC) NAND.

[0088] Different partitions can be built to provide variations in performance and features for each QoS level. Therefore, different partitions can provide different levels of performance and isolation between tenants, which can be aligned with the QoS SLA of the NS. GC and WL in each partition can be executed independently. Each partition can have different RAID levels and different super block allocation schemes. Therefore, a single SSD can include different types of super blocks and use them based on different QoS levels.

[0089] When a SuperBlock is erased, the NAND blocks of the SuperBlock may be released to a free block pool, and the erased SuperBlock may be removed from the list of SuperBlocks assigned to a partition.

[0090] The disclosed embodiments may include an SSD internal design that may include QoS-based partitioning of groups of blocks or superblocks. The SSD may include QoS-based feature sets (GC / wear leveling (WL) / redundant array of independent disks (RAID)) for different partitions. Thus, GC and WL may be performed independently in each partition. Each partition may also have a different RAID level and a different superblock allocation scheme. The method has the following benefits: GC and WL performed in one partition do not affect or interfere with operations in other partitions.

[0091] The QoS levels and corresponding weights based on total storage capacity and host priority can be stored as a table and used by the SSD internal IO scheduler. In addition, each core can have its own set of I / O SQs and I / O completion queues; the I / O SQs in each core can represent different host priorities and be mapped to various NVM sets.

[0092] Figure 1 A system including a storage device that can provide end-to-end tenant isolation (also referred to as performance isolation) is shown. Figure 1 In the embodiment of the present invention, a machine (e.g., a host) 105 may include a processor 110, a memory 115, and a storage device 120. The processor 110 may be any kind of processor. (For ease of illustration, the processor 110, along with other components discussed below, is shown external to the machine: the disclosed embodiments may include these components within the machine.) Although Figure 1 A single processor 110 is shown, but the machine 105 may include any number of processors, each of which may be a single-core processor or a multi-core processor, each of which may implement a reduced instruction set computer (RISC) architecture or a complex instruction set computer (CISC) architecture (as well as other possibilities), and which may be mixed in any desired combination.

[0093] The processor 110 may be connected to a memory 115. The memory 115 may be any kind of memory (such as flash memory, dynamic random access memory (DRAM), static random access memory (SRAM), persistent random access memory, ferroelectric random access memory (FRAM), or non-volatile random access memory (NVRAM) (such as magnetoresistive random access memory (MRAM), etc.)). The memory 115 may also be any desired combination of different memory types and may be managed by a memory controller 125. The memory 115 may be used to store what may be referred to as "short-term" data: that is, data that is not expected to be stored for an extended period of time. Examples of short-term data may include temporary files, data used locally by an application (which may have been copied from other storage locations), etc.

[0094] The processor 110 and the memory 115 may also support an operating system under which various applications may run. These applications may issue requests (which may also be referred to as commands) to read data from or write data to the memory 115 or the storage device 120. The storage device 120 may be accessed using a device driver 130. Although Figure 1The generic term "storage device" is used, but the disclosed embodiments may include any storage device format that may benefit from an architecture that provides performance isolation, examples of storage devices may include hard disk drives and solid-state drives (SSDs). Any reference to "SSD" below should be understood to include such other embodiments disclosed.

[0095] Figure 2 Show Figure 1 Details of the machine 105. Figure 2 In the embodiment of the present invention, the machine 105 generally includes one or more processors 110, which may include a memory controller 125 and a clock 205 that can be used to coordinate the operation of the components of the machine. The processor 110 may also be connected to a memory 115, which may include a random access memory (RAM), a read-only memory (ROM), or other state preservation medium as an example. The processor 110 may also be connected to a storage device 120 and a network connector 210, which may be, for example, an Ethernet connector or a wireless connector. The processor 110 may also be connected to a bus 215, to which a user interface 220 and an input / output (I / O) interface port that may be managed using an I / O engine 225 and other components may be attached.

[0096] Figure 3 Show Figure 1 A processor 110 having multiple cores, multiple submission queues (SQs), and multiple non-volatile memory (NVM) sets. Figure 3 , processor 110 is shown as having two cores 305 - 1 and 305 - 2 , but the disclosed embodiments may include any number of cores in processor 110 , from one to as many as desired (without limitation).

[0097] Within each core, an administrator can create any number of submission queues (SQs) (using, for example, one or more NVMeSQ create commands). Figure 3 Four SQs 310-1, 310-2, 310-3, and 310-4 are shown, labeled respectively as Urgent (U), High (H), Medium (M), and Low (L) (which may represent different Quality of Service (QoS) levels, which may include different Service Level Agreements (SLAs) with different performance levels provided to tenants). Figure 3 Four SQs are shown in each core and four QoS levels are indicated, but the disclosed embodiments may include any number of SQs per core and any number of QoS levels, from one to as many as desired (without limitation). SQs 310-1 through 310-4 may be used to provide Figure 1The storage device 120 of the storage device 120 sends the application's request (such as a write request or a read request). In various disclosed embodiments, each SQ 310-1 to 310-4 may be associated with a different QoS level, two (or more) SQs may be associated with the same QoS level, or a mixture of these possibilities may be used (where some SQs are associated with unique QoS levels and other SQs are associated with the same QoS level). The SQs 310-1 to 310-4 may be implemented in any desired manner: for example, using a first-in-first-out (FIFO) queue, a circular queue, and other techniques.

[0098] In the command for creating an SQ, various bits in the NVMe SQ creation command (such as bits 02:01 in the double word command (CDW) 11) may be used to specify the QoS level associated with a particular SQ. While the use of only two bits to specify the QoS level for an SQ suggests that the number of QoS levels (and thus the number of SQs) may be limited to four, the disclosed embodiments may use more bits, potentially located elsewhere within the command, to create an SQ to use more than four QoS levels: for example, bits 15:03 in CDW 11 are reserved and may be used to define more than four QoS levels.

[0099] In addition to SQs 310-1 to 310-4, an administrator may also create a completion queue 315. Similar to how an administrator may use an NVMe SQ create command to create an SQ, a completion queue 315 may be created using an NVMe completion queue create command. Figure 1 The storage device 120 receives the information. Figure 3 One completion queue 315 is shown, but disclosed embodiments may include multiple completion queues 315 .

[0100] Although Figure 3 SQs 310-1 to 310-4 and completion queue 315 are shown as part of core 305-1 in processor 110, but from a technical perspective, core 305-1 may be said to "own" SQs 310-1 to 310-4 and completion queue 315, and SQs 310-1 to 310-4 and completion queue 315 may actually exist in Figure 1 In other words, core 305-1 can write information into memory 115. Figure 1 The locations within memory 115 are SQs 310-1 to 310-4, and Figure 1 The storage device 120 can be obtained by Figure 1 Data is read from SQs 310-1 to 310-4 by reading from appropriate locations within memory 115. Similarly, Figure 1 The storage device 120 can be written by Figure 1The data is written to the completion queue 315 at the appropriate location in the memory 115, and the core 305-1 can Figure 1 The completion queue 315 in the memory 115 reads information.

[0101] The administrator can also define one or more NVM sets. Figure 3 Four NVM sets 320-1, 320-2, 320-3, and 320-4 are shown, but the disclosed embodiments may include any number of NVM sets, from one to as many as desired (without limitation). The NVM sets 320-1 to 320-4 may each be associated with a QoS level: for example, the NVM sets 320-1 to 320-4 may be associated with a U QoS level, an H QoS level, an M QoS level, and an L QoS level. The NVM sets 320-1 to 320-4 may be associated with SQs 310-1 to 310-4, thereby associating the NVM sets 320-1 to 320-4 with the QoS levels associated with the SQs 310-1 to 310-4, respectively. The association may be established with a command for creating the SQs 310-1 to 310-4: for example, bits 15:00 in the CDW 12 may include an identifier (ID) for the NVM set associated with the SQ. By associating an NVM set with an SQ, the NVM set can obtain the attributes of the SQ (such as QoS level).

[0102] Various commands may be used to create NVM sets 320-1 to 320-4. For example, a private interface specific to an individual customer may be established to allow the creation of an NVM set. Alternatively, a published interface may be used and the public interface may be implemented as a vendor-specific extension to the Non-Volatile Memory Express (NVMe) protocol. Upon creation, each NVM set may have an ID (the ID may be unique to the NVM set and may be, for example, 16 bits in length), an optimal write size associated with the NVM set, total storage capacity and unallocated capacity for the NVM set (which may prevent too many tenants from using the QoS level associated with the NVM set, potentially resulting in a violation of the SLA), and a QoS level (as discussed below, the QoS level may be obtained from the SQ). Each NVM set may also indicate a QoS type: for example, a QoS level reflects priorities based on different numbers of I / O operations per second (IOPS), different latencies, different bandwidths, different throughputs, and the like.

[0103] Note that a single NVM set can be associated with multiple SQs. Figure 3 In the example, NVM set 320-1 is associated with the emergency SQ in both cores 305-1 and 305-2. FIG. 4A to FIG. 4CAs discussed, by associating a single NVM set with multiple SQs (and in particular with SQs in different cores in processor 110), a write request or a read request sent by an application running in a particular core can be routed to the SQ in that core, thereby allowing the application to potentially run in any core and still achieve a target QoS level. In addition, a single NVM set can be associated with multiple SQs in a single core in processor 110. If an NVM set is associated with multiple SQs, all SQs associated with the NVM set should have the same QoS level: this choice avoids confusion about which SQ a particular write request or read request should be placed into. However, the disclosed embodiments may associate a single NVM set with an SQ associated with two (or more, without limitation) QoS levels. (In such disclosed embodiments, the host may use other information (such as, data provided as part of the application) to determine the appropriate priority for a given command (write command or read command). Once the appropriate priority is determined, the host may place the command in an associated SQ with the appropriate priority. An SQ may also be identified as a default SQ to be used in situations where an appropriate priority may not have been determined; alternatively, the host may randomly select any associated SQ.) NVM sets may be assigned a QoS level associated with the associated SQ: whatever QoS level is associated with the SQ, the NVM sets associated with those SQs may also be associated with that QoS level.

[0104] Each application may create one or more namespaces (NSs): applications may also share NSs. These NSs (such as NSs 325-1 and 325-2 (NS 2 and NS 7)) may be associated with one of the NVM sets 320-1 to 320-4. Unlike the relationship between the NVM sets 320-1 to 320-4 and the SQs 310-1 to 310-4, a single NS should be associated with a single NVM set: as described below with reference to FIG. 4A to FIG. 4C As discussed, this selection avoids confusion as to which SQ a particular write request or read request should be placed into. Note that the reverse is not true: a single NVM set can be associated with more than one NS. For example, Figure 3 NVM set 320-4 is shown associated with NS 325-1 and 325-2 (and potentially other NSs). Additionally, the disclosed embodiments may associate a single NS with two (or more, without limitation) NVM sets.

[0105] As part of creating a NS, the NS may be associated with an NVM set. For example, using the NVMe Create NS command, bytes 101:100 may be used to identify the NVM set associated with the NS by including an ID associated with the NVM set. By associating the NS with the NVM set, the NS may obtain the properties of the NVM set (such as QoS level). Typically, each QoS level may provide different capacity to the NS, wherein a higher QoS level provides greater capacity to the NS associated with that QoS level. Each NS may also have its own ID, which may be unique among the NSs in the system.

[0106] Different NVM sets may be used to manage QoS levels according to different criteria. For example, in some cores, QoS levels may be established to guarantee some minimum number of IOPS. An application may receive more IOPS than the guaranteed IOPS, but should not receive less IOPS than the guaranteed IOPS, regardless of any other application and its associated QoS level. For example, NVM set 320-4 may guarantee 100 IOPS for requests to the NS associated with that QoS level, while NVM set 320-1 may guarantee 100,000 IOPS for requests to the NS associated with that QoS level.

[0107] In other cores, QoS levels can be established to ensure that Figure 1 Furthermore, regardless of any other applications and their associated QoS levels, commands of an application may be processed faster than guaranteed, but should not take longer than guaranteed. For example, NVM set 320-4 may be sent to Figure 1 The NVM set 320-1 can be sent to the storage device 120 with a delay of no more than 10,000 microseconds (μs). Figure 1 The request to the storage device 120 is guaranteed to have a delay of no more than 10 μs. Other criteria that can be used to manage QoS levels can be guaranteed bandwidth and throughput; the disclosed embodiments can also be extended to other criteria.

[0108] The guaranteed performance for a particular QoS level represents the minimum service level that an application can receive for its requests. Thus, for example, if a particular QoS level guarantees an application 100 IOPS, then the application can expect that 100 requests can be processed if sent during a one second interval. Similarly, if a particular QoS level guarantees 10 μs latency, then any request sent at that QoS level should receive a response within 10 μs. This can be achieved by using, for example, a weighted round robin technique (see below). FIG. 7A to FIG. 7B discussed), Figure 1The storage device 120 can provide a committed level of service: the weighted polling technique can handle more requests from a QoS class with a larger number of requests than requests from a QoS class with a smaller number of requests (even though the QoS class with a smaller number of requests may have a higher overall priority).

[0109] Note that in this context, priority does not mean that all requests with higher priority are processed before any request with lower priority is processed: since the QoS guarantees may be more strictly constrained, higher priority requests simply receive higher importance. Similarly, note that requests may be processed faster than guaranteed. That is, the system may exceed the performance promised for a QoS level: the only expectation is to provide minimum performance. For example, when latency is used as a QoS option, even requests placed in the lowest priority SQ may be processed as fast as requests placed in the highest priority SQ if there are no pending requests in any SQ. Or, when IOPS is used as a QoS option, if there are no pending requests in any SQ, an application may process 100,000 IOPS even though only 100 IOPS may be promised for the QoS level. However, the disclosed embodiments may also include performance caps at the QoS level (e.g., the maximum number of IOPS processed in a one-second interval, or the minimum latency for processing a request).

[0110] FIG. 4A to FIG. 4C Shows the use of Figure 1 The processor 110 runs Figure 3 The NVM set is associated with Figure 3 The NS325-1 and 325-2 are used in various applications. Figure 4A , applications 405-1 and 405-2 are shown: application 405-1 is shown as running on core 305-1 of processor 110, and application 405-2 is shown as running on core 305-2 of processor 110. Applications 405-1 and 405-2 are shown as each using one NS: application 405-1 is shown as using NS 325-1 associated with NVM set 320-4, and application 405-2 is shown as using NS associated with NVM set 320-3.

[0111] When the application 405-1 sends a Figure 1When a request is made to the storage device 120 of the processor 110 (more specifically, the core 305-1), based on the logical block address (LBA) included in the request, the processor 110 (more specifically, the core 305-1) can determine that the LBA in the request is part of the NS 325-1. By using the association between the NS 325-1 and the NVM set 320-4 and the association between the NVM set 320-4 and the SQ 310-4, as shown by arrow 410, the processor 110 (more specifically, the core 305-1) can determine that the request should be placed in the SQ 310-4. Similarly, the processor 110 (more specifically, the core 305-2) can use the association between the NS and the NVM set 320-3 and the association between the NVM set 320-3 and the SQ 415, as shown by arrow 420, to place the request from the application 405-2 in the SQ 415.

[0112] Because NVM sets can be associated with SQs in different cores in processor 110, an application can run in any core in processor 110 and still ensure that the established QoS is met. Figure 4B 4, application 405-1 can run in core 305-1 or 305-2 and still receive the promised QoS level. Based on the LBA in the request, NS 325-1 can be identified, which can then be associated with NVM set 320-4, which can then be associated with SQ 310-4 (in core 305-1) and SQ 425 (in core 305-2). Therefore, when application 405-1 is running in core 305-1, the request can be routed to SQ 310-4 as shown by arrow 410; when application 405-1 is running in core 305-2, the request can be routed to SQ 425 as shown by arrow 430. In a similar manner, if Figure 4A The application 405-2 runs in the core 305-2 (such as Figure 4A ) and shares NS 325-1 with application 405-1, then from Figure 4A The request of application 405 - 2 may be routed to SQ 425 as indicated by arrow 430 .

[0113] Finally, in Figure 4C , application 405-1 is shown as running in core 305-1, but is shown as accessing NS 325-1 associated with NVM set 320-4 and NS associated with NVM set 320-1. In addition, using the LBA of the request, the NS involved can be identified; the associated NVM set can then be identified and the request is routed to the associated SQ 310-4 (as shown by arrow 410), or SQ 310-1 (as shown by arrow 435). Thus, a single application can use multiple NSs with different QoS levels and achieve different levels of performance as specified by the QoS levels.

[0114] Although the above discussion uses LBA included in the request from the application to identify the NS, the disclosed embodiments may use an ID other than LBA to determine the NS for a particular request. Figure 1 If the storage device 120 is a key-value storage device, the request from the application can include a key instead of an LBA. The request itself can also specify the NS using its ID instead of leaving it to the Figure 1 The disclosed embodiments are intended to be used by applications (such as applications 405-1 and 405-2) to determine all IDs of the associated NSs involved in a particular request from the application.

[0115] Figure 5 Show Figure 1 Details of the SSD 120. Figure 5 In the embodiment, the SSD 120 may include an interface 505. The interface 505 may be used to connect the SSD 120 to the Figure 1 The SSD 120 may include more than one interface 505: for example, one interface may be used for block-based read requests and write requests, and another interface may be used for key-value read requests and write requests. Figure 5 Indicates that interface 505 is Figure 1 The physical connection between SSD 120 and machine 105 may be represented by an interface 505, but the interface 505 may also represent protocol differences that may be used between common physical interfaces. For example, SSD 120 may be connected to machine 105 using a U.2 or M.2 connector, but may support block-based requests and key-value requests: processing different types of requests may be performed by different interfaces 505.

[0116] SSD 120 may also include a host interface layer 510 that may manage interface 505. If SSD 120 includes more than one interface 505, a single host interface layer 510 may manage all interfaces, SSD 120 may include a host interface layer for each interface, or some combination thereof may be used. Figures 6 to 7B The host interface layer 510 is discussed further.

[0117] The SSD 120 may further include an SSD controller 515, various channels 520-1, 520-2, 520-3, and 520-4, and various flash memory chips 525-1, 525-2, 525-3, 525-4, 525-5, 525-6, 525-7, and 525-8 may be arranged along the channels 520-1, 520-2, 520-3, and 520-4. The SSD controller 515 may manage sending read requests and write requests to the flash memory chips 525-1 to 525-8 along the channels 520-1 to 520-4. Figure 5 Four channels and eight flash memory chips are shown, but the disclosed embodiments may include any number (one or more, without limitation) of channels including any number (one or more, without limitation) of flash memory chips.

[0118] Within each flash chip, space can be organized into blocks, which can be further subdivided into pages and grouped into superblocks. A page is generally the smallest unit of data that can be read or written on an SSD. The page size can vary as needed: for example, a page can be 4KB of data. If less than a full page is to be written, the excess space is "unused".

[0119] Although pages can be written and read, SSDs do not typically allow data to be overwritten: that is, existing data cannot be replaced "in place" with new data. Instead, when data is to be updated, the new data is written to a new page on the SSD, and the original page is invalidated (marked in preparation for erasure). Thus, SSD pages typically have one of three states: free (ready to be written to), valid (contains valid data), and invalid (no longer contains valid data, but is unusable until erased) (the exact names of these states can vary).

[0120] However, while pages can be written and read individually, blocks are the basic unit of data that can be erased. That is, pages are not erased individually: all pages in a block are typically erased at the same time. For example, if a block contains 256 pages, then all 256 pages in the block are erased at the same time. This arrangement can cause some management problems for the SSD: if a block is selected for erasure that still contains some valid data, it may be necessary to copy that valid data to a free page elsewhere on the SSD before the block can be erased. (In some disclosed embodiments, the erase unit may be different from a block: for example, it may be a superblock, which may be a collection of multiple blocks).

[0121] The SSD controller 515 may include a flash translation layer 530 (which may be more generally referred to as a logical to physical translation layer for storage devices that do not use flash memory) and a NAND interface layer 535. The flash translation layer 530 may handle LBA or other logical IDs (such as Figure 1 The NAND interface layer 535 may process requests sent along channels 520-1 to 520-4 to read data from the flash memory chips 525-1 to 525-8 and / or write data to the flash memory chips 525-1 to 525-8. Figure 5 One flash translation layer 530 is shown, but disclosed embodiments may include any number (one or more, without limitation) of flash translation layers 530. Figure 5 One NAND interface layer 535 is shown, but the disclosed embodiments may include any number (one or more, without limitation) of NAND interface layers 535. Figures 8 to 11 Further discussion of the flash translation layer 530; see below Fig.12 The NAND interface layer 535 is discussed further.

[0122] Figure 6 Show Figure 5 The details of the host interface layer 510. Figure 6 In the embodiment, the host interface layer 510 may include an arbiter 605 , a command acquirer 610 , a command parser 615 , an NS-QoS table 620 , a command queue 625 , a QoS-aware scheduler 630 , and a QoS-weight table 635 .

[0123] Arbiter 605 can be Figure 3 The SQs 310-1 to 310-4 arbitrate among each other to select the next SQ according to which the request should be processed. (Although this discussion is directed to (address) Figure 3 The SQ of the core 305-1 (where Figure 1 10 includes more than one core), but the arbitrator 605 may arbitrate between all SQs of all cores.) The arbitrator 605 may use any desired arbitration algorithm to select the next queue according to which to process the request. An example arbitration algorithm may be used in weighted round robin (WRR). In some disclosed embodiments, as described below with reference to FIG. 7A to FIG. 7B As discussed further, a version of WRR using dynamic weights may be used.

[0124] Once an SQ is selected, requests can be accessed from the SQ and processed. The command fetcher 610 can select requests in the selected SQ for processing. In some disclosed embodiments, all requests in a single SQ have equal priority: assuming that the requests are organized in the order in which they are submitted, the command fetcher 610 can select the request at the head of the SQ to be processed next. In other disclosed embodiments, the requests in a single SQ may have different priorities, in which case the command fetcher 610 can select the requests in an order different from the order in which the requests are submitted. In such disclosed embodiments, the command fetcher 610 can track the time each request has been pending in a single SQ: for example, by comparing the current time (which can be measured as the number of cycles since a fixed time (such as when the system was last started)) with the time when each request was placed in the SQ. If higher priority requests are always fetched before lower priority requests, it may happen that the lower priority requests are ultimately not processed in time to meet the promised QoS: then, the command fetcher 610 can weight the priorities of the individual requests for the time those requests have been pending in the SQ.

[0125] The command parser 615 may then parse the request selected by the command fetcher 610. By parsing the command, the command parser 615 may then determine the appropriate command queue into which the request should be placed. For example, the command queues 625 may include read queues (e.g., RQ 1 To RQ p ) and write queues (e.g., WQ 1 To WQ p ). By parsing the request, the command parser 615 can determine whether the command is a read request or a write request, and can place the request in the appropriate command queue 625. There can be any number (one or more, without limitation) of command queues 625.

[0126] The QoS-aware scheduler 630 may then obtain requests from the command queue 625 and send those commands to Figure 5 The die queues in the flash translation layer 530 are configured to receive a particular command. Figure 5 Channels 520-1 to 520-4 are assigned to Figure 5 The QoS-aware scheduler 630 may use any desired scheduling algorithm to schedule the LBA range of flash memory chips 525-1 to 525-8 to be sent to. Figure 5 The die queue in the flash translation layer 530 (and therefore sent to Figure 5Since the time required to process a read request may be different from the time required to process a write request, the QoS-aware scheduler 630 may retrieve requests from the command queue 625 in an order different from the order in which those commands were placed in the command queue 625. Figure 8 The flash translation layer 530 (and die queue) are discussed further.

[0127] The host interface layer 510 may know the capacity allocated to each NS. If a NS attempts to write data that will cause the NS to exceed its capacity, the host interface layer 510 may send a Figure 1 The host 105 returns an error message as a result.

[0128] In addition to these components, the host interface layer 510 may include a write buffer 640 and a host completion queue arbiter 645. The write buffer 640 may be used to buffer Figure 1 The machine 105 (more specifically, FIG. 4A to FIG. 4C Application 405-1 and 405-2) sent but not yet written Figure 5 The data of the page / block / superblock in the flash memory chips 525-1 to 525-8. Figure 6 One write buffer 640 is shown, but disclosed embodiments may include any number (one or more, without limitation) of write buffers.

[0129] The host completion queue arbiter 645 can schedule Figure 5 The results returned by the flash memory chips 525-1 to 525-8 are placed back into Figure 3 The completion queue 315, Figure 3 The completion queue 315 is suitable for the core with the SQ where the request was originally placed. Although the host completion queue arbiter 645 can be Figure 5 The flash memory chips 525-1 to 525-8 return the results in the order in which they are received, but the host completion queue arbiter 645 can also return the results in the order in which the flash memory chips 525-1 to 525-8 receive the results. Figure 5 The results are returned in a different order than the order in which the flash chips 525-1 to 525-8 received them. For example, the host completion queue arbiter 645 may receive a read result followed by a write result. However, if the read result is different from the NS assigned a lower QoS level (e.g., Figure 3 The write result is associated with the NS assigned the emergency QoS level (e.g., Figure 31 associated with the NVM set 320-1 of the host, the read results can be delayed to prioritize the return of the write results. Therefore, the host completion queue arbiter 645 can schedule the return of the results of the requests associated with the higher QoS level faster than the results of the requests associated with the lower QoS level. Like the arbiter 605 and the QoS-aware scheduler 630, the host completion queue arbiter 645 can use any desired scheduling algorithm to schedule the return of the results to the appropriate completion queue.

[0130] Components such as arbiter 605, command fetcher 610, command parser 615, QoS-aware scheduler 630, and host completion queue arbiter 645 may be implemented in any desired manner. These components may be implemented using field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), central processing units (CPUs), graphics processing units (GPUs), or general purpose GPUs (GPGPUs), among other possibilities. In some embodiments, various components may also include code to be executed by the underlying circuit implementation: the code may be stored in a general purpose storage device (e.g., may be stored in parallel with host data stored in a processor). Figure 5 The data may be stored in a dedicated storage device (which may be a volatile storage device or a non-volatile storage device), or may be stored in some form of read-only memory (ROM) (such as a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), etc.). In addition, different technologies may be used to implement different components: for example, an FPGA may be used to implement one component, a CPU may be used to implement another component, etc. In addition, multiple components may be implemented using the same technology and may be combined into a single component: for example, the arbitrator 605, the command acquirer 610, and the command parser 615 may be implemented using a single FPGA.

[0131] Finally, the host interface layer 510 may include storage (e.g., storage areas) for tables such as the NS-QoS table 620 and the QoS-weight table 635. The NS-QoS table 620 may map each NS to its associated QoS level (as described above with reference to Figure 3 As discussed, a separate NS may be associated with a separate NVM set, which in turn may be associated with an SQ in the core in which the application is running: the QoS level associated with the core may then be associated with the NVM set, and in turn with the NS.) Although the NS-QoS table 620 shows the same value for each NS and QoS level, this is arbitrary: the QoS level for a given NS may be different than the ID assigned to the NS. Furthermore, although the NS ID is Figure 1 Machine 105 and Figure 1The QoS-weight table 635 may map QoS levels to weights to be used by the arbitrator 605 and / or the QoS-aware scheduler 630 in selecting the SQ / command queue to process a request. FIG. 7A to FIG. 7B The QoS-weight table 635 is discussed further.

[0132] As described above, the arbitrator 605 may use the WRR algorithm to select the next SQ according to which to process the request. A weight is assigned to each SQ (more precisely, to each QoS class associated with the SQ). In general, requests from each SQ are processed in proportion to the weight assigned to that SQ relative to the sum of the weights. Mathematically, if the weight assigned to SQ k is w k And there are n SQs in total, then the request from SQ k is processed In other words, at each In the request, those requests w k Taken from SQ k.

[0133] In some disclosed embodiments, the weights may be predetermined. However, such an approach potentially favors requests associated with high QoS levels (e.g., Figure 3 320-1) so that: requests associated with a low QoS level (e.g., Figure 3 Requests associated with the NVM set 320-4 with a low QoS level may not be serviced in time to meet the QoS level. For example, consider the following situation: 1000 requests associated with a low QoS level are served in Figure 3 310-4 of SQ 310-4, and requests associated with a high QoS class are issued at a sufficient rate so that Figure 3 There is always at least one such pending request in SQ 310-4. The weights pre-assigned to QoS classes may cause the last of the 1000 requests associated with a low QoS class to take so long to be satisfied that the QoS guarantee is not met.

[0134] This result can be avoided by dynamically adjusting the weights. The weights can be dynamically adjusted to reflect the number of NSs in each QoS level, so that when the number of NSs in each QoS level changes, the weights can be updated to reflect this fact. Therefore, in the above example, Figure 3 The SQ 310-4 can be assigned a weight that increases as the number of NSs increases, thereby ensuring that Figure 3 The SQ 310-4 handles more requests and hopefully avoids any requests being served in time to meet the guarantees expressed by the QoS level.

[0135] Note that while the above examples and the following discussion focus on the number of NSs assigned to each QoS class, the disclosed embodiments may also use other criteria. Thus, the weights may be dynamically adjusted for each QoS class based on other criteria: for example, the number of pending requests in the SQ.

[0136] Fig. 7A Show management for Figure 6 The weight of the scheduling algorithm implemented by the arbiter 605. In Figure 7, three tables are shown: table 705, table 710 and finally QoS-weight table 635. Table 705 maps the QoS level to the size of the NS and shows the total storage capacity of all NSs at the QoS level, and table 710 maps different total capacities to weights.

[0137] In table 705, each QoS level is associated with a specific bucket size. That is, for a given QoS level, all NSs associated with that level can store up to a specific amount of data (or can be assigned a fixed amount of data). Thus, for example, looking at QoS level 715 (QoS level 1), NSs associated with QoS level 715 are assigned to bucket 720 and can store up to 2GB of data (or, alternatively, can store up to 10GB of data). Figure 1 2GB of storage is allocated on the SSD 120. Fig. 7A In the snapshot example shown in FIG. 7 , for a total storage capacity 725 of 12 GB for QoS level 715, there may be six NSs associated with QoS level 715. Similarly, there may be 40 NSs associated with QoS level 2 (because there is a total storage capacity of 200 GB and each NS may be allocated 5 GB), three NSs associated with QoS level 3 (because there is a total storage capacity of 30 GB and each NS may be allocated 10 GB), and one NS associated with QoS level 4.

[0138] Although the above discussion indicates that each QoS level has a fixed size for any NS assigned at that QoS level, the disclosed embodiments may have variable NS capacities. For example, in some disclosed embodiments, when a NS is created, the capacity assigned to the NS may be specified by the application, but the capacity should be within the range assigned to that QoS level. Thus, a NS assigned to QoS level 715 may request a capacity from 0GB to 2GB, a NS assigned to QoS level 2 may request a capacity from 2GB to 5GB, a NS assigned to QoS level 3 may request a capacity between 5GB and 10GB, a NS assigned to QoS level 4 may request a capacity between 10GB and 25GB, and so on (where the highest QoS level potentially allows capacity to exceed the bucket range). In such disclosed embodiments, the maximum allowed capacity for the bucket may be used to calculate the total capacity assigned to the QoS level (because this value represents an upper limit on the capacity assigned to the QoS level), or the actual capacity assigned to each NS may be determined and used to calculate the capacity assigned to the QoS level. Note that in such disclosed embodiments, Figure 1 The host 105 may specify the QoS level of the NS as part of the NS create command.

[0139] In other disclosed embodiments, the size requested for the NS may indicate the QoS level to which the NS is assigned. That is, instead of the QoS level indicating the range of capacity allowed for the NS, the requested capacity of the NS may be used to determine the appropriate QoS level for the NS. In such disclosed embodiments, table 710 may be used to determine the QoS level to be assigned to the NS based on the allocated capacity for the NS. Note that in such disclosed embodiments, since the QoS level may be determined based on the capacity to be allocated for the NS, the host may not specify the QoS level of the NS.

[0140] For example, consider a NS for which the allocated capacity is specified as 20GB. As can be seen in table 710, entry 730 includes a range between 10GB and 25GB into which 20GB will fall. Therefore, by requesting a capacity of 20GB, the NS can be assigned to QoS level 735. (Note that because table 705 maps bucket sizes to QoS levels in a similar manner, table 705 can be used for the same purpose.) NSs requesting larger allocated capacities can be assigned higher QoS levels; NSs requesting smaller allocated capacities can be assigned lower QoS levels. Note that table 710 is therefore used for two purposes: table 710 can be used to determine the QoS of an NS based on its allocated capacity, and to determine the weight to be assigned to a particular QoS level based on the total capacity allocated for that QoS level.

[0141] In other disclosed embodiments, there may be no limit on the capacity allocated to each NS. Thus, for example, a NS that may be mapped to QoS class 715 may have an allocated capacity of 100GB. In such disclosed embodiments, since there may be no value available to approximate the actual capacity of each NS, Figure 5 The host interface layer 510 may track the allocated capacity for each NS and may use this information to determine the allocated capacity for each QoS class.

[0142] Instead of having weights assigned based on QoS class, weights may be assigned based on the total storage capacity of the namespace at the QoS class. Thus, table 710 may map to weights based on various total capacities. For example, since QoS class 715 has a total storage capacity 725 of 12GB, and 12GB is in range 730 of table 710, QoS class 715 may be assigned a weight 735 having a value of 3. For similar reasons, QoS class 2 may be assigned a weight of 9, and QoS classes 3 and 4 may each be assigned a weight of 4, resulting in the values ​​shown in QoS-weight table 635.

[0143] Since the weight associated with each QoS level in the QoS-weight table 635 depends on the total storage capacity of the NS at that QoS level, the weight can be dynamically adjusted appropriately. Figure 6 When the arbiter 605 can select an SQ to process a request, the weights do not need to be recalculated. Since the total storage capacity 725 can depend on the number of NSs associated with a particular QoS level, the weights can only be changed when the total storage capacity 725 changes, and then the weights can only be changed when the number of NSs assigned to the QoS level changes. Therefore, the weights can only be adjusted when a NS is created or deleted; otherwise, the weights can remain unchanged.

[0144] As can be seen, since the weight may depend on the total storage capacity at a given QoS level, the more NSs assigned to a single QoS level, the higher the weight for that QoS level may be. Since it can be expected that more requests are generated at a given QoS level when there are more NSs at that QoS level, by determining the weight based on the total storage capacity 725 of the QoS level 715, more NS requests can be processed from the SQ in which more NS requests are processed.

[0145] But from Fig. 7AWhat is removed is any reference to the QoS class itself, or more specifically, the guarantee of that QoS class commitment. Note, for example, that QoS classes 3 and 4 have the same weight, meaning that requests from both QoS classes can be processed equally. This result may be contrary to the expectation that a request at QoS class 4 should take precedence over a request at QoS class 3. Thus, while adjusting the weights as described may help prevent requests at QoS class 2 from not being processed in a timely manner, the priority associated with each QoS class may be lost. Figure 7B It also shows how priorities are considered.

[0146] Figure 7B Show management for Figure 6 The weight of the scheduling algorithm implemented by the arbiter 605. In FIG. 7, table 705 can be Fig. 7A . However, table 740 may replace table 710. In table 740, priority may be added as a column: Thus, table 740 may map to weights based on a combination of capacity range and priority.

[0147] For example, in table 705, QoS class 745 (QoS class 2) may include buckets 750 of size 5GB, and total storage capacity 755 may be 200GB (meaning 40 NSs at QoS class 745). In table 740, there may be multiple entries for the range 200GB to -600GB, but only the combination of range 760 and priority 765 is appropriate for total storage capacity 755 and QoS class 745. Thus, for QoS class 745, weights 770 may be used: as shown in table 635, the weight for QoS class 2 is 10. However, QoS classes 1, 3, and 4 (all of which fall within the same capacity range in table 740) have different weights, reflecting the different priorities associated with those QoS classes.

[0148] Figure 8 Show Figure 5 Details of the Flash Translation Layer 530. Figure 8 810-2. The QoS-aware flash translation layer 805 may operate similarly to a flash translation layer without QoS awareness (because the QoS-aware flash translation layer 805 may map LBAs to PBAs (such as the PBAs that may be stored in the LBA to PBA table 815), where commands are routed appropriately based on the physical location where the data is to be written or read). However, the QoS-aware flash translation layer 805 may also help ensure tenant isolation. To this end, the QoS-aware flash translation layer 805 may include a partition manager 820, which may manage the partitions of the partitions. Figure 5The pages / blocks / super blocks in the flash memory chips 525-1 to 525-8 are partitioned, wherein different partitions are used to store data associated with different QoS levels. Figures 9 to 11 The division of page / block / superblock is further discussed.

[0149] The die queue managers 810-1 and 810-2 can manage Figure 5 The die queue managers 810-1 and 810-2 may each include various die queues (e.g., DQ 1 To DQ n , where n is a positive integer) 825-1 and 825-2, the die queues 825-1 and 825-2 can be used to send to Figure 5 The commands of the flash memory chips 525-1 to 525-8 are queued.

[0150] Between the QoS-aware flash translation layer 805 and the die queue managers 810-1 and 810-2, the flash translation layer 530 can associate the QoS level associated with each NS with the QoS level that can be managed by Figure 1 The internal priorities established by the storage device 120 are combined. Figure 1 The storage device 120 may provide priority-based scheduling.

[0151] Although Figure 8 Two die queue managers 810-1 and 810-2 are shown, but the disclosed embodiments may include any number (one or more, without limitation) of die queue managers, but the number of die queue managers may correspond to the number of die queue managers used to store data in the Figure 5 Similarly, die queue managers 810-1 and 810-2 may include any number (one or more, without limitation) of die queues 825-1 and 825-2. For example, there may be one die queue 825-1 and 825-2 for each QoS level provided by the system, or one die queue 825-1 and 825-2 for each QoS level provided by the system. Figure 1 For each priority level within the storage device 120, there may be a bare chip queue 825-1 and 825-2. Figure 1 The higher the priority that storage device 120 internally assigns to a single request, the faster the request can be completed.

[0152] The die queue managers 810-1 and 810-2 may also include die completion queues (DCQs) 830-1 and 830-2. The die completion queues 830-1 and 830-2 may receive die completion queues issued to Figure 5For example, die completion queues 830-1 and 830-2 may receive the results of commands from flash memory chips 525-1 to 525-8. Figure 5 flash memory chips 525-1 to 525-8 may read data, or may receive an attempt to write data to Figure 5 The completion manager 835 can access the results from the die completion queues 830-1 and 830-2 and deliver those results back to the Figure 6 The host completion queue arbiter 645 delivers back to the application that initiated the request.

[0153] In some disclosed embodiments, the flash translation layer 530 may include garbage collection logic and / or wear leveling logic ( Figure 8 Because garbage collection and / or wear leveling may involve changing the physical address where data is stored, having garbage collection logic and / or wear leveling logic as part of flash translation layer 530 simplifies the process of updating the location where data is stored in flash translation layer 530. However, the disclosed embodiments may also place garbage collection logic and / or wear leveling logic in a different physical location than the flash translation layer 530. Figure 1 Other locations within storage device 120. In addition, there may be more than one garbage collection logic and / or wear leveling logic (which may also be combined into a single logic). For example, if Figure 1 The storage device 120 includes multiple flash translation layers 530, each flash translation layer 530 may have its own garbage collection logic and / or wear leveling logic. Fig. 9 As discussed, garbage collection logic and / or wear leveling logic may operate within a single partition at a time, thereby ensuring that any data moved from one block to another may remain within the partition to which the data was originally written.

[0154] As discussed above, Figure 5 The storage within the flash chips 525-1 through 525-8 may be organized into partitions, where a partition manager 820 manages what storage is allocated to each partition. Fig. 9 Show Figure 1 The super block of the partition in the SSD 120. Fig. 9 As shown in , the term partition is intended to mean a collection of blocks (or superblocks) assigned to a particular QoS level: the term partition should not be interpreted as meaning a predetermined storage portion of fixed size (e.g., as a hard disk is partitioned into volumes before formatting one or more volumes). It is also worth noting that Figure 1 From the perspective of host 105, Figure 1 Any partition in the storage device 120 is not visible. The disclosed embodiments may include Figure 1 Host 105 and Figure 1 Both of the storage devices 120, but Figure 1 The host 105 may not know Figure 1 How the storage device 120 stores data.

[0155] exist Fig. 9 , partitions 905-1, 905-2, and 905-3 are shown. Each partition may include multiple Super Blocks: for example, partition 905-1 is shown as including Super Blocks 910-1, 910-2, 910-3, 910-4, and 910-5 (SB 1, SB 2, SB 3, SB 4, and SB 5). Note that different partitions may include different numbers of Super Blocks: partition 905-2 is shown as including four Super Blocks (SB 6, SB 7, SB 8, and SB 9), and partition 905-3 is shown as including three Super Blocks (SB 10, SB 11, and SB 12). A partition may include any number (zero or more, without limit) of Super Blocks (although if a partition stores any data, there will be at least one Super Block in the partition).

[0156] The use of partitions provides a mechanism by which tenants can be logically isolated from each other: or at least, tenants using different QoS levels can be logically isolated from each other. For example, partition 905-1 can be a storage Figure 3 The partition 905-2 may be a partition for storing data from the NS associated with the NVM set 320-4. Figure 3 NVM set 320-3 is associated with the NS data partition, and partition 905-3 can be a partition storing data from the NS associated with Figure 3 The NVM set 320-2 is associated with the partition of the NS data (wherein, Fig. 9 Another partition not shown in FIG stores the same Figure 3 There may be any number (zero or more, without limitation) of partitions: In some disclosed embodiments, the number of partitions may be related to the number of QoS levels or NVM sets.

[0157] When data will be written Figure 1 When the storage device 120 is Figure 8 The QoS-aware flash translation layer 805 may use information about which QoS level the data is associated with (this may be done, for example, using Figure 6 NS-QoS table 620) to identify the partition to which the data should be written. Then, Figure 8 The QoS-aware flash translation layer 805 may select a super block in the identified partition to store data and may update Figure 8 The LBA to PBA table 815 is used to reflect the PBA of the final stored data. Figure 8 The partition manager 820 may maintain a list (which may be an ordered list in some disclosed embodiments) of where blocks and / or superblocks are assigned to each partition 905-1 to 905-3. Figure 1 The storage device 120 and the Figure 1 The storage device 120 grows and / or shrinks over time, so the number of super blocks in any partition is not fixed. Figure 8 The partition manager 820 may also maintain a list (which may be an ordered list in some disclosed embodiments) of all free blocks and / or superblocks (ie, blocks that are not allocated to any partition and therefore may not be storing any data).

[0158] Each partition 905-1 to 905-3 can provide different levels of performance to tenants storing data in the partition 905-1 to 905-3. Figure 8 The partition manager 820 may use different superblock allocation schemes for different partitions. For example, partitions 905-1 to 905-3 may be assigned superblocks that provide different parallelism (such as, all NAND blocks from a single channel, two NAND blocks each from two channels, or (more generally) i NAND blocks from j different channels (i and j may be the same or different in value, and may each be a power of 2 or other value)). Different superblocks may support different forms of traffic: for example, some superblocks may support unidirectional traffic across one or more channels, while other superblocks may support bidirectional traffic across one or more channels. Different superblocks may also include different numbers of NAND blocks: for example, the superblocks assigned to partition 905-2 may each include two NAND blocks, while the superblocks assigned to partition 905-3 may each include four NAND blocks. Whenever a new superblock is to be assigned to a single partition (for example, when an application is writing data that does not fit in the available space in the partition, or when garbage collection is performed, or when wear leveling is performed), the superblock allocation scheme for the partition may be used.

[0159] Alternatively, Super Blocks may be allocated based on different NAND types. For example, partition 905-1 may be allocated Super Blocks that include triple-level cells (TLC), partition 905-2 may be allocated Super Blocks that include multi-level cells (MLC), and partition 905-3 may be allocated Super Blocks that include single-level cells (SLC). Since TLC and MLC flash chips can store more data than SLC flash chips (but have slower performance), partition 905-1 may include fewer Super Blocks than partition 905-2, which in turn may include fewer Super Blocks than partition 905-3 (which illustrates that the Super Block allocation scheme can combine both NAND types and parallelism methods).

[0160] certainly, Figure 8 The partition manager 820 may also use the same super block allocation for two or more (up to all) of the partitions 905-1 through 905-3.

[0161] In addition, different partitions can provide different services. For example, different partitions can provide different levels of Redundant Array of Independent Disks (RAID) support. One or more partitions may not provide RAID support, while other partitions may provide various levels of RAID. Thus, the RAID levels within the partitions can be used to support the promised QoS levels. In addition, Figure 1 Over-provisioning of the storage device 120 may again be allocated among different partitions based on QoS levels.

[0162] It may happen that there is insufficient storage in any individual SuperBlock in a partition: that is, there may not be enough Pages / Blocks / SuperBlocks in a free state to store the data. For example, if Partition 905-1 is selected to handle a write request, but SuperBlocks 910-1 through 910-5 do not have enough free pages to store the data, a new SuperBlock may need to be allocated to Partition 905-1. This situation also occurs the first time any data is written to a partition: since the partition may not contain data before this first write, there may be no SuperBlock allocated to the partition. Then, Figure 8 The partition manager 820 may allocate a new Super Block to the partition 905-1 (so that new data may be written), add the newly allocated Super Block to the list of Super Blocks in the partition 905-1, and then write the data to the PBA in the newly allocated Super Block.

[0163] As described above, storage in an SSD (e.g., a storage area in an SSD) can be in one of three states: idle (nothing is written to the storage), valid (data is written to the storage), or invalid (valid data has been written to the storage but has since been invalidated). In addition, storage is typically erased in units larger than the units in which data is written: for example, a page of data may be written at a time, but a block may be erased at a time. Therefore, storage in an SSD may become a fragmentary map of valid and invalid data in a block. Even if only a portion of the SSD stores valid data, if the SSD waits until all data in the block is invalidated before erasing the block, the SSD may enter a state where there is no room to write new data. To address this problem, the SSD may use garbage collection logic.

[0164] Garbage collection logic checks the amount of free storage on the SSD. Garbage collection logic can be implemented using FPGA, ASIC, or code running on CPU, GPU, or GPGPU, and can be Figure 5 SSD controller 515, Figure 5 A portion of the flash translation layer 530 or included in Figure 1 If the amount of free storage drops below a threshold (or some other trigger condition is met), the garbage collection logic may identify blocks that contain invalid data (ideally, as much invalid data as possible). The garbage collection logic may then read any valid data from the selected blocks and write that data to another block on the SSD that has free storage (referred to as programming), and update the Figure 5 The flash translation layer 530 is updated to reflect the new location where the valid data is stored. Once all valid data has been copied from the selected block, the block can be erased, allowing new data to be written to the block.

[0165] However, in the case of tenant isolation by QoS level, the process changes slightly. Instead of programming valid data arbitrarily, the garbage collection logic can program data into super blocks in the same partition. That is, the garbage collection logic can operate within the partition instead of operating across the entire SSD. This change explains why Fig. 9 Garbage collection logic is shown writing to a SuperBlock in the same partition. (Once a SuperBlock is erased by garbage collection logic, the SuperBlock may be deallocated from the partition and the blocks in the SuperBlock returned to the free block pool, or the SuperBlock may be left allocated to a partition for future data writes.)

[0166] In some disclosed embodiments, Figure 8 The partition manager 820 of the embodiment can allocate new Super Blocks to the partitions to be used when garbage collection is performed. That is, when garbage collection is performed, new Super Blocks can be added to the partitions, and all valid data in the Super Blocks that will be erased by the garbage collection logic can be programmed into the new Super Blocks. Then, once garbage collection is complete, the newly added Super Blocks can be used to write data from the partitions. FIG. 4A to FIG. 4C In other disclosed embodiments, the garbage collection logic may program valid data from the Super Block to be erased into any available free space in an existing Super Block in the partition, and a new Super Block may be allocated to a partition only if there is not enough free space in the partition for all the valid data to be programmed by the garbage collection logic. Wear leveling may use methods similar to those of garbage collection with respect to allocating new Super Blocks to partitions, as desired.

[0167] Another aspect of SSD is Figure 5 The flash memory chips 525-1 to 525-8 do not have an infinite lifespan. Instead, Figure 5Each cell in the flash memory chips 525-1 to 525-8 may have a limited number of write / erase cycles after which the cell may not be guaranteed to correctly store the written data. The number of write / erase cycles may depend on many factors (including, for example, Figure 5 For example, an SLC cell may be expected to experience 100,000 write / erase cycles before data cannot be properly stored, while an MLC may have an upper limit of 10,000 write / erase cycles, a TLC may have an upper limit of 1000 write / erase cycles, and a quad-level cell (QLC) may have an upper limit of only 100 write / erase cycles.

[0168] Because there is a limit to the number of write / erase cycles a cell can go through before an error may occur, the SSD tries to maintain the number of write / erase cycles as much as possible, even across all cells. Therefore, if one block goes through a few write / erase cycles and another block goes through only a few, then Figure 5 The Flash Translation Layer 530 may prefer to write newly received data to the later blocks. This process is called wear leveling. But again, since tenant isolation by QoS level is desired, the wear leveling logic should direct data to be written to the Super Block in the appropriate partition. Therefore, even if a Super Block in a partition may have room for data, a new Super Block with fewer write / erase cycles may be allocated to the partition, and data may be written to that Super Block instead.

[0169] In addition to each partition potentially having its own RAID level, each partition may have its own rules regarding when and how to run garbage collection and / or wear leveling. That is, one partition may indicate that garbage collection should be performed for the partition when the number of free blocks is 40% of the total available free blocks for the partition, while another partition may indicate that garbage collection should be performed for the partition when the number of free blocks is 20% of the total available free blocks. Wear leveling may similarly be applied differently in different partitions. Furthermore, because garbage collection and wear leveling may be performed within a single partition, garbage collection operations and wear leveling operations in one partition should not affect or interfere with operations in another partition.

[0170] To support garbage collection and wear leveling as described, Figure 1 The storage device 120 may include one or more garbage collection logic and / or wear leveling logic (not shown). Figure 1The storage device 120 includes sufficient garbage collection logic and / or wear leveling logic so that each partition 905-1 to 905-3 can have its own garbage collection logic and / or wear leveling logic, and each garbage collection logic and / or wear leveling logic can be dedicated to a single partition. Alternatively, if there are fewer garbage collection logic and / or wear leveling logic than partitions (and even if there are enough garbage collection logic and / or wear leveling logic so that each partition can have its own garbage collection logic and / or wear leveling logic), then one or more garbage collection logics and / or one or more wear leveling logics can operate within one partition at a time. However, in either case, one or more garbage collection logics and / or one or more wear leveling logics can be aware of the existence of the partition and can ensure that any data programmed due to garbage collection and / or wear leveling is written to another super block in the partition so that the data can be isolated from tenants in other partitions (and therefore tenants using other QoS levels).

[0171] The above discussion focuses on the logical isolation between partitions 905-1 to 905-3. Partitions 905-1 to 905-3 may also be physically isolated from each other. For example, return to reference Figure 5 , eight flash chips 525-1 to 525-8 are shown. If each flash chip 525-1 to 525-8 stores data associated with only one QoS level, the fact that data for different QoS levels are stored on different flash chips can provide physical isolation as well as logical isolation. Figure 8 The superblock allocation scheme used by the partition manager 820 may also attempt to physically and logically isolate superblocks.

[0172] return Fig. 9 Although the above discussion focuses on partitions 905-1 to 905-3 being used to logically isolate data for different QoS levels, partitions 905-1 to 905-3 may also be assigned to individual tenants. That is, partition 905-1 may be used to store data for tenant 1, partition 905-2 may be used to store data for tenant 2, and so on. In this way, partitions 905-1 to 905-3 may be used to logically isolate individual tenants and data for different QoS levels. In such a disclosed embodiment, there may ultimately be multiple partitions associated with the same QoS level (e.g., if two tenants both use NS at QoS level 1 and partitions are assigned to each tenant, there will be two partitions associated with QoS level 1).

[0173] Although the above discussion focuses on using super blocks to manage partitions, the disclosed embodiments may use other storage units to organize partitions. For example, pages or blocks may be used to organize partitions. Any reference to super blocks above should be understood to also apply to blocks and / or pages.

[0174] Fig.10 Show Figure 1 SSD 120 Fig. 9 Section 905-1 Fig. 9 An optional diagram of super blocks 910-1 to 910-5. Fig.10 , Super Blocks 910-1 to 910-5 and Super Blocks 1005-1 to 1005-11 are shown. Different cross-hatching may indicate to which partition a Super Block is assigned. Thus, for example, Super Blocks 910-1 to 910-5 may be assigned to Fig. 9 Partition 905-1, super blocks 1005-2, 1005-6, 1005-7 and 1005-8 can be allocated Fig. 9 Partition 905-2, super blocks 1005-3, 1005-5 and 1005-10 can be allocated Fig. 9 The free block pool 1010 may identify that super blocks 1005-1, 1005-4, 1005-9, and 1005-11 are currently free and available to be allocated to any partition as needed (according to the appropriate super block allocation scheme for the QoS level). Fig.10 The organization shown in may depict an example of superblock allocation, where any superblock may be allocated to any partition.

[0175] Fig.11 Show Figure 1 SSD 120 Figure 5 The super blocks in the flash chips 525-1 to 525-8 of the SSD. In an SSD, blocks can be organized into planes, planes can be organized into dies, and dies can be organized into channels. Therefore, Fig.11 Two example flash chips are effectively depicted (one accessed via channel 0 and the other accessed via channel 1). Alternatively, if a single flash chip can support two channels, then Fig.11 This effectively depicts a single flash chip that can be accessed across two channels.

[0176] Across these various channels, dies, and planes, a superblock 910-4 is shown. Essentially, a superblock 910-4 is a collection of blocks that all have the same location within a plane but differ from one another in at least one of the channels, dies, or planes. This arrangement allows for the introduction of some parallelism, which can speed up the reading and writing of data from the superblock.

[0177] Fig.12 Show Figure 5 Details of the NAND interface layer 535. Fig.12, the NAND interface layer 535 is shown to include NAND command schedulers 1205-1 and 1205-2. The NAND command schedulers 1205-1 and 1205-2 can be Figure 8 The NAND command schedulers 1205-1 and 1205-2 may use any desired arbitration algorithm to select the access die. Figure 8 Which die queue 825-1 and / or 825-2 is then Figure 8 For example, NAND command schedulers 1205-1 and 1205-2 may use a WRR scheduling algorithm (but may Figure 8 In the case of predetermined fixed weights for the individual die queues 825-1 and / or 825-2, rather than the dynamic weights discussed above), a FIFO selection algorithm may be used to select from Figure 8 The die queues 825-1 and / or 825-2 select the next command to process. Therefore, the NAND command schedulers 1205-1 and 1205-2 may implement priority scheduling based on the die queue priority levels (which may correspond to QoS levels).

[0178] Once a command has been selected, NAND command schedulers 1205-1 and 1205-2 can Figure 5 Channels 520-1 to 520-4 send those commands to Figure 5 Flash memory chips 525-1 to 525-8.

[0179] In addition, the NAND interface layer 535 may include channel / die status units 1210-1 and 1210-2. The channel / die status units 1210-1 and 1210-2 may receive information from the channel / die with which the corresponding NAND command scheduler communicates. This information may include, for example, Figure 5 The data read from the flash memory chips 525-1 to 525-8, the results of the write command, and the Figure 5 The NAND command schedulers 1205-1 and 1205-2 may use this information to schedule the flash memory chips 525-1 to 525-8. Figure 5 The NAND command schedulers 1205-1 and 1205-2 may then return this information to the NAND command scheduler 1205-1 and 1205-2. Figure 8The die completion queues 830-1 and 830-2.

[0180] Although Fig.12 Two NAND command schedulers 1205-1 and 1205-2 and two channel / die status units 1210-1 and 1210-2 are shown, but the disclosed embodiments may include any number (one or more, without limitation) of NAND command schedulers and channel / die status units. Figure 5 For each of the channels 520-1 to 520-4, there may be one NAND command scheduler and one channel / die status unit. In addition, the number of NAND command schedulers and channel / die status units may be different: for example, one NAND command scheduler may send commands to the flash memory chips along multiple channels, but each channel may have a dedicated channel / die status unit.

[0181] Fig.13 shows write requests associated with quality of service (QoS) levels. Fig.13 , a write request 1305 is shown. Write request 1305 may include data 1310, which may have an associated LBA 1315. Since each NS (or at least, each NS associated with a single application) may have a unique LBA range, LBA 1315 may be mapped to NS 325-1. (Alternatively, NS 325-1 may be included in write request 1305, in which case mapping LBA 1315 to NS 325-1 may be unnecessary.) Since each NS may be associated with a single NVM set, NS 325-1 may be mapped to NVM set 320-4. Since each NS may be associated with a single SQ (at least within the core in which the application is running), NVM set 320-4 may be mapped to SQ 310-4. Finally, SQ 310-4 may be mapped to a QoS level, which in turn may be mapped to partition 905-1. Thus, there may be a chain of associations that associate a particular write request down to a partition 905-1. Figure 1 A partition in the storage device 120 that can store data 1310.

[0182] Although Fig.13 The focus is on write request 1305 , but the disclosed embodiments may map similar association chains for other I / O commands, such as read commands.

[0183] In the above discussion, the focus is on a single storage device and its own controller. However, a controller (such as Figure 5 The SSD controller 515 can manage information stored in multiple SSDs. Figure 5 The SSD controller 515 can be Figure 5 The flash translation layer 530 is connected to additional circuits of additional storage devices to expand Figure 8 The LBA to PBA table 815 may include a column for storing the LBA with a specific PBA identifier. Fig.13 In the disclosed embodiment, Figure 1 The system can provide tenant isolation for tenants storing on multiple storage devices. In addition, by supporting storage on multiple storage devices, Figure 8 The partition manager 820 may select superblocks between multiple storage devices rather than just within a single storage device. In addition to partitions potentially spanning multiple storage devices, each storage device may be assigned to store data associated with only a single QoS level, thereby providing an additional method for providing physical separation between tenants of different QoS levels.

[0184] FIG. 14A to FIG. 14B Shown for Fig.13 The write request 1305 is mapped to Figure 3 A flowchart of an example process of SQ310-1 to 310-4. Fig.14A In block 1405, Figure 1 The host 105 may issue a command to create Figure 3 SQ 310-1 to 310-4. A command for creating Figure 3 At block 1410, Figure 1 The host 105 can assign QoS levels to Figure 3 QoS levels can be assigned to SQs 310-1 to 310-4 based on instructions from an administrator. Figure 3 As described above, this dispatch can be part of the SQ creation command rather than a separate process. At block 1415, Figure 1 The host 105 may issue a command to create Figure 3 NVM sets 320-1 to 320-4. A command for creating a NVM set 320-1 to 320-4 may be issued based on an instruction from an administrator. Figure 3 At block 1420, Figure 1 The host 105 can Figure 3 The NVM sets 320-1 to 320-4 are connected to Figure 3 QoS levels can be associated with SQs 310-1 to 310-4 based on instructions from an administrator. Figure 3 As discussed above, this association can be part of the NVM set creation command rather than a separate process. Note that due to Figure 3SQ 310-1 to 310-4 with Figure 3 The association between the NVM sets 320-1 to 320-4 of FIG. 4 may be accomplished by a command for creating an SQ including the IDs of the associated NVM sets, and thus the order of these blocks may be adjusted to first create the NVM sets 320-1 to 320-4 of FIG. 4 .

[0185] At block 1425, the application may issue a command to create Figure 3 At block 1430, the application may Figure 3 The NS 325-1 and 325-2 are Figure 3 As discussed above, this association may be part of the NS create command rather than a separate process.

[0186] In box 1435 ( Fig. 14B ), Figure 1 The processor 110 may be FIG. 4A to FIG. 4C Application 405-1 or 405-2 received Fig.13 At block 1440, using Fig.13 I / O request 1305 Fig.13 LBA1315, Figure 1 The processor 110 may Figure 3 The NS 325-1 is identified with Fig.13 1305. At block 1445, Figure 1 The processor 110 may then be based on Figure 3 The NS 325-1 and Figure 3 The association between the NVM sets 320-4 is used to identify Figure 3 At block 1450, Figure 1 The processor 110 may then be based on Figure 3 The NVM set 320-4 with Figure 3 SQ 310-4 Identify the associations between Figure 3 Then, at block 1455, Figure 1 The processor 110 may Fig.13 The I / O request 1305 is placed at Figure 3 SQ 310-4.

[0187] Finally, at block 1460, Figure 1 The processor 110 may receive the response in the completion queue 315. Figure 1 Response to I / O request 1305. At block 1465, Figure 1 The processor 110 may then deliver the response to FIG. 4A to FIG. 4CApplication 405-1 or 405-2.

[0188] FIG. 15A to FIG. 15B Shown for Figure 5 The host interface layer 510 handles the Figure 3 A flowchart of an example process for requesting SQs 310-1 through 310-4 is provided. Fig.15A In block 1505, Figure 6 The arbiter 605 may determine the Figure 3 As discussed above, weights may be determined for QoS levels, where the QoS levels (by means of Figure 3 The association of SQ 310-1 to 310-4) can be used for Figure 3 At block 1510, based on the weights, Figure 6 The arbiter 605 may select SQ. At block 1515, Figure 6 The command acquisition unit 610 can select from the selected SQ Fig.13 I / O request 1305. At block 1520, Figure 6 The command parser 615 can be selected Figure 6 In block 1525, the command parser may Fig.13 The I / O request 1305 is placed in the selected command queue 625.

[0189] In block 1530 ( Fig. 15B ), Figure 6 The QoS-aware scheduler 630 may select Figure 6 of the command queue 625. At block 1535, Figure 6 The QoS-aware scheduler 630 can be Figure 6 Command queue 625 selection Fig.13 I / O request 1305. At block 1540, Figure 6 The QoS-aware scheduler 630 can Fig.13 I / O request 1305 is sent to Figure 5 The flash translation layer 530 is configured to:

[0190] At block 1545, Figure 6 The host completion queue arbiter 645 can be Figure 5 The flash translation layer 530 receives Fig.13 The result of the I / O request 1305 (e.g., Fig.13 In block 1550, Figure 6 The host completion queue arbiter 645 can place the results Figure 3 The completion queue 315 is in the completion queue 315. Figure 6The host completion queue arbiter 645 can place the results in the order in which they are received. Figure 3 The results may be placed in the host completion queue 315 or the results may be reordered to satisfy the QoS level associated with the request that generated the result. For example, if there is a result associated with a high QoS level in the host completion queue arbiter 645 and another result associated with a low QoS level in the host completion queue arbiter 645, the host completion queue arbiter 645 may first place the result associated with the high QoS level in the host completion queue arbiter 645 even if the result associated with the low QoS level is placed first in the host completion queue arbiter 645. Figure 3 The completion queue 315 is in the completion queue 315.

[0191] Fig.16 Shown is the method for determining Figure 6 Flow chart of an example process for using weights of arbitrator 605. Fig.16 In block 1605, Figure 6 The arbiter 605 can determine the total storage capacity of the NS assigned to each QoS level. Figure 3 and FIG. 7A to FIG. 7B As discussed, assuming that each NS associated with a given NVM set has the same storage capacity, the total storage capacity for a QoS level can be determined by multiplying the number of NSs associated with the NVM set by the allocated storage capacity. Alternatively, the total storage capacity for a QoS level can be determined by summing the capacities of the individual NSs associated with the QoS level, or by determining the maximum capacity for all NSs at the QoS level and multiplying the maximum capacity by the number of NSs associated with the QoS level. In this regard, there are alternatives. At block 1610, Figure 6 The arbiter 605 can be used Fig. 7A Table 710 maps the total storage capacity of a single QoS level to a weight. Optionally, at block 1615, Figure 6 The arbiter 605 can be used Figure 7B Table 740 maps the total storage capacity of a single QoS class in combination with the same QoS class to weights.

[0192] Fig.17 Shown for Fig.13 The write request 1305 Fig.13 Data 1310 is written Fig. 9 A flowchart of an example process for storing super blocks in partitions 905-1 to 905-3. Fig.17 In block 1705, Figure 8 The QoS-aware flash translation layer 805 may receive Fig.13 I / O request 1305. Based on receiving Fig.13The I / O request 1305 passes through the command queue 625, or uses Figure 6 NS-QoS table 620, the request can be associated with a QoS level. At block 1710, Figure 8 The QoS-aware flash translation layer 805 may select the partition 905-1 having an associated QoS level. At block 1715, Figure 8 The QoS-aware Flash Translation Layer 805 can be used in Fig. 9 Identified in partition 905-1 Fig.13 The data 1310 can be written Fig. 9 Super block 910-1. At block 1720, Figure 8 The QoS-aware Flash Translation Layer 805 can be used in Fig. 9 The super block 910-1 is selected for Fig.13 The PBA of data 1310. In block 1725, Figure 8 The QoS-aware Flash Translation Layer 805 can be updated Figure 8 The LBA to PBA table 815 reflects the storage Fig.13 Finally, at block 1730, the die queue manager 810-1 may use Figure 5 The NAND interface layer 535 will Fig.13 Data 1310 is written Fig. 9 In the partition 905-1 Fig. 9 The PBA in super block 910-1.

[0193] Fig.18 Shown for Fig. 9 Select from partition 905-1 Fig.13 The write request 1305 Fig.13 The data 1310 can be written Fig. 9 A flowchart of an example process for creating a superblock 910-1. Fig.18 In block 1805, Figure 8 The QoS-aware flash translation layer 805 may determine Fig. 9 Does any super block in partition 905-1 currently have enough free space to store Fig.13 1310. If there is enough free space to store Fig.13 Data 1310 Fig. 9 At least one super block 910-1, then in block 1810, Figure 8 The QoS-aware Flash Translation Layer 805 can be used in Fig. 9 Select a partition 905-1 that has enough free space to store Fig.13 Data 1310 Fig. 9 On the other hand, if Fig. 9There is no partition 905-1 with sufficient free space to store Fig.13 Data 1310 Fig. 9 Super block 910-1, then in block 1815, Figure 8 The partition manager 820 can allocate new super blocks to Fig. 9 of partition 905-1, and at block 1820, Figure 8 The QoS-aware Flash Translation Layer 805 can be used in Fig. 9 Select the newly allocated super block in partition 905-1 to store Fig.13 Data 1310.

[0194] Although Fig.18 Focus on responding to FIG. 4A to FIG. 4C Application 405-1 and / or 405-2 issued Fig.13 Write request 1305 and write Fig.13 The data is 1310, but Fig.18 The same applies to writing data based on garbage collection or wear leveling. Fig.18 The flowchart shown in can also be used to select a SuperBlock in situations where data may be written due to garbage collection and / or wear leveling.

[0195] Fig.19 Shown for Fig. 9 Flowchart of an example process for performing garbage collection or wear leveling on a partition of Fig.19 In block 1905, the garbage collection logic and / or the wear leveling logic may select Fig. 9 As described above, the garbage collection logic and / or wear leveling logic may be dedicated to Fig. 9 The partitions 905-1 to 905-3, or the garbage collection logic and / or the wear leveling logic may be configured to Fig. 9 At block 1910, the garbage collection logic and / or the wear leveling logic may select Fig. 9 At block 1915, garbage collection logic and / or wear leveling logic may perform garbage collection and / or wear leveling on the selected Super Block. At block 1920, garbage collection logic and / or wear leveling logic may determine whether there is any data to be programmed from the selected Super Block. If there is data to be programmed from the selected Super Block, then at block 1925, garbage collection logic and / or wear leveling logic may program the data from the selected Super Block into another Super Block in the partition. This process may involve, for example, the process described above with reference to Fig.18Once any data from the selected Super Block that needs to be programmed has been programmed, the process is complete (although if the selected Super Block does not currently store valid data, the process may be repeated as described below). Fig. 20 Remove selected superblocks from a partition as described in .

[0196] Fig. 20 Shown for Fig. 9 Flowchart of an example process for removing a superblock from a partition. Fig. 20 In box 2005, Figure 8 The partition manager 820 can be used in Fig. 9 Identify the partition 905-1 that does not currently store valid data Fig. 9 Superblock 910-1. When previously written Fig. 9 The data of super block 910-1 is FIG. 4A to FIG. 4C The application 405-1 and / or 405-2 is invalid, or when Fig. 9 This may occur when a superblock 910-1 is selected for garbage collection, among other possibilities. Once a superblock 910-1 without valid data is identified Fig. 9 Super block 910-1, then in block 2010, Figure 8 The partition manager 820 can be accessed from Fig. 9 Section 905-1 removed Fig. 9 Super block 910-1. In block 2015, Figure 5 The flash translation layer 530 can be erased Fig. 9 Finally, at block 2020, Figure 8 The partition manager 820 can Fig. 9 The super block 910-1 returns to Fig.10 The free block pool 1010.

[0197] As indicated by dashed line 2025, block 2015 may be omitted. For example, Fig. 9 The super block 910-1 is allocated to Fig. 9 Partition 905-1 is used to store a small amount of data that is quickly invalidated (such as temporary application data). Fig. 9 Most of the Super Block 910-1 may be free to store other data, so erasing the block at this time may be premature (e.g., by using write / erase cycles unnecessarily). In this case, without erasing Fig. 9 In the case of super block 910-1, Fig. 9 The super block 910-1 returns to Fig.10 The free block pool 1010 may be reasonable (when it is used again later Fig. 9 When the super block 910-1 is used to store data, it can be ignored. Fig. 9Invalid data in super block 910-1).

[0198] exist FIG. 14A to FIG. 20 In the figure, some embodiments of the disclosure are shown. However, those skilled in the art will recognize that other embodiments of the disclosure are also possible by changing the order of the blocks, by omitting blocks, or by including connections not shown in the drawings. All such changes to the flow charts are considered to be disclosed embodiments, whether explicitly described or not.

[0199] The disclosed embodiments provide technical advantages over the prior art. First, by making QoS levels applicable to both the host and the storage device, end-to-end tenant isolation through QoS levels can be achieved. In addition, because the storage device also supports QoS levels, the burden on the host (in terms of trying to ensure that SLAs are met) is reduced: the storage device can be responsible for ensuring that SLAs are met. The host can set up SQ and NVM sets that can be associated with various QoS levels; when the NS is associated with an NVM set, the NS can obtain the QoS level associated with the NVM set, rather than having to establish a QoS level for the NS separately. Because NVM sets can span processor cores, applications can run in any desired core and still achieve the promised QoS (as opposed to having to run in a specific core to receive a specific QoS level benefit).

[0200] In a storage device, the storage may be divided into partitions, each of which may be associated with a QoS level. This arrangement helps provide tenant isolation because tenants expecting one QoS level may be logically isolated from tenants expecting another QoS level. If the storage device provides some form of physical isolation (e.g., multiple flash chips or disks), data may be written to a specific location that may also physically isolate a tenant from tenants with other QoS levels.

[0201] Using dynamic weights, a WRR scheduling algorithm may be used that may identify priorities for requests associated with different QoS levels and may also prevent requests from waiting too long and potentially not satisfying the service promised by the QoS level. The weights may be decoupled from the QoS level and may be determined based on the total storage allocated to the NS at the QoS level.

[0202] The following discussion is intended to provide a brief, general description of one or more suitable machines in which certain aspects of the disclosure may be implemented. One or more machines may be controlled at least in part by input from conventional input devices (such as keyboards, mice, etc.) and by instructions received from another machine, interaction with a virtual reality (VR) environment, biometric feedback, or other input signals. As used herein, the term "machine" is intended to broadly include a single machine, a virtual machine, or a system of machines, virtual machines, or devices that are communicatively connected and operate together. Exemplary machines include computing devices (such as personal computers, workstations, servers, portable computers, handheld devices, phones, tablet computers, etc.) and transportation devices (such as private or public transportation (e.g., cars, trains, taxis, etc.)).

[0203] One or more machines may include embedded controllers (such as programmable or non-programmable logic devices or arrays, application specific integrated circuits (ASICs), embedded computers, smart cards, etc.). One or more machines may utilize one or more connections to one or more remote machines (such as through a network interface, modem, or other communication connection). The machines may be interconnected by way of a physical network and / or a logical network (such as an intranet, the Internet, a local area network, a wide area network, etc.). Those skilled in the art will appreciate that network communications may utilize a variety of wired and / or wireless short-range or long-range carriers and protocols, including: radio frequency (RF), satellite, microwave, Institute of Electrical and Electronics Engineers (IEEE) 802.11, Optical, infrared, cable, laser, etc.

[0204] Embodiments of the present disclosure may be described by reference to or in conjunction with associated data, including functions, programs, data structures, applications, etc., which, when accessed by a machine, cause the machine to perform a task or define an abstract data type or a low-level hardware context. The associated data may be stored in, for example, volatile memory and / or non-volatile memory (e.g., RAM, ROM, etc.), or in other storage devices and their associated storage media, including hard disk drives, floppy disks, optical storage devices, tapes, flash memory, memory sticks, digital video disks, biometric storage devices, etc. The associated data may be transmitted in the form of packets, serial data, parallel data, propagation signals, etc., over a transmission environment including a physical network and / or a logical network, and may be used in a compressed format or an encrypted format. The associated data may be used in a distributed environment and may be stored locally and / or remotely for machine access.

[0205] The disclosed embodiments may include a tangible, non-transitory machine-readable medium including instructions executable by one or more processors, including instructions for performing elements of the disclosure as described herein.

[0206] The various operations of the methods described above may be performed by any suitable means capable of performing the operations (such as one or more various hardware and / or software components, circuits and / or one or more modules). Software may include an ordered list of executable instructions for implementing logical functions and may be implemented in any "processor-readable medium" to be used by or in conjunction with an instruction execution system, device or apparatus (such as a single-core or multi-core processor or a system containing a processor).

[0207] The blocks or steps of the methods or algorithms and functions described in conjunction with the embodiments disclosed herein may be implemented directly in hardware, in software modules executed by a processor, or in a combination of the two. If implemented in software, the functions may be stored as one or more instructions or codes on a tangible, non-transitory computer-readable medium or transmitted via a tangible, non-transitory computer-readable medium. The software module may reside in a random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disks, removable disks, CD ROMs, or any other form of storage medium known in the art.

[0208] Having described and illustrated the principles disclosed with reference to the illustrated embodiments, it will be appreciated that the illustrated embodiments may be modified in arrangement and detail without departing from such principles, and may be combined in any desired manner. In addition, although the foregoing discussion has focused on specific embodiments, other configurations are contemplated. Specifically, although expressions such as "according to disclosed embodiments" are used herein, these phrases are meant to relate generally to embodiment possibilities, and are not intended to limit disclosure to specific embodiment configurations. As used herein, these terms may relate to the same or different embodiments that may be combined into other embodiments.

[0209] The foregoing illustrative embodiments should not be construed as limiting the disclosure thereof. Although some embodiments have been described, it will be readily appreciated by those skilled in the art that many modifications are feasible to those embodiments without substantially departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure as defined in the claims.

[0210] The disclosed embodiments extend to the following statements without limitation:

[0211] Statement 1. The disclosed embodiments include a system, the system comprising:

[0212] processor;

[0213] a first submission queue (SQ) and a second SQ, the first SQ being associated with a first quality of service (QoS) level and the second SQ being associated with a second QoS level, the first QoS level being different from the second QoS level; and

[0214] Applications, running on the processor and using the first namespace (NS),

[0215] wherein the processor is configured to receive a first non-volatile memory (NVM) set creation command to establish a first NVM set associated with a first SQ,

[0216] The processor is configured to receive a second NVM set creation command to establish a second NVM set associated with the second SQ,

[0217] The processor is configured to receive a first NS creation command to establish a first NS associated with a first NVM set,

[0218] The processor is configured to receive a second NS creation command to establish a second NS associated with a second NVM set, and

[0219] The processor is configured to place an input / output (I / O) request sent from an application to at least one storage device in the first SQ based at least in part on the I / O request being associated with the first NS, the first NS being associated with the first NVM set, and the first NVM set being associated with the first SQ.

[0220] Statement 2. A disclosed embodiment includes the system of statement 1, wherein the first SQ and the second SQ are owned by a processor.

[0221] Statement 3. A disclosed embodiment includes a system according to statement 1, wherein:

[0222] The system includes: a memory, and

[0223] First data for the first SQ and second data for the second SQ are stored in the memory.

[0224] Statement 4. A disclosed embodiment includes a system according to statement 1, wherein:

[0225] The processor includes a first core and a second core;

[0226] The first core is associated with the first SQ and the second SQ; and

[0227] The second core is associated with a third SQ and a fourth SQ, the third SQ having a first QoS level, and the fourth SQ having a second QoS level.

[0228] Statement 5. A disclosed embodiment includes the system of statement 1, further comprising: a completion queue for receiving data from the at least one storage device.

[0229] Statement 6. A disclosed embodiment includes a system according to statement 1, wherein:

[0230] A first NVM set is associated with a first storage partition in the at least one storage device, and

[0231] The second NVM set is associated with a second storage partition in the at least one storage device.

[0232] Statement 7. A disclosed embodiment includes a system according to statement 6, wherein:

[0233] The at least one storage device comprises a solid state drive (SSD);

[0234] A first storage partition in the at least one storage device includes a first group of NAND flash memory chips in the SSD, and

[0235] The second storage partition in the at least one storage device includes a second group of NAND flash memory chips in the SSD.

[0236] Statement 8. A disclosed embodiment includes the system of statement 7, wherein the first group of NAND flash memory chips in the SSD are physically separated from the second group of NAND flash memory chips in the SSD.

[0237] Statement 9. A disclosed embodiment includes the system of statement 6, wherein a first storage partition in the at least one storage device is logically separated from a second storage partition in the at least one storage device.

[0238] Statement 10. A disclosed embodiment includes the system of statement 1, wherein the at least one storage device supports a first QoS level and a second QoS level.

[0239] Statement 11. The disclosed embodiments include a method, the method comprising:

[0240] receiving an input / output (I / O) request from an application running on the processor to be sent to at least one storage device;

[0241] Identify the namespace (NS) associated with the I / O request;

[0242] identifying a non-volatile memory (NVM) set based at least in part on a first association between the NS and the NVM set, the NVM set being associated with a quality of service (QoS) class;

[0243] identifying a submission queue (SQ) based at least in part on a second association between the NVM set and the SQ; and

[0244] Place I / O requests in an SQ.

[0245] Statement 12. A disclosed embodiment includes the method of statement 11 wherein the SQ is owned by a processor.

[0246] Statement 13. A disclosed embodiment includes the method of statement 11 wherein the data for the SQ is stored in a memory.

[0247] Statement 14. A disclosed embodiment includes the method according to statement 11, further comprising:

[0248] receiving the response in a completion queue; and

[0249] Send the response to the application.

[0250] Statement 15. A disclosed embodiment includes the method of statement 11 wherein SQ is associated with a QoS level.

[0251] Statement 16. A disclosed embodiment includes the method of statement 15 wherein the NVM set is associated with a QoS level based at least in part on associating the SQ with the QoS level.

[0252] Statement 17. A disclosed embodiment includes the method of statement 16 wherein the NS is associated with a QoS level based at least in part on associating a NVM set with the QoS level.

[0253] Statement 18. A disclosed embodiment includes the method of statement 11 wherein the NVM set is associated with a first storage partition in the at least one storage device.

[0254] Statement 19. A disclosed embodiment includes the method of statement 18 wherein the storage device comprises at least one solid state drive (SSD).

[0255] Statement 20. The disclosed embodiments include the method of statement 11, wherein the step of receiving an I / O request from an application running on a processor includes: receiving the I / O request from an application running in a first core of the processor, the processor including the first core and a second core.

[0256] Statement 21. A disclosed embodiment includes the method of statement 11, further comprising:

[0257] receiving a second I / O request from an application running on the processor;

[0258] identifying a second NS associated with the second I / O request;

[0259] identifying a second NVM set based at least in part on a third association between the second NS and the second NVM set, the second NVM set being associated with a second QoS level;

[0260] identifying the second SQ based at least in part on a fourth association between the second set of NVMs and the second SQ; and

[0261] The second I / O request is placed in the second SQ.

[0262] Statement 22. A disclosed embodiment includes the method of statement 11, further comprising: sending a command to a processor to create an SQ.

[0263] Statement 23. The disclosed embodiment includes the method of statement 22, further comprising: assigning a QoS level to the SQ.

[0264] Statement 24. A disclosed embodiment includes the method of statement 11, further comprising: sending a command to a processor to create a NVM set.

[0265] Statement 25. A disclosed embodiment includes the method of statement 24, further comprising: associating the NVM set with the SQ.

[0266] Statement 26. A disclosed embodiment includes the method of statement 25 wherein the NVM set obtains the QoS level from the SQ.

[0267] Statement 27. A disclosed embodiment includes the method of statement 11, further comprising: sending a command to a processor to create a NS.

[0268] Statement 28. A disclosed embodiment includes the method of statement 27, further comprising: associating the NS with the NVM set.

[0269] Statement 29. A disclosed embodiment includes the method of statement 28 wherein the NS obtains the QoS level from the NVM set.

[0270] Statement 30. The disclosed embodiments include an article comprising a non-transitory storage medium having stored thereon instructions that, when executed by a machine, result in:

[0271] receiving an input / output (I / O) request from an application running on the processor to be sent to at least one storage device;

[0272] Identify the namespace (NS) associated with the I / O request;

[0273] identifying a non-volatile memory (NVM) set based at least in part on a first association between the NS and the NVM set, the NVM set being associated with a quality of service (QoS) class;

[0274] identifying a submission queue (SQ) based at least in part on a second association between the NVM set and the SQ; and

[0275] Place I / O requests in an SQ.

[0276] Statement 31. A disclosed embodiment includes the article of statement 30, wherein the SQ is owned by the processor.

[0277] Statement 32. A disclosed embodiment includes the article of statement 30 wherein the data for the SQ is stored in a memory.

[0278] Statement 33. A disclosed embodiment includes the article of statement 30, the non-transitory storage medium having stored thereon further instructions that, when executed by a machine, result in:

[0279] receiving the response in a completion queue; and

[0280] Send the response to the application.

[0281] Statement 34. A disclosed embodiment comprises the article of statement 30 wherein SQ is associated with a QoS level.

[0282] Statement 35. A disclosed embodiment includes the article of statement 34, wherein the NVM set is associated with the QoS level based at least in part on associating the SQ with the QoS level.

[0283] Statement 36. A disclosed embodiment includes the article of statement 35, wherein the NS is associated with the QoS level based at least in part on associating the NVM set with the QoS level.

[0284] Statement 37. A disclosed embodiment includes the article of statement 30, wherein the NVM set is associated with a first storage partition in the at least one storage device.

[0285] Statement 38. A disclosed embodiment includes the article of statement 37, wherein the storage device includes at least one solid state drive (SSD).

[0286] Statement 39. The disclosed embodiments include an article according to statement 30, wherein the step of receiving an I / O request from an application running on a processor includes: receiving the I / O request from an application running in a first core of the processor, the processor including the first core and a second core.

[0287] Statement 40. A disclosed embodiment includes the article of statement 30, the non-transitory storage medium having stored thereon further instructions that, when executed by a machine, result in:

[0288] receiving a second I / O request from an application running on the processor;

[0289] identifying a second NS associated with the second I / O request;

[0290] identifying a second NVM set based at least in part on a third association between the second NS and the second NVM set, the second NVM set being associated with a second QoS level;

[0291] identifying the second SQ based at least in part on a fourth association between the second set of NVMs and the second SQ; and

[0292] The second I / O request is placed in the second SQ.

[0293] Statement 41. A disclosed embodiment includes the article of claim 30, the non-transitory storage medium having further instructions stored thereon, the further instructions, when executed by a machine, resulting in: sending a command to a processor to create an SQ.

[0294] Statement 42. A disclosed embodiment includes the article of statement 41, the non-transitory storage medium having further instructions stored thereon, the further instructions, when executed by the machine, resulting in: assigning a QoS level to the SQ.

[0295] Statement 43. A disclosed embodiment includes the article of claim 30, the non-transitory storage medium having stored thereon further instructions that, when executed by a machine, result in: sending a command to a processor to create a NVM set.

[0296] Statement 44. A disclosed embodiment includes the article of statement 43, the non-transitory storage medium having further instructions stored thereon, the further instructions, when executed by a machine, resulting in: associating the NVM set with the SQ.

[0297] Statement 45. A disclosed embodiment comprises the article of statement 44 wherein the NVM set obtains the QoS level from the SQ.

[0298] Statement 46. A disclosed embodiment includes the article of claim 30, the non-transitory storage medium having further instructions stored thereon, the further instructions, when executed by the machine, resulting in: sending a command to the processor to create a NS.

[0299] Statement 47. A disclosed embodiment includes the article of statement 46, the non-transitory storage medium having further instructions stored thereon, the further instructions, when executed by a machine, resulting in: associating a NS with a NVM set.

[0300] Statement 48. A disclosed embodiment comprises the article of statement 47 wherein the NS obtains the QoS level from the NVM set.

[0301] Statement 49. The disclosed embodiments include a host interface layer in a storage device, the host interface layer comprising:

[0302] an arbiter for selecting a first submission queue (SQ) from a set including at least a first SQ and a second SQ, the first SQ being associated with a first quality of service (QoS) level, the second SQ being associated with a second QoS level;

[0303] A command acquirer for acquiring an input / output (I / O) request from the first SQ; and

[0304] a command parser for placing the I / O request in a first command queue from a set comprising at least a first command queue and a second command queue,

[0305] wherein the arbitrator is configured to select the first SQ from a set including at least the first SQ and the second SQ based at least in part on a first weight associated with the first SQ and a second weight associated with the second SQ,

[0306] wherein the first weight is based at least in part on a first total storage capacity of at least one first namespace (NS) associated with the first QoS class, and

[0307] The second weight is based at least in part on a second total storage capacity of at least one second NS associated with the second QoS level.

[0308] Statement 50. A disclosed embodiment comprises a host interface layer in a storage device as recited in statement 49, wherein the storage device comprises a solid state drive (SSD).

[0309] Statement 51. A disclosed embodiment includes a host interface layer in a storage device according to statement 49, wherein:

[0310] The first command queue is associated with a first QoS level, and

[0311] The second command queue is associated with a second QoS level.

[0312] Statement 52. The disclosed embodiment includes a host interface layer in a storage device according to statement 51, further comprising: a QoS-aware scheduler for selecting I / O requests from the first command queue based at least on a weight associated with the first QoS level.

[0313] Statement 53. The disclosed embodiment includes a host interface layer in a storage device according to statement 52, further comprising: storage of a table for mapping the first QoS level to the weight.

[0314] Statement 54. The disclosed embodiment includes a host interface layer in a storage device according to statement 49, further comprising: storage of a table for mapping a first NS to a first QoS level and mapping a second NS to a second QoS level.

[0315] Statement 55. The disclosed embodiment includes a host interface layer in a storage device according to statement 49, further comprising: storage of a table for mapping a first total capacity range to a first weight and mapping a second total capacity range to a second weight.

[0316] Statement 56. A disclosed embodiment includes a host interface layer in a storage device according to statement 49, wherein:

[0317] The first weight is based at least in part on a first total storage capacity of the at least one first NS associated with the first QoS level and a first priority assigned by the host, and

[0318] The second weight is based at least in part on a second total storage capacity of the at least one second NS associated with the second QoS level and a second priority assigned by the host.

[0319] Statement 57. The disclosed embodiment includes a host interface layer in a storage device according to statement 56, further comprising: storage of a table for mapping a first total capacity range and a first priority to a first weight and mapping a second total capacity range and a second priority to a second weight.

[0320] Statement 58. A disclosed embodiment includes a host interface layer in a storage device as described in statement 49, wherein the first weight and the second weight are dynamically adjusted.

[0321] Statement 59. A disclosed embodiment includes a host interface layer in a storage device as described in statement 58, wherein the first weight and the second weight are calculated based at least in part on the first NS being created or the first NS being deleted.

[0322] Statement 60. A disclosed embodiment includes a host interface layer in a storage device according to statement 49, wherein:

[0323] The first command queue includes a first read queue and a first write queue, and

[0324] The second command queue includes a second read queue and a second write queue.

[0325] Statement 61. A disclosed embodiment includes a host interface layer in a storage device according to statement 49, further comprising: a write buffer for storing data to be written to the storage device.

[0326] Statement 62. The disclosed embodiment includes a host interface layer in a storage device according to statement 49, further comprising: a completion queue arbiter for placing responses to I / O requests in a completion queue.

[0327] Statement 63. The disclosed embodiments include a method comprising:

[0328] determining a first weight for a first submission queue (SQ) based at least in part on a first total storage capacity of at least one first namespace (NS) associated with a first quality of service (QoS) class;

[0329] determining a second weight for a second SQ, the second SQ being based at least in part on a second total storage capacity of at least one second NS associated with a second QoS class;

[0330] selecting the first SQ from the first SQ and the second SQ based at least in part on the first weight and the second weight;

[0331] Selecting an input / output (I / O) request in a first SQ;

[0332] selecting a first command queue from a set including at least a first command queue and a second command queue based at least in part on the first QoS level for the I / O request; and

[0333] The I / O request is placed in a first command queue based at least in part on a first QoS level for the I / O request.

[0334] Statement 64. A disclosed embodiment includes the method of statement 63, wherein the method is implemented in a host interface layer in a storage device.

[0335] Statement 65. A disclosed embodiment includes the method of statement 64 wherein the storage device comprises a solid state drive (SSD).

[0336] Statement 66. A disclosed embodiment includes the method of statement 63, wherein:

[0337] The step of determining the first weight includes: mapping the first total storage capacity to the first weight, and

[0338] The step of determining the second weight includes mapping the second total storage capacity to the second weight.

[0339] Statement 67. A disclosed embodiment includes the method of statement 66, wherein:

[0340] The step of mapping the first total storage capacity to the first weight comprises: mapping the first total storage capacity and the first priority assigned by the host to the at least one first NS to the first weight, and

[0341] The step of mapping the second total storage capacity to the second weight includes mapping the second total storage capacity and a second priority assigned by the host to the at least one second NS to the second weight.

[0342] Statement 68. A disclosed embodiment includes the method of statement 63, wherein the step of selecting the first SQ based at least in part on the first weight and the second weight includes: selecting the first SQ based at least in part on a ratio determined by the first weight and the second weight.

[0343] Statement 69. A disclosed embodiment includes the method of statement 63, wherein:

[0344] The step of determining a first weight for a first SQ comprises: determining a first weight for the first SQ when a NS is created or deleted, and

[0345] The step of determining a second weight for the second SQ includes determining the second weight for the second SQ when the NS is created or deleted.

[0346] Statement 70. A disclosed embodiment includes the method of statement 63 wherein the first command queue comprises a read queue associated with the first QoS level and a write queue associated with the first QoS level.

[0347] Statement 71. A disclosed embodiment includes the method of statement 63, further comprising:

[0348] Retrieving the I / O request from the first command queue based at least in part on the weight associated with the first QoS class; and

[0349] Sends the I / O request to the Flash Translation Layer (FTL).

[0350] Statement 72. A disclosed embodiment includes the method of statement 63, further comprising:

[0351] receiving the result of the I / O request; and

[0352] Place the result in the completion queue.

[0353] Statement 73. A disclosed embodiment includes the method of statement 72 wherein placing the result in the completion queue comprises placing the result in the completion queue based at least in part on the first QoS level.

[0354] Statement 74. The disclosed embodiments include an article comprising a non-transitory storage medium having stored thereon instructions that, when executed by a machine, result in:

[0355] determining a first weight for a first submission queue (SQ) based at least in part on a first total storage capacity of at least one first namespace (NS) associated with a first quality of service (QoS) class;

[0356] determining a second weight for a second SQ, the second SQ being based at least in part on a second total storage capacity of at least one second NS associated with a second QoS class;

[0357] selecting the first SQ from the first SQ and the second SQ based at least in part on the first weight and the second weight;

[0358] Selecting an input / output (I / O) request in a first SQ;

[0359] selecting a first command queue from a set including at least a first command queue and a second command queue based at least in part on the first QoS level for the I / O request; and

[0360] The I / O request is placed in a first command queue based at least in part on a first QoS level for the I / O request.

[0361] Statement 75. A disclosed embodiment comprises the article of statement 74, wherein the article is implemented in a host interface layer in a storage device.

[0362] Statement 76. A disclosed embodiment includes the article of statement 75 wherein the storage device comprises a solid state drive (SSD).

[0363] Statement 77. A disclosed embodiment includes the article of statement 74, wherein:

[0364] The step of determining the first weight includes: mapping the first total storage capacity to the first weight, and

[0365] The step of determining the second weight includes mapping the second total storage capacity to the second weight.

[0366] Statement 78. A disclosed embodiment includes the article of statement 77, wherein:

[0367] The step of mapping the first total storage capacity to the first weight comprises: mapping the first total storage capacity and the first priority assigned by the host to the at least one first NS to the first weight, and

[0368] The step of mapping the second total storage capacity to the second weight includes mapping the second total storage capacity and a second priority assigned by the host to the at least one second NS to the second weight.

[0369] Statement 79. The disclosed embodiments include an article according to statement 74, wherein the step of selecting the first SQ based at least in part on the first weight and the second weight includes: selecting the first SQ based at least in part on a ratio determined by the first weight and the second weight.

[0370] Statement 80. A disclosed embodiment includes the article of statement 74, wherein:

[0371] The step of determining a first weight for a first SQ comprises: determining a first weight for the first SQ when a NS is created or deleted, and

[0372] The step of determining a second weight for the second SQ includes determining the second weight for the second SQ when the NS is created or deleted.

[0373] Statement 81. A disclosed embodiment includes the article of statement 74, wherein the first command queue includes a read queue associated with the first QoS level and a write queue associated with the first QoS level.

[0374] Statement 82. A disclosed embodiment includes the article of statement 74, the non-transitory storage medium having stored thereon instructions that, when executed by a machine, result in:

[0375] Retrieving the I / O request from the first command queue based at least in part on the weight associated with the first QoS class; and

[0376] Sends the I / O request to the Flash Translation Layer (FTL).

[0377] Statement 83. A disclosed embodiment includes the article of statement 74, the non-transitory storage medium having instructions stored thereon that, when executed by a machine, result in:

[0378] receiving the result of the I / O request; and

[0379] Place the result in the completion queue.

[0380] Statement 84. A disclosed embodiment includes the article of statement 83, wherein placing the result in the completion queue comprises placing the result in the completion queue based at least in part on the first QoS level.

[0381] Statement 85. The disclosed embodiments include a storage device, the storage device comprising:

[0382] The first and second blocks; and

[0383] a partition manager for allocating the first block to the first partition and the second block to the second partition,

[0384] Wherein, the first partition is configured to store first data received from the host and associated with a first quality of service (QoS) level, and the second partition is configured to store second data received from the host and associated with a second QoS level.

[0385] Statement 86. A disclosed embodiment includes the storage device of statement 85 wherein the second QoS level is different than the first QoS level.

[0386] Statement 87. The disclosed embodiment includes the storage device of statement 85, further comprising: a third block.

[0387] Statement 88. The disclosed embodiment includes a storage device as described in statement 87, wherein the partition manager is configured to: allocate a third block from the free block pool to a third partition, and the third partition is configured to store third data associated with a third QoS level received from the host.

[0388] Statement 89. A disclosed embodiment comprises the storage device of statement 88 wherein the third QoS level is different from both the first QoS level and the second QoS level.

[0389] Statement 90. A disclosed embodiment includes the storage device of statement 87 wherein the partition manager is configured to allocate the third block from the free block pool to the first partition.

[0390] Statement 91. The disclosed embodiments include a storage device as described in statement 90, wherein the partition manager is configured to: allocate a third block from a free block pool to the first partition based at least in part on the first partition having insufficient space to store additional first data received from the host.

[0391] Statement 92. A disclosed embodiment includes the storage device of statement 90, wherein the partition manager is configured to: program valid data from the erase block in the first partition based at least in part on garbage collection logic, and allocate the third block from the free block pool to the first partition.

[0392] Statement 93. The disclosed embodiment includes a storage device according to statement 92, wherein the partition manager is configured to: program valid data from an erase block in a first partition based at least in part on garbage collection logic and the first partition has insufficient space to store the valid data, allocate a third block from a free block pool to the first partition.

[0393] Statement 94. A disclosed embodiment includes the storage device of statement 90, wherein the partition manager is configured to: program valid data from the erase block in the first partition based at least in part on wear leveling logic, and allocate the third block from the free block pool to the first partition.

[0394] Statement 95. The disclosed embodiment includes a storage device according to statement 94, wherein the partition manager is configured to: program valid data from an erase block in a first partition based at least in part on wear leveling logic and the first partition has insufficient space to store the valid data, and allocate a third block from a free block pool to the first partition.

[0395] Statement 96. A disclosed embodiment includes a storage device as described in statement 87, wherein:

[0396] The first partition is configured to store first data received from the host and associated with a first QoS level and a first namespace (NS), and the second partition is configured to store second data received from the host and associated with a second QoS level and a second NS; and

[0397] The partition manager is configured to allocate a third block from the free block pool to a third partition, and the third partition is configured to store third data associated with the first QoS level and the third NS received from the host.

[0398] Statement 97. A disclosed embodiment includes the storage device of statement 85 wherein the partition manager is operable to return the first block to the free block pool when the first block does not store valid data associated with the first QoS level.

[0399] Statement 98. The disclosed embodiments include a method comprising:

[0400] receiving a write command for writing first data into storage of a storage device, the first data being associated with a first quality of service (QoS) level;

[0401] identifying a first partition in storage of the storage device, the first partition storing second data associated with the first QoS level;

[0402] identifying a block in the first partition for storing the first data; and

[0403] writing first data to the block in the first partition,

[0404] The second partition in the storage of the storage device stores third data associated with the second QoS level.

[0405] Statement 99. A disclosed embodiment includes the method of statement 98, wherein:

[0406] The step of identifying a block in a first partition for storing first data comprises:

[0407] determining that a first block in the first partition has free space that is smaller than a size of the first data, and

[0408] Allocate a second block from the free block pool to the first partition; and

[0409] The step of writing the first data to the block in the first partition includes writing the first data to a second block in the first partition.

[0410] Statement 100. A disclosed embodiment includes the method of statement 98 wherein the step of receiving a write command for writing the first data to storage of the storage device comprises: receiving a write command for writing the first data to storage of the storage device from garbage collection logic.

[0411] Statement 101. A disclosed embodiment includes the method of statement 98 wherein the step of receiving a write command for writing the first data to storage of the storage device comprises: receiving a write command for writing the first data to storage of the storage device from wear leveling logic.

[0412] Statement 102. A disclosed embodiment comprises the method of statement 98, further comprising:

[0413] identifying a second block in the first partition, the second block not storing valid data;

[0414] removing the second block from the first partition; and

[0415] Return the second block to the free block pool.

[0416] Statement 103. A disclosed embodiment includes the method of statement 102, further comprising: erasing the second block.

[0417] Statement 104. A disclosed embodiment includes the method of statement 98, wherein:

[0418] A first partition in the storage of the storage device stores second data associated with a first QoS level and a first namespace (NS);

[0419] A second partition in the storage of the storage device stores third data associated with a second QoS level and a second NS; and

[0420] A third partition in the storage of the storage device stores fourth data associated with the first QoS level and the third NS.

[0421] Statement 105. The disclosed embodiments include an article comprising a non-transitory storage medium having stored thereon instructions that, when executed by a machine, result in:

[0422] receiving a write command for writing first data into storage of a storage device, the first data being associated with a first quality of service (QoS) level;

[0423] identifying a first partition in storage of the storage device, the first partition storing second data associated with the first QoS level;

[0424] identifying a block in the first partition for storing the first data; and

[0425] writing first data to the block in the first partition,

[0426] The second partition in the storage of the storage device stores third data associated with the second QoS level.

[0427] Statement 106. A disclosed embodiment includes the article of statement 105, wherein:

[0428] The step of identifying a block in a first partition for storing first data comprises:

[0429] determining that a first block in the first partition has free space that is smaller than a size of the first data, and

[0430] Allocating a second block from the free block pool to the first partition; and

[0431] The step of writing the first data to the block in the first partition includes writing the first data to a second block in the first partition.

[0432] Statement 107. A disclosed embodiment includes the article of claim 105, wherein the step of receiving a write command for writing the first data to the storage of the storage device includes: receiving a write command for writing the first data to the storage of the storage device from garbage collection logic.

[0433] Statement 108. A disclosed embodiment includes the article of statement 105, wherein the step of receiving a write command for writing the first data to the storage of the storage device includes: receiving a write command for writing the first data to the storage of the storage device from wear leveling logic.

[0434] Statement 109. A disclosed embodiment includes the article of statement 105, the non-transitory storage medium having stored thereon instructions that, when executed by a machine, result in:

[0435] identifying a second block in the first partition, the second block not storing valid data;

[0436] removing the second block from the first partition; and

[0437] Return the second block to the free block pool.

[0438] Statement 110. A disclosed embodiment comprises the article of statement 109, the non-transitory storage medium having instructions stored thereon that when executed by a machine result in: erasing the second block.

[0439] Statement 111. A disclosed embodiment includes the article of statement 105, wherein:

[0440] A first partition in the storage of the storage device stores second data associated with a first QoS level and a first namespace (NS);

[0441] A second partition in the storage of the storage device stores third data associated with a second QoS level and a second NS; and

[0442] A third partition in the storage of the storage device stores fourth data associated with the first QoS level and the third NS.

[0443] Statement 112. The disclosed embodiments include a flash translation layer (FTL) core, the FTL core comprising:

[0444] a quality of service (QoS) aware FTL for obtaining a write command from a first command queue from a set including at least a first command queue and a second command queue, the write command including a logical block address (LBA);

[0445] an LBA to physical block address (PBA) table that maps between LBAs and PBAs; and

[0446] A die queue manager (DQM) is configured to communicate with at least one die in at least one flash memory chip.

[0447] Statement 113. A disclosed embodiment comprises the FTL core of statement 112 wherein the DQM comprises a first die queue associated with a first QoS level and a second die queue associated with a second QoS level.

[0448] Statement 114. A disclosed embodiment includes the FTL core of statement 113, wherein the DQM is configured to place the write command in the first die queue based at least in part on the PBA and the first QoS level.

[0449] Statement 115. A disclosed embodiment comprises the FTL core of statement 114 wherein the DQM is further configured to replace the LBA with the PBA in a write command.

[0450] Statement 116. A disclosed embodiment comprises the FTL core of statement 112, further comprising: a completion manager for processing results from the DQM.

[0451] Statement 117. A disclosed embodiment comprises the FTL core of statement 116 wherein the DQM comprises: a die completion queue for storing results.

[0452] Therefore, in view of the wide variety of permutations of the embodiments described herein, this detailed description and accompanying material are intended to be illustrative only and should not be taken as limiting the scope of the disclosure. Therefore, what is claimed is all such modifications that may come within the scope and spirit of the appended claims and their equivalents.

Claims

1. A storage device, the storage device include: A memory for storing data; A memory controller for managing memory; as well as Host interface layer, including: an arbiter for selecting a first submission queue from a set including at least a first submission queue and a second submission queue, the first submission queue being associated with a first quality of service level and the second submission queue being associated with a second quality of service level; A command acquirer, configured to acquire input / output requests from the first submission queue; and a command parser for placing an input / output request in a first command queue from a set comprising at least a first command queue and a second command queue, wherein the arbitrator is configured to select the first submission queue from a set including at least the first submission queue and the second submission queue based at least in part on a first weight associated with the first submission queue and a second weight associated with the second submission queue, wherein the first weight is based at least in part on a first total storage capacity of at least one first namespace associated with the first quality of service level, and The second weight is based at least in part on a second total storage capacity of at least one second namespace associated with the second quality of service level.

2. The storage device according to claim 1, in, The first command queue is associated with a first quality of service class, and The second command queue is associated with a second quality of service class.

3. The storage device according to claim 2, in, The host interface layer further includes a quality of service aware scheduler for selecting input / output requests from the first command queue and the second command queue based at least on a weight associated with the first quality of service level.

4. The storage device according to claim 3, in, The host interface layer also includes a storage device for mapping the first quality of service level to a table of the weights.

5. The storage device according to claim 1, in, The host interface layer also includes a storage device for a table mapping the first total capacity range to the first weight and mapping the second total capacity range to the second weight.

6. The storage device according to claim 1, in, The first weight is based at least in part on a first total storage capacity of the at least one first namespace associated with the first quality of service level and a first priority assigned by the host, and The second weight is based at least in part on a second total storage capacity of the at least one second namespace associated with the second quality of service level and a second priority assigned by the host.

7. The storage device according to claim 6, in, The host interface layer also includes a storage device for a table mapping the first total capacity range and the first priority to the first weight and mapping the second total capacity range and the second priority to the second weight.

8. The storage device according to claim 1, in, The first command queue includes a first read queue and a first write queue, and The second command queue includes a second read queue and a second write queue.

9. The storage device according to claim 1, in, The host interface layer also includes a write buffer for storing data to be written into the storage device.

10. The storage device according to claim 1, in, The host interface layer also includes a completion queue arbiter for placing responses to input / output requests in a completion queue.

11. A method for processing a request, include: determining a first weight for a first submission queue based at least in part on a first total storage capacity of at least one first namespace associated with a first quality of service class; determining a second weight for a second submission queue, the second submission queue based at least in part on a second total storage capacity of at least one second namespace associated with a second quality of service class; selecting the first submission queue from the first submission queue and the second submission queue based at least in part on the first weight and the second weight; Selecting an input / output request in a first submission queue; selecting a first command queue from a set including at least a first command queue and a second command queue based at least in part on a first quality of service level for input / output requests; as well as The input / output request is placed in a first command queue based at least in part on a first quality of service level for the input / output request.

12. The method for processing a request according to claim 11, in, The method for processing a request is implemented in a host interface layer in a storage device.

13. The method for processing a request according to claim 11, in, The step of determining the first weight includes: mapping the first total storage capacity to the first weight, and The step of determining the second weight includes mapping the second total storage capacity to the second weight.

14. The method for processing a request according to claim 13, in, The step of mapping the first total storage capacity to the first weight comprises: mapping the first total storage capacity and a first priority assigned by the host to the at least one first namespace to the first weight, and The step of mapping the second total storage capacity to the second weight includes mapping the second total storage capacity and a second priority assigned by the host to the at least one second namespace to the second weight.

15. The method for processing a request according to claim 11, in, The step of determining a first weight for a first submission queue includes: determining a first weight for the first submission queue when a namespace is created or deleted, and The step of determining a second weight for the second submission queue includes determining the second weight for the second submission queue when the namespace is created or deleted.

16. The method for processing a request according to claim 11, further comprising: include: obtaining an input / output request from a first command queue based at least in part on a weight associated with a first quality of service class; as well as Sends input / output requests to the flash translation layer.

17. A non-transitory storage medium having stored thereon instructions that, when executed by a machine, result in: determining a first weight for a first submission queue based at least in part on a first total storage capacity of at least one first namespace associated with a first quality of service class; determining a second weight for a second submission queue, the second submission queue based at least in part on a second total storage capacity of at least one second namespace associated with a second quality of service class; selecting the first submission queue from the first submission queue and the second submission queue based at least in part on the first weight and the second weight; Selecting an input / output request in a first submission queue; selecting a first command queue from a set including at least a first command queue and a second command queue based at least in part on a first quality of service level for input / output requests; as well as The input / output request is placed in a first command queue based at least in part on a first quality of service level for the input / output request.

18. The non-transitory storage medium according to claim 17, in, The step of determining the first weight includes: mapping the first total storage capacity to the first weight, and The step of determining the second weight includes mapping the second total storage capacity to the second weight.

19. The non-transitory storage medium according to claim 18, in, The step of mapping the first total storage capacity to the first weight comprises: mapping the first total storage capacity and a first priority assigned by the host to the at least one first namespace to the first weight, and The step of mapping the second total storage capacity to the second weight includes mapping the second total storage capacity and a second priority assigned by the host to the at least one second namespace to the second weight.

20. The non-transitory storage medium according to claim 17, in, The step of determining a first weight for a first submission queue includes: determining a first weight for the first submission queue when a namespace is created or deleted, and The step of determining a second weight for the second submission queue includes determining the second weight for the second submission queue when the namespace is created or deleted.