Enhanced storage protocol emulation in peripheral devices
By simulating the bus storage protocol in peripheral devices, isolating the control plane of the host and storage service, and using the network storage protocol stack to complete I/O transactions, the problems of complexity and performance instability in the interaction between the host and storage service are solved, achieving higher security and performance stability.
Patent Information
- Application Number
- CN202210254023.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-11-16
- Filing Date
- 2022-03-15
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-03-15
AI Technical Summary
In existing technologies, the control plane interaction between the host and storage service is complex and has low security. Furthermore, the maintenance and management of the network storage protocol stack depends on the host, leading to unstable performance and sudden bursts of computing load.
By simulating the bus storage protocol in the peripheral device, the network storage protocol stack is used to complete I/O transactions, isolating the host from the control plane of the storage service, and performing the management and computing tasks of the network storage protocol stack within the peripheral device.
It improves the security and performance stability of storage services, reduces sudden bursts of host computing load, and simplifies the maintenance and management of the network storage protocol stack.
Smart Images

Figure CN115129625B_ABST
Abstract
Description
[0001] Cross-references to related applications
[0002] This application is a continuation-in-part of U.S. Patent Application 17 / 211,928, filed March 25, 2021, the disclosure of which is incorporated herein by reference. Technical Field
[0003] This invention relates generally to data storage, and more specifically to the simulation of storage protocols in peripheral devices. Background Technology
[0004] Various techniques for data storage using network adapters are known in the art. For example, U.S. Patents 9,696,942 and 9,727,503 describe techniques for accessing remote storage devices using local bus protocols. The disclosed methods include configuring a driver on a host computer to receive commands according to a protocol defined for accessing a local storage device connected to a peripheral component interface bus of the host computer. When the driver receives a storage access command from an application running on the host computer according to a protocol specifying a storage transaction, a remote direct memory access (RDMA) operation is performed by a network interface controller (NIC) connected to the host computer to perform a storage transaction via a network on the remote storage device.
[0005] U.S. Patent 10,657,077 describes a highly converged NVMF storage NIC card. A storage and communication device inserted into a server includes a circuit board, a bus interface, a media access control (MAC) processor, one or more storage devices, and at least one central processing unit (CPU). The bus interface is configured to connect the device to at least the server's processor. The MAC is mounted on the circuit board and configured to connect to a communication network. The storage devices are mounted on the circuit board and configured to store data. The CPU is mounted on the circuit board and configured to expose the storage devices (i) to the server's processor via the bus interface, and (ii) indirectly to other servers via the communication network. Summary of the Invention
[0006] The embodiments of the invention described herein provide a peripheral device including a host interface and processing circuitry. The host interface is used to communicate with one or more hosts via a peripheral bus. The processing circuitry is used to expose a peripheral bus device on the peripheral bus, the peripheral bus device communicating with the one or more hosts using one or more instances of at least one bus storage protocol, receiving input / output (I / O) transactions from the one or more hosts using the exposed peripheral bus device, and performing the I / O transactions for the one or more hosts according to one or more instances of the at least one network storage protocol by running at least a portion of a host-side protocol stack of at least one network storage protocol.
[0007] In some embodiments, the processing circuitry is configured to expose multiple individual file systems (FS) to one or more hosts using a peripheral bus device. In an example embodiment, the processing circuitry deduplicates data across at least two of the individual FSs. In another embodiment, the processing circuitry is configured to cache data for at least two of the individual FSs based on a caching strategy that depends on the usage of data across at least two of the individual FSs.
[0008] In the disclosed embodiments, the processing circuitry performs I / O transactions by storing data across multiple storage tiers. In one embodiment, the processing circuitry is configured to move at least a portion of the data between storage tiers based on the usage of the data by one or more hosts.
[0009] In some embodiments, the processing circuitry is configured to (i) receive from the host via a peripheral bus device a request to send specified data to a remote host over a network, the specified data having previously been stored by the peripheral device according to a network storage protocol, and (ii) in response to the request, transmit the previously stored data to the remote host over the network while offloading the data transmission from the host.
[0010] In one embodiment, the processing circuitry transmits specified data to a remote host by: (i) retrieving data from a storage location where the data was previously stored, and (ii) sending the retrieved data to the remote host. In one embodiment, the previously stored data is not transmitted via the host when transmitting the previously stored data. In another embodiment, the processing circuitry is configured to instruct a peer peripheral device via a network to send the previously stored data to the remote host. In the example embodiment, the previously stored data is not transmitted via a peripheral device when transmitting the previously stored data.
[0011] According to one embodiment, a method is also provided, comprising: communicating with one or more hosts via a peripheral device bus in a peripheral device. The peripheral bus device, communicating with the one or more hosts using one or more instances of at least one bus storage protocol, exposes itself on the peripheral bus. Using the exposed peripheral bus device, the peripheral device receives input / output (I / O) transactions originating from one or more hosts. The I / O transactions are performed by the peripheral device for one or more hosts according to one or more instances of at least one network storage protocol, by running at least a portion of a host-side protocol stack of at least one network storage protocol.
[0012] According to one embodiment, a method for emulating a storage protocol in a peripheral device is also provided. The method includes: using a peripheral device connected to one or more hosts via a peripheral bus, exposing a dedicated peripheral bus device on the peripheral bus, the dedicated peripheral bus device communicating with the hosts using at least one bus storage protocol; using the exposed peripheral bus device, receiving input / output (I / O) transactions originating from the hosts in the peripheral device; and performing I / O transactions with the hosts by the peripheral device according to at least one network storage protocol by running at least a portion of a host-side protocol stack of at least one network storage protocol.
[0013] Another embodiment of the invention described herein provides a peripheral device including a host interface and processing circuitry. The host interface is configured to communicate with a host via a peripheral bus. The processing circuitry is configured to expose a peripheral bus device on the peripheral bus that communicates with the host using a bus storage protocol, to receive input / output (I / O) transactions originating from the host using the exposed peripheral bus device, and to perform I / O transactions for the host according to the network storage protocol using at least a portion of a host-side protocol stack running a network storage protocol.
[0014] In some embodiments, while running at least a portion of the host-side protocol stack, the processing circuitry is configured to isolate the host from control plane operations of the network storage protocol. In one embodiment, the processing circuitry is configured to perform at least some or at least some of the host-related I / O transactions in local storage. In another embodiment, the peripheral device further includes a network port configured to communicate over a network, and the processing circuitry is configured to perform at least some or at least some of the host-related I / O transactions by communicating over the network with a storage system operating according to the network storage protocol.
[0015] In some embodiments, when performing I / O transactions over a network, the processing circuitry is configured to transfer data directly between the host's memory and the storage system using zero-copy transfer. In an exemplary embodiment, the processing circuitry is configured to determine one or more addresses of data in the storage system and then transfer the data directly between the host's memory and one or more addresses, without intermediately storing the data in a network adapter.
[0016] In one disclosed embodiment, at least one of the bus storage protocol and the network storage protocol is a block storage protocol. In another embodiment, at least one of the bus storage protocol and the network storage protocol is a file system (FS) protocol. In yet another embodiment, at least one of the bus storage protocol and the network storage protocol is an object storage protocol. In still another embodiment, at least one of the bus storage protocol and the network storage protocol is a key-value (KV) protocol.
[0017] In one embodiment, when a peripheral bus device is exposed, the processing circuitry is configured to emulate a hot-plug indication, notifying the host that the storage device has been connected to the peripheral bus. In some embodiments, the processing circuitry is configured to receive a doorbell from the host indicating a queue on which the host publishes one or more work requests related to I / O transactions, and the processing circuitry is configured to read and execute one or more work requests to complete the I / O transactions. In an example embodiment, the processing circuitry includes hardware configured to receive the doorbell and, in response to the doorbell, read one or more work requests from the queue.
[0018] In another embodiment, the processing circuitry is configured to issue a message signaled interrupt to the host upon completion of an I / O transaction. In one disclosed embodiment, the processing circuitry is configured to communicate with the host via one or more registers exposed on a peripheral bus. In another embodiment, the processing circuitry is also configured to perform one or more storage virtualization and data manipulation operations.
[0019] According to an embodiment of the present invention, a method is also provided, comprising: exposing a peripheral bus device that communicates with a host via a peripheral bus on the peripheral bus, the peripheral bus device communicating with the host using a bus storage protocol.
[0020] Using exposed peripheral bus devices, input / output (I / O) transactions originating from the host are received in the peripheral devices. The peripheral devices perform host-to-host I / O transactions according to the network storage protocol by running at least a portion of the host-side protocol stack.
[0021] The invention will be more fully understood from the following detailed description of the embodiments in conjunction with the accompanying drawings. Attached Figure Description
[0022] Figure 1 This is a schematic block diagram illustrating a computing and storage system according to an embodiment of the present invention;
[0023] Figure 2 The above is schematically illustrated according to one embodiment of the present invention. Figure 1 A block diagram of an example use case for file system emulation in a system;
[0024] Figure 3 This is a flowchart illustrating a method for emulating a storage protocol in a peripheral device according to an embodiment of the present invention;
[0025] Figure 4 This is a block diagram schematically illustrating an example use case of file system emulation according to an embodiment of the present invention, which includes cross-file system deduplication and caching;
[0026] Figure 5 This is a block diagram schematically illustrating an example use case of emulating a multi-tier storage file system according to an embodiment of the present invention; and
[0027] Figure 6 This is a block diagram schematically illustrating an example use case of file system emulation according to an embodiment of the present invention, including acceleration and unloading of the 'sendfile' command. Detailed Implementation
[0028] Overview
[0029] The embodiments of the invention described herein provide improved data storage technology in which peripheral devices provide storage services to a host via a peripheral bus. The host may include, for example, a server in a data center. Peripheral devices may include, for example, high-performance network adapters, sometimes referred to as data processing units (DPUs) or “intelligent NICs.” The embodiments described herein primarily relate to DPUs that provide storage services to a host via a high-speed peripheral component interconnect (PCIe) bus. However, in general, the disclosed techniques are applicable to various other types of peripheral devices and buses.
[0030] In the disclosed embodiments, the peripheral device serves the host using a network storage protocol (e.g., a block storage protocol, a file-system (FS) protocol, an object storage protocol, or a key-value (KV) storage protocol). Specifically, the peripheral device (i) exposes a dedicated PCIe device that emulates a bus storage protocol to the host, and (ii) runs at least a portion of the host-side protocol stack that runs the network storage protocol. The peripheral device receives input / output (I / O) transactions from the host and performs the host's I / O transactions using its internally running protocol stack, according to the network storage protocol.
[0031] In this context, the phrase "exposing peripheral bus devices on the peripheral bus" means running an interface that is emulated towards the host to appear as different peripheral bus devices for the host to communicate with. Peripheral bus devices are typically network devices (e.g., as opposed to storage devices).
[0032] When using the disclosed technology, the host is completely isolated from the control plane (also known as the management plane or orchestration plane) of the storage service. A dedicated PCIe device presents a storage interface to the host, which is inherently more specific and restricted than the network interface. Interaction between the host and the storage service is limited to data plane storage operations, i.e., exchanging I / O transactions with the dedicated PCIe device. Communication between the host and the dedicated PCIe device is typically achieved using a limited set of commands and without any real security permissions. Control and management operations related to the storage service are performed between the peripheral device (e.g., DPU) and any associated (remote and / or local) storage system, such as login, identity management, credential and access control, and other security-related operations. The host, and any untrusted software that may therefore run on it, is completely isolated from these operations.
[0033] In some embodiments, only the bus storage protocol is exposed, and the host may not be aware of the type of network storage protocol used by the peripheral device. Thus, the bus storage protocol and the network storage protocol can even be different types. For example, a dedicated PCIe device receives I / O transactions from the host according to a file system protocol and completes I / O transactions over the network according to an object or key-value protocol.
[0034] It is evident from the above description that the disclosed architecture provides a high level of security for storage services. In many applications and use cases, isolating the management and control of the host from the storage service is crucial. One example is a multi-tenant cloud application, where the host does not always have control over the different applications running on it. Another example is a "bare metal" cloud application, where tenants are given full access to the host. In such scenarios, the disclosed technology enables storage providers to offer storage services to individual applications running on the host in a well-controlled, secure, and isolated manner.
[0035] The disclosed technology also improves performance because the host offloads most (if not all) of the network storage protocol stack. Storage tasks often exhibit unpredictable bursts of computational load, for example, due to complex operations such as manipulation of metadata structures, garbage collection, data compression, and defragmentation. Some computational tasks that can be performed by the host (e.g., some high-performance computing (HPC) workloads) are sensitive to such variations in computational load. Therefore, offloading the host-side protocol stack to a peripheral device is highly advantageous.
[0036] Furthermore, when using the disclosed technologies, the maintenance and management of the network storage protocol stack (e.g., installation, upgrades, and configuration) are performed entirely within the peripheral device (e.g., DPU). No collaboration or awareness from the host or host administrator is required to perform such actions.
[0037] This document describes several example implementations and use cases of the disclosed technologies. Complementary technologies, such as zero-copy completion of I / O transactions and a dedicated doorbell mechanism, are also described.
[0038] Additional disclosed embodiments provide support for multiple separate file systems, such as for multi-tenant hosts. Other embodiments provide multi-tiered storage in a host-transparent manner, as well as acceleration and offloading of file transfer commands such as 'sendfile'.
[0039] System Description
[0040] Figure 1 This is a schematic block diagram of a computing and storage system 20 according to an embodiment of the present invention. System 20 includes a high-performance network interface controller (NIC) 24, also known as a data processing unit (DPU), which serves a host 28. The DPU 24 communicates with the host 28 via a peripheral bus (in this example, a high-speed peripheral component interconnect (PCIe) bus 36).
[0041] In this context, DPU 24 is considered a peripheral device connected to PCIe bus 36. DPU 24 provides data storage services to host 28 and may perform other tasks. Figure 1 In the example, DPU 24 connects host 28 to a network employing a network / clustered file system (FS) 32. FS 32 operates according to a certain network storage protocol. Non-limiting examples of network storage protocols include NFS, NFSorDMA, SMB, SMB-direct, Lustre, GPFS, BeeGFS, CEPH, and proprietary protocols provided by vendors such as VastData and Weka.
[0042] Host 28 includes host CPU 40, which can run various software applications depending on the applicable use case. In one embodiment, host 40 includes a server in a cloud-based data center that hosts applications belonging to multiple customers (“tenants”). In another embodiment, host 40 includes a server in a “bare metal” data center, wherein the tenant “owns” the server, and in a sense, the tenant is given full access to the server.
[0043] In other functions, applications running on the host CPU 40 issue input / output (I / O) transactions, such as writing data to a file, reading data from a file, or creating, modifying, or deleting files or directories. Typically, I / O transactions can be issued by any software running on the host CPU 40, such as virtual machines (VMs), processes, containers, or any other software.
[0044] In this example, DPU 24 includes a host interface 44 for communicating with host 28 via PCIe bus 36, a network port 48 for communicating with FS 32 via a network (e.g., using Ethernet packets), and processing circuitry 52 for performing the various networking and storage functions of the DPU. Processing circuitry 52 typically includes one or more CPUs 56 running appropriate software, and dedicated hardware 60. The tasks of processing circuitry 52 can be divided between software (CPU 56) and hardware (dedicated hardware 60) in any suitable manner.
[0045] In some embodiments, processing circuitry 52 provides storage services to host CPU 40 by running at least a portion of the host-side protocol stack of the network storage protocol of FS 32. Additionally, processing circuitry 52 exposes a dedicated PCIe device 62 on PCIe bus 36 to host CPU 40. In some embodiments, processing circuitry 52 may perform additional processing that enhances a specified network storage protocol of FS 32. For example, if the network storage protocol does not provide cryptographic capabilities, processing circuitry 52 of DPU 24 may add this functionality on top of the network storage protocol.
[0046] For clarity, PCIe device 62 is depicted inside host 28 in the figure to emphasize the interaction between device 62 and host CPU 40. However, in reality, PCIe device 62 is a logical interface presented to host 28 by DPU 24 via bus 36. Therefore, the terms "PCIe device" and "PCIe interface" can be used interchangeably. PCIe device 62 may include PCIe physical or virtual functions.
[0047] PCIe device 62 is configured to emulate the bus storage protocol relative to the host CPU. Host CPU 40 communicates with PCIe device 62 via the bus storage protocol to perform I / O transactions. The processing circuitry 52 of DPU 24 uses the internal runtime protocol stack of the network storage protocol to complete (i.e., execute) the I / O transactions of host CPU 40 in FS 32 (and / or local storage as detailed below). Host interaction with PCIe device 62 can be implemented using standard operating system (OS) drivers, or, depending on the circumstances, vendor-specific drivers.
[0048] The protocol between PCIe device 62 and host CPU 40 is typically limited to a dedicated set of storage-related commands, unlike the arbitrary communication implemented by conventional network devices. Therefore, security vulnerabilities in this protocol are greatly reduced, and the task of ensuring security is significantly simplified. For example, processing circuitry 56 in DPU 24 can analyze transactions arriving via PCIe device 62 and apply security policies specified according to the storage protocol used. For instance, the security policy can examine storage protocol-related attributes (e.g., filename, offset, object identifier, etc.) and take action based on the attribute values. Actions may include, for example, allowing or denying access to certain files or objects, or any other appropriate action.
[0049] In some embodiments, DPU 24 further includes local storage 64, such as one or more flash memory devices. In some embodiments, system 20 also includes an additional peripheral device 68, which includes local storage 72, such as one or more flash memory devices. The additional peripheral device may be, for example, another NIC (DPU or others) or a solid-state drive (SSD). In some embodiments, the completion of an I / O transaction may involve storing data in local storage, such as storage 64 in DPU 24 or storage 72 in additional peripheral device 68.
[0050] Typically, the DPU 24 can perform at least some or at least part of an I / O transaction over the network and at least some or at least part of an I / O transaction in local storage. Therefore, for example, a protocol stack running in the DPU can translate a given I / O transaction into multiple storage operations (read or write) of a network storage protocol. One or more of these storage operations can be executed over the network, and one or more of these storage operations can be executed in local storage.
[0051] Figure 1 The configuration of system 20 and its components (e.g., DPU 24 and host 28) shown is an example configuration depicted purely for conceptual clarity. Any other suitable configuration may be used in alternative embodiments.
[0052] For example, in an alternative embodiment, the peripheral device exposing PCIe device 62 and running a host-side network storage protocol stack may not have a network connection at all. In such an example embodiment, the peripheral device is a storage device such as an SSD. In such an embodiment, data storage for the host is performed locally without network communication. Further alternatively, the peripheral device may perform both local and remote storage.
[0053] Furthermore, the disclosed technologies are not limited to file system protocols or any other type of storage protocol. In alternative embodiments, the bus storage protocol may include various other types of storage protocols. Example bus storage protocols include block storage (“block device”) protocols such as NVMe, virtio-blk, SCSI, SATA, and SAS; various object storage protocols; key-value storage protocols such as NVMe-KV; or any other suitable protocol. As a replacement for FS 32, DPU 24 may use various network storage protocols to perform I / O transactions, such as block storage protocols such as NVMe-over-Fabrics, NVMe-over-TCP, iSCSI, iSER, SRP, and Fibre-channel; object storage protocols such as Amazon S3, Microsoft Azure, OpenStackSwift, and Google Cloud Storage; key-value storage protocols such as NoSQL, Redis, and RocksDB; or any other suitable storage system or protocol.
[0054] As mentioned above, it is not mandatory that the bus storage protocol (exposed to the host) and the network storage protocol (used for transaction completion) be of the same type. For example, in one embodiment, the bus storage protocol may include the FS protocol, while the network storage protocol may include an object or key-value protocol. Any other suitable combination may also be used.
[0055] The various elements and components of system 20 (e.g., DPU 24 and host 28) can be implemented using software, using suitable hardware such as in one or more application-specific integrated circuits (ASICs) or field-programmable gate arrays (FPGAs), or using a combination of software and hardware elements.
[0056] Typically, the host CPU 40 and CPU 56 of the DPU 24 include programmable processors that are programmed in software to perform the functions described herein. The software may be downloaded electronically to any processor, for example, via a network, or it may be provided and / or stored on a non-transitory tangible medium, such as magnetic, optical, or electronic memory, either alternatively or additionally.
[0057] Figure 2 The above illustrations are schematic representations of embodiments of the present invention. Figure 1 A block diagram of an example use case for file system emulation in System 20. In this embodiment, the bus storage protocol emulated by DPU 24 is the Virtio-fs file system. Virtio-fs is a shared file system designed to serve virtual machines (VMs) and is described, for example, in section 5.11 of Committee Specification 01, "Virtual I / O Device (VIRTIO) Version 1.1", dated April 11, 2019.
[0058] exist Figure 2 In the example, the processing circuitry 56 of DPU 24 runs a virtio-fs SNAP controller 80 and a file system driver 84. Processing circuitry 56 exposes a dedicated virtio-fs PCIe device 88 to host 28. Driver 84 can be configured to interface with various types of networked, clustered, or parallel file systems 32. Non-limiting examples of file systems include Lustre, GPFS, BeeGPFS, NFS (via TCP or RDMA), or proprietary solutions from vendors such as Weka and Vastdata. Alternatively, any other suitable type of file system can be supported.
[0059] In one embodiment, the Virtio-fs drive 88 presents a local directory to be mounted to the host 28, which is mapped to a directory in the DPU 24. The protocol between the DPU 24 and the Virtio-fs drive 88 is defined in the Virtio-fs specification referenced above and is based on FUSE commands delivered via virtio-queues. More generally, the virtio-fs SNAP controller 80 and the file system drive 84 are tightly coupled to each other, and the virtio-fs folder presented to the host originates directly from the network without representing its local DPU folder.
[0060] Figure 3 This is a flowchart illustrating a method for emulating a storage protocol in a peripheral device (DPU 24 in this example) according to an embodiment of the present invention. The method begins with DPU 24 exposing a dedicated PCIe device (e.g., [device name missing]) to host 28 in exposure step 90 to present the bus storage protocol. Figure 1 Device 62 or Figure 2 (Device 88). In transaction sending step 94, host 28 sends an I / O transaction to the dedicated PCIe device.
[0061] In I / O execution step 98, the processing circuitry 56 of DPU 24 executes the host's I / O transaction in a suitable storage system according to the network storage protocol. In completion step 102, when the I / O transaction is completed, the processing circuitry 56 of DPU 24 sends a completion notification to the host 28.
[0062] Zero-copy completion of I / O transactions
[0063] As can be understood, performing I / O transactions via DPU 24 involves transferring data between the memory of host 28 and the memory of the storage system managed by FS 32. When a write command is completed, for example, the processing circuitry 56 of DPU 24 transfers data from the memory of host 28 to the memory of the storage system. When a read command is completed, the processing circuitry 56 transfers data in the opposite direction from the memory of the storage system to the memory of host 28.
[0064] In some embodiments, processing circuitry 56 performs these data transfers in a “zero-copy” manner. In this context, the term “zero-copy” means that data is transferred directly between the host 28’s memory and the storage system’s memory, without intermediate storage in the DPU 24. Zero-copy completion of I / O transactions significantly reduces overall transaction latency and increases achievable throughput.
[0065] Typically, data transfer is performed using Remote Direct Memory Access (RDMA). In some embodiments, processing circuitry 56 performs zero-copy data transfer in two phases. In the first phase, processing circuitry 56 determines one or more appropriate addresses in the memory system for completing the I / O transaction (one or more addresses to which data is written in the case of a write command, or one or more addresses to which data will be read in the case of a read command). Only then, in the second phase, does processing circuitry 56 transfer data between the appropriate addresses in the memory of host 28 and the memory of the memory system.
[0066] In some embodiments, processing circuitry 56 performs zero-copy data transfer by directly accessing the memory of host 28 using the host's own address space. Such technology is disclosed in U.S. Patent Application 17 / 189303, filed March 2, 2021, entitled "Cross Address-Space Bridging," the disclosure of which is incorporated herein by reference. In this type of embodiment, processing circuitry 56 of DPU 24 creates an RDMAMKEY describing the memory of host 28. In this way, RDMA operations can be performed directly between the memory of host 28 and the memory of the storage system (network entity), thereby eliminating the need for additional copying of the DPU memory.
[0067] In an alternative embodiment, the processing circuit 56 may perform zero-copy data transfer in any other suitable manner.
[0068] Doorbell and other DPU hardware
[0069] In various embodiments, the DPU 24 includes various hardware or hardware-software mechanisms to enhance the flexibility of receiving and processing I / O transactions originating from the host 28 and to reduce latency. Such mechanisms may include, for example, queues and corresponding doorbells, hardware registers, interrupts, etc. Several examples are given below.
[0070] Typically, the host CPU 40 issues I / O transactions by posting one or more job requests onto a queue that can be read by the processing circuitry 56 of the DPU 24. The host and DPU can interact in parallel via multiple queues, such as queues for each host core, application, thread, QoS class, user, or tenant. To reduce latency, in some embodiments, the host and DPU use a doorbell mechanism, where the host processor 40 (i) signals to the processing circuitry 56 that one or more job requests have been posted, and (ii) instructs the DPU to read the queue of job requests from it. Typically, the doorbell triggers the hardware 60 in the processing circuitry 52 to read the job request from the designated queue and pass the job request to the CPU 56 for processing.
[0071] In an exemplary embodiment, hardware 60 is configured to treat one or more addresses on the PCIe Base Address Register (BAR) as doorbells. The BARs are exposed to the host via a dedicated PCIe device 62. In this embodiment, the host CPU 40 issues a doorbell by writing to one of these addresses. Such a write triggers hardware 60 in the DPU, which then reads any pending work requests from a designated queue.
[0072] Various techniques can be used to specify the identity of the queue to be read. In one embodiment, a single BAR address is assigned to act as a doorbell, and the host writes the appropriate queue identifier to that address. In another embodiment, each queue is assigned its own distinct BAR address; any write to one of these BAR addresses is interpreted by the hardware 60 as the doorbell for the corresponding queue. The value written to the address can be interpreted as the queue's producer index. Alternatively, any other suitable mechanism or convention can be used.
[0073] In some embodiments, the DPU software running on CPU 56 is configured to send a message-signaled interrupt (MSI or MSI-X) to the host upon completion of an I / O transaction. The interrupt triggers the host CPU 40, thus reducing latency.
[0074] In some embodiments, the CPU 56 (in DPU 24) and the host processor 40 (in host 28) are configured to exchange information and / or report events by writing to and reading registers defined on the PCIe bus BAR. These registers are exposed to the host via a dedicated PCIe device 62. In some cases, the CPU 56 (in DPU 24) writes to the registers, and the host processor 40 (in host 28) reads the registers. In other cases, the host processor 40 (in host 28) writes to the registers, and the CPU 56 (in DPU 24) reads the registers. In some embodiments, a more complex register mechanism may be defined. For example, a write to one register may affect the meaning of subsequent writes to another register.
[0075] In some embodiments, when the dedicated PCIe device 62 is exposed, the processing circuitry 52 is configured to emulate a "hot-plug" indication to the host 28. The hot-plug indication notifies the host that the storage device has been connected to the PCIe bus 36.
[0076] Additional embodiments and variations
[0077] In some embodiments, as part of a host emulation storage protocol, the processing circuitry 52 in the DPU 24 is configured to emulate various FS services on the host 28. Any suitable FS service can be emulated, such as, for example, directory services and statistics collection.
[0078] Alternatively, as part of a host emulation storage protocol, the processing circuitry 52 in the DPU 24 is configured to perform one or more storage virtualization and data manipulation operations. Storage virtualization operations that can be performed by the DPU 24 include, for example, cryptographic operations such as encryption, decryption, signing and authentication, deduplication, mirroring, security isolation, Quality of Service (QoS), directory service, locking, compression, artificial intelligence (AI) operations, etc. In some embodiments, such operations may be performed at least in part by the hardware 60 in the processing circuitry 52 and / or accelerated by a graphics processing unit (GPU) coupled to the DPU 24.
[0079] Effective emulation of multiple file systems
[0080] In some embodiments, the processing circuitry (e.g., DPU) of the disclosed peripheral device exposes multiple individual file systems (FS) to one or more hosts that use dedicated storage PCIe devices for service. In some embodiments, the peripheral device efficiently supports multiple individual FS by performing joint deduplication and / or caching across different FS.
[0081] Figure 4This is a block diagram schematically illustrating an example use case of file system emulation according to an embodiment of the present invention, which includes cross-file system deduplication and caching. In this embodiment, host 28 runs multiple applications and / or guests 106 using two or more separate FS 32s (three FS 32s in this example). FS 32s can be of the same type or different types. For example, multiple separate FSs can be deployed when host 28 and DPU 24 serve multiple tenants, or in any other suitable scenario.
[0082] In these embodiments, a dedicated PCIe storage device (in this example, a dedicated virtio-fs PCIe device 88) exposed by DPU 24 via PCIe bus 36 exposes multiple individual FS to application / guest 106.
[0083] Therefore, each application / guest 106 can send I / O transactions to the file system it is configured to use using the appropriate bus storage protocol. The processing circuitry of DPU 24 runs the virtio-fs emulation module 110, which, among other emulation tasks, translates I / O transactions between the bus storage protocol and the corresponding network storage protocol. As in the case of a single FS discussed above, DPU 24 communicates with each application / guest 106 using the bus storage protocol and with the corresponding FS 32 using the network storage protocol. For this purpose, Figure 4 The DPU 24 runs multiple file system drives 118 (represented as FS1, FS2 and FS3 in the diagram).
[0084] In practice, it's quite possible that different applications / visitors will store the same data in their respective FSs. The original implementation would be to ignore these commonalities, but this simplification can lead to performance degradation. A significantly more efficient solution is to perform deduplication across multiple FS 32s. Another way to achieve storage efficiency is to implement caching across multiple FS 32s. Figure 4 In one embodiment, the processing circuitry of the DPU 24 includes a cross-file system deduplication and caching module 114 that performs these tasks.
[0085] In an example embodiment, module 114 identifies the same data item used by two or more file systems 32 and deduplicates that data. In this context, the term "deduplicate" means storing fewer copies of the identified data (fewer than the number of file systems 32 using this data), for example, only a single copy. Module 114 makes these fewer copies (e.g., a single copy) available across various file systems 32. Any data used by multiple file systems can be deduplicated in this way, such as user data, user metadata such as data structures, and / or objects or other information of the file systems themselves. Module 114 can deduplicate data across FSs, even when the FSs are of different types. Any suitable deduplication scheme can be used for this purpose.
[0086] Alternatively, in some embodiments, module 114 caches data from at least two separate FS 32 according to a caching strategy that depends on the usage of data across multiple FSs. For example, the caching strategy may prioritize most frequently used (MFU) or most recently used (MRU) data items during caching, and / or evict least frequently used (LFU) or least recently used (LRU) data items from the cache. When evaluating such criteria, module 114 calculates usage frequency and / or record usage time across multiple FSs rather than individually for each FS. Alternatively, any other suitable caching strategy may be used.
[0087] Furthermore, the same cache (e.g., a single-level or multi-level cache memory) is used to jointly serve multiple file systems (FS). Compared to the independent caches of each individual FS, this joint caching makes the use of available cache resources significantly more efficient.
[0088] Abstraction of multi-level storage
[0089] In some embodiments, the processing circuitry of the disclosed peripheral device (e.g., the DPU) exposes a certain FS to one or more hosts that use dedicated storage PCIe devices for service. However, the actual storage of the data is performed by the DPU across multiple storage tiers. This multi-tiered storage is typically transparent to the application / guest storing the data.
[0090] Figure 5 This is a block diagram schematically illustrating an example use case of a file system emulation including multi-tiered storage according to an embodiment of the present invention. In this context, the term "multiple storage tiers" refers to a hierarchical structure of multiple storage media or subsystems characterized by different storage speeds (or latency). Typically, slower storage tiers tend to have larger capacities and lower costs, while faster storage tiers tend to have smaller capacities and higher costs.
[0091] The example four-tier storage scheme can use the following tiers sorted from fastest to slowest:
[0092] Persistence in Memory (PIM) – The memory in the host machine that stores data.
[0093] Local solid-state drive (SSD) – The host's SSD.
[0094] Remote storage (storage located across a network from the host).
[0095] Remote SSD (SSD located across the network from the host).
[0096] exist Figure 5 In the example, DPU 24 stores data in PIM 126, local SSD 130, and network FS 32 (which itself can use remote storage and / or remote SSDs). Alternatively, any other suitable storage tier hierarchy can be used.
[0097] In addition to the simulation module 110, the processing circuitry of the DPU 24 also runs a hierarchical FS driver 122, which performs hierarchical storage across different storage tiers. Among other tasks, driver 122 tracks host usage of data items, selects the appropriate storage tier for each data item based on the tracked usage, and moves data from tier to tier accordingly. Typically, driver 122 stores frequently accessed data (“hot data”) in storage tiers closer to the host and infrequently accessed data (“cold data”) in storage tiers farther from the host. Since data usage patterns can change over time, driver 122 adapts to these changes by moving data from one tier to another. The application / guest 106 is typically unaware of the hierarchical structure and actual storage location of the individual data items.
[0098] Speeding up and unloading the 'sendfile' command
[0099] In some real-world scenarios, a host may request the transfer of data (e.g., files) stored in a file system to a remote host. One example is the Linux 'sendfile' command. A traditional implementation of sendfile would read a file from the FS to the host and then write it over the network to the requesting remote host. In some embodiments, the disclosed peripheral device (e.g., a DPU) executes the sendfile command on behalf of the host, thereby offloading the host. Besides reducing the processing load on the host, the disclosed techniques also reduce the amount of data transferred to and from the host.
[0100] Figure 6This is a block diagram schematically illustrating an example use case of file system emulation according to an embodiment of the present invention, including acceleration and unloading of the 'sendfile' command. In this example, DPU 24 performs both storage emulation and network emulation.
[0101] To perform storage emulation, the processing circuitry of DPU 24 includes a virtio-fs emulation module 110 and exposes a dedicated virtio-fs device 88 to the host. To perform network emulation, the processing circuitry of DPU 24 includes a virtio-transmission emulation module 142 and exposes a dedicated virtio-network device 134 to the host.
[0102] Virtio-FS simulation module 110 communicates with the networked FS 32 as described above. Virtio-Transfer simulation module 142 is connected to the Internet 146 for communicating with remote hosts as the destination of sendfile commands (and other network simulation tasks). Furthermore, the processing circuitry of DPU 24 includes a sendfile acceleration module 138 that performs sendfile acceleration and offloading.
[0103] In the example embodiment, the process of transferring a file in an offloaded manner begins with application / guest 106 on host 28 sending a suitable request to virtio-fs device 88. This request is referred to herein as “offloaded sendfile” and is different from a regular sendfile command. The “offloaded sendfile” request specifies (i) a file previously stored in FS 32, and (ii) the remote host to which the file will be sent.
[0104] The virtio-fs device 88 transmits a request to the sendfile acceleration module 138 in the DPU 24 via the PCIe bus 36. In response to this request, the sendfile acceleration module 138 retrieves the file from the FS 32 using the virtio-fs emulation module 110 and sends the file to the remote host via the virtio-transfer emulation module 142. As can be seen, throughout this process, the file data does not traverse the PCIe bus 36 and is not transferred via the host 28.
[0105] In some embodiments, the sendfile acceleration module 138 in DPU 24 can delegate the execution of "unloaded sendfile" to another DPU 24. For example, module 138 can instruct a peer DPU closer to the remote host that is the final destination of the file to transfer the file. In such an embodiment, the peer DPU transfers the file directly to the remote host. The file data does not pass through the host that initiated the "unloaded sendfile" or through the DPU serving the initiating host.
[0106] The above description illustrates file transfer and the sendfile command through examples. In alternative embodiments, the disclosed techniques can be used to transfer any other suitable type of data.
[0107] It should be understood that the above embodiments are cited by way of example, and the invention is not limited to what is specifically shown and described above. Rather, the scope of the invention includes combinations and sub-combinations of the various features described above, as well as variations and modifications thereof that would occur to those skilled in the art upon reading the above description and which are not disclosed in the prior art. Documents incorporated herein by reference are considered part of this application, and the definitions in this specification should be considered only to the extent that any terms defined in these incorporated documents conflict with the explicit or implicit definitions in this specification.
Claims
1. A peripheral device, comprising: The host interface is used to communicate with one or more hosts via a peripheral bus. as well as Processing circuitry, used for: A peripheral bus device that communicates with the one or more hosts using one or more instances of at least one bus storage protocol is exposed on the peripheral bus; Receive input / output I / O transactions from one or more hosts using the exposed peripheral bus devices; as well as The I / O transactions for the one or more hosts are completed by running at least a portion of the host-side protocol stack of at least one network storage protocol, based on one or more instances of the at least one network storage protocol. Wherein, when running at least a portion of the host-side protocol stack, the processing circuitry is configured to isolate the one or more hosts from the control plane operation of the at least one network storage protocol.
2. The peripheral device of claim 1, wherein the processing circuitry is configured to expose multiple individual file systems (FS) to the one or more hosts using the peripheral bus device.
3. The peripheral device of claim 2, wherein the processing circuitry deduplicates data across at least two of the individual FSs.
4. The peripheral device of claim 3, wherein the processing circuit caches data in at least two of the individual FSs according to a caching strategy depending on the use of the data across at least two of the individual FSs.
5. The peripheral device according to claim 1, wherein the processing circuit performs the I / O transaction by storing data in multiple storage layers.
6. The peripheral device of claim 5, wherein the processing circuitry moves at least a portion of the data between the storage layers depending on the use of the data by the one or more hosts.
7. The peripheral device according to claim 1, wherein the processing circuit is used for: The peripheral bus device receives a request from the host to send specified data to a remote host over a network, the specified data previously stored by the peripheral device according to the network storage protocol; and In response to the request, the previously stored data is transmitted to the remote host via the network, while the transmission of the data is offloaded from the host.
8. The peripheral device of claim 7, wherein the processing circuit transmits the specified data to the remote host by: (i) retrieving the data from a storage location where the data was previously stored, and (ii) sending the retrieved data to the remote host.
9. The peripheral device of claim 7, wherein the previously stored data is not transmitted via the host when transmitting the previously stored data.
10. The peripheral device of claim 7, wherein the processing circuitry is configured to instruct a peer peripheral device via the network to send the previously stored data to the remote host.
11. The peripheral device of claim 10, wherein the previously stored data is not transmitted via the peripheral device when transmitting the previously stored data.
12. A method comprising: In peripheral devices, communication is conducted with one or more hosts via a peripheral bus; Using the peripheral device, a peripheral bus device is exposed on the peripheral bus, and the peripheral bus device communicates with the one or more hosts using one or more instances of at least one bus storage protocol; The exposed peripheral bus device is used to receive input / output I / O transactions issued by one or more hosts in the peripheral device; as well as The peripheral device performs the I / O transactions for the one or more hosts by running at least a portion of the host-side protocol stack of at least one network storage protocol, according to one or more instances of the at least one network storage protocol. At least a portion of running the host-side protocol stack includes isolating the one or more hosts from the control plane operation of the at least one network storage protocol.
13. The method of claim 12, wherein exposing the peripheral bus device comprises: The peripheral bus device is used to expose multiple separate file systems (FS) to one or more hosts.
14. The method of claim 13, wherein exposing the plurality of individual FS comprises: Remove duplicate data from at least two of the individual FS.
15. The method of claim 14, wherein exposing the plurality of individual FS comprises: The data used in at least two of the individual FSs is cached according to a caching strategy that depends on the use of the data across at least two of the individual FSs.
16. The method of claim 12, wherein completing the I / O transaction comprises: Data is stored in multiple storage tiers.
17. The method of claim 16, wherein storing the data comprises: At least a portion of the data is moved between the storage layers based on the use of the data by one or more hosts.
18. The method of claim 12, wherein completing the I / O transaction comprises: The peripheral bus device receives a request from the host to send specified data to a remote host over the network, the specified data being previously stored by the peripheral device according to the network storage protocol. as well as In response to the request, previously stored data is transmitted to the remote host via the network, while the transmission of the data is offloaded from the host.
19. The method of claim 18, wherein transmitting the previously stored data comprises: (i) extract the data from the storage location where the data was previously stored to the peripheral device, and (ii) send the extracted data from the peripheral device to the remote host.
20. The method of claim 18, wherein the previously stored data is not transmitted via the host when transmitting the previously stored data.
21. The method of claim 18, wherein transmitting the previously stored data comprises: The network instructs peer peripherals to send the previously stored data to the remote host.
22. The method of claim 21, wherein the previously stored data is not transmitted via the peripheral device when transmitting the previously stored data.
23. A method for emulating a storage protocol in a peripheral device, the method comprising: Using peripheral devices connected to one or more hosts via a peripheral bus, exposing dedicated peripheral bus devices that communicate with the hosts using at least one bus storage protocol on the peripheral bus; The exposed peripheral bus device is used to receive input / output I / O transactions issued by the host in the peripheral device; as well as The peripheral device performs the I / O transactions for the host according to at least one part of the host-side protocol stack that runs at least one network storage protocol. At least a portion of running the host-side protocol stack includes isolating the one or more hosts from the control plane operation of the at least one network storage protocol.
Citation Information
Patent Citations
HyperConverged NVMF storage-NIC card
US10657077B2
Cross Address-Space Bridging
US20220283964A1
Accessing remote storage devices using a local bus protocol
US9696942B2
Storage system and server
US9727503B2
Storage adapter device for communicating with network storage
US10162793B1
