Systems for improving input / output performance
By introducing network interfaces and processing circuits into data communication equipment, the congestion control of the storage subsystem is transparently performed, and data capacity and throughput points are used to optimize transmission. This solves the performance degradation problem of the storage subsystem due to congestion and achieves efficient content Transport and interface utilization, avoiding cache overflow and interface saturation.
Patent Information
- Application Number
- CN202111241623.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-10-25
AI Technical Summary
In data communications equipment, the storage subsystem may suffer from congestion resulting in degradation in responding to incoming content transfer requests, especially when caches are full and need to evict entries to RAM, resulting in performance bottlenecks and vicious cycles, and peripheral interfaces such as PCIe The interface may also become a transmission bottleneck under high request conditions.
By introducing network interfaces, storage subsystems and processing circuits into data communications devices, responding to content transfer requests, managing content transfers between remote devices and local peripheral storage devices, and transparently performing congestion control of the storage subsystem, utilizing cache capabilities Pace the idle data capacity and data throughput rate, dynamically allocate data capacity points and throughput rate points, and optimize the use of pending queues and interfaces to avoid cache overflow and interface saturation.
Effectively manage storage subsystem congestion, avoid cache overflow to RAM, optimize data transmission delays, improve system performance, ensure efficient service of content transmission requests, and reduce performance degradation.
Smart Images

Figure CN114489473B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to computer systems and, more particularly but not exclusively, to improving I / O performance in data communications equipment. Background Art
[0002] A solid-state drive (SSD) is a mass storage device that uses integrated circuit memory (usually NAND-based flash memory) to store data while providing an interface that emulates a traditional hard disk drive (HDD). By comparison with HDDs, SSDs offer faster access, reduced latency, and greater resistance to environmental disturbances. As a result, SSDs are gradually replacing HDDs in many storage applications.
[0003] Since SSDs were originally designed to replace HDDs, they typically use the same types of input / output (I / O) buses and protocols as HDDs, such as SATA, SAS, and Fibre Channel. SSDs subsequently became available for direct connection to a host computer's peripheral component interface bus, such as PCI. NVM Express (NVMe) defines the register interface, command set, and feature set for PCI Express SSDs.
[0004] Advanced network interface controllers (NICs) are designed to support remote direct memory access (RDMA) operations, in which the NIC transfers data via direct memory access from the memory of one computer to the memory of another computer without involving the central processing unit (CPU) of the target computer. Although RDMA is commonly used to transfer data to and from host memory (RAM), many attempts to adapt RDMA functionality for reading data directly from and writing data directly to an SSD have been described in the patent literature.
[0005] For example, U.S. Patent Application Publication 2008 / 0313364 describes a method for remote direct memory access to a solid-state storage device, in other words, allowing direct access between the memory of a client connected via a network to such a device. Similarly, U.S. Patent Application Publication 2011 / 0246597 describes a system in which a network interface component of a server can access a solid-state storage module of the server via a network storage access link that bypasses a central processing unit (CPU) and the main memory of the server.
[0006] In addition, smart NICs (e.g. Data processing unit) offloads critical network, security, and storage tasks from the CPU, for example by supporting RDMA operations and directly reading or writing to attached storage devices in response to remote initiator requests. Summary of the invention
[0007] According to an embodiment of the present disclosure, a data communication apparatus is provided, comprising: a network interface, comprising one or more ports for connecting to a packet data network, and configured to receive a content transfer request from at least one remote device on the packet data network via the one or more ports; a storage subsystem, configured to connect to a local peripheral storage device, and comprising at least one peripheral interface, and a memory subsystem comprising a cache and a random access memory (RAM), the memory subsystem being configured to evict overflow from the cache to the RAM; and a processing circuit, configured to manage the transfer of content between the at least one remote device and the local peripheral storage device through the at least one peripheral interface and the cache in response to the content transfer request, and at the same time, in response to the measurement of the storage subsystem, pace the start of the service of the corresponding content transfer request so that when the content transfer request is serviced, other content transfer requests to be serviced are queued in at least one queue to be processed.
[0008] Furthermore, according to an embodiment of the present disclosure, the processing circuit is configured to pace the start of the servicing of the corresponding content transfer request in response to availability of free data capacity of the cache.
[0009] Still further, in accordance with an embodiment of the present disclosure, the cache has a size and the processing circuit is configured to provide a data capacity integral in response to the size of the cache, and to pace the initiation of the servicing of the corresponding content transfer request in response to availability of the data capacity integral.
[0010] In addition, according to an embodiment of the present disclosure, the processing circuit is configured to start serving one of the content transfer requests in response to one of the data capacity integrals being available, remove the one data capacity integral from availability in response to currently serving the one content transfer request, and return the one data capacity integral to availability in response to completing service of the one content transfer request.
[0011] Furthermore, according to an embodiment of the present disclosure, the cache includes corresponding cache portions, and the processing circuit is configured to allocate corresponding data capacity integrals to the corresponding cache portions so that use of the corresponding cache portions is limited to availability of the corresponding data capacity integrals.
[0012] Furthermore, according to an embodiment of the present disclosure, the at least one queue to be processed includes different queues to be processed, and the processing circuit is configured to distribute the provided data capacity credits among the different queues to be processed.
[0013] Furthermore, according to an embodiment of the present disclosure, the different pending queues include any one or more of the following: a read pending queue and a write pending queue; pending queues of different local peripheral storage devices; pending queues of different groups of local peripheral storage devices; pending queues of different peripheral interfaces; pending queues of different content request attributes; or pending queues of different content request initiators.
[0014] Furthermore, according to an embodiment of the present disclosure, the processing circuit is configured to dynamically reallocate the data capacity credits among the different to-be-processed queues in response to the data capacity credits being used by the different to-be-processed queues.
[0015] Furthermore, according to an embodiment of the present disclosure, the at least one peripheral interface includes a plurality of peripheral interfaces, and the processing circuit is configured to pace the start of the service of the corresponding content transfer request in response to a data throughput rate of the corresponding peripheral interface.
[0016] Furthermore, according to an embodiment of the present disclosure, the processing circuit is configured to pace the initiation of the servicing of the corresponding content transfer request in response to data throughput rates of the corresponding peripheral interface and the network interface.
[0017] Further in accordance with an embodiment of the present disclosure, processing circuitry is configured to provide a data throughput rate integral in response to the data throughput rate of the peripheral interface, and to pace the initiation of the servicing of the corresponding content transfer request in response to availability of the data throughput rate integral.
[0018] Additionally, according to an embodiment of the present disclosure, the processing circuit is configured to, in response to one of the data throughput rate credits being available, begin servicing one of the content transfer requests, and in response to the one content transfer request being currently serviced, remove the one data throughput rate credit from availability.
[0019] Furthermore, according to an embodiment of the present disclosure, the processing circuit is configured to allocate the corresponding data throughput rate integral to the corresponding peripheral interface such that usage of the corresponding peripheral interface is limited to availability of the corresponding data throughput rate integral.
[0020] Furthermore, according to an embodiment of the present disclosure, the at least one queue to be processed includes different queues to be processed, and the processing circuit is configured to distribute the provided data throughput rate integrals among the different queues to be processed.
[0021] Further according to an embodiment of the present disclosure, the different pending queues include any one or more of the following: a read pending queue and a write pending queue; pending queues of different local peripheral storage devices; pending queues of different groups of local peripheral storage devices; pending queues of different peripheral interfaces; pending queues of different content request attributes; or pending queues of different content request initiators.
[0022] In addition, according to an embodiment of the present disclosure, the processing circuit is configured to distribute the data throughput rate credits among the different pending queues in response to an actual rate at which data associated with the content transfer requests in the pending queues are transmitted.
[0023] In addition, according to an embodiment of the present disclosure, the memory subsystem is configured to evict cache entries to the RAM according to a least recently used (LRU) algorithm, wherein the cache entry with the least recently used usage index is first evicted from the cache to the RAM by the memory subsystem, in response to a cache entry being written to the cache, the most recently used usage index is assigned to the written cache entry, and in response to a cache entry being read from the cache, the usage index of the read cache entry is not modified.
[0024] In addition, according to an embodiment of the present disclosure, the storage subsystem is configured to evict cache entries to the RAM according to a least recently used (LRU) algorithm, wherein the cache entry with the least recently used usage index is first evicted from the cache to the RAM by the memory subsystem, in response to a cache entry being written to the cache, the most recently used usage index is assigned to the written cache entry, and in response to a cache entry being read from the cache, the usage index of the read cache entry is modified to a less recently used usage index.
[0025] Further according to an embodiment of the present disclosure, the storage subsystem is configured to evict cache entries to the RAM according to a least recently used (LRU) algorithm, wherein the cache entry with the least recently used usage index is first evicted from the cache to the RAM by the memory subsystem, in response to a cache entry being written to the cache, the most recently used usage index is assigned to the written cache entry, and in response to a cache entry being read from the cache, the read cache entry is cleared from the cache without writing the read cache entry to the RAM.
[0026] In addition, according to an embodiment of the present disclosure, the memory subsystem is configured to, in response to reading a previously evicted data entry from the RAM, transfer the previously evicted data entry from the RAM to one of the local peripheral storage devices without writing the previously evicted data entry as a cache entry into the cache.
[0027] According to another embodiment of the present disclosure, a data communication device is also provided, which includes a network interface, a storage subsystem and a processing circuit, the network interface includes one or more ports for connecting to a packet data network and is configured to receive a content transmission request from at least one remote device on the packet data network via the one or more ports; the storage subsystem is configured to be connected to a local peripheral storage device; and the processing circuit is configured to manage the transmission of content between the at least one remote device and the local peripheral storage device in response to the content transmission request, and at the same time perform storage subsystem congestion control of the storage subsystem transparently to the storage subsystem.
[0028] According to another embodiment of the present disclosure, a data communication method is also provided, comprising receiving a content transfer request from at least one remote device via a packet data network, evicting overflow from a cache to a RAM, and managing the transfer of content between the at least one remote device and a local peripheral storage device via at least one peripheral interface and the cache in response to the content transfer request, and pacing the start of service of the corresponding content transfer request in response to metrics of a storage subsystem including the at least one peripheral interface, the cache, and the RAM, so that when the content transfer request is being serviced, other content transfer requests to be serviced are queued in at least one pending queue.
[0029] According to another embodiment of the present disclosure, a data communication method is also provided, comprising receiving a content transmission request from at least one remote device via a packet data network, and in response to the content transmission request, managing the transmission of content between the at least one remote device and a local peripheral storage device, while transparently performing storage subsystem congestion control of the storage subsystem on the storage subsystem. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The present invention will be understood through the following detailed description in conjunction with the accompanying drawings, in which:
[0031] Figure 1 is a block diagram of a data communications system constructed and operable in accordance with an embodiment of the present invention;
[0032] Figure 2 is included in Figure 1 A flowchart of steps in a method for providing storage subsystem congestion control in a system;
[0033] Figure 3 is included in Figure 1 A flowchart of steps in a method of performing pacing in a system;
[0034] Figure 4 It is shown in Figure 1 A block diagram of pacing of content transmission requests in a system;
[0035] Figure 5 is included in Figure 1 A flowchart of steps in a method for providing data capacity integration in a system;
[0036] Figure 6 is included in Figure 1 A flowchart of steps in a method for performing pacing using data capacity integration in a system;
[0037] Figure 7 is included in Figure 1 A flowchart of steps in a method for performing pacing based on data throughput rate in a system;
[0038] Figure 8 is included in Figure 1 A flowchart of steps in a method for providing data throughput rate integration in a system;
[0039] Fig. 9 is included in Figure 1 A flowchart of steps in a method of performing pacing using data throughput rate integration in a system; and
[0040] Fig.10 is included in Figure 1 A flowchart of the steps in a method of cache management in a system. DETAILED DESCRIPTION
[0041] Overview
[0042] As mentioned previously, some data communication devices, such as smart NICs (e.g., A data communication unit) supports direct reading or writing of attached local peripheral storage devices (e.g., NVM Express (NVMe) drives) via a storage subsystem in response to a remote initiator request (e.g., a content transfer request received from a device over a network to which the data communication device is connected).
[0043] Depending on the level of content transfer requests and the speed and bandwidth of the network, storage subsystem interface, and local peripheral storage devices, the storage subsystem may experience congestion resulting in degradation of the system's responsiveness in servicing incoming content transfer requests.
[0044] For example, the storage subsystem may include random access memory (RAM) (e.g., double data rate (DDR) memory) that is used to transfer content between the data communication device and the local peripheral storage device, and vice versa. In some cases, the RAM is not a bottleneck because the local peripheral storage device is slow. In other cases, where the peripheral storage device is fast enough (e.g., NVMe drive), the RAM may become a bottleneck because it is slower than the local peripheral storage device and the network port that services the initiator of the content transfer request.
[0045] One approach to addressing this problem is to use a cache (e.g., a last level cache (LLC)) where data is copied between the data communications device and the local peripheral storage device, and vice versa. However, if the cache is full, cache entries (that still need to be used) may be evicted to RAM (e.g., based on least recently used (LRU)). The evicted entries then need to be read from RAM into the cache when necessary, which leads to a bottleneck. Generally, a cache can be selected to service network bandwidth, and if the data communications device successfully maintains all entries in the cache (i.e., need to be used), the cache can service content transfer requests at full line speed. However, once entries are evicted from the cache to RAM, a vicious cycle may form, in which it may take a long time to recover to optimal performance where no entries (i.e., need to be used) are evicted from the cache.
[0046] Therefore, in some cases, if all received content transfer requests are serviced, the cache will become a bottleneck and cache entries (which still need to be used) are evicted to RAM. One solution is for the request initiator to refrain from sending content transfer requests. However, this solution is generally not practical because the initiator may be from a different entity or otherwise non-compliant.
[0047] In some cases, other interfaces in the storage subsystem, such as the PCIe interface, may become a transmission bottleneck. For example, each NVMe drive has a given input / output (I / O) rate and a given bandwidth limit. If too many requests are sent to the NVMe drive, the requests may become out of order on the NVMe drive, resulting in high latency and degradation in performance. In this case, although the PCIe interface can handle the level of requests, the associated buffer is filled with data that can be better used by another I / O device.
[0048] Embodiments of the present invention solve the above-mentioned problems by providing a data communication device (e.g., a NIC or a smart NIC) that manages the transmission of content between a remote device and a local peripheral storage device (e.g., an NVMe drive) in response to a content transmission request received from a remote device (via a network interface), while transparently performing storage subsystem congestion control of the storage subsystem to the storage subsystem. The term "congestion control" used in the specification and claims is defined as reducing the data transmitted by the storage subsystem to a given level. The term "transparent to the storage subsystem" used in the specification and claims is defined as performing storage subsystem congestion control by an entity external to the storage subsystem so that the storage subsystem does not need to perform part of the congestion control and / or does not need to be aware of the congestion control.
[0049] The storage subsystem is connected to local peripheral storage devices and may include one or more peripheral interfaces (e.g., a PCIe interface) and / or any suitable I / O devices, and a memory subsystem that includes a cache (e.g., LLC) and RAM (e.g., DDR memory), where overflows are evicted from the cache.
[0050] In some embodiments, congestion control is performed by pacing the start of servicing content transfer requests in response to at least one metric of the storage subsystem so that while some content transfer requests are being serviced, other content transfer requests to be serviced are queued in one or more pending queues. The metric may include a cached data capacity and / or a data throughput rate of the storage subsystem (e.g., of a peripheral interface).
[0051] In some implementations, pacing is performed in response to free data capacity of the cache. For example, if there is free storage capacity in the cache (e.g., a portion of the cache is not currently being used to service content transfer requests), then the free capacity can be used to service one or more new content transfer requests (depending on the size of the free capacity). If there is no free capacity, then incoming content transfer requests will be queued until free capacity is available.
[0052] In some embodiments, pacing may be performed based on data capacity credits. Credits may be provided based on the size of the cache. For example, if the cache is X in size and can service Y simultaneous transfer requests, then Y credits are provided. Incoming content transfer requests are queued. When credits are available, service of content transfer requests from the queue begins. Credits are then removed from availability and returned to availability when content transfer requests have completed servicing.
[0053] In some implementations, credits are allocated to different respective portions of the cache such that when available credits are used to allow initiation of servicing a content transfer request, the portion of the cache associated with the available credits is used to service the content request.
[0054] Although a single pending queue may be provided for queuing content transfer requests to be serviced, in some embodiments, multiple pending queues may be used to queue different content transfer requests. For example, different pending queues may include any one or more of the following: one or more read pending queues, one or more write pending queues, pending queues of different local peripheral storage devices, pending queues of different groups of local peripheral storage devices, pending queues of different peripheral interfaces, pending queues of different content request attributes (e.g., small / large requests), and / or pending queues of different content request initiators. Available credits are distributed among different pending queues. For example, if the size of the cache is X, it can service Y simultaneous transmission requests, and two pending queues have been defined (e.g., a read pending queue and a write pending queue), then Y credits are distributed among different pending queues, where A credits are used for the read queue and B credits are used for the write queue, where A plus B equals Y.
[0055] The initial allocation of credits between different queues may not be optimal. For example, if different queues exist for different local peripheral storage devices, and one or more local peripheral storage devices are slower than the others, it may be more efficient to provide fewer credits to the slower devices. Other examples may be a drive that has encountered an error, or a drive that is not currently referenced by any transfer request from the initiator. Therefore, in some embodiments, credit usage is occasionally analyzed (e.g., on a cyclic basis) and credits are dynamically reallocated between different pending queues in response to their usage by the different pending queues. If credits are being used quickly, this indicates that the associated local peripheral storage devices are working efficiently and that more credits should be allocated to the slower local peripheral storage devices.
[0056] Even if the cache is properly managed using the above method because data should not be evicted to RAM, one or more peripheral interfaces may receive too many read / write requests, which affects latency, thereby wasting credits. Therefore, embodiments of the present invention pace content transfer requests for any suitable I / O device of the storage subsystem according to the I / O rate of the corresponding I / O device (e.g., I / O interface). In addition, the line rate at which the data communication device sends or receives data provides a maximum limit on the data throughput rate at which data should be transferred through the I / O device.
[0057] The content transfer request provides an indication of the amount of data to be transferred for the corresponding request. Different I / O devices have associated I / O rates. The content transfer request is serviced by pacing according to the available I / O capacity and line speed of the corresponding I / O device. It can be assumed that the cache is designed to handle according to the I / O rate and line speed of different I / O devices, so if pacing is performed according to the available I / O rate and line speed, the cache will not overflow to RAM.
[0058] Thus, in embodiments of the present invention, initiation of servicing of a content transfer request is performed in response to the data throughput rates (eg, I / O rates) of the respective network and peripheral interfaces being limited by the maximum rates of those interfaces.
[0059] In some implementations, pacing is performed based on the availability of data throughput rate credits.Data throughput rate credits may be provided in response to data throughput rates of the network and peripheral interfaces that are limited by maximum rates of those interfaces.
[0060] In some embodiments, data throughput rate credits are allocated to the corresponding peripheral interfaces so that the use of the corresponding peripheral interfaces is limited to the availability of the corresponding data throughput rate credits. The data throughput rate credits can be allocated to different pending queues. For example, if there are three peripheral interfaces whose data throughput rates (e.g., I / O rates) are X GB per second, Y GB per second, and Z GB per second, and the line speed is greater than X plus Y plus Z, then the content transfer request can be queued in the corresponding three pending queues of the three peripheral interfaces according to which peripheral interface the content transfer request should be directed, and the three corresponding pending queues can be allocated A, B, and C credits in the proportion of X, Y, and Z, respectively. Then, the requests in the pending queues are served according to the available data throughput rate credits of the corresponding pending queues. In some embodiments, each peripheral interface can have one pending queue or more than one pending queue, for example, a read pending queue and a write pending queue, and / or pending queues for different local peripheral storage devices or groups, and / or pending queues for different content request initiators.
[0061] In some embodiments, data throughput rate integrals are allocated between different pending queues in response to their use.For example, some interfaces may operate faster or slower than the initially estimated or measured I / O rate.
[0062] For example, for an available data throughput rate of 200 gigabits per second for one or more peripheral interfaces 30, it is permitted to perform 128 kilobits of total content transfer via the peripheral interface 30 every 5 microseconds. Thus, every 5 microseconds, the pending queue is analyzed and service of content transfer requests for a total of up to 128 kilobits of data transfer begins. For example, when new credits are available within 5 or 10 microseconds, other requests will remain in the pending queue for future service.
[0063] The cache may be implemented according to any suitable caching scheme. In some embodiments, the memory subsystem evicts cache entries to RAM according to a least recently used (LRU) algorithm, wherein cache entries with a usage index that has been least recently used are first evicted from the cache to the RAM by the memory subsystem. When a cache entry is written to the cache, the memory subsystem assigns the most recently used usage index to the cache entry being written. Instead of assigning the most recently used usage index to cache entries being read from the cache, the memory subsystem does not modify the usage index of the read cache entry, thereby ensuring that the read cache entry (which is not needed for the current content transfer request) can be evicted from the cache earlier than if it were assigned the most recently used usage index.
[0064] In some embodiments, the memory subsystem modifies the usage index of the read cache entry to a less recently used usage index. In some embodiments, in response to reading a cache entry from the cache and the associated transfer request completing, the memory subsystem clears the read cache entry from the cache without writing the read cache entry to the RAM. In some embodiments, the memory subsystem transfers a data entry previously evicted from the cache from the RAM to one of the local peripheral storage devices without writing the previously evicted data entry as a cache entry into the cache (and potentially evicting another cache entry).
[0065] System Description
[0066] Reference now Figure 1, which is a block diagram of a data communication system 10 constructed and operable according to an embodiment of the present invention. The data communication system 10 includes a data communication device 12 that receives content transfer requests from one or more remote devices 16 via a packet data network 14. By way of example only, the content transfer request may be an RDMA request. In response to the content transfer request, the data communication device 12 reads data from and / or writes data to a local peripheral storage device 18 (e.g., an NVMe drive) connected to the data communication device 12. For example, the data communication device 12 is configured to receive data to be written to the local peripheral storage device 18 from the remote device 16 and / or to send data read from the local peripheral storage device 18 to the remote device 16.
[0067] The data communication device 12 includes a network interface 20, a packet processing pipeline 22, a processing circuit 24, and a storage subsystem 26. The network interface 20 includes one or more ports 28 for connecting to the packet data network 14. The packet processing pipeline 22 is configured to process received network packets and process data for transmission in the form of packets through the network 14. The packet processing pipeline 22 may include components such as a PHY chip and a MAC chip.
[0068] The processing circuit 24 may further process the received packet data, such as the received content transmission request. The processing circuit 24 may include one or more processors, such as a small block processor or an ARM processor array. The functions of the processing circuit 24 will be referred to below. Figures 2 to 9 Describe in more detail.
[0069] In practice, some or all of the functions of the processing circuit 24 may be combined in a single physical component, or alternatively, implemented using multiple physical components. These physical components may include hard-wired or programmable devices, or a combination of both. In some embodiments, at least some of the functions of the processing circuit 24 may be performed by a programmable processor under the control of suitable software. For example, the software may be downloaded to the device in electronic form over a network. Alternatively or additionally, the software may be stored in a tangible, non-transitory computer-readable storage medium, such as an optical, magnetic or electronic memory.
[0070] The storage subsystem 26 includes a memory subsystem 32 and one or more peripheral interfaces 30. The storage subsystem 26 is configured to connect to the local peripheral storage device 18 via the peripheral interface 30 (e.g., a PCIe interface). The memory subsystem 32 includes a cache 34 and a random access memory (RAM) 36. The memory subsystem 32 is configured to evict overflow from the cache 34 to the RAM 36. A method of operating the memory subsystem 32 is described with reference to Fig.1034 and the peripheral interface 30. For example, in servicing a particular content transfer request, data written to or read from one of the local peripheral storage devices 18 is transferred via a portion 38 of the cache 34. The same portion 38 of the cache 34 (e.g., one or more of the same cache lines) may be used to transfer multiple data blocks associated with the same content transfer request one after another. For example, a first data block of a content transfer request is read from one of the local peripheral storage devices 18 to a portion 38-1 of the cache 34, and then copied from the portion 38-1 of the cache 34 to the packet processing pipeline 22 for sending to the initiator of the content transfer request over the network 14, and then a second data block of the content transfer request is read from the same local peripheral storage device 18 to the same portion 38-1 of the cache 34, and then copied from the portion 38-1 of the cache 34 to the packet processing pipeline 22 for sending to the initiator of the content transfer request over the network 14, and so on. In other embodiments, different portions 38 of cache 34 may be used to transfer different chunks associated with the same content transfer request.
[0071] Reference now Figure 2 , which is included in Figure 1 A flowchart 200 of steps in a method of storage subsystem congestion control is provided in the system 10. Also refer to Figure 1 The network interface 20 is configured to receive (block 202 ) a content transfer request from a remote device 16 over the packet data network 14 via one or more ports 28 . The content transfer request is processed by the packet processing pipeline 22 and received by the processing circuitry 24 .
[0072] The processing circuitry 24 is configured to manage the transfer of content between the remote device 16 and the local peripheral storage device 18 in response to the content transfer request (block 204 ), while performing storage subsystem congestion control of the storage subsystem 26 transparently to the storage subsystem 26 .
[0073] In some embodiments, the processing circuitry 24 is configured to manage the transfer of content between the remote device 16 and the local peripheral storage device 18 via the peripheral interface 30 and the cache 34 in response to the content transfer request. The steps of block 204 are performed while pacing the start of servicing the content transfer request (block 206) in response to one or more metrics of the storage subsystem 26, so that while certain content transfer requests are being serviced, other content transfer requests to be serviced are queued in at least one pending queue (block 208). The term "servicing start" as used in the specification and claims is defined as the initiation of the transfer of requested data by the storage subsystem 26 by the processing circuitry 24 in response to one of the content transfer requests, so that no requested data is transferred in the content transfer request until the servicing of the content transfer request is initiated. In other words, the initiation of the transfer of requested data in the content transfer request is performed in response to a metric of the storage subsystem 26 (e.g., the cache 34 and / or the peripheral interface 30). The metric may include a data capacity of the cache 34 and / or a data throughput rate of the storage subsystem 26 (e.g., the peripheral interface 30).
[0074] Reference now Figure 3 , which is included in Figure 1 Flowchart 300 of steps in a method of performing pacing in the system 10. Also refer to Figure 1 The processing circuitry 24 is configured to pace (block 302 ) the start of servicing of a corresponding content transfer request in response to the free data capacity of the cache 34 .
[0075] The processing circuit 24 is configured to provide (block 304) a data capacity credit in response to the size of the cache. For example, if the cache has X portions 38 that can be used to simultaneously service X corresponding content transfer requests, the processing circuit 24 is configured to provide X data capacity credits. Figure 5 The steps of block 304 are described in more detail. The processing circuit 24 is configured to pace (block 306) the start of servicing of the corresponding content transfer request in response to the availability of the data capacity credit. Figure 6 The steps of block 306 are described in more detail.
[0076] Reference now Figure 4 and Figure 5 . Figure 4 It is shown in Figure 1 Block diagram 400 of pacing of servicing content transmission requests 402 in system 10 of the present invention. Figure 5 is included in Figure 1 Flowchart 500 of steps in a method of providing data capacity integration 406 in system 10.
[0077] As previously described, cache 34 includes respective cache portions 38. Processing circuitry 24 may be configured to allocate (block 502) respective data capacity integrals 406 to respective cache portions 38 such that usage of respective cache portions 38 is limited by the availability of respective data capacity integrals 406. For example, if cache 34 has n cache portions, e.g., S1 to S2. n , the processing circuit 24 allocates n data capacity integrals 406, C1 to C2, corresponding to the n cache portions 38. n If the data capacity integral C2 is available to service one of the content transfer requests 402, then the cache portion S2 is used to service the request.
[0078] In some embodiments, all content transfer requests are queued in a single pending queue 404, and that queue is allocated all available data capacity credits 406. In some embodiments, there are different pending queues 404 and the processing circuitry 24 is configured to allocate (block 504) the provided data capacity credits 406 between the different pending queues 404. For example, credits C1 through C5 are allocated to pending queue 404-1, and credits C6 through C7 are allocated to pending queue 404-8. 10 Assigned to the pending queue 404-2, and the score C 11 to C 15 Assigned to pending queue 404-3. For example, credits may be assigned equally or unequally to different queues based on known or anticipated demand for those queues. Figure 4 Three pending queues 404 corresponding to three local peripheral storage devices 18 are shown, such that each pending queue 404 serves a corresponding local peripheral storage device 18. For example, a content service request 402 for a local peripheral storage device 18-1 is queued in the pending queue 404-1, a content service request 402 for a local peripheral storage device 18-2 is queued in the pending queue 404-2, and so on. Credits 406 allocated to the pending queue 404-1 are used by content transfer requests 402 queued in the pending queue 404-1 when available, and so on. For example, when one of the content transfer requests 402 queued in the pending queue 404-1 is serviced, one of the available data capacity credits 406 allocated to the waiting queue 404-1 is removed from availability and returned to availability for use by the content transfer request 402 queued in the pending queue 404-1 when the content transfer request 402 has completed service, as shown in reference to FIG. Figure 6 Describe in more detail.
[0079] Figure 4 The example of 404 shows one pending queue 404 associated with each local peripheral storage device 18. In some implementations, each local peripheral storage device 18 may be associated with a read and write queue.
[0080] The different pending queues 404 may include any one or more of the following: a read pending queue and a write pending queue; pending queues of different local peripheral storage devices 18; pending queues of different groups of local peripheral storage devices 18; pending queues of different peripheral interfaces 30; pending queues of different content request attributes; or pending queues of different content request initiators.
[0081] The initial allocation of credits 406 between different queues 404 may not be optimal. For example, if different queues 404 exist for different local peripheral storage devices 18, and one or more local peripheral storage devices 18 are slower than the other devices 18, it may be more efficient to provide fewer credits 406 to the slower devices 18. Another example may be a drive that has experienced an error. Therefore, in some embodiments, the processing circuitry 24 is configured to analyze the credit usage of different pending queues 404 (e.g., on a round-robin basis) and dynamically reallocate (block 506) data capacity credits 406 between the different pending queues 404 in response to the usage of credits 406 by the different pending queues 404. If credits 406 are being used quickly, this indicates that the associated local peripheral storage device 18 is working efficiently and should be allocated more credits 406 than the slower local peripheral storage device 18 that is using credits more slowly.
[0082] Reference now Figure 6 , which is included in Figure 1 Flowchart 600 of steps in a method for performing pacing using data capacity integral 406 in system 10. Figure 4 .
[0083] The processing circuit 24 is configured to receive the packet from the packet processing pipeline 22 ( Figure 1 ) receives the content transmission request 402 and assigns the content transmission request 402 to the corresponding pending queue 404 in response to the content transmission request 402. For example, a request to read content from the local peripheral storage device 18-1 or to write content to the local peripheral storage device 18-1 will be queued in the pending queue 404-1, and so on.
[0084] The processing circuitry 24 is configured to, in response to one of the data capacity credits 406 being available (for the pending queue 404 in which the content transfer request 402 is queued), begin servicing (block 602) one of the content transfer requests 402. The processing circuitry 24 is configured to, in response to the currently servicing content transfer request 402, remove (block 604) the available data capacity credits 406 from the availability. The processing circuitry 24 is configured to, in response to the content transfer request 402 completing servicing, return (block 606) the removed data capacity credits 406 to the availability.
[0085] Reference now Figure 7 , which is included in Figure 1 Flowchart 700 of steps in a method of performing pacing based on data throughput rate in system 10. Also refer to Figure 1 The processing circuitry 24 is configured to pace (block 702 ) the start of servicing of respective content transfer requests in response to data throughput rates (eg, I / O rates) of the respective peripheral interfaces 30 and network interfaces 20 .
[0086] The processing circuit 24 is configured to provide (block 704) data throughput rate integrals in response to the data throughput rate and line rate of the peripheral interface 30. If the cumulative data throughput rate of the peripheral interface 30 is greater than the line rate, the overall data throughput rate is limited by the line rate, otherwise the overall data throughput rate is limited by the data throughput rate of the peripheral interface 30. The processing circuit 24 is configured to pace (block 706) the start of servicing of the corresponding content transfer request in response to the availability of data throughput rate integrals (per pending queue). For example, one integral (or multiple integrals) is allocated per fixed time period to perform input / output operations of a specific size. In some embodiments, different numbers of integrals may be allocated per fixed time period for different pending queues. In other embodiments, the same number of integrals may be allocated to each pending queue. In some embodiments, the fixed time period or the size of the input / output operation may be the same for each pending queue or different for different pending queues.
[0087] By way of example, using round numbers, for an available data throughput rate of 200 gigabits per second for the one or more peripheral interfaces 30, it is permitted that 128 kilobytes of total content transfers be performed every 5 microseconds via the peripheral interface 30. Thus, every 5 microseconds, the pending queue is analyzed and service of content transfer requests for a total of up to 128 kilobytes of data transfer begins. For example, when new credits are available within 5 or 10 microseconds, other requests will remain in the pending queue for future service.
[0088] For example, if there are three peripheral interfaces 30 whose data throughput rates (e.g., I / O rates) are X GB per second, Y GB per second, and Z GB per second, and the line speed is greater than X plus Y plus Z, then the content transfer request can be queued in the three corresponding waiting queues of the three peripheral interfaces 30 according to which corresponding peripheral interface 30 the content transfer request should be directed to, and the three corresponding waiting queues (of the three peripheral interfaces 30) can be allocated A, B, and C credits in proportion to X, Y, and Z, respectively.
[0089] Reference now Figure 8 , which is included in Figure 1Flowchart 800 of steps in a method of providing data throughput rate integration in system 10. Also refer to Figure 1 The processing circuitry 24 is configured to allocate (block 802) respective data throughput rate credits to respective peripheral interfaces 30 (intermittently, e.g., periodically) such that usage of the respective peripheral interfaces 30 is limited by the availability of the respective data throughput rate credits. For example, data throughput credits allocated to one of the peripheral interfaces 30 will be used by a content transfer request that will transfer data using that peripheral interface, etc. In some embodiments, data throughput rate credits may be allocated to different groups of peripheral interfaces 30.
[0090] In some embodiments, the processing circuit 24 is configured to distribute (block 804) the provided data throughput rate integrals among different pending queues (intermittently, e.g., periodically). The different pending queues may include any one or more of: a read pending queue and a write pending queue; pending queues for different local peripheral storage devices 18; pending queues for different groups of local peripheral storage devices 18; pending queues for different peripheral interfaces 30; pending queues for different content request attributes; or pending queues for different content request initiators. For example, there may be one pending queue per peripheral interface 30, or there may be one pending read queue and one pending write queue per peripheral interface 30.
[0091] The processing circuitry 24 is configured to analyze usage of credits by the different backlog queues (e.g., on a round-robin basis) and allocate (block 806) data throughput rate credits among the different backlog queues in response to actual rates at which data associated with content transfer requests in the backlog queues are transferred and other metrics.
[0092] The processing circuit 24 is configured to pace the content transmission requests according to a certain “pacing rate.” The pacing is typically not fixed and has feedback that may increase or decrease it. The feedback may be based on different current parameters of the data communication device 12 .
[0093] In some embodiments, the processing circuitry 24 may measure the actual achieved data throughput rate of the data communication device 12. If the pacing rate is higher than the measured achieved data throughput rate, this will result in an increase in in-flight data and ultimately cache evictions and data discards. Therefore, the pacing rate is reduced to match the actual measured rate. Nonetheless, the pacing rate is adjusted to attempt to increase the pacing rate back to the maximum theoretical rate because the transient effects that reduced the actual rate may have passed.
[0094] In other embodiments, the processing circuit 24 may measure the known flight data in the data communication device 12. If the total flight data is increasing, it means that the actual achieved data throughput rate is lower than the current pacing rate, so the pacing rate is reduced. When the total flight data in the data communication device 12 decreases, the pacing rate can be increased again.
[0095] Reference now Fig. 9 , which is included in Figure 1 Flowchart 900 of steps in a method for performing pacing using data throughput rate integration in system 10. Processing circuit 24 ( Figure 1 ) is configured to start servicing (block 902) one or more content transfer requests in response to one of the data throughput rate credits being available (for a pending queue in which the content transfer requests are queued). The processing circuitry 24 is configured to remove (block 904) the available data throughput rate credits from availability in response to currently servicing the content transfer request.
[0096] Reference now Fig.10 , which includes Figure 1 Flowchart 1000 of steps in a cache management method in system 10. Also refer to Figure 1 .
[0097] The memory subsystem 32 is configured to evict (block 1002) cache entries to the RAM 36 according to a least recently used (LRU) algorithm, wherein cache entries having a least recently used usage index are first evicted from the cache 34 to the RAM 36 by the memory subsystem 32. The memory subsystem 32 is configured to, in response to a cache entry being written to the cache 34, assign (block 1004) a most recently used usage index to the cache entry being written.
[0098] Instead of assigning a most recently used usage index to a cache entry read from the cache, the memory subsystem performs different steps. The different options are described in more detail below with reference to the steps of blocks 1006-1012.
[0099] The memory subsystem 32 is configured to, in response to reading a cache entry from the cache 34 , not modify (block 1006 ) the usage index of the read cache entry.
[0100] The memory subsystem 32 is configured to, in response to reading a cache entry from the cache 34, modify (block 1008) the usage index of the read cache entry to a least recently used usage index.
[0101] The memory subsystem 32 is configured to flush (block 1010 ) the read cache entry from the cache 34 without writing the read cache entry to the RAM 36 , in response to receiving the message from the processing circuit 24 .
[0102] The memory subsystem 32 is configured to, in response to reading a previously evicted data entry from the RAM 36 (which was evicted from the cache 34 to the RAM 36), transfer the previously evicted data entry directly from the RAM 36 (block 1012) to one of the local peripheral storage devices 18 without writing the previously evicted data entry as a cache entry to the cache 34.
[0103] For the sake of clarity, various features of the invention described in the context of separate embodiments may also be provided in combination in a single embodiment. Conversely, for the sake of brevity, various features of the invention described in the context of a single embodiment may also be provided separately or in any suitable sub-combination.
[0104] The above embodiments are cited by way of example, and the present invention is not limited by what is specifically shown and described above. On the contrary, the scope of the present invention includes the combination and sub-combination of the various features described above, as well as changes and modifications that those skilled in the art would think of after reading the foregoing description and that are not disclosed in the prior art.
Claims
1. A data communication device, comprising: a network interface comprising one or more ports for connecting to a packet data network and configured to receive a content transfer request from at least one remote device over the packet data network via the one or more ports; a storage subsystem configured to connect to a local peripheral storage device and including at least one peripheral interface, and a memory subsystem including a cache and a random access memory, the memory subsystem configured to evict overflows from the cache to the random access memory; and processing circuitry configured to manage, in response to the content transfer request, a transfer of content between the at least one remote device and the local peripheral storage device via the at least one peripheral interface and the cache, and to pace the start of servicing of the corresponding content transfer request in response to the storage subsystem metric so that while the content transfer request is being serviced, other content transfer requests to be serviced are queued in at least one pending queue, Wherein the processing circuit is configured to pace the initiation of the servicing of the corresponding content transfer request in response to availability of free data capacity of the cache.
2. The device according to claim 1, wherein: The cache has a size; and The processing circuit is configured to: providing a data capacity integral responsive to the size of the cache; as well as Responsive to the availability of the data capacity credit, the initiation of the servicing of the corresponding content transfer request is paced.
3. The apparatus of claim 2, wherein the processing circuit is configured to: in response to one of the data capacity credits being available, beginning to service one of the content transfer requests; In response to the one content transfer request being currently serviced, removing the one data capacity credit from availability; and In response to the one content transfer request completing the service, the one data capacity credit is returned to the availability.
4. The device according to claim 3, wherein: The cache includes corresponding cache portions; and The processing circuitry is configured to allocate the respective data capacity integrals to the respective cache portions such that usage of the respective cache portions is limited by availability of the respective data capacity integrals.
5. The device according to claim 2, wherein: The at least one pending queue includes different pending queues; and The processing circuit is configured to distribute the provided data capacity credits among the different to-be-processed queues.
6. The device according to claim 5, wherein the different pending queues include any one or more of the following: a read pending queue and a write pending queue; pending queues of different local peripheral storage devices; pending queues of different groups of local peripheral storage devices; pending queues of different peripheral interfaces; pending queues of different content request attributes; or pending queues of different content request initiators.
7. The apparatus of claim 5, wherein the processing circuit is configured to dynamically reallocate the data capacity integrals among the different to-be-processed queues in response to usage of the data capacity integrals by the different to-be-processed queues.
8. The apparatus of claim 1, wherein the memory subsystem is configured to: evicting cache entries to the random access memory according to a least recently used (LRU) algorithm, wherein cache entries having a least recently used use index are evicted from the cache to the random access memory first by the memory subsystem; In response to a cache entry being written to the cache, assigning a most recently used use index to the written cache entry; and In response to reading a cache entry from the cache, a usage index of the read cache entry is not modified.
9. The apparatus of claim 1 , wherein the memory subsystem is configured to: evicting cache entries to the random access memory according to a least recently used (LRU) algorithm, wherein cache entries having a least recently used use index are evicted from the cache to the random access memory first by the memory subsystem; In response to a cache entry being written to the cache, assigning a most recently used use index to the written cache entry; and In response to reading a cache entry from the cache, a usage index of the read cache entry is modified to a less recently used usage index.
10. The apparatus of claim 1, wherein the memory subsystem is configured to: evicting cache entries to the random access memory according to a least recently used (LRU) algorithm, wherein cache entries having a least recently used use index are evicted from the cache to the random access memory first by the memory subsystem; In response to a cache entry being written to the cache, assigning a most recently used use index to the written cache entry; and In response to reading a cache entry from the cache, the read cache entry is flushed from the cache without writing the read cache entry to the random access memory.
11. The apparatus of claim 1 , wherein the memory subsystem is configured to, in response to reading a previously evicted data entry from the random access memory, transfer the previously evicted data entry from the random access memory to one of the local peripheral storage devices without writing the previously evicted data entry as a cache entry to the cache.
12. A data communication device, comprising: a network interface comprising one or more ports for connecting to a packet data network and configured to receive a content transfer request from at least one remote device over the packet data network via the one or more ports; a storage subsystem configured to connect to a local peripheral storage device and including at least one peripheral interface, and a memory subsystem including a cache and a random access memory, the memory subsystem configured to evict overflows from the cache to the random access memory; and A processing circuit is configured to manage the transfer of content between the at least one remote device and the local peripheral storage device via the at least one peripheral interface and the cache in response to the content transfer request, and to pace the start of the service of the corresponding content transfer request in response to the measurement of the storage subsystem so that when the content transfer request is serviced, other content transfer requests to be serviced are queued in at least one pending queue, wherein the at least one peripheral interface includes a plurality of peripheral interfaces, and the processing circuit is configured to pace the start of the service of the corresponding content transfer request in response to the data throughput rate of the corresponding peripheral interface.
13. The apparatus of claim 12, wherein the processing circuit is configured to pace the initiation of the servicing of the corresponding content transfer request in response to the data throughput rates of the corresponding peripheral interface and the network interface.
14. The apparatus of claim 12, wherein the processing circuit is configured to: providing a data throughput rate integral in response to the data throughput rate of the peripheral interface; and Responsive to the availability of the data throughput rate integral, the initiation of the servicing of the corresponding content transfer request is paced.
15. The apparatus of claim 14, wherein the processing circuit is configured to: In response to one of the data throughput rate credits being available, beginning to service one of the content transfer requests; and Responsive to the one content transfer request currently being serviced, the one data throughput rate credit is removed from availability.
16. The apparatus of claim 15, wherein the processing circuit is configured to allocate the respective data throughput rate integrals to the respective peripheral interfaces such that usage of the respective peripheral interfaces is limited by availability of the respective data throughput rate integrals.
17. The apparatus of claim 14, wherein: The at least one pending queue includes different pending queues; and The processing circuitry is configured to distribute the provided data throughput rate integrals among the different to-be-processed queues.
18. An apparatus according to claim 17, wherein the different pending queues include any one or more of the following: a read pending queue and a write pending queue; different pending queues of the local peripheral storage devices; different groups of pending queues of the local peripheral storage devices; different pending queues of the peripheral interfaces; pending queues of different content request attributes; or pending queues of different content request initiators.
19. The apparatus of claim 17, wherein the processing circuit is configured to distribute the data throughput rate credits among the different pending queues in response to an actual rate at which data associated with the content transfer requests in the pending queues are transmitted.
20. A data communication device, comprising: a network interface comprising one or more ports for connecting to a packet data network and configured to receive a content transfer request from at least one remote device over the packet data network via the one or more ports; a storage subsystem configured to connect to a local peripheral storage device; and a processing circuit configured to manage the transfer of content between the at least one remote device and the local peripheral storage device in response to the content transfer request while performing storage subsystem congestion control of the storage subsystem transparently to the storage subsystem; and The start of servicing the content transfer request is paced responsive to a data throughput rate of a corresponding peripheral interface of the storage system.
21. A data communication method, comprising: receiving a content transmission request from at least one remote device via a packet data network; Evict overflows from cache to RAM; as well as In response to the content transfer request, managing the transfer of content between the at least one remote device and the local peripheral storage device via at least one peripheral interface and the cache, and responsive to the availability of free data capacity of the cache of a storage subsystem including the at least one peripheral interface, the cache and the random access memory, pacing the start of servicing of the corresponding content transfer request so that when the content transfer request is being serviced, other content transfer requests to be serviced are queued in at least one pending queue.
22. A data communication method, comprising: receiving a content transmission request from at least one remote device via a packet data network; as well as managing the transfer of content between the at least one remote device and the local peripheral storage device in response to the content transfer request while performing storage subsystem congestion control of the storage subsystem transparently to the storage subsystem; as well as The start of servicing the content transfer request is paced responsive to a data throughput rate of a corresponding interface of the storage subsystem.
Citation Information
Patent Citations
Apparatus, system, and method for remote direct memory access to a solid-state storage device
US20080313364A1
Remote direct storage access
US20110246597A1
Managing data in log-structured storage systems
US10402091B1
