Improving pacing in storage subsystems

By dynamically detecting faulty devices and reallocating resources in the storage subsystem, and optimizing storage device usage using counters and weights, the problems of storage subsystem congestion and resource waste are solved, and the transmission efficiency of data communication equipment is improved.

CN115905056BActive Publication Date: 2026-11-20MELLANOX TECHNOLOGIES LTD(IL)
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210885599.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-10-20
Filing Date
2022-07-26
Publication Date
2026-11-20
Estimated Expiration
2042-07-26

AI Technical Summary

Technical Problem

In data communication equipment, the storage subsystem may experience response delays due to cache or peripheral interface congestion. Existing pacing methods cannot effectively utilize storage device resources, and when storage devices fail, resources are wasted significantly.

Method used

By managing content transfer on the storage subsystem, dynamically adjusting with counters and weights, reallocating data capacity and pacing strategies, dynamically detecting faulty storage devices and reallocating their resources, and using weighted round-robin selection to optimize storage device usage.

Benefits of technology

It improved the resource utilization of the storage subsystem, reduced resource waste caused by faulty storage devices, optimized data transmission efficiency, and enhanced the overall performance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115905056B_ABST
    Figure CN115905056B_ABST
Patent Text Reader

Abstract

The present disclosure relates to pacing improvements in storage subsystems. One embodiment includes a data communication device comprising a storage subsystem connected to storage devices, and processing circuitry responsive to content transfer requests to manage content transfer on the storage subsystem using the storage devices while pacing beginning servicing of respective ones of the content transfer requests in response to availability of spare data capacity of the storage subsystem, finding a given data capacity of the storage subsystem currently assigned and a failed storage device currently assigned to service at least one content transfer request, and reallocating the given data capacity of the storage subsystem currently assigned to the failed storage device for use by at least another one of the storage devices when the at least one content transfer request assigned to be serviced by the failed storage device is still pending completion by the failed storage device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to computer systems, and more particularly, but not exclusively, to improving input / output performance in data communication devices. Background Technology

[0002] Solid-state drives (SSDs) are high-capacity storage devices that use integrated circuit memory (typically NAND flash memory) to store data while providing an interface that emulates traditional hard disk drives (HDDs). Compared to HDDs, SSDs offer faster access speeds, lower latency, and greater resistance to environmental interference. Therefore, SSDs are gradually replacing HDDs in many storage applications.

[0003] Because SSDs were originally designed to replace HDDs, they typically use the same type of input / output (I / O) bus and protocols as HDDs, such as SATA, SAS, and Fibre Channel. Subsequently, SSDs could be used that connect directly to the host peripheral component interface bus, such as PCI. Bus. 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, where the NIC transfers data from the memory of one computer to the memory of another computer via direct memory access, without involving the target computer's central processing unit (CPU). While RDMA is typically used for transferring data to and from host memory (RAM), numerous attempts have been described in patent literature to adapt RDMA functionality for directly reading and writing data from SSDs.

[0005] For example, U.S. Patent Application Publication 2008 / 0313364 describes a method for remote direct memory access to a solid-state storage device, which supposedly allows direct access between the memories of clients connected to such a device via a network. Similarly, U.S. Patent Application Publication 2011 / 0246597 describes a system in which a server's network interface component can access the server's solid-state storage module via a network storage access link that bypasses the server's central processing unit (CPU) and the server's main memory.

[0006] In addition, intelligent NICs (e.g.) The data processing unit can offload 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 embodiments of this disclosure, a data communication apparatus is provided, including a storage subsystem connected to a storage device, and processing circuitry that, in response to a content transfer request, manages content transfer on the storage subsystem using the storage device, and simultaneously initiates servicing of corresponding content transfer requests in a phased manner in response to the availability of spare data capacity in the storage subsystem, such that while some of the content transfer requests are being served, some of other pending content transfer requests are queued in at least one pending queue, a given data capacity of the storage subsystem currently assigned and a faulty storage device currently assigned to serve at least one content transfer request are identified, and when at least one content transfer request assigned to be served by the faulty storage device is still waiting to be completed by the faulty storage device, the given data capacity of the storage subsystem currently assigned to the faulty storage device is reallocated for use by at least one other storage device in the storage device.

[0008] According to a further embodiment of the present invention, the storage subsystem includes a cache, and the spare data capacity is the spare cache capacity.

[0009] Further according to embodiments of the present disclosure, the processing circuitry is configured to locate the faulty storage device in response to the faulty storage device taking longer than a given timeout value to complete the service of at least one content transfer request.

[0010] Furthermore, according to embodiments of this disclosure, the processing circuit is configured to change a status flag to indicate a faulty storage device.

[0011] Furthermore, according to embodiments of this disclosure, the processing circuitry is configured to: receive a new content transfer request when a status flag indicates a faulty storage device, and begin serving the new content transfer request in response to the storage subsystem having sufficient spare data capacity to serve the new content transfer request and the new content transfer request not being associated with the faulty storage device, without first adding the new content transfer request to at least one pending queue.

[0012] Further according to embodiments of the present disclosure, the processing circuitry is configured to: receive a new content transfer request when a status flag indicates a faulty storage device, and add the new content transfer request to at least one pending queue in response to the new content transfer request being associated with the faulty storage device.

[0013] Furthermore, according to embodiments of the present disclosure, the processing circuitry is configured to: increment a counter in response to a decision to start a service content transfer request for a selected content transfer request, the counter advancing in a first direction in response to the length of the data block associated with the selected content transfer request; and decrement the counter in response to completion of the service of the selected content transfer request, the counter advancing in a second direction in response to the length of the data block associated with the selected content transfer request.

[0014] Additionally, according to embodiments of this disclosure, the processing circuitry is configured to: detect a faulty storage device and take a longer time than a given timeout value to complete the service-selected content transfer request in response to a counter value that is incremented after a time delay from the time delay following the decision to start the service-selected content transfer request.

[0015] Furthermore, according to embodiments of this disclosure, the processing circuitry is configured to operate different counters for corresponding different content transfer requests from different storage devices in the storage device.

[0016] According to further embodiments of this disclosure, the processing circuitry is configured to increment different counters for content transmission requests that begin service at different time periods.

[0017] Furthermore, according to embodiments of the present disclosure, the processing circuitry is configured to: operate at least one counter in response to a content transfer request from the failed storage device, and, in response to the value of the at least one counter operated on the failed storage device, find a given data capacity of the cache currently assigned to the failed storage device for reallocation to at least another storage device.

[0018] According to another embodiment of this disclosure, a data communication apparatus is provided, including a storage subsystem connected to a storage device, and processing circuitry for assigning corresponding weights to the storage device, and for managing content transmission on the storage subsystem using the storage device in response to a content transmission request, while simultaneously initiating the servicing of corresponding content transmission requests in a phased manner in response to the corresponding weights of the storage device, such that while some of the content transmission requests are being served, some of the other pending content transmission requests are queued in at least one pending queue.

[0019] Additionally, according to embodiments of this disclosure, the processing circuitry is configured to: manage content transfer on the storage subsystem using storage devices in response to a content transfer request, and simultaneously begin servicing the corresponding content transfer request in a phased manner in response to the availability of spare data capacity in the storage subsystem.

[0020] Furthermore, according to one embodiment of the present invention, the storage subsystem includes a cache, and the spare data capacity is the spare cache capacity.

[0021] Further according to embodiments of the present disclosure, the processing circuitry is configured to: select appropriate content transfer requests from at least one pending queue for service by the storage subsystem using weighted cyclic selection, wherein the weighted cyclic selection is weighted in response to the weight of the storage device to which the content transfer request is targeted.

[0022] Furthermore, according to embodiments of this disclosure, at least one queue to be processed includes different storage device-specific queues, and the processing circuitry is configured to: in response to the corresponding storage device to which the corresponding content transfer request is directed, assign the corresponding content transfer request to the different storage device-specific queue, and select the corresponding content transfer request from the storage device-specific queue for service using a weighted round-robin selection, the weighting round being weighted in response to the weight of the storage device.

[0023] Furthermore, according to embodiments of this disclosure, the processing circuitry is configured to assign corresponding weights to the storage device in response to the corresponding performance of the storage device.

[0024] Furthermore, according to embodiments of this disclosure, the processing circuitry is configured to: monitor the corresponding performance of the storage device, and dynamically update the corresponding weights assigned to the storage device in response to the monitoring.

[0025] According to another embodiment of this disclosure, a data communication method is provided, comprising: in response to a content transfer request, managing content transfer on a storage subsystem using storage devices; simultaneously initiating service of corresponding content transfer requests in a phased manner in response to the availability of spare data capacity in the storage subsystem; such that while some of the content transfer requests are being serviced, other pending content transfer requests are queued in at least one waiting queue; identifying a given data capacity of the currently assigned storage subsystem and a faulty storage device among the storage devices currently assigned to service at least one content transfer request; and reallocating the given data capacity of the storage subsystem currently assigned to the faulty storage device for use by at least one other storage device while at least one content transfer request assigned to be serviced by the faulty storage device is still waiting to be completed by the faulty storage device.

[0026] According to another embodiment of this disclosure, a data communication method is also provided, including assigning corresponding weights to storage devices, and managing content transmission on a storage subsystem using storage devices in response to content transmission requests, while simultaneously initiating the service of corresponding content transmission requests in a phased manner in response to the corresponding weights of the storage devices, such that while some of the content transmission requests are being serviced, other pending content transmission requests are queued in at least one pending queue. Attached Figure Description

[0027] The present invention will be understood from the following detailed description taken in conjunction with the accompanying drawings, wherein:

[0028] Figure 1 This is a block diagram of a data communication system constructed and operated according to embodiments of the present invention.

[0029] Figure 2 Is included Figure 1 A flowchart of the steps in a method for congestion control of the storage subsystem provided in the system;

[0030] Figure 3 Is included Figure 1 A flowchart of the steps in the pacing method executed in the system;

[0031] Figure 4 It is shown Figure 1 A block diagram of the steps for content transfer requests in the system;

[0032] Figure 5 Is included Figure 1 A flowchart of the steps in the method for providing data capacity credit in the system;

[0033] Figure 6 Is included Figure 1 The flowchart of the steps in the method of using data capacity credit to perform pacing in the system;

[0034] Figure 7 Is included Figure 1 A flowchart of the steps in a method for executing steps based on data throughput rate in a system;

[0035] Figure 8 Is included Figure 1 A flowchart of the steps in the method for providing data throughput rate credit in the system;

[0036] Figure 9 Is included Figure 1 The flowchart of the steps in the method of using data throughput rate credit to execute pace in the system;

[0037] Figure 10 Is included Figure 1The flowchart shows the steps in the method of using weighted round-robin selection to select content delivery requests in the system.

[0038] Figure 11 It provides Figure 10 A block diagram illustrating an example of the method;

[0039] Figure 12 Is included Figure 1 A flowchart of the steps in the method of dynamically allocating weights in the system;

[0040] Figure 13 Is included Figure 1 A flowchart of the steps in a method for reallocating data capacity from a failed storage device in a system;

[0041] Figure 14 It includes Figure 13 The flowchart shows the steps in a sub-method of the method to handle new content transfer requests;

[0042] Figure 15 It includes Figure 13 A flowchart of the steps for completing the service content transfer request in a sub-method of the method;

[0043] Figure 16 It includes Figure 13 The flowchart shows the steps in a sub-method of the method for locating faulty storage devices and reallocating the data capacity of the found faulty storage devices;

[0044] Figure 17 It is shown in Figure 13 A flowchart illustrating the processing of content transfer requests at different time periods and selector indices in the method;

[0045] Figure 18 It is shown in Figure 13 The block diagram shows the method of using a counter to find faulty storage devices.

[0046] Figure 19 It includes Figure 13 The flowchart shows the steps in a sub-method of the method for handling service new content transfer requests, including using a counter.

[0047] Figure 20 It includes Figure 13 A flowchart of a sub-method of the method for processing the completion of a request to serve content using a counter; and

[0048] Figure 21 It includes Figure 13 The flowchart of a sub-method of the method includes steps such as using a counter to find the faulty storage device and reallocating the data capacity of the found faulty storage device. Detailed Implementation

[0049] Overview

[0050] As mentioned earlier, some data communication devices, such as smart network interface cards (NICs), The data processing unit supports reading or writing directly to the attached local peripheral storage device (e.g., an NVMexpress (NVMe) drive) via the storage subsystem in response to remotely initiated requests (e.g., content transfer requests received from the device via a network connected to a data communication device).

[0051] Depending on the level of the content transfer request and the speed and bandwidth of the network, storage subsystem interfaces, and local peripheral storage devices, the storage subsystem may experience congestion, resulting in a poorer response to incoming content transfer requests.

[0052] For example, a storage subsystem may include random access memory (RAM) (e.g., double data rate (DDR) memory) for transferring content between data communication devices and local peripheral storage devices, and vice versa. In some cases, RAM is not a bottleneck because the local peripheral storage device is slow. In other cases, the peripheral storage device is fast enough (e.g., an NVMe drive), and RAM may become a bottleneck because it is slower than the local peripheral storage device and the network port serving the initiator of the content transfer request.

[0053] One approach to this problem is to use a cache (e.g., a last-level cache (LLC)) to copy data between the data communication device and local peripheral storage, and vice versa. However, if the cache becomes full, cached entries (that still need to be used) may be evicted into RAM (e.g., based on Least Recently Used (LRU)). The evicted entries then need to be read from RAM into the cache when necessary, creating a bottleneck. Typically, caching is chosen to serve network bandwidth, and if the data communication device successfully keeps all entries (that need to be used) in the cache, the cache can serve content transfer requests at full line speed. However, once entries are evicted from the cache into RAM, a vicious cycle can form, where it can take a long time to recover to optimal performance, with no entries (that need to be used) being evicted from the cache.

[0054] Therefore, in some cases, if all received content transfer requests are served, the cache becomes a bottleneck, and cache entries (that still need to be used) are evicted from RAM. One solution is for the request initiator not to send content transfer requests. However, this solution is generally impractical because the initiators may come from different entities or otherwise be inconsistent.

[0055] In certain scenarios, other interfaces in the storage subsystem, such as the PCIe interface, can become bottlenecks in transmission. 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 on the NVMe drive may become out of order, leading to high latency and performance degradation. In this situation, while the PCIe interface can handle the level of requests, the associated buffers are full of data that could be better used by another I / O device.

[0056] One solution to the aforementioned problem is to provide a data communication device (e.g., a NIC or smart NIC) that manages content transfer between remote devices and local peripheral storage devices (e.g., NVMe drives) on a storage subsystem. In response to a content transfer request received from a remote device, and simultaneously in response to at least one metric of the storage subsystem, it paces the initiation of servicing the content transfer request so that while some content transfer requests are being served, other pending content transfer requests are queued in one or more pending queues. Metrics may include cache data capacity and / or the data throughput of the storage subsystem (e.g., the peripheral interface).

[0057] One possible pacing solution involves pacing based on the I / O rate of the corresponding I / O device (e.g., I / O interface). For example, data throughput rate credits are assigned to the corresponding peripheral interfaces, such that the use of the corresponding peripheral interface is limited by the availability of the corresponding data throughput rate credit. For instance, if there are three peripheral interfaces with data throughput rates (e.g., I / O rates) of X GB / s, Y GB / s, and Z GB / s, and the line speed is greater than X + Y + Z, then content transfer requests can be queued in three corresponding queues on the three peripheral interfaces based on which peripheral interface the content transfer request should be routed to, and credits A, B, and C proportional to X, Y, and Z can be assigned to the three corresponding queues respectively. Requests in the queues are then processed based on the available data throughput rate credit for the corresponding queue. However, this type of pacing is a passive approach, and reacting to changes in I / O rates can lead to wasted storage subsystem resources in some cases.

[0058] Another possible pacing solution to the above problem is to pace in response to the available data capacity of the cache. For example, if there is spare storage capacity in the cache (e.g., a portion of the cache is not currently being used to serve content transfer requests), the spare capacity can be used to serve one or more new content transfer requests (depending on the size of the spare capacity). If there is no free capacity, incoming content transfer requests will be queued until space capacity becomes available. Pacing can be performed based on data capacity credits. Credits can be provided based on the size of the cache. For example, if the cache size is X and Y transfer requests can be served simultaneously, Y credits are provided. When credits are available, content transfer requests from the queue begin to be served. Credits are then removed from availability, and availability returns when content transfer requests are completed and ready to be served.

[0059] If storage devices begin to malfunction, the above-described step-by-step solution may not be optimal. For example, if a storage device is assigned credits and then becomes stuck, the credits assigned to that storage device will remain assigned even though the storage device is inactive. Therefore, cached data capacity is effectively wasted while the storage device remains inactive.

[0060] Therefore, embodiments of the present invention solve the aforementioned problems by identifying faulty storage devices and, when content transfer requests assigned to the faulty storage device are still waiting for the faulty storage device to complete, reallocating the data capacity currently assigned to the faulty storage device for use by one or more other storage devices. In the disclosed embodiments, a counter can be used to track the cache data capacity currently assigned to storage devices and to identify storage devices that are stuck or otherwise fail.

[0061] When some storage devices outperform others, certain pacing solutions may not be optimal. In some cases, lower-performance storage devices consume too many resources of the storage subsystem, resources that could be used more efficiently by higher-performance storage devices.

[0062] In some embodiments, the above problem can be solved by assigning appropriate weights to storage devices and, in response to content transfer requests, managing content transfer on the storage subsystem using storage devices, while simultaneously initiating the service of the corresponding content transfer requests in response to the appropriate weights of the storage devices.

[0063] In some embodiments, weighted round-robin selection is used to select appropriate content delivery requests for servicing. The weighted round-robin is weighted in response to the weight of the storage device to which the content delivery request is targeted. For example, appropriate content delivery requests can be assigned to different storage device-specific queues in response to the appropriate storage device to which the appropriate content delivery request is targeted. Weighted round-robin selection from the storage device-specific queues can then be used to select appropriate content delivery requests for servicing. For example, if storage device A has a weight of 1, storage device B has a weight of 2, and storage device C has a weight of 2, then 1 content delivery request is selected from the queue of storage device A, 2 content delivery requests are selected from the queue of storage device B, and then 2 content delivery requests are selected from the queue of storage device C based on the remaining data capacity of the storage subsystem.

[0064] System Description

[0065] Now for reference Figure 1 This is a block diagram of a data communication system 10 constructed and operated 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. The content transfer request may be an RDMA request, which is only an example. 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 from the remote device 16 to write to the local peripheral storage device 18 and / or send data read from the local peripheral storage device 18 to the remote device 16.

[0066] The data communication device 12 includes a network interface 20, a packet processing pipeline 22, processing circuitry 24, and a storage subsystem 26. The network interface 20 includes one or more ports 28 for connecting to a packet data network 14. The processing pipeline 22 is configured to process received network packets and process data for transmission in packet form over the network 14. The packet processing pipeline 22 may include a PHY chip, a MAC chip, and other components.

[0067] Processing circuit 24 can further process the received packet data, such as received content transfer requests. Processing circuit 24 may include one or more processors, such as tile processors or ARM processor arrays. The function of processing circuit 24 will be described below. Figure 2-9 To describe in more detail.

[0068] In practice, some or all of the functions of the processing circuitry 24 may be combined in a single physical component, or alternatively, implemented using multiple physical components. These physical components may include hardwired or programmable devices, or a combination of both. In some embodiments, at least some functions of the processing circuitry 24 may be executed by a programmable processor under the control of suitable software. For example, the software may be downloaded to the device electronically via a network. Alternatively or additionally, the software may be stored in a tangible, non-transitory computer-readable storage medium, such as optical, magnetic, or electronic memory.

[0069] Storage subsystem 26 includes memory subsystem 32 and one or more peripheral interfaces 30. Storage subsystem 26 is configured to connect to local peripheral storage device 18, for example, via peripheral interface 30 (e.g., a PCIe interface). Memory subsystem 32 includes cache 34 and random access memory (RAM) 36. Memory subsystem 32 is configured to eject overflows from cache 34 to RAM 36. Data is read from and written to local peripheral storage device 18 via cache 34 and peripheral interface 30. For example, in service of a specific content transfer request, data written to or read from one of local peripheral storage devices 18 is transferred via portion 38 of cache 34. Identical portions 38 of cache 34 (e.g., identical cache lines or multiple identical cache lines) can be used to transfer several blocks of data associated with the same content transfer request one after another. For example, a first data block of a content transfer request may be read from one of the local peripheral storage devices 18 into a portion 38-1 of cache 34, and then copied from portion 38-1 of cache 34 to packet processing pipeline 22 for transmission over network 14 to the initiator of the content transfer request. A second data block of the same content transfer request may then be read from the same local peripheral storage device 18 into the same portion 38-1 of cache 34, and then copied from that portion 38-1 of cache 34 to packet processing pipeline 22 for transmission over network 14 to the initiator of the content transfer request, and so on. In other embodiments, different portions 38 of cache 34 may be used to transfer different blocks associated with the same content transfer request.

[0070] Now for reference Figure 2 Its process Figure 21 Including Figure 1 The steps in the method for congestion control of the storage subsystem provided in System 10 are also referenced. Figure 1 Network interface 20 is configured to receive (box 23) content transfer requests from remote device 16 over packet data network 14 via one or more ports 28. The content transfer requests are processed by packet processing pipeline 22 and received by processing circuitry 24.

[0071] Processing circuitry 24 is configured to manage content transfer between remote device 16 and local peripheral storage device 18 (box 25) in response to content transfer requests, while performing storage subsystem congestion control on storage subsystem 26 in a manner transparent to storage subsystem 26.

[0072] In some embodiments, processing circuitry 24 is configured to manage content transfer between remote device 16 and local peripheral storage device 18 via peripheral interface 30 and cache 34 in response to a content transfer request. The step in block 25 is performed when the storage subsystem 26 initiates service of a content transfer request in a pace (block 27) in response to one or more metrics, such that while some content transfer requests are being served, other pending content transfer requests are queued in at least one processing queue (block 29). The term “commencement of serving” as used in the specification and claims is defined as the initiation of transmission of requested data by storage subsystem 26 in response to one of the content transfer requests, such that data not in that content transfer request is transmitted until the service of the initiated content transfer request is initiated. In other words, the initiation of transmission of requested data in a content transfer request is performed in response to metrics of storage subsystem 26 (e.g., cache 34 and / or peripheral interface 30). Metrics may include the data capacity of cache 34 and / or the data throughput of storage subsystem 26 (e.g., peripheral interface 30).

[0073] Now for reference Figure 3 It is flowchart 31, which includes Figure 1 The steps in the method of executing the pacing in System 10. Also refer to... Figure 1 Processing circuit 24 is configured (block 33) to begin servicing corresponding content transfer requests in response to the spare data capacity of cache 34.

[0074] Processing circuitry 24 is configured to provide (box 35) data capacity credits in response to the size of the cache. For example, if the cache has X portions 38 that can be used to simultaneously serve X corresponding content transfer requests, then processing circuitry 24 is configured to provide X data capacity credits. (See reference) Figure 5 The steps in block 35 are described in more detail. Processing circuitry 24 is configured to initiate service (block 37) in response to the availability of data capacity credits for the corresponding content transfer request. Reference Figure 6 The steps in box 37 are described in more detail.

[0075] Now for reference Figure 4 and Figure 5 . Figure 4 It is shown Figure 1 A block diagram 40 shows the steps of the service content transmission request 42 in system 10. Figure 5 It is flowchart 50, including providing Figure 1 The steps in the method of data capacity credit 46 in system 10.

[0076] As previously described, cache 34 includes corresponding cache portions 38. Processing circuitry 24 can be configured to assign corresponding data capacity credits 46 (box 52) to corresponding cache portions 38, such that the use of the corresponding cache portion 38 is limited to the availability of the corresponding data capacity credit 46. For example, if cache 34 has n cache portions, such as S1 to Sn, then processing circuitry 24 assigns n data capacity credits 46, with C1 to Cn corresponding to the n cache portions 38. If data capacity credit C2 is available to serve one of the content transfer requests 42, then cache portion S2 is used to serve that request.

[0077] In some embodiments, all content transmission requests are queued in a single processing queue 44, and this queue is assigned all available data capacity credits 46. In some embodiments, different processing queues 44 exist, and the processing circuitry 24 is configured to distribute (box 54) the provided data capacity credits 46 among the different processing queues 44. For example, credits C1 to C5 are assigned to processing queue 44-1, credits C6 to C10 are assigned to processing queue 44-2, and credits C11 to C15 are assigned to processing queue 44-3. For example, credits may be allocated equally or unequally to different queues based on known or anticipated demand for those queues. Figure 4 Three pending queues 44 corresponding to three local peripheral storage devices 18 are shown, such that each pending queue 44 serves its corresponding local peripheral storage device 18. For example, a content service request 42 for local peripheral storage device 18-1 is queued in pending queue 44-1, a content service request 42 for local peripheral storage device 18-2 is queued in pending queue 44-2, and so on. Credits 46 assigned to pending queue 44-1 are used by content transfer requests 42 queued in pending queue 44-1 when they become available, and so on. For example, when one of the content transfer requests 42 queued in pending queue 44-1 is being served, one of the available data capacity credits 46 allocated to pending queue 44-1 is removed from availability and returned to be available for content transfer requests 42 queued in pending queue 44-1 when the content transfer request 42 has been served, as referenced. Figure 6 A more detailed description.

[0078] Figure 4 The example illustrates a pending queue 44 associated with each local peripheral storage device 18. In some embodiments, each local peripheral storage device 18 may be associated with read and write queues.

[0079] Different pending queues 44 may include any one or more of the following: reading pending queues and writing pending queues; 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.

[0080] The initial allocation of credits 46 among different queues 44 may not be optimal. For example, if there are different queues 44 for different local peripheral storage devices 18, and one or more of the local peripheral storage devices 18 are slower than the others, it may be more efficient to allocate fewer credits 46 to the slower devices 18. Another example could be a drive failure. Therefore, in some embodiments, processing circuitry 24 is configured to analyze the credit usage of different queues 44 (e.g., based on round-robin) and dynamically reallocate (box 56) data capacity credits 46 among the different queues 44 in response to the use of credits 46 by the different queues 44. If credits 46 are being used rapidly, it indicates that the associated local peripheral storage device 18 is working effectively and should be assigned more credits 46 than the slower peripheral storage device 18 that is using credits more slowly.

[0081] Now for reference Figure 6 It is flowchart 60, which includes the use of Figure 1 The data capacity credit 46 in system 10 is used to execute the steps in the step-by-step method. See also... Figure 4 .

[0082] Processing circuit 24 is configured to process data from group processing pipeline 22 ( Figure 1 The system receives content transfer request 42 and, in response to content transfer request 42, assigns content transfer request 42 to the corresponding processing queue 44. For example, a request to read content from or write content to local peripheral storage device 18-1 will be queued in processing queue 44-1, and so on.

[0083] Processing circuit 24 is configured to begin servicing (box 62) one of the data capacity credits 46 becomes available (in the processing queue 44 where content transfer request 42 is queued). Processing circuit 24 is configured to remove (box 64) the available data capacity credit 46 from the available queue in response to the content transfer request 42 currently being served. Processing circuit 24 is configured to return (box 66) the removed data capacity credit 46 to the available queue in response to the content transfer request 42 completing its service.

[0084] Now for reference Figure 7It is flowchart 70, which includes Figure 1 The steps in the method for pacing based on data throughput rate in System 10. Also refer to... Figure 1 Processing circuitry 24 is configured to pace the initiation of service (box 72) of a corresponding content transfer request in response to the data throughput rate (e.g., I / O rate) of the respective peripheral interface 30 and network interface 20.

[0085] Processing circuitry 24 is configured to provide (block 74) data throughput credits in response to the data throughput and line speed of peripheral interface 30. If the cumulative data throughput of peripheral interface 30 is greater than the line speed, the overall data throughput is limited by the line speed; otherwise, the overall data throughput is limited by the data throughput of peripheral interface 30. Processing circuitry 24 is configured to pace the initiation of servicing (block 76) of corresponding content transfer requests in response to the availability of data throughput rate credits (per pending queue). For example, one credit (or more credits) is allocated for each fixed time period to perform an input / output operation of a specific size. In some embodiments, different numbers of credits may be allocated to different pending queues for each fixed time period. In other embodiments, the same number of credits 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.

[0086] For example, using rounded numbers, for a data throughput of 200 gigabits per second available on one or more peripheral interfaces 30, a total content transfer of 128 kilobytes is allowed to be performed every 5 microseconds via peripheral interface 30. Therefore, the pending queue is analyzed every 5 microseconds, and service is initiated for content transfer requests totaling up to 128 KB of data transfer. For instance, while a new credit becomes available within 5 or 10 microseconds, other requests remain in the pending queue for future service.

[0087] For example, if there are three peripheral interfaces 30 with data throughput rates (e.g., I / O rates) of X GB / s, Y GB / s, and Z GB / s, and the line speed is greater than X plus Y plus Z, then content transfer requests can be queued in three corresponding 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 queues of the three peripheral interfaces 30 can be allocated credits A, B, and C respectively in the proportions of X, Y, and X.

[0088] Now for reference Figure 8 It is flowchart 80, including Figure 1 The steps in the method for providing data throughput rate credit in System 10 are also referenced. Figure 1Processing circuitry 24 is configured to assign (box 82) corresponding data throughput rate credits (intermittently, e.g., periodically) to corresponding peripheral interfaces 30, thereby limiting the use of the corresponding peripheral interface 30 to the availability of the corresponding data throughput rate credit. For example, a data throughput credit assigned to one of the peripheral interfaces 30 may be used for a content transfer request that will use that peripheral interface to transmit data, and so on. In some embodiments, data throughput credits may be assigned to different groups of peripheral interfaces 30.

[0089] In some embodiments, processing circuitry 24 is configured to distribute (block 84) the provided data throughput rate credits among different pending queues (intermittently, e.g., periodically). Different pending queues may include any one or more of the following: 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, each peripheral interface 30 may have a pending queue, or each peripheral interface 30 may have a pending read queue and a pending write queue.

[0090] Processing circuit 24 is configured to analyze the use of credits by different queues to be processed (e.g., on a round-robin basis) and, in response to the actual rate at which data is transmitted and other metrics associated with content transmission requests in the queues to be processed, allocate data throughput credits among the different queues to be processed.

[0091] Processing circuit 24 is configured to pace content transmission requests according to a certain "pacing rate". The pacing is usually not fixed and its feedback can be increased or decreased. This feedback can be based on different current parameters of data communication device 12.

[0092] In some embodiments, processing circuitry 24 may measure the actual implemented data throughput rate of the data communication device 12. If the pacing rate is higher than the measured implemented data throughput rate, this will lead to an increase in in-flight data and eventually result in cache eviction and data discarding. Therefore, the pacing rate will be reduced to match the actual measured frequency. However, the pacing rate may be adjusted to attempt to increase it to the maximum theoretical rate, as the transient effects that caused the actual frequency to decrease may have already passed.

[0093] In other embodiments, processing circuitry 24 can measure known in-flight data in data communication device 12. If the total in-flight data is increasing, it means that the actual data throughput rate is lower than the current pace rate, and therefore the pace rate is reduced. When the total flight data in data communication device 12 decreases, the pace rate can be increased again.

[0094] Now for reference Figure 9 It is flowchart 90, which includes Figure 1 System 10 uses data throughput rate credits to execute steps in the pacing method. Processing circuit 24 ( Figure 1 The processing circuit 24 is configured to begin serving (box 92) one or more content delivery requests in response to one of the available data throughput rate credits (in the pending queue in which the content delivery request is queued). The processing circuit 24 is configured to remove (box 94) available data throughput rate credits from the availability list in response to a content delivery request currently being served.

[0095] Now for reference Figure 10 and 11 . Figure 10 It is flowchart 100, including Figure 1 The system 10 uses a weighted round-robin selection method in the step of selecting the content transfer request 42. Figure 11 It provides Figure 10 A flowchart illustrating a method example.

[0096] Processing circuit 24 ( Figure 1 One or more pacemakers can be operated to pace the service content transmission request 42. In some embodiments, the pacemakers can serve different storage devices 18. Figure 1 Each pacemaker serves multiple storage devices 18. Some storage devices 18 may have better performance than others, so selecting content transfer requests 42 to serve all storage devices 18 equally may result in storage subsystem 26 ( Figure 1 The suboptimal use of resources.

[0097] Therefore, processing circuitry 24 is configured to assign (box 102) appropriate weights 110 to storage device 18. In some embodiments, processing circuitry 24 is configured to assign appropriate weights 110 to storage device 18 in response to appropriate performance characteristics (e.g., performance speed, capacity, transfer rate, average access time, interface type).

[0098] Processing circuit 24 ( Figure 1 ) is configured to manage storage device 18 on storage subsystem 26 in response to content transfer request 42 (e.g., on remote device 16). Figure 1 Content transfer between storage device 18 and storage device 18 (box 104) and, in response to the corresponding weight 110 of storage device 18, the corresponding content transfer request 42 in the content transfer request 42 is started to be served, such that while some of the content transfer requests 42 are being served, some of the other pending content transfer requests 42 are queued in the pending queue 44.

[0099] In some embodiments, the processing circuitry 24 is configured to manage content transfer on the storage subsystem 26 in response to a content transfer request 42, while also responding to the storage subsystem's spare data capacity (e.g., Figure 1 The availability of the cache (34 spare cache capacity) and the corresponding weight of the storage device (18) are used to pace the start of serving the corresponding content transfer request (42). This can be referenced below. Figure 4 The described data capacity is credit 46, or use the reference. Figures 7 to 9 The described data throughput rate credit is used to achieve the pace.

[0100] In some embodiments, the processing circuitry 24 is configured to use a weighted round-robin selection (block 112) from the processing queue 44 to select (block 108) the appropriate content transfer request 42 for service by the storage subsystem 26. Figure 4 The weighted round-robin method is weighted in response to the weight 110 of the storage device 18 to which the content transfer request 42 is targeted.

[0101] In some embodiments, the queue to be processed 44 includes different storage device-specific queues 44. Figure 11 In the example, four storage device-specific queues 44 are shown: storage device queue 44-1 for storage device A, storage device queue 44-2 for storage device B, storage device queue 44-3 for storage device C, and storage device queue 44-4 for storage device D. Figure 11 In the example, storage device A is assigned a weight of 1, storage device B is assigned a weight of 3, storage device C is assigned a weight of 2, and storage device D is assigned a weight of 1.

[0102] Processing circuitry 24 is configured to assign (box 106) the corresponding content transfer request 42 to the corresponding storage device 18 in response to the corresponding content transfer request 42. For example, content transfer request 42 for storage device A (in...) Figure 11 (Indicated by the letter "A") queued in storage device queue 44-1, etc. Processing circuitry 24 is configured to select (box 108) the appropriate content transfer request 42 from storage device-specific queue 44 for servicing using weighted round-robin selection (box 112), wherein the weighted round-robin is weighted in response to the weight 110 of the storage device. Figure 11In the example, when the spare data capacity credit 46 becomes available, for example, in response to storage device A with a weight of 1, one content transfer request 42 is selected from the queue 44-1, then three content transfer requests 42 are selected; in response to storage device B with a weight of 3, one content transfer request 42 is selected from the queue 44-2; then in response to storage device C with a weight of 2, two content transfer requests 42 are selected from the queue 44-3; then one content transfer request 42 is selected; in response to storage device D with a weight of 1, one content transfer request 42 is selected from the queue 44-4, and so on. The selection then continues in a round-robin manner based on the spare capacity of storage subsystem 26 and the queued content transfer requests 42. Therefore, compared to the lower-performance storage device 18, the higher-performance (e.g., faster) storage device 18 receives more content transfer requests 42, resulting in a significant performance improvement in content transfer through storage subsystem 26. A failed storage device 18 can be temporarily assigned a weight of zero 110 until storage device 18 is no longer failed.

[0103] Now for reference Figure 12 It is flowchart 120, which includes Figure 1 The steps in the method of dynamically assigning weights 110 in System 10. Also refer to... Figure 11 Processing circuit 24 ( Figure 1 It is configured to: monitor (box 122) the corresponding performance of storage device 18; and dynamically update (box 124) the corresponding weights 110 assigned to storage device 18 in response to monitoring.

[0104] If one or more storage devices 18 begin to malfunction, refer to the above. Figure 3-6 The described pacing method may be suboptimal. For example, if one of the storage devices 18 is assigned credit 46 and then becomes stuck, the credit 46 assigned to the stuck storage device 18 remains assigned to the stuck storage device 18, even if the stuck storage device 18 is inactive. Therefore, the data capacity of the cache 34 is effectively wasted while the storage device 18 is inactive. Therefore, embodiments of the invention are referred to below. Figure 13-21 A system and method are described for locating a failed storage device 18 and reallocating the data capacity currently assigned to the failed storage device 18 for use by one or more other storage devices, while content transfer requests assigned to be served by the failed storage device 18 still await completion by the failed storage device 18. (See reference...) Figure 17-21 In the disclosed embodiments described, a counter is used to track the cache data capacity currently assigned to storage device 18 and to detect storage device 18 that is stuck or otherwise malfunctioning.

[0105] Now for reference Figure 13 It is flowchart 130, including from Figure 1 The steps in the method for reallocating data capacity in the faulty storage device 18 of system 10.

[0106] Processing circuit 24 ( Figure 1 ) is configured to respond to a content transfer (box 132) request 42 on the content transfer management storage subsystem 26 with storage device 18 (e.g., between storage device 18 and remote device 16). Figure 4 Simultaneously, in response to the availability of spare data capacity of storage subsystem 26 (e.g., spare cache capacity of cache 34), the corresponding content transfer request 42 is started to be served in a phased manner, such that some content transfer requests 42 are being served at the same time, while other pending content transfer requests 42 are queued in waiting queue 44.

[0107] Processing circuitry 24 is configured to locate (box 134) a faulty storage device whose currently assigned storage subsystem 26 has a given data capacity (e.g., via one or more data capacity credits 46). Figure 4 (in storage device 18), and it is currently assigned to serve one or more content transfer requests 42. (See reference) Figure 16 and 21 Describe the location of the faulty storage device in more detail 18.

[0108] Each storage device 18 can be associated with a status flag. For a correctly functioning storage device 18, the status flag can be equal to "ready" (or equivalent descriptor), while for a faulty storage device 18, the status flag can be equal to "malfunctioning" (or equivalent descriptor).

[0109] Processing circuitry 24 is configured to reallocate (box 136) the data capacity currently assigned to the storage subsystem 26 of the found faulty storage device 18 for use by one or more other storage devices 18, while content transfer requests assigned to be served by the faulty storage device 18 are still / (being) awaiting completion by the faulty storage device 18. Reference Figure 16 , 18 Section 21 describes the redistribution of data capacity in more detail.

[0110] Now for reference Figure 14 It is flowchart 140, including Figure 13 The steps in the sub-methods of the method are used to process new content transfer requests 42. The sub-methods described below can be executed when one or more storage devices 18 fail (and the associated status flag is equal to "failed") or when all storage devices 18 are functioning normally (and have a status flag equal to "ready").

[0111] Processing circuitry 24 is configured to receive (box 142) a new content transfer request 42. In decision box 144, processing circuitry 24 is configured to check the status of the storage device 18 to which the new content transfer request 42 is addressed. If the storage device 18 has a "fault" flag status, processing circuitry 24 is configured to add (box 146) the new content transfer request 42 to a processing queue 44 or one of the processing queues 44 (e.g., the processing queue 44 of the storage device 18 or one of the processing queues 44 of the storage device).

[0112] If the storage device 18 has a "ready" flag state, the processing circuitry 24 is configured to check (in decision block 147) whether the storage subsystem 26 has sufficient available spare data capacity (e.g., spare data capacity credit 46) to serve the new content transfer request 42. If there is insufficient available spare data capacity to serve the new content transfer request 42, the processing circuitry 24 is configured to add (block 146) the new content transfer request 42 to either the processing queue 44 or one of the processing queues 44 (e.g., the processing queue 44 for the storage device 18 or one of the processing queues 44 for the storage device).

[0113] If storage subsystem 26 has sufficient available spare data capacity to serve the new content transfer request 42, processing circuitry 24 is configured to: assign (box 148) data capacity (e.g., data capacity credit 46) (from the spare data capacity pool) to the new content transfer request 42; and begin serving (box 149) the new content transfer request 42 without first adding the new content transfer request 42 to the pending queue 44.

[0114] Now for reference Figure 15 It is flowchart 150, including Figure 13 The process circuitry 24 is configured to process one of the content transfer requests 42 that has been completed and serviced by the sub-method of the method. It is configured to detect (box 152) that one of the content transfer requests 42 has been completed and serviced by the storage subsystem 26 (e.g., in response to receiving a completion notification from the storage subsystem 26). In decision block 154, the processing circuitry 24 is configured to check the status flag of the storage device 18 associated with the completed content transfer request 42. If the status flag is equal to "failure," the sub-method ends (box 156). If the status flag is equal to "ready," the processing circuitry 24 is configured to add (box 158) the data capacity previously assigned to the completed content transfer request 42 back to the spare data capacity pool. For example, if X data capacity credits 46 were assigned to the completed content transfer request 42, then X credits are now added back to the spare data capacity pool for assignment to other content transfer requests 42 waiting in the processing queue 44.

[0115] Now for reference Figure 16 It is flowchart 160, which includes Figure 13 The steps in the sub-methods of the method are to locate the faulty storage device and reallocate the data capacity of the located faulty storage device. The steps in boxes 162-167 described below describe processing circuitry 24, which is configured to locate the faulty storage device in response to the faulty storage device taking longer than a given timeout value to complete the service content transfer request 42.

[0116] Processing circuitry 24 is configured to select one of the storage devices 18 and check (block 162) the processing timing of the content transfer request 42 being processed by the selected storage device 18. In decision block 163, processing circuitry 24 is configured to determine whether the selected storage device 18 has taken longer than a given timeout to complete servicing the content transfer request 42. If the selected storage device 18 has taken longer than a given timeout to complete servicing the content transfer request 42, processing circuitry 24 is configured (in decision block 164) to determine the status of the selected storage device 18. If the status flag of the selected storage device 18 is already equal to "fault", then the process continues to the steps in block 165, as described below. If the status flag of the selected storage device 18 is equal to "ready", the processing circuit 24 is configured to: change (box 166) the status flag of the selected storage device 18 to indicate that the selected storage device 18 has failed; and reallocate (box 167) the previously assigned data capacity of the storage subsystem 26 currently assigned to the found failed storage device 18 for use by one or more other storage devices 18, while assigning content transfer requests to be completed by the failed storage device 18 are still / (being) waiting for the failed storage device 18 to complete.

[0117] Returning to decision box 163, if the selected storage device 18 does not spend more than the given timeout period to complete servicing the content transfer request 42, then processing circuitry 24 is configured (at decision box 168) to determine the status of the selected storage device 18. If the status flag of the selected storage device 18 is equal to "Ready," then processing continues to the steps in box 165, as described below. If the status flag of the selected storage device 18 is equal to "Fault," indicating that the selected storage device has started operating again and has processed any pending content transfer requests 42, then processing circuitry 24 is configured to change (box 169) the status flag of the selected storage device 18 to "Ready," indicating that the selected storage device 18 is operating correctly, and processing continues to the steps in box 165, as described below.

[0118] In step 165, processing circuitry 24 is configured to select another storage device 18 and continue processing step 162. Step 165 is repeated until all storage devices 18 have been selected. The reference is repeated periodically. Figure 16The described sub-method.

[0119] Now for reference Figure 17 It is shown in Figure 13 The block diagram shows how the content transfer request 42 is processed at different time periods and selector index 170 in the method.

[0120] Figure 17 The time periods T1 to T4 are displayed. The selector index alternates between 0 and 1 within consecutive time periods. For example, in time period T1, the selector index is set to 0 (box 170-1). In time period T2, the selector index is set to 1 (box 170-2). In time period T3, the selector index is set to 0 (box 170-3). In time period T4, the selector index is set to 1 (box 170-4).

[0121] Processing circuitry 24 uses counters to track storage devices 18 that fail within different time periods. In some embodiments, processing circuitry 24 uses two counters (for each storage device 18) to track content transfer requests 42 processed by each storage device 18, and these two counters are used in alternating time periods according to a selector index corresponding to the time. For example, counter 0 increments during the time period when selector period 0 is active, and counter 1 increments during the time period when selector period 1 is active. (See reference...) Figure 18 The use of the counter is described in more detail.

[0122] Figure 17 The diagram shows that content transfer request 42-1 is served by storage device A starting in time period T1, content transfer request 42-2 is served by storage device C starting in time period T1, content transfer request 42-3 is served by storage device D starting in time period T2, content transfer request 42-4 is served by storage device A starting in time period T2, content transfer request 42-5 is served by storage device B starting in time period T3, content transfer request 42-6 is served by storage device A starting in time period T3, content transfer request 42-7 is served by storage device B starting in time period T3, and content transfer request 42-8 is served by storage device C starting in time period T4.

[0123] Now for reference Figure 18 It is shown in Figure 13 The method uses counters 180 and 181 to locate faulty storage devices. Counter 180 increments during the time period of selector index 0, and counter 181 increments during the time period of selector index 1.

[0124] Figure 18Two content transfer requests 42 are shown, which begin service in time period T1 and time period T2, respectively. In time period T1, content transfer request 42-1 begins to be serviced by storage device A. Content transfer request 42-1 has an associated data length of 4, which represents the amount of data to be transferred between storage device A and one of remote devices 16. Since the selector index in time period T1 is equal to 0, counter 180 increments by 4 (from 0) and now has a value of 4 (box 182-1). Counter 181 has a value equal to 0 in time period T1 (box 184-1). The data length associated with content transfer request 42-1, the ID of storage device 18, and the selector index in time period T1 are stored as metadata for content transfer request 42-1.

[0125] In time period T2, content transfer request 42-4 begins to be serviced by storage device A. Content transfer request 42-4 has an associated data length of 6, which represents the amount of data to be transferred between storage device A and one of remote devices 16. Since the selector index in time period T2 is equal to 1, counter 181 increments by 6 (from 0) and now has a value of 6 (box 184-2). Counter 180 still has a value of 4 in time period T2 (box 182-2). The data length associated with content transfer request 42-4, the ID of storage device 18, and the selector index in time period T2 are stored as metadata for content transfer request 42-4.

[0126] When service content transfer request 42-1 is completed, the metadata of content transfer request 42-1 is retrieved (to identify a counter used to track content transfer request 42-1 and find the data length associated with content transfer request 42-1), and counter 180 is decremented by the associated data length of content transfer request 42-1, i.e., 4. Similarly, when service content transfer request 42-4 is completed, the metadata of content transfer request 42-4 is retrieved, and counter 181 is decremented by the associated data length of transfer request 42, i.e., 6.

[0127] The length of the time period (e.g., T1, T2, etc.) is typically set to be equal to the size of a given timeout used to determine whether storage device 18 has failed. The timeout may depend on the performance of the storage device and may be a user-configurable parameter. This time may depend on the worst-case latency experienced by the connected storage device. Therefore, if storage device A is operating normally, counter 180 is expected to return to zero within the time period following its increment. Similarly, if storage device A is operating normally, counter 181 is expected to return to zero within the time period following its increment. Figure 18 In the example, counter 180 is expected to reach zero within time period T2.

[0128] exist Figure 18In the example, processing circuit 24 checks counter 180 near the end of time period T2 and finds that counter 180 is non-zero. Therefore, processing circuit 24 determines that storage device A is faulty. The data capacity currently assigned to storage subsystem 26 of storage device A (by the value of counter 180) Figure 18 In example 4), add the value of counter 181. Figure 18 In the example, 6)) is reassigned for use by other storage devices 18.

[0129] Now for reference Figure 19 It is flowchart 190, including Figure 13 The steps in the sub-methods of the method to process the new content transfer request 42 include using counters 180 and 181.

[0130] Processing circuit 24 is configured to, in response to a decision to begin servicing the selected content transfer request 42, begin servicing (box 192) the selected content transfer request 42 and increment (box 194) one of counters 180 and 181 (depending on the selector index of the time period for which the counter is incremented). Counter 180 increments during the time period of selector index 0, and counter 181 increments during the time period of selector index 1. Counters 180 and 181 advance in a first direction in response to the length of the data block associated with the selected content transfer request 42.

[0131] Therefore, processing circuit 24 is configured to increment different counters 180 and 181 for content transfer requests 42 that begin service for different time periods associated with different selector indices. Processing circuit 24 is configured to operate different counters 180 and 181 for content transfer requests 42 for corresponding different storage devices 18 (faulty and / or normally operating storage devices 18). For example, two counters can be used to track each storage device 18. For example, storage device A may have two counters (one incrementing during the time period when selector index 0, and one incrementing during the time period when selector index 1), storage device B may have two counters (one incrementing during the time period when selector index 0, and one incrementing during the time period when selector index 1), and so on.

[0132] Now for reference Figure 20 It is flowchart 200, including Figure 13 The steps in the sub-methods of the method to handle the completion of the service content transfer request include the use of a counter.

[0133] Processing circuit 24 is configured to detect (box 202) that one of the content transfer requests 42 has completed the service provided by storage subsystem 26 (e.g., in response to receiving a completion notification from storage subsystem 26). Processing circuit 24 is configured to retrieve (box 203) the storage device ID, selector index, and data length from the metadata of the completed content transfer request 42. Processing circuit 24 is configured to decrement (box 204) a counter in response to the completion of the serviced content transfer request (selected from counter 180 or counter 181 in response to the retrieved selector index and retrieved storage device ID). In response to the length of the data block associated with the completed content transfer request 42 (retrieved from the metadata), the counter is decremented in a second direction (with...). Figure 19 The first direction used in step 194 is opposite to the first direction.

[0134] In decision block 206, processing circuitry 24 is configured to check the status flag of storage device 18 associated with the completed content transfer request 42. If the status flag equals "failure," the sub-method terminates (block 207). If the status flag equals "ready," processing circuitry 24 is configured to add (block 208) the data capacity previously assigned to the completed content transfer request 42 to the spare data capacity pool based on the length of the data block (retrieved from metadata). For example, if X data capacity credits 46 were initially assigned to the completed content transfer request 42, then X credits are now added back to the spare data capacity pool for assignment to other content transfer requests 42 waiting in the processing queue 44.

[0135] Now for reference Figure 21 It is flowchart 210, including Figure 13 The steps in the sub-methods of the method to locate the faulty storage device and reallocate the data capacity of the located faulty storage device include using counters 180 and 181.

[0136] The steps in boxes 212-220 described below describe processing circuitry 24 configured to find that one of the storage devices 18 has failed and, in response to the value of a counter (counter 180 or counter 181) after a time delay following the decision to begin servicing the selected content transfer request 42, spend a longer time than a given timeout value to complete servicing the selected content transfer request 42. The steps in box 220 described below also describe processing circuitry 24 configured to find the given data capacity of the cache currently assigned to the failed storage device 18 in response to the values ​​of counters 180, 181 operating for the failed storage device 18, in order to reallocate it to another storage device 18.

[0137] The steps in boxes 212-230 will now be described in more detail.

[0138] The steps in boxes 212-230 are typically performed before updating the selector index to the next selector index. For example, if the current selector index is 0, then the next selector index will be 1; if the current selector index is 1, then the next selector index will be 0.

[0139] Processing circuit 24 is configured to select one of the storage devices 18 and check (box 212) the counter value of the counter for the selected storage device 18 for the next selector index (i.e., the selector index for the next time period). In decision box 214, processing circuit 24 is configured to determine whether the checked counter value (for the counter of the next selector index) is equal to 0. If the checked counter value is not equal to zero (e.g., greater than zero), indicating that the selected storage device 18 takes longer than the given timeout to complete servicing the selected content transfer request 42, then processing circuit 24 is configured (in decision box 216) to determine the status of the selected storage device 18. If the status flag of the selected storage device 18 is already equal to "fault", then processing continues to the steps of box 220, as described below. If the status flag of the selected storage device 18 is equal to "Ready", the processing circuitry 24 is configured to change (box 218) the status flag of the selected storage device 18 to indicate that the selected storage device 18 has failed and reallocate (box 220) the previously assigned data capacity of the storage subsystem 26 currently assigned to the found failed storage device 18 based on the values ​​of the two counters 180 and 181 of the selected storage device, returning it to the spare data capacity pool for use by one or more other storage devices 18. For example, if the value of counter 180 is equal to 4 and the value of counter 181 is equal to 6, then 10 cells are reallocated back to the spare data capacity pool.

[0140] Returning to decision box 214, if the checked counter value is equal to 0, processing circuitry 24 is configured (in decision box 222) to determine the status of the selected storage device 18. If the status flag of the selected storage device 18 is equal to "Ready," processing continues to the steps in box 220, as described below. If the status flag of the selected storage device 18 is equal to "Faulty," the processor is configured (in decision box 224) to check if the counter of the current selector index is equal to 0. If the value of the counter of the current selector index is not equal to 0, processing continues to the steps in block 220, as described below. If the value of the counter of the current selector index is equal to zero (and the value of the counter of the next selector index determined in decision box 214 is equal to zero), indicating that the selected storage device 18 has resumed operation and has processed any pending content transfer requests 42, processing circuitry 24 is configured to change the status flag of the selected storage device 18 (box 226) to "Ready," indicating that the selected storage device 18 is operating correctly, and processing continues to the steps in box 220, as described below.

[0141] In step 220, processing circuitry 24 is configured to determine whether there are additional storage devices 18 to be selected for use. Figure 21 The sub-method. If one or more storage devices 18 are to be selected, the processing circuit 24 is configured to select the next storage device 18 (box 228) and continue processing steps of block 212. If no more storage devices 18 are selected, the processing circuit 24 is configured to advance the selector index from the current selector index (box 230), thus beginning the next time segment. Reference Figure 21 The described sub-method repeats at the end of each time period.

[0142] For clarity, the various features of the invention described in the context of individual embodiments may also be provided in combination in a single embodiment. Conversely, for brevity, the various features of the invention described in the context of a single embodiment may also be provided individually or in any suitable sub-combination.

[0143] The above embodiments are cited by way of example, and the present invention is not limited to the content specifically shown and described above. Rather, the scope of the present invention includes combinations and sub-combinations of the various features described above, as well as variations and modifications that would occur to those skilled in the art upon reading the above description and that are not disclosed in the prior art.

Claims

1. A data communication device, comprising: A storage subsystem, which is connected to storage devices; as well as Processing circuitry, used for: In response to a content transfer request, the storage device is used to manage the content transfer on the storage subsystem, and the corresponding content transfer request is started to be served in a phased manner in response to the availability of the spare data capacity of the storage subsystem, such that while some of the content transfer requests are being served, some of the other pending content transfer requests are queued in at least one pending queue. Find the given data capacity currently assigned to the storage subsystem and the faulty storage device among the storage devices currently assigned to serve at least one of the content transfer requests; When at least one content transfer request assigned to be served by the failed storage device is still waiting to be completed by the failed storage device, the given data capacity of the storage subsystem currently assigned to the failed storage device is reallocated for use by at least one other storage device. Change the status flag to indicate that the faulty storage device is faulty; When the status flag indicates that the faulty storage device has failed, a new content transfer request is received; as well as In response to the storage subsystem having sufficient spare data capacity to serve the new content transfer request and the new content transfer request not being associated with the faulty storage device, service of the new content transfer request begins without first adding the new content transfer request to the at least one pending queue.

2. The apparatus of claim 1, wherein the storage subsystem includes a cache, and the spare data capacity is a spare cache capacity.

3. The apparatus of claim 1, wherein the processing circuitry is configured to locate the faulty storage device in response to the faulty storage device taking longer than a given timeout value to complete the service of the at least one content transfer request.

4. The apparatus of claim 1, wherein the processing circuit is configured to: When the status flag indicates a failure in the storage device, a new content transfer request is received; and In response to the new content transfer request being associated with the faulty storage device, the new content transfer request is added to the at least one pending queue.

5. A data communication device, comprising: A storage subsystem, which is connected to storage devices; as well as Processing circuitry, used for: In response to a content transfer request, the storage device is used to manage the content transfer on the storage subsystem, and the corresponding content transfer request is started to be served in a phased manner in response to the availability of the spare data capacity of the storage subsystem, such that while some of the content transfer requests are being served, some of the other pending content transfer requests are queued in at least one pending queue. Find the given data capacity currently assigned to the storage subsystem and the faulty storage device among the storage devices currently assigned to serve at least one of the content transfer requests; When at least one content transfer request assigned to be served by the failed storage device is still waiting to be completed by the failed storage device, the given data capacity of the storage subsystem currently assigned to the failed storage device is reallocated for use by at least one other storage device. Change the status flag to indicate that the faulty storage device is faulty; A counter is incremented in response to a decision to begin servicing a selected content delivery request among the content delivery requests, the counter advancing in a first direction in response to the length of the data block associated with the selected content delivery request; as well as The counter is decremented in response to the completion of the service of the selected content transfer request, and advances in the second direction in response to the length of the data block associated with the selected content transfer request.

6. The apparatus of claim 5, wherein the processing circuitry is configured to: detect a fault in the faulty storage device and spend a longer time than a given timeout value in response to a time delay following the increment of the counter when the decision to begin servicing the selected content transfer request is made.

7. The apparatus of claim 5, wherein the processing circuitry is configured to operate different counters for content transfer requests from corresponding different storage devices in the storage device.

8. The apparatus of claim 7, wherein the processing circuitry is configured to increment different counters for content transmission requests that begin service at different time periods.

9. The apparatus of claim 7, wherein the processing circuit is configured to: Operate at least one counter in response to the content transfer request from the faulty storage device; and In response to the value of the at least one counter operated on the failed storage device, the given data capacity of the cache currently assigned to the failed storage device is found and reallocated to at least another storage device.

10. A data communication device, comprising: A storage subsystem, which is connected to storage devices; as well as Processing circuitry, used for: The corresponding weights are assigned to the storage devices; as well as In response to a content transfer request, the storage subsystem manages content transfer using the storage device, and simultaneously begins servicing a corresponding content transfer request in response to the corresponding weight in the storage device, such that while some of the content transfer requests are being served, some of the other pending content transfer requests are queued in at least one pending queue, wherein the processing circuitry is configured to select the corresponding content transfer request from the at least one pending queue for service by using a weighted round-robin selection, the weighting round being weighted in response to the weight of the storage device to which the content transfer request is directed.

11. The apparatus of claim 10, wherein the processing circuitry is configured to: manage content transfer on the storage subsystem using the storage device in response to the content transfer request, and simultaneously begin servicing the corresponding content transfer request in a phased manner in response to the availability of spare data capacity of the storage subsystem.

12. The apparatus of claim 11, wherein the storage subsystem includes a cache, and the spare data capacity is a spare cache capacity.

13. The apparatus according to claim 10, wherein: The at least one queue to be processed includes different storage device-specific queues; and The processing circuit is configured as follows: In response to the corresponding storage device to which the corresponding content transfer request is directed, the corresponding content transfer request is assigned to a specific queue of the different storage device; as well as The corresponding content transfer request is selected from a specific queue of the storage device for service using a weighted round-robin selection, the weighting being adjusted in response to the weight of the storage device.

14. The apparatus of claim 10, wherein the processing circuitry is configured to assign the corresponding weights to the storage device in response to the corresponding performance of the storage device.

15. The apparatus of claim 14, wherein the processing circuitry is configured to: monitor the corresponding performance of the storage device; and dynamically update the corresponding weights assigned to the storage device in response to the monitoring.

16. A data communication device, comprising: A storage subsystem, which is connected to storage devices; as well as Processing circuitry, used for: In response to a content transfer request, the storage device is used to manage the content transfer on the storage subsystem, and the corresponding content transfer request is started to be served in a phased manner in response to the availability of the spare data capacity of the storage subsystem, such that while some of the content transfer requests are being served, some of the other pending content transfer requests are queued in at least one pending queue. Find the given data capacity currently assigned to the storage subsystem and the faulty storage device among the storage devices currently assigned to serve at least one of the content transfer requests; When at least one content transfer request assigned to be served by the failed storage device is still waiting to be completed by the failed storage device, the given data capacity of the storage subsystem currently assigned to the failed storage device is reallocated for use by at least one other storage device. Change the status flag to indicate that the faulty storage device is faulty; When the status flag indicates that the faulty storage device has failed, a new content transfer request is received; as well as In response to the new content transfer request being associated with the faulty storage device, the new content transfer request is added to the at least one pending queue.

17. The apparatus of claim 16, wherein the storage subsystem includes a cache, and the spare data capacity is a spare cache capacity.

18. The apparatus of claim 16, wherein the processing circuitry is configured to locate the faulty storage device in response to the faulty storage device taking longer than a given timeout value to complete the service of the at least one content transfer request.

19. The apparatus of claim 16, wherein the processing circuit is configured to: When the status flag indicates a failure in the storage device, a new content transfer request is received; and In response to the storage subsystem having sufficient spare data capacity to serve the new content transfer request and the new content transfer request not being associated with the faulty storage device, service of the new content transfer request begins without first adding the new content transfer request to the at least one pending queue.

20. The apparatus of claim 16, wherein the processing circuitry is configured to: A counter is incremented in response to a decision to begin servicing a selected content delivery request among the content delivery requests, the counter advancing in a first direction in response to the length of the data block associated with the selected content delivery request; and The counter is decremented in response to the completion of the service of the selected content transfer request, and advances in the second direction in response to the length of the data block associated with the selected content transfer request.

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

  • Data write-in control method and device for distributed storage system, and equipment

    CN112905119A

  • Method for reusing resource and storage sub-system using the same

    US20130232377A1

  • Optimize Information Requests to a Memory System

    US20200050391A1