Functional arbitration and quality of service for memory commands
By introducing an arbitration circuit system in the memory subsystem and arbitrating memory access requests according to the virtual machine's quality of service definition, the problem of unlimited utilization of hardware resources by the virtual machine is solved, and effective management of memory resources and performance improvement are achieved.
Patent Information
- Application Number
- CN202011593098.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-05-07
- Filing Date
- 2020-12-29
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-12-29
AI Technical Summary
It is difficult for existing memory subsystems to effectively manage memory resources in a virtualized environment, causing virtual machines to use hardware resources without restrictions, violating service level agreements (SLA), and affecting host system efficiency and resource allocation of other virtual machines.
By introducing an arbitration circuit system in the memory subsystem, memory access requests are arbitrated and scheduled according to the quality of service definition (QoS) of the virtual machine to ensure that the access operation of each virtual machine meets its defined resource consumption threshold and avoid resource consumption. Overexploitation.
Effectively manage storage resources to ensure that virtual machine access operations comply with SLAs, improve the performance and efficiency of the storage subsystem, and avoid resource bottlenecks and SLA violations.
Smart Images

Figure CN113126904B_ABST
Abstract
Description
[0001] Priority information
[0002] This application claims priority to U.S. Provisional Application No. 62 / 954,852, filed on December 30, 2019, the contents of which are incorporated herein by reference. Technical Field
[0003] Embodiments of the present disclosure relate generally to memory subsystems, and more particularly, to providing quality of service for memory commands from a function. Background Art
[0004] The memory subsystem may include one or more memory devices that store data. The memory devices may be, for example, non-volatile memory devices and volatile memory devices. In general, the host system may utilize the memory subsystem to store data at the memory devices and retrieve data from the memory devices. Summary of the invention
[0005] In one aspect, the present disclosure relates to a system for providing quality of service of memory commands from a function, comprising: a memory device; a host interface; a processing device coupled to the memory device and the host interface to perform the following operations: receiving multiple commands from multiple virtual machines via the host interface; associating each of the multiple commands with a corresponding function, the corresponding function representing the corresponding virtual machine from which each of the multiple commands is received; and setting a corresponding definition of corresponding quality of service regarding consumption of resources of the memory device for each corresponding function; wherein the processing device includes an arbitration circuit system to handle each of the multiple commands on a per-function basis according to the definition.
[0006] On the other hand, the present disclosure relates to a method for providing quality of service for memory commands from a function, comprising: configuring, via an arbitration circuit system of a memory device, a corresponding configurable quality of service definition for each of a plurality of functions representing a corresponding virtual machine coupled to the memory device via a host; receiving a first memory access request from a first virtual machine; providing, via the arbitration circuit system, a first quality of service for the first memory access request according to a first corresponding quality of service definition; receiving a second memory access request from a second virtual machine; and providing, via the arbitration circuit system, a second quality of service for the second memory access request according to a second corresponding quality of service definition, wherein the second quality of service definition is different from the first quality of service definition.
[0007] On the other hand, the present disclosure relates to a system for providing quality of service of memory commands from a function, comprising: a first processing device; a memory device; a second processing device coupled to the memory device and the first processing device to perform the following operations: receiving a command to set a definition of a corresponding quality of service for each of a plurality of functions representing a corresponding virtual machine, wherein the definition of the corresponding quality of service describes consumable resources of the memory device assigned to the plurality of functions; receiving a plurality of commands associated with the plurality of functions; and wherein the second processing device includes an arbitration circuit system to handle each of the plurality of commands associated with the plurality of functions, provided that the corresponding definition of the corresponding quality of service is satisfied so that the plurality of functions do not consume more resources than the resources represented by the corresponding definition. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The present disclosure will be more fully understood from the detailed description given below and the accompanying drawings of various embodiments of the present disclosure.
[0009] Figure 1 An example computing system including a memory subsystem according to some embodiments of the present disclosure is shown.
[0010] Figure 2 An example of a computing system including a memory subsystem according to some embodiments of the present disclosure is shown.
[0011] Figure 3 An example of a memory subsystem including arbitration circuitry according to some embodiments of the present disclosure is shown.
[0012] Figure 4 An example of arbitration circuitry according to some embodiments of the present disclosure is shown.
[0013] Figure 5 An example database according to some embodiments of the present disclosure is shown.
[0014] Figure 6 is a flow chart of an example method for arbitrating circuitry according to some embodiments of the present disclosure.
[0015] Figure 7 is a block diagram of an example computer system in which embodiments of the present disclosure may operate. DETAILED DESCRIPTION
[0016] Aspects of the present disclosure are directed to a memory subsystem that provides quality of service for memory commands from a function. The memory subsystem may be a memory device, a memory module, or a mixture of a memory device and a memory module. Figure 1Examples of storage devices and memory modules are described. In general, a host system may utilize a memory subsystem that includes one or more memory devices, such as a memory device that stores data. The host system may provide data for storage at the memory subsystem and may request retrieval of data from the memory subsystem.
[0017] The host system may send access requests (e.g., write commands, read commands) to the memory subsystem to store data on a memory device at the memory subsystem and read data from a memory device on the memory subsystem. The data to be read or written, as specified by the host request, is hereinafter referred to as "host data". The host request may include logical address information (e.g., logical block address (LBA), name space) for the host data, which is the location that the host system associates with the host data. The logical address information may be part of the metadata for the host data.
[0018] The host system may implement a virtualization environment that utilizes virtualization middleware (e.g., a hypervisor). A conventional hypervisor executed by the host system may enforce one or more policies for accessing a memory subsystem. For example, one or more of the virtual machines (VMs) may access the memory subsystem via the hypervisor. The hypervisor may implement the policies to restrict the VM's access to the memory subsystem. However, given that the hypervisor may be implemented in software (e.g., via machine executable instructions), the hypervisor may be less efficient than if the policies were implemented in hardware.
[0019] The hypervisor may be bypassed for input / output (I / O) traffic from the VMs to the memory subsystem. However, enforcement of the policy by bypassing the hypervisor may enable any of the VMs to utilize all available hardware resources of the memory subsystem. Enabling any of the VMs to utilize the available hardware resources without restriction may prevent other VMs from accessing the hardware resources due to a shortage of hardware resources. Enabling any of the VMs to utilize the available hardware resources without restriction may result in a violation of a horizontal service agreement (SLA) associated with the other VMs. Enabling any of the VMs to utilize the available hardware resources without restriction may cause the memory subsystem to become a bottleneck that may limit the efficiency of the host system.
[0020] As used herein, an SLA is a commitment between a service provider and a client. An SLA defines several aspects of the service provided by the service provider. For example, an SLA may define the quality of service (QoS) provided to the client. The definition of QoS includes a specified value or range of values for one or more measurable levels of service provided by the service provider. The definition of QoS may include a low threshold and / or a high threshold for measurable service levels. Examples of measurable service levels include the amount of data that can be read from and written to one or more memory devices in a given time period, I / O per time period, and throughput (e.g., MB) per time period, etc.
[0021] Aspects of the present disclosure address the above and other deficiencies. To improve the performance of access to a memory subsystem, a policy corresponding to an SLA may be enforced by the memory subsystem. A VM may provide commands to a memory subsystem without a hypervisor-implemented policy enforcement mechanism. For example, a VM may be natively coupled to a memory subsystem via a hardware mechanism, such as single root I / O virtualization (SRIOV) by means of a hypervisor running on a host system. Providing a VM with access to a memory subsystem while enforcing an SLA in the memory subsystem may provide the VM with near native access to the memory subsystem.
[0022] The memory subsystem may receive I / O traffic directly from the VM. The memory subsystem may utilize functions to represent the VM. As used herein, a function is a logical and / or physical representation of a logical device. For example, a function may be a logical representation of one of the VMs of a computing system. A peripheral component interconnect express (PCIe) function may be an example of a function that may represent a VM.
[0023] The figures herein follow a numbering convention in which the first digit corresponds to the figure number and the remaining digits identify the element or component in the figure. Similar elements or components between different figures may be identified by using similar numerals. For example, 103 may represent Figure 1 Component "03" in , and similar components in Figure 2 203. Similar elements within the figures may be referred to without hyphens and additional numbers or letters. See, e.g. Figure 2 221-1, ..., 221-N in FIG. As will be appreciated, the elements shown in the various embodiments herein may be added, exchanged, and / or removed to provide several additional embodiments of the present disclosure. In addition, as will be appreciated, the proportions and relative scales of the elements provided in the figures are intended to illustrate certain embodiments of the present invention and should not be understood in a limiting sense.
[0024] Figure 1An example computing system 100 is shown that includes a memory subsystem 103 according to some embodiments of the present disclosure. Memory subsystem 103 may include media such as one or more volatile memory devices (e.g., memory device 106), one or more non-volatile memory devices (e.g., memory device 105), or a combination thereof.
[0025] The memory subsystem 103 may be a storage device, a memory module, or a mixture of storage devices and memory modules. Examples of storage devices include solid-state drives (SSDs), flash drives, universal serial bus (USB) flash drives, embedded multimedia controller (eMMC) drives, universal flash storage (UFS) drives, secure digital (SD) cards, and hard disk drives (HDDs). Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and various types of non-volatile dual in-line memory modules (NVDIMMs).
[0026] The computing system 100 may be a computing device such as a desktop computer, a laptop computer, a network server, a mobile device, a vehicle (e.g., an airplane, a drone, a train, a car, or other transportation), a device with Internet of Things (IoT) capabilities, an embedded computer (e.g., an embedded computer included in a vehicle, industrial equipment, or a networked commercial device), or such a computing device that includes a memory and a processing device.
[0027] The computing system 100 may include a host system 102 coupled to one or more memory subsystems 103. In some embodiments, the host system 102 is coupled to memory subsystems 103 of different types. Figure 1 An example of a host system 102 coupled to one memory subsystem 103 is shown. As used herein, "coupled to" or "coupled with" generally refers to a connection between components, which can be an indirect communication connection or a direct communication connection (e.g., without intervening components), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, etc.
[0028] The host system 120 may include a processor chipset and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more cache memories, a memory controller (e.g., an NVDIMM controller), and a storage protocol controller (e.g., a PCIe controller, a SATA controller). The host system 120 uses the memory subsystem 110, for example, to write data to the memory subsystem 110 and read data from the memory subsystem 110.
[0029] The host system 102 may be coupled to the memory subsystem 103 via a physical host interface. Examples of the physical host interface include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a PCIe interface, a Universal Serial Bus (USB) interface, a Fibre Channel, a Serial Attached SCSI (SAS), a Small Computer System Interface (SCSI), a Double Data Rate (DDR) memory bus, a Dual In-line Memory Module (DIMM) interface (e.g., a DIMM socket interface supporting Double Data Rate (DDR)), an Open NAND Flash Interface (ONFI), Double Data Rate (DDR), Low Power Double Data Rate (LPDDR), or any other interface. The physical host interface may be used to transfer data between the host system 102 and the memory subsystem 103. When the memory subsystem 103 is coupled to the host system 102 through a PCIe interface, the host system 102 may further utilize an NVM Express (NVMe) interface to access memory components (e.g., the memory device 105). The physical host interface may provide an interface to pass control, address, data, and other signals between the memory subsystem 103 and the host system 102. Figure 1 Memory subsystem 103 is shown as an example. In general, host system 102 can access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.
[0030] The memory devices 105, 106 may include any combination of different types of non-volatile memory devices 105 and / or volatile memory devices 106. Volatile memory devices such as memory device 106 may be, but are not limited to, random access memory (RAM), such as dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM).
[0031] Some examples of non-volatile memory devices (e.g., memory device 105) include "NAND" type flash memory and write-in-place memory, such as a three-dimensional cross-point ("3D cross-point") memory device, which is a cross-point array of non-volatile memory cells. The cross-point array of non-volatile memory can be combined with a stackable cross-grid data access array to perform bit storage based on changes in body resistance. In addition, in contrast to many flash-based memories, cross-point non-volatile memory can perform write-in-place operations, where non-volatile memory cells can be programmed without pre-erasing the non-volatile memory cells. NAND-type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).
[0032] Each of the memory devices 105 may include one or more memory cell arrays. One type of memory cell, such as a single level cell (SLC), may store one bit per cell. Other types of memory cells, such as multi-level cells (MLC), three-level cells (TLC), four-level cells (QLC), and five-level cells (PLC) may store multiple bits per cell. In some embodiments, each of the memory devices 105, 106 may include one or more memory cell arrays, such as SLC, MLC, TLC, QLC, or any combination of these. In some embodiments, a particular memory device may include an SLC portion of memory cells, as well as an MLC portion, a TLC portion, a QLC portion, or a PLC portion. The memory cells of the memory devices 105, 106 may be grouped into pages, which may refer to a logical unit of a memory device used to store data. For some types of memory (e.g., NAND), pages may be grouped to form blocks.
[0033] Although nonvolatile memory devices 105 such as 3D cross-point nonvolatile memory cell arrays and NAND-type memories (e.g., 2D NAND, 3D NAND) and 3D cross-point nonvolatile memory cell arrays are described, the memory device 105 may be based on any other type of nonvolatile memory or storage device, such as read-only memory (ROM), phase change memory (PCM), self-selected memory, other chalcogenide-based memories, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), spin transfer torque (STT)-MRAM, conductive bridge RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), "NOR" (NOR) flash memory, and electrically erasable programmable read-only memory (EEPROM).
[0034] The memory subsystem controller 104 (or simply controller 104) can communicate with the memory device 105 to perform operations, such as reading data, writing data, or erasing data at the memory device 105, as well as other such operations. The memory subsystem controller 104 can include hardware, such as one or more integrated circuits and / or discrete components, buffer memory, or a combination thereof. The hardware can include digital circuits with dedicated (i.e., hard-coded) logic to perform the operations described herein. The memory subsystem controller 104 can be a microcontroller, a dedicated logic circuit (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or other suitable processor.
[0035] The memory subsystem controller 104 may include a processor 107 (e.g., a processing device) configured to execute instructions stored in a local memory 108. In the example shown, the local memory 108 of the memory subsystem controller 104 includes an embedded memory configured to store instructions for executing various processes, operations, logic flows, and routines that control the operation of the memory subsystem 103, including handling communications between the memory subsystem 103 and the host system 102.
[0036] In some embodiments, local memory 108 may include memory registers that store memory pointers, fetched data, etc. Local memory 108 may also include read-only memory (ROM) for storing, for example, microcode. Figure 1 The example memory subsystem 103 in FIG. 1 has been shown to include a memory subsystem controller 104, but in another embodiment of the present disclosure, the memory subsystem 103 does not include a memory subsystem controller 104, but may rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).
[0037] In general, the memory subsystem controller 104 may receive commands or operations from the host system 102, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 105 and / or the memory device 106. The memory subsystem controller 104 may be responsible for other operations, such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address translation between logical addresses (e.g., logical block addresses (LBA), name space) and physical addresses (e.g., physical block addresses) associated with the memory device 105. The memory subsystem controller 104 may also include a host interface circuit system to communicate with the host system 102 via a physical host interface. The host interface circuit system may convert commands received from the host system into command instructions to access the memory device 105 and / or the memory device 106, and convert responses associated with the memory device 105 and / or the memory device 106 into information for the host system 102.
[0038] The memory subsystem 103 may also include additional circuitry or components not illustrated. In some embodiments, the memory subsystem 103 may include a cache memory or buffer (e.g., DRAM) and address circuitry (e.g., row decoder and column decoder) that may receive addresses from the memory subsystem controller 104 and decode the addresses to access the memory device 105.
[0039] In some embodiments, the memory subsystem controller 104 includes at least a portion of an arbitration circuit system 109. For example, the memory subsystem controller 104 may include a processor 107 (processing device) configured to execute instructions stored in a local memory 108 for performing the operations described herein. In some embodiments, the arbitration circuit system 109 is part of the host system 102, an application, or an operating system.
[0040] In some embodiments, the memory device 105 includes a local media controller 110 that operates in conjunction with the memory subsystem controller 104 to perform operations on one or more memory cells of the memory device 105. An external controller (e.g., the memory subsystem controller 104) can externally manage the memory device 105 (e.g., perform media management operations on the memory device 105). In some embodiments, the memory device 105 is a managed memory device, which is a raw memory device combined with a local controller (e.g., the local controller 110) that performs media management within the same memory device package. An example of a managed memory device is a managed NAND (MNAND) device.
[0041] The memory subsystem controller 104 may also include arbitration circuitry 109. As used herein, arbitration circuitry 109 may include an ASIC configured to perform the examples described herein. Figure 4 An example of arbitration circuitry 109 is provided. Arbitration circuitry 109 may handle commands received from the VMs and provide the commands to processor 107. In some embodiments, arbitration circuitry 109 may alter the commands, reorder the commands, or otherwise handle the commands in a manner that efficiently allocates bandwidth and access to memory devices 105, 106. The VMs may be managed by a hypervisor executed by host system 102.
[0042] Arbitration circuitry 109 may provide commands received from a VM such that an SLA corresponding to the VM is met. In various examples, an SLA may describe an amount of data that may be read from and written to one or more memory devices 105, 106 within a given time period. For example, an SLA corresponding to a VM may describe that each of memory devices 105, 106 may write up to a first amount of data received from the VM, and may read up to a second amount of data provided to the VM. Arbitration circuitry 109 may balance commands processed by processor 107 such that each of the SLAs for the VM is met.
[0043] Arbitration circuitry 109 may also track the number of commands received from the corresponding VM and received by memory subsystem 103. Arbitration circuitry 109 may further track the number of accesses to memory devices 105, 106 by each VM. Arbitration circuitry 109 may further limit the number of accesses to memory devices 105, 106 by each VM. If a VM exhausts the amount of data it writes and / or reads, arbitration circuitry 109 may refrain from providing additional commands received from the VM to processor 107 during a period of time.
[0044] In various examples, the SLA may define minimum and maximum levels or services in terms of I / O per time period and in terms of throughput (eg, MB) per time period. Arbitration circuitry 109 may be runtime programmable and may adjust to new requirements while system 100 is in operation.
[0045] Figure 2 An example of a computing system 200 including a memory subsystem 203 according to some embodiments of the present disclosure is shown. The computing system 200 may include a host 202. The host 202 may execute a hypervisor 222. The hypervisor 222 may manage VMs 221-1 to 221-N, referred to as VMs 221.
[0046] As used herein, VM 221 can emulate a computing system. VM 221 can emulate a computer architecture and can provide the functionality of computing system 200. VM 221 generally refers to an isolated end-user space instance that can be executed within a virtualized environment. Other technologies other than hardware virtualization can provide isolated end-user space scenarios and can also be referred to as VM 221, such as containers. As used herein, the term "VM" encompasses these instances and combinations of different types of VMs, and the like. In some embodiments, a VM uses the resources of a host virtualized by virtualization software (e.g., hypervisor 222, virtual machine monitor, etc.) to operate on the host with its own guest operating system. Each of VM 221 can access memory subsystem 203.
[0047] Hypervisor 222 may include software executed by host 202. Hypervisor 222 may create and / or host VM 221. Hypervisor 222 may manage the execution of a guest operating system executed by VM 221. For example, hypervisor 222 may receive commands from VM 221 intended for memory subsystem 203. Hypervisor 222 executed by host 202 may provide the commands to memory subsystem 203 via interface 225. Interface 225 may be implemented using a bus standard such as PCIe.
[0048] The hypervisor 222 may provide the command originated from the VM 221 to the memory subsystem 203 without performing additional processing of the command. For example, the hypervisor 222 may refrain from determining whether the VM exceeds the definition of the QoS associated with the SLA by providing the command to the memory subsystem 203. In addition, the hypervisor 222 may refrain from making a determination whether to provide the command originated from the VM 221 to the memory subsystem 203.
[0049] Hypervisor 222 may provide commands from VM 221 to memory subsystem 203 using a mechanism such as SRIOV. Memory subsystem 203 may include functions 223-1 to 223-N, arbitration circuitry 209, and memory devices 224. Memory subsystem 203 may receive commands via interface 225 and utilize multiple functions 223-1 to 223-N, referred to as functions 223. Function 223 may include a virtual function (VF) and a physical function (PF). Function 223 may be configured to perform operations such as performing ... Figure 2 221. The virtual function 223 allows the interface 225 to appear as multiple different physical interfaces, each with its own PCIe configuration space.
[0050] Thus, a virtual function, such as function 223, may allow receiving commands from VM 221 while allowing the commands to be associated with VM 221. For example, function 223-1 may correspond to VM 221-1, function 223-2 may correspond to VM 221-2, function 223-3 may correspond to VM 221-3, function 223-4 may correspond to VM 221-4, function 223-5 may correspond to VM 221-5, function 223-6 may correspond to VM 221-6, function 223-7 may correspond to VM 221-7, ..., and function 223-N may correspond to VM 221-N.
[0051] Arbitration circuitry 209 may receive a command from function 223. Arbitration circuitry 209 may determine whether to provide the command to a processor of memory subsystem 203 for execution or to refrain from providing the command to the processor of memory subsystem 203. In response to determining that the command is to be provided to the processor of memory subsystem 203, the command may be executed to write data to memory device 224 and / or read data from memory device 224. Arbitration circuitry 209 may determine whether to provide the command based on a definition of a QoS corresponding to an SLA for each of VMs 221.
[0052] Figure 3An example of a memory subsystem 303 including arbitration circuitry 309 according to some embodiments of the present disclosure is shown. Memory subsystem 303 includes interface fabric 331, physical functions 334, virtual functions 335-1 through 335-N, arbitration circuitry 309, data buffer 332, processor 307, and memory device 324. Virtual functions 335-1 through 335-N may be referred to as virtual functions 335.
[0053] Interface 325 may provide commands to memory device 303. Commands may be received via fabric 331. Fabric 331 may be, for example, a PCIe fabric. Fabric 331 is a hardware component that enables communication between a host and a peripheral device, such as memory subsystem 303. Fabric 331 may comply with a direct memory access (DMA)-based architecture and a serial physical layer and link layer. Fabric 331 may enable communication between a host and a memory subsystem via interface 325. Fabric 331 enables signals to be provided to virtual function 335 via interface 325 without protocol conversion. Virtual function 335 may provide a signal representing a command to arbitration circuit system 309. As previously described, arbitration circuit system 109 may include an ASIC configured to perform the examples described herein. Arbitration circuit system 309 may determine whether to provide a command received via virtual function 335 to processor 307 based on whether the definition of the QoS of the SLA corresponding to virtual function 335 has been violated or satisfied by the command.
[0054] Arbitration circuit system 309 may also determine whether to provide data corresponding to the command to data buffer 332. For example, arbitration circuit system 309 may determine to execute a write command. In response to determining to execute the write command, arbitration circuit system 309 may provide the write command to processor 307, and may provide the data to be written to data buffer 332. Processor 307 may execute the write command to write the data stored in data buffer 332 to memory device 324.
[0055] Arbitration circuit system 309 may also determine to execute a read command. In response to determining to execute the read command, arbitration circuit system 309 may provide the read command to processor 307. Processor 307 may retrieve data from memory device 324 in response to executing the read command. The read data may be stored in data buffer 332 before being provided to the host via arbitration circuit system 309.
[0056] Figure 4An example of arbitration circuit system 409 according to some embodiments of the present disclosure is shown. Arbitration circuit system 409 includes low priority function 441 and high priority function 442. Arbitration circuit system 409 also includes timer 443, arbitrator 444, configuration database 445 and arbitrator 446 (e.g., priority arbitrator). Arbitration circuit system 409 may also include firmware interface 449.
[0057] Arbitration circuitry 409 may receive commands via low priority function 441 and high priority function 442 . Figure 3 The virtual function 335 and the physical function 334 may be divided into a low priority function 441 and a high priority function 442. For example, a first portion of the virtual function 335 may be defined as a low priority function 441, and a second portion of the virtual function 335 may be defined as a high priority function 442.
[0058] As used herein, high priority function 442 may provide administrative commands. Administrative commands may be commands from a VM that have been indicated as administrative. For example, an administrative VM may be configured as a secure platform from which privileged accounts may perform administrative tasks. Examples of such tasks or accounts include help desk accounts or accounts whose original task is to manage computing systems or memory subsystems. Low priority function 441 may provide non-administrative commands and / or block data commands. As used herein, a block data command may describe a command to access data stored in a memory array of a memory subsystem. For example, low priority function 441 may provide commands originating from an application hosted by the VM rather than from the VM's OS.
[0059] Commands provided by high priority function 442 may be processed differently than commands provided by low priority function 441. Commands provided by high priority function 442 may be given priority over commands provided by low priority function 441. Arbiter 446 may provide commands from high priority function 442 to the processor of the memory subsystem before providing commands from low priority function 441.
[0060] Arbitrator 446 may be coupled to configuration database 445 and arbitrator 444. Arbitrator 444 may receive a plurality of counters and / or integrals corresponding to the SLA associated with low priority function 441. As used herein, counters, integrals, and integral counters may be used interchangeably. For example, arbitrator 446 may receive a host resource counter, a memory device resource counter, a write integral counter, and / or a read integral counter. Further in conjunction with Figure 5 To describe host resource counters, storage device resource counters, IO write credits, and IO read credits.
[0061] In various examples, the arbitrator 446 can determine whether the command provided by the VM and associated with the high priority function 442 satisfies the definition of the QoS of the corresponding SLA. For example, if the command received via one of the high priority functions satisfies the definition of the QoS of the corresponding SLA, the arbitrator 446 can provide the command to the processor of the memory subsystem.
[0062] For example, if the resources of the memory subsystem used to process the command are between the defined low and high thresholds corresponding to the measurable service level of the resources, then the command may meet the definition of QoS. If processing the command utilizes the resources of the memory subsystem, then the resources of the memory subsystem may be described as expendable. For example, QoS may define a minimum bandwidth and a maximum bandwidth within a time period for transmitting data in response to receiving a read command from a VM. For example, QoS may implement a read minimum of 1MB / second and / or a maximum of 10MB / second. If a cumulative bandwidth of 1MB / second but not more than 10MB / second is facilitated for a given VM, then the command may be given priority. In some instances, the VM may provide multiple commands to the memory subsystem so that by the time it provides the latest command, the VM has read 0.5MB within a given time period. If different functions associated with different VMs have met their minimum read bandwidth, then the latest command may be given priority over other commands (e.g., high priority functions 442) with the same priority level. However, if a VM has exceeded the corresponding bandwidth for a period of time, the priority arbiter 446 may refrain from sending the latest command corresponding to the VM to the processor of the memory subsystem.
[0063] Priority arbiter 446 may select commands provided via high priority function 442 and / or arbiter 444. Commands provided via high priority function 442 may be selected before selecting commands provided via arbiter 333. Commands provided via high priority function 442 may be selected as received by arbitration circuitry 409.
[0064] The commands received from the low priority functions 441 may be provided to the arbitrator 444. The arbitrator 444 may select the commands provided via the low priority functions 441 in a round-robin manner. Selecting the commands in a round-robin manner may include selecting a first command (e.g., a number of first commands) from each of the functions (e.g., the low priority functions 441) before selecting a second command (e.g., a number of second commands) from any of the functions until a minimum threshold has been met for any of the functions within a time period. Selecting the commands in a round-robin manner after the minimum threshold has been met for at least one of the functions may include selecting a first command (e.g., a number of first commands) from each of the functions whose minimum threshold has not been met within a time period before selecting a second command (e.g., a number of second commands) from any of the functions whose minimum threshold has been met. Selecting commands in a round-robin manner after a minimum threshold has been met for at least one of the functions may include selecting a first command (e.g., several first commands) for each of the functions that have not yet met their maximum threshold before selecting a second command (e.g., several second commands) for either of the functions that have not yet met their maximum threshold or the functions that have met their maximum threshold.
[0065] Each of the functions 441 may have one or more counters associated therewith. Counters 450 may include memory configured to represent counters, integrals, and / or weights, as well as other types of descriptions of aspects (e.g., metrics) of the memory subsystem and / or commands received from the low priority functions 441. Counters 450 may store the number of commands received from the low priority functions 441, the number of commands executed, the amount of data read (e.g., read bandwidth), and / or the amount of data stored (e.g., write bandwidth). Each of the counters 450 may be coupled to a timer 443 so that each of the counters, integrals, and / or weights may be reset during a time period. Timers 443 may be coupled to a system clock line and / or different mechanisms for tracking duration.
[0066] Counter 450 may be coupled to input line 447 and output line 448. For example, I / O lines 447 and 448 may be coupled to Figure 3 The data buffer 332 is shown and is coupled to the memory subsystem 103 and Figure 1 The counts, weights, and / or integrals stored in counter 450 may be provided to arbiter 444 along with commands received via low priority function 441. Thus, low priority function 441 may be coupled to arbiter 444 and counter 450. Counter 441 may also be coupled to arbiter 444.
[0067] Arbitrator 444 may be coupled to configuration database 445. Arbitrator 444 may receive thresholds corresponding to host resource counters, memory resource counters, write credits, and / or read credits from configuration database 445. Upon receiving the host resource counters, memory resource counters, write credits, read credits, and their corresponding thresholds, arbitrator 444 may determine whether, when, and / or in what order to provide commands to arbitrator 446.
[0068] The arbitrator 444 may provide commands to the arbitrator 446 in a round-robin manner. Providing commands in a round-robin manner includes providing a first command from each of the low priority functions 441 before providing a second command from any of the priority functions 441. The arbitrator 444 may provide commands from each of the low priority functions 441 for which any of the counters 450 has not reached the minimum threshold before providing commands from the low priority functions 441 for which any of the counters 450 has reached the minimum threshold. The arbitrator 444 may provide commands from each of the low priority functions 441 for which any of the counters 450 has reached the minimum threshold before providing commands from the low priority functions 441 for which any of the counters 450 has reached the maximum threshold.
[0069] In various examples, the arbiter 444 may update the counter 450. For example, each time the arbiter 444 sends a command received via one of the low priority functions 441 to the priority arbiter 446, the arbiter may update the memory resource counter corresponding to one of the low priority functions 441. The timer 443 may include a circuit system configured to reset the counter 450 within a given time period. For example, if the bandwidth used by the VM associated with one of the low priority functions 441 to read data is 5MB within a first time period, then upon entering the next time period, the timer 443 may reset the counter 450 immediately, so that if the counter is incremented, the bandwidth utilized by the VM is reset to 0MB within a second time period. For example, if the counter is decremented, the counter 450 may be reset to 5MB.
[0070] In various examples, the configuration database 445 can be updated using the firmware interface 449. Figure 2 The host 202 in the example embodiment may execute software configured to interface with the firmware interface 449. The software executed by the host may be customized by the manufacturer according to the host. The software may utilize the virtualization enhanced interface to provide instructions and / or data that can be used to update the configuration database 445 to the firmware interface 449.
[0071] In various cases, the low priority function 441 and / or the high priority function 442 may be configured using the firmware interface 449. For example, the firmware interface 449 may be used to configure the low priority function 441 and / or the high priority function 442. Figure 3 446. In some embodiments, the virtual functions 335 in the embodiment are assigned to low priority functions 441 and / or high priority functions 442. Although only two levels of priority are shown herein, more than two levels of priority for functions may be implemented. In some examples, each level of function may be assigned its own arbitrator, such as shown by arbitrator 444 and low priority function 441. Each of the arbitrators associated with the priority level of the function may provide commands to a centralized arbitrator, such as arbitrator 446. In other examples, each of the arbitrators associated with the priority level of the function may provide commands to other arbitrators until the command is finally received by a centralized arbitrator (e.g., arbitrator 446).
[0072] Configuration database 445 may be populated prior to receiving commands by low priority function 441 and / or high priority function 442. Configuration database 445 may be updated during runtime and / or in real time after one or more commands have been received by low priority function 441 and / or high priority function 442.
[0073] As an example of the function of arbitration circuit system 409, commands may be received from low priority function 441 and high priority function. Commands received by low priority functions may be provided to arbitrator 444 along with counter 450 associated with a given function in low priority function 441. Arbitrator 444 may select one command at a time to provide to arbitrator 446. Arbitrator 446 may receive commands provided by arbitrator 444 and commands provided by high priority function 442. Arbitrator 446 may select commands and provide the selected commands to the processor of the memory subsystem for execution. If the selected command is a read command, data read from the memory device may be provided to the host via output line 448. If the selected command is a write command, data to be written to the memory device may be received from the host and may be provided to the memory device. Data to be written may be received from the host via input line 447 and may be provided to the memory device via input line 447. Counter 450 may be updated based on the reception of commands, the execution of commands, and / or the bandwidth of data written to or read from the memory device. Counter 450 may be used by arbitrator 444 and arbitrator 446 to select commands. Arbitrator 444 and arbitrator 446 may also utilize configuration database 445 to select commands.
[0074] Figure 5 An example database 545 is shown according to some embodiments of the present disclosure. Database 545 may also be referred to as a configuration database, e.g. Figure 4 Configuration database 445 in.
[0075] Database 545 may include counters for one or more functions 523, such as Fn0, Fn1, Fn2, ..., Fn(n). As used herein, a counter may include a counter, an integral, and / or any other type of identifier used to track properties of commands provided by a VM.
[0076] Each of the functions 523 may include a threshold and its corresponding counter. Function 523 is similar to Figure 3 Functions 335-1 to 335-N and 334 in FIG. In various examples, the counter may be incremented until a threshold is reached. In other examples, the counter may be decremented until the counter reaches a threshold such as zero and other possible thresholds. Although Figure 5 523. Although not shown in FIG. 524, multiple thresholds may be associated with each of the functions 523. For example, a first threshold and a second threshold may be associated with each of the functions 523. The first threshold and the second threshold may include a low threshold and a high threshold. The lowest threshold and the highest threshold may be relative to whether the corresponding counter is increasing or decreasing. For example, if the counter is increasing, the lowest threshold may be less than the highest threshold. If the counter is decreasing, the lowest threshold may be greater than the highest threshold.
[0077] For example, if the counter has an initial value of 10MB / s and the count is decremented, the first threshold may be 2MB / s and the second threshold may be 0MB / s. The 2MB / s threshold may indicate that the minimum amount of data to be transferred is 8MB / s. The 0MB / s threshold may indicate that the maximum amount of data to be transferred is 10MB / s. If the counter is incrementing and the initial value is 0MB / s, the first threshold may be 8MB / s and the second threshold may be 10MB / s. The 8MB / s threshold may indicate that the minimum amount of data to be transferred is 8MB / s. The 10MB / s threshold may indicate that the maximum amount of data to be transferred is 10MB / s.
[0078] In instances where the counter is decremented, the counter may be signed. Signed counters provide the possibility of negative balance. The counter may increment an initial value (e.g., an initial value of host resource counter 551-1, an initial value of memory resource counter 552-1, an initial value of write credit 553-1, and / or an initial value of read credit 554-1) at the beginning of each time period. If incrementing the initial value of the counter causes the counter to become greater than zero, then the command provided by the associated VM may be processed. If incrementing the initial value of the counter causes the counter to become less than zero, then the command received from the associated VM may not be processed (e.g., at least until the corresponding counter is reset or otherwise changed).
[0079] Each of the functions 523 includes host resource counters 551-1 and 551-2, memory resource counters 552-1 and 552-2, write credits 553-1 and 553-2, and read credits 554-1 and 554-2. As used herein, credits 553-1, 553-2, 554-1, and 554-2 may also be referred to as counters. Counters 551-1, 552-1, 553-1, and 554-1 may store initial values. Host resource counter 551-1 includes the number of commands that can be received from the VM. Memory resource counter 552-1 includes the number of commands that can be executed by the memory subsystem. Write credit 553-1 includes the amount of data that can be written to the memory device using commands originating from the VM. Read credit 554-1 includes the amount of data that can be read from the memory device using commands originating from the VM. The write credits 553 - 1 and 553 - 2 and the read credits 554 - 1 and 554 - 2 may be provided in the form of an amount of data per time period (eg, MB / s).
[0080] Counters 551-2, 552-2, 553-2, and 554-2 may store updated values (e.g., current values). Counters 551-2, 552-2, 553-2, and 554-2 may include signed arithmetic values (e.g., signed arithmetic-MB / s). The initial value may be added to the current value once during a time period. For example, host resource counter 551-1 may be added to host resource counter 551-2, memory resource counter 552-1 may be added to memory resource counter 552-2, write credit counter 553-1 may be added to write credit 553-2, and read credit 554-1 may be added to read credit 554-2, once per time period.
[0081] Figure 6 6 is a flow chart of an example method 680 corresponding to arbitration circuitry according to some embodiments of the present disclosure. The method 680 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, dedicated logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 680 is performed by Figure 4 The arbitration circuit system 409 is executed. Although shown in a specific sequence or order, the order of the processes can be modified unless otherwise specified. Therefore, the embodiments shown should be understood as examples only, and the processes shown can be performed in a different order, and some processes can be performed in parallel. In addition, one or more processes can be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.
[0082] At box 681, for each of a plurality of functions representing a corresponding virtual machine coupled to a memory device via a host, a corresponding configurable definition of QoS may be configured via an arbitration circuit system of the memory device. At 682, a first memory access request may be received from a first virtual machine. The first memory access request may be received via a function associated with the first virtual machine. At 683, a first QoS for the first memory access request may be provided via the arbitration circuit system according to a first corresponding definition of QoS. The first QoS may be provided using one or more counters. That is, the one or more counters may represent a lower threshold and an upper threshold for defining a measurable service level of the first QoS. At 684, a second memory access request may be received from a second virtual machine. For example, the second memory access request may be received via a function associated with the second virtual machine. At 685, a second QoS for the second memory access request may be provided via the arbitration circuit system according to a second corresponding QoS definition, wherein the second QoS definition is different from the first QoS definition. The definition of the second QoS may differ from the definition of the first QoS in that the measurable service level specified in the definition may be different. The second QoS may also be different from the first QoS in that a lower threshold and an upper threshold of a measurable service level shared between the second QoS and the first QoS may be different between the first QoS and the second QoS.
[0083] The method 680 may further include storing the corresponding configurable QoS definition in a database associated with the memory device. The method 680 may also include reconfiguring the corresponding QoS definition via the arbitration circuitry at runtime. For example, the corresponding QoS definition may be reconfigured after the arbitration circuitry has received the memory access request.
[0084] Method 680 may also include providing a first QoS for a first memory access request and providing a second QoS for a second memory access request without a hypervisor that manages traffic between the memory and the first virtual machine or the second virtual machine. For example, the hypervisor may provide the first QoS and the second QoS without managing the first QoS and / or the second QoS. Management may include enforcing the QoS of a service level agreement. The QoS may be enforced by enforcing a lower threshold and an upper threshold of a measurable service level included in the definition of the QoS. The arbitration circuit system may be configured to enforce the first QoS for the first memory access request. The arbitration circuit system may also be configured to provide the second QoS for the second memory access request. Enforcing QoS may include preventing the VM from using more bandwidth than the bandwidth defined by the QoS. This contrasts with some conventional methods that rely on a hypervisor to provide such enforcement. Such embodiments of the present disclosure may advantageously provide a VM with nearby native access to a memory subsystem.
[0085] In some examples, a processing device may be coupled to a memory device and may be configured to receive a plurality of commands from a plurality of virtual machines via a host interface. The processing device may also be configured to associate each of the plurality of commands with a respective function representing a respective virtual machine from which each of the plurality of commands is received. The processing device may also be configured to set a respective definition of a respective QoS for each respective function regarding consumption of resources of the memory device, wherein the processing device includes arbitration circuitry to handle each of the plurality of commands on a per-function basis according to the definition. As used herein, the term "on a per-function basis" describes that restrictions applied to commands may be defined for corresponding functions.
[0086] The processing device may be further configured to set a definition of a corresponding QoS for the low priority function. Setting the definition of QoS may include storing a memory for the memory subsystem (e.g. Figure 4 The arbitration circuitry may include a first arbitrator to provide commands associated with the high priority function to a different processing device before providing commands associated with the low priority function to a different processing device.
[0087] The first arbitrator may be configured to provide those of the plurality of commands associated with high priority functions to different processing devices in the order in which those commands are received. The processing device may also include a second arbitrator coupled to the first arbitrator to provide those of the plurality of commands associated with low priority functions to the first arbitrator based on a deficit round-robin of QoS for the low priority functions. As used herein, round-robin describes that a first command from each of the functions may be processed before a second command from any of the functions is processed. Deficit round-robin describes that a first command from each of the functions may be processed before a second command from any of the functions is processed, unless any of the functions has exhausted its allowed bandwidth. For example, in response to the first function utilizing its bandwidth limit, a first command from the first function may not be processed before processing second commands from other functions.
[0088] The arbitration circuit system may further include a database to receive a respective definition of a respective QoS, including a number of integral counters for those commands in the plurality of commands associated with the low priority function. The arbitration circuit system may also include a timer to provide an indication to the second arbitrator when the number of integral counters will be replenished. The second arbitrator is further configured to discount the number of integral counters for the respective commands in the plurality of commands associated with the low priority function based on the use of the input / output path for the execution of the respective command. Discounting the integral counters may represent consumption of resources of the memory subsystem. For example, discounting the integral counters may represent use of bandwidth of the memory subsystem. Thus, the integrals may be discounted until there are no more integrals or the integrals are negative to reflect that the bandwidth corresponding to the function / VM has been exhausted.
[0089] The second arbitrator may be further configured to refrain from providing those of the plurality of commands associated with the low priority function to the first arbitrator if the corresponding integration counter is equal to or less than zero. For those of the plurality of commands associated with the low priority function, the QoS may further include a first number of integration counters for an input path and a second number of integration counters for an output path.
[0090] The second arbitrator may be further configured to discount a first amount of a credit counter for a corresponding command associated with a low priority function among the plurality of commands based on usage of the input path for execution of the corresponding command. The second arbitrator may also be configured to discount a second amount of a credit counter for the corresponding command based on usage of the output path for execution of the corresponding command.
[0091] The processing device may be further configured to associate block data commands with low priority functions and to associate administrative commands with high priority functions. As used herein, an administrative command is a command to perform an administrative function on a memory subsystem. For example, an administrative command may be a command to activate a security feature of a memory subsystem, as well as other examples of commands that may be used to perform administrative functions on a memory subsystem. The processing device may also receive from the host interface a respective definition of a respective QoS for each respective function regarding consumption of resources of the memory device, and set the respective definition in a database. The controller may further receive from the host interface an update to the respective definition, and update the respective definition in the database.
[0092] Figure 7 An example machine of a computer system 790 is shown within which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In some embodiments, the computer system 790 may be similar to Figure 1In some embodiments, the machine may be connected (e.g., using a network) to other machines in a LAN, an intranet, an extranet, and / or the Internet. The machine may operate in the capacity of a server or a client machine in a client-server network environment, or in a peer-to-peer (or distributed) network environment, or in the capacity of a server or a client machine in a cloud computing infrastructure or environment.
[0093] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, or another machine capable of executing a set of instructions (sequentially or otherwise) that specify actions to be performed by the machine. In addition, while a single machine is described, the term "machine" should also be construed to include any collection of machines that individually or collectively execute one (or more) sets of instructions to perform any one or more of the methodologies discussed herein.
[0094] The example computer system 790 includes a processing device 792, a main memory 794 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM), such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM)), etc.), a static memory 798 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage system 799, which communicate with each other via a bus 797.
[0095] Processing device 792, which may be similar to Figure 1 The processor 107 in , represents one or more general purpose processing devices, such as a microprocessor, a central processing unit, or the like. More specifically, the processing device may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets, or a processor that implements a combination of instruction sets. The processing device 792 may also be one or more special-purpose processing devices, such as an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, etc. The processing device 792 is configured to execute instructions 793 for implementing the operations and steps discussed herein. The computer system 790 may further include a network interface device 795 to communicate via a network 796.
[0096] The data storage system 799 may include a machine-readable storage medium 791 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 793 or software embodying one or more of the methods or functions described herein. The instructions 793 may also reside completely or at least partially in the main memory 794 and / or the processing device 792 during execution thereof by the computer system 790, the main memory 794 and the processing device 792 also constituting machine-readable storage media. The machine-readable storage medium 791, the data storage system 799, and / or the main memory 794 may correspond to Figure 1 Memory subsystem 103.
[0097] In one embodiment, instruction 793 includes implementing the Figure 4 The instructions may include instructions for performing functional arbitration for memory commands (e.g., Figure 4 The arbitration circuit system 409 in the example embodiment) is associated with the command instruction 789. Although the machine-readable storage medium 791 is shown as a single medium in the example embodiment, the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions for machine execution and causing the machine to perform any one or more of the methods of the present disclosure. Therefore, the term "machine-readable storage medium" should be considered to include but not limited to solid-state memory, optical media, and magnetic media.
[0098] Some portions of the previous detailed description have been presented with respect to algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means by which those skilled in the art of data processing can most effectively communicate the substance of their work to other persons skilled in the art. An algorithm is here and generally considered to be a self-consistent sequence of operations that produces a desired result. An operation is an operation that requires physical control of a physical quantity. These quantities are usually, but not necessarily, in the form of electrical or magnetic signals that can be stored, combined, compared, and otherwise manipulated. Sometimes, primarily for general reasons, it has proven convenient to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.
[0099] It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure may refer to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage systems.
[0100] The present disclosure also relates to an apparatus for performing the operations described herein. This apparatus may be specially constructed for the intended purpose, or it may comprise a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer-readable storage medium, such as, but not limited to, a disk type including a floppy disk, an optical disk, a CD-ROM and a magnetic optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic card or an optical card, or a media type suitable for storing electronic instructions, each coupled to a computer system bus.
[0101] The algorithms and displays presented herein are not inherently related to a particular computer or other device. Various general purpose systems may be used with programs according to the teachings herein, or it may prove convenient to construct a more specialized device to perform the method. The structures of a variety of these systems will be presented as set forth in the description below. In addition, the present disclosure is described without reference to a particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present disclosure as described herein.
[0102] The present disclosure may be provided as a computer program product or software, which may include a machine-readable medium having stored thereon instructions that can be used to program a computer system (or other electronic device) to perform a process according to the present disclosure. The machine-readable medium includes a mechanism for storing information in a form readable by a machine (e.g., a computer). In some embodiments, the machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory device, etc.
[0103] In the foregoing description, embodiments of the present disclosure have been described with reference to specific example embodiments thereof. It should be apparent that various modifications may be made to the present disclosure without departing from the broader spirit and scope of embodiments of the present disclosure as set forth in the appended claims. Accordingly, the description and drawings should be viewed in an illustrative rather than a restrictive sense.
Claims
1. A system for providing quality of service for memory commands from a function, comprising: Memory device; Host interface; A processing device coupled to the memory device and the host interface, the processing device being configured to: receiving, via the host interface, a plurality of commands from a plurality of virtual machines; associating each of the plurality of commands with a respective function from a plurality of functions representing a respective virtual machine from which each of the plurality of commands was received; as well as providing, for each of the plurality of functions, a respective definition of a respective quality of service regarding consumption of resources of the memory device; assigning a number of credit counters to each of the plurality of functions based on the respective definition of the respective quality of service; after receiving the plurality of commands, updating a configuration database storing the number of the integral counter with the updated number of the integral counter, wherein the configuration database is configurable by the host at runtime, and wherein the host updates the number of the integral counter and the configuration database in response to receiving the plurality of commands; updating, via arbitration circuitry, a memory storing a number of the integral counter with an updated number of the integral counter from the configuration database; The plurality of commands and the updated number of the integral counter are provided to the arbitration circuit system to handle each of the plurality of commands on a per-function basis according to the updated number of the integral counter, wherein the updated number of the integral counter is provided from the memory, and wherein the memory and the configuration database are different. 2 . The system of claim 1 , wherein the processing device is further configured to set the definition of the respective quality of service for a low priority function.
3. The system of claim 2, wherein the arbitration circuit system includes a first arbitrator to provide those of the plurality of commands associated with high priority functions to the different processing device before providing commands associated with the low priority functions to the different processing device.
4. The system of claim 3, wherein the first arbitrator is further configured to provide those of the plurality of commands associated with the high priority functions to the different processing devices in the order in which those commands are received.
5. The system of claim 3 , wherein the processing device further comprises a second arbitrator coupled to the first arbitrator to provide those of the plurality of commands associated with the low priority function to the first arbitrator based on a deficit round-robin of the quality of service of the low priority function.
6. The system of claim 5, wherein the arbitration circuitry further comprises: the configuration database configured to receive the respective definition of the respective quality of service, the respective definition comprising an updated number of the integral counters for those of the plurality of commands associated with the low priority function; as well as A timer configured to provide an indication to the second arbitrator of when the updated quantity of the integral counter is to be replenished.
7. The system of claim 6, wherein the second arbitrator is further configured to discount an updated amount of the integral counter for a respective one of the plurality of commands associated with the low priority function based on usage of an input / output path for execution of the respective command.
8. The system of claim 6, wherein the second arbitrator is further configured to refrain from providing those of the plurality of commands associated with the low priority function to the first arbitrator if a corresponding integral counter is equal to or less than zero.
9. The system of claim 8, wherein for those of the plurality of commands associated with the low priority function, the quality of service further comprises a first number of integral counters for an input path, and a second number of integral counters for an output path; and The second arbitrator is further configured to: discounting the first quantity of a credit counter for a respective one of the plurality of commands associated with the low priority function based on usage of the input path for execution of the respective command; and The second quantity of the credit counter for the corresponding command is discounted based on usage of the output path for execution of the corresponding command.
10. The system of claim 2, wherein the processing device is configured to further perform the following operations: associating a block data command with the low priority function; and Associate administrative commands with high-priority functions.
11. The system of claim 1 , wherein the processing device is further configured to: receiving from the host interface the respective definition of the respective quality of service regarding consumption of resources of the memory device for each respective function; Setting the corresponding definition in the configuration database; receiving an update to the corresponding definition from the host interface; as well as The corresponding definition is updated in the configuration database.
12. A method for providing quality of service for memory commands from a function, comprising: configuring, via arbitration circuitry of a memory device, a respective configurable quality of service definition for each of a plurality of functions representing a respective virtual machine coupled to the memory device via a host; assigning a number of credit counters to each of the plurality of functions based on the quality of service definition; receiving a first memory access request from a first virtual machine; updating a configuration database storing the number of the integral counter with the updated number of the integral counter, wherein the configuration database is configurable by the host at runtime; wherein the host updates the number of the integral counter and the configuration database in response to execution of the first memory access request; updating, via the arbitration circuitry, a memory storing a quantity of the integral counter with an updated quantity of the integral counter from the configuration database; as well as providing the first memory access request and the updated number of the integral counter to the arbitration circuitry, wherein the updated number of the integral counter is provided from the memory; wherein said memory and said configuration database are distinct; providing, via the arbitration circuitry, a first quality of service for the first memory access request according to a first corresponding quality of service definition using a corresponding credit counter from the updated number of credit counters; receiving a second memory access request from a second virtual machine; as well as providing the second memory access request and the updated number of the integral counter to the arbitration circuitry, wherein the updated number of the integral counter is provided from the memory; A second quality of service is provided for the second memory access request according to a second corresponding quality of service definition using a different corresponding credit counter from the updated number of credit counters, via the arbitration circuitry, wherein the second quality of service definition is different from the first quality of service definition.
13. The method according to claim 12, further comprising: storing the corresponding configurable quality of service definition in the configuration database associated with the memory device; as well as The respective quality of service definitions are reconfigured at runtime via the arbitration circuitry.
14. The method of claim 12, further comprising providing the first quality of service for the first memory access request and providing the second quality of service for the second memory access request without a hypervisor managing traffic between the memory and the first virtual machine or the second virtual machine.
15. A system for providing quality of service for memory commands from a function, comprising: a first processing device; Memory device; a second processing device coupled to the memory device and the first processing device, the second processing device being configured to: receiving a command to set a definition of a respective quality of service for each of a plurality of functions representing a respective virtual machine, wherein the definition of the respective quality of service describes consumable resources of the memory device assigned to the plurality of functions; receiving a plurality of commands and a plurality of counters associated with the plurality of functions corresponding to the definition; providing the plurality of commands and the plurality of counters to the first processing device from a memory storing the plurality of counters; receiving a plurality of updated counters via a firmware interface, and wherein the plurality of updated counters are used to configure a configuration database storing the plurality of updated counters, wherein the configuration database is configurable by the host at runtime, and wherein the plurality of counters and the configuration database are updated by the host in response to reading data from or writing data to the memory device; updating, via arbitration circuitry, the memory storing the plurality of counters with the plurality of updated counters from the configuration database; as well as providing the plurality of updated counters from the memory to the first processing device after the plurality of commands are provided to the first processing device; as well as wherein the second processing device includes the arbitration circuit system, which is configured to handle each of the plurality of commands associated with the plurality of functions in view of the plurality of counters and the plurality of updated counters, provided that the corresponding definition of the corresponding quality of service is met, so that the plurality of functions do not consume more resources than indicated by the corresponding definition.
16. The system of claim 15, wherein the second processing device is further configured to set the plurality of updated counters including a host resource counter, a memory device resource counter, a write credit counter, and a read credit counter, wherein: The host resource counter is configured to limit a certain number of commands corresponding to the function to be processed; The memory device resource counter is configured to limit a certain amount of resources of the memory device to be utilized on a per-function basis; the write integral counter being configured to limit writing of data to the memory device on the per-function basis; as well as The read integral counter is configured to limit reading data from the memory device on the per-function basis.
17. The system of claim 16, wherein: The host resource counters include: a threshold host resource counter configured to store a threshold value for a number of commands received on a per-function basis; and a first number representing a current value of said number of commands received on said per-function basis; as well as The memory device resource counter includes: a threshold memory device resource counter configured to store a threshold value of said number of commands executed on said per-function basis; as well as A second number is used to represent a current value of the number of commands executed on the per-function basis.
18. The system of claim 16, wherein The writing integral counter comprises: a threshold write integral counter configured to store a threshold value of an amount of data written to the memory device on the per-function basis; and a third quantity representing a current value of the amount of data written to the memory device on the per-function basis; as well as The reading integral counter comprises: a threshold read integral counter configured to store a threshold value of an amount of data read from the memory device on the per-function basis; as well as A fourth quantity is used to represent a current value of the amount of data read from the memory device on the per-function basis.
19. The system of claim 16, wherein the second processing device is further configured to receive a command from a host to set the plurality of counters for each of the plurality of functions.
