Method and device for remote access to file system of DPU
By establishing a vsock communication channel between the DPU and the HOST to directly transmit file system operation instructions, the problem of high latency in traditional file system access is solved, performance and stability are improved, and file system design and use are simplified.
Patent Information
- Application Number
- CN202311466587.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-06
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-11-06
AI Technical Summary
Traditional file system remote access methods, such as the NFS protocol, have the problem of high network latency, resulting in poor performance when the DPU remotely accesses the file system.
By establishing a vsock communication channel based on the PCI address between the DPU and the HOST, using the customized file system kernel module and network client components, the server kernel module and network server components are installed on the HOST, and the target operation instructions are directly transmitted to Perform file system operations to avoid network file system usage.
It reduces the network delay of remote access to the file system, improves the performance of remote access to the file system, simplifies the design and use of the file system, adapts to specific operating system or environmental requirements, and solves cross-platform compatibility issues.
Smart Images

Figure CN117560408B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a file system remote access method and device for a DPU. Background Art
[0002] As the scale of Internet services continues to expand and the types of business continue to increase, the resource consumption of cloud computing data centers that undertake various business applications is also increasing. Improving the utilization rate of computing, storage and other resources in data centers has become a problem that we need to solve. In the application scenario of the data processing unit (DPU), by unloading the control plane of various application services previously running on the data center server to the DPU, the resource consumption of the data center server on the control plane service can be reduced, so that the saved resources can be used by the user's application services, and the saleable computing resources can also be increased. When the DPU is unloading the control plane, it is necessary to be able to access the file system on the virtual machine as the HOST on the DPU, and then the control plane commands on the HOST and the files in the file system involved in the command parameters can be executed on the DPU. This access requires fast, low-latency data transmission and processing to respond to the operation of the control plane in real time.
[0003] Traditional file system remote access methods include: allowing a remote client to access the file system through a network in the same manner as a local file system through a Network File System (NFS).
[0004] However, the NFS protocol is essentially a network-based file sharing protocol, and its design goal is mainly to provide reliable file transfer rather than low-latency and high-throughput data transmission. Therefore, NFS usually introduces higher latency in file read and write operations, and there is a problem of high network latency in the process of remote access to the file system. Summary of the invention
[0005] In view of this, the embodiments of the present invention provide a method and device for remote access to a file system for a DPU, so as to eliminate or improve one or more defects existing in the prior art, and solve the problem of high network delay in the process of remote access to a file system.
[0006] One aspect of the present invention provides a file system remote access method for a DPU, which is applied to a DPU, wherein the DPU is installed on a mainboard of a physical server; a HOST system is also installed in the physical server; a kernel module of a custom file system and a network client component for remote access to the file system are run in the DPU; a kernel module and a network server component for remote access to the file system are run in the HOST; the method comprises the following steps:
[0007] Send a connection establishment request to the HOST, establish a vsock communication channel based on the PCI address with the HOST, and access the HOST through the vsock communication channel;
[0008] Mount the file system on the HOST and obtain the mount directory;
[0009] In response to the received target operation instruction acting on the mounted directory, the target operation instruction is sent to the HOST through the vsock communication channel, so that the HOST executes and returns the operation result corresponding to the target operation instruction after receiving and parsing the target operation instruction.
[0010] Optionally, the file system encapsulates the implementation logic of the vsock-based network connection and the implementation logic of the file system mount
[0011] Optionally, a client network connection component is running in the DPU; a server network connection component is running in the HOST; the HOST is in a connection request listening state after starting the network server component; sending a connection establishment request to the HOST, and establishing a vsock communication channel based on a PCI address with the HOST, including:
[0012] Send a connection establishment request to the HOST through the network client component to establish a vsock communication channel with the HOST.
[0013] Optionally, the DPU and the HOST are configured with the same vsock identifier; before sending a connection establishment request to the HOST and establishing a vsock communication channel based on the PCI address with the HOST, the method further includes:
[0014] In response to the received identification configuration instruction, the vsock identification corresponding to the DPU is configured as the vsock identification indicated by the identification configuration instruction; the vsock identification indicated by the identification configuration instruction is the same as the vsock identification of the HOST; the vsock identification configured by the HOST is used to uniquely indicate the HOST.
[0015] Optionally, the target operation instruction includes a file creation instruction, a file deletion instruction, a file reading instruction, a file directory creation instruction, a file directory deletion instruction, a file directory modification instruction or a file writing instruction.
[0016] Optionally, in the case where the target operation instruction is a file read instruction, the operation result further includes a file operator; after the target operation instruction is sent to the HOST through the vsock communication channel, it also includes:
[0017] The target file indicated by the file read instruction is accessed through the file operator; the file operator is the operator obtained after the HOST opens the target file through the operation interface provided by the virtual file system protocol.
[0018] Optionally, the network server component includes a file system whitelist configuration file, and the file system whitelist configuration file is used to configure a specified path and files that are allowed to be accessed under the specified path.
[0019] Optionally, the file system is a custom file system based on the Linux virtual file system.
[0020] Another aspect of the present invention provides a file system remote access device for DPU, including a processor and a memory, wherein computer instructions are stored in the memory, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the file system remote access method for the above-mentioned DPU.
[0021] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the above-mentioned file system remote access method based on DPU are implemented.
[0022] The file system remote access method for DPU provided in this embodiment establishes a vsock communication channel based on a PCI address with the HOST by sending a connection establishment request to the HOST, so as to access the HOST through the vsock communication channel; mounts the file system on the HOST to obtain a mount directory; in response to the received target operation instruction acting on the mount directory, sends the target operation instruction to the HOST through the vsock communication channel, so that the HOST executes and returns the operation result corresponding to the target operation instruction after receiving the operation instruction analysis; solves the problem of high network delay in the process of remote access to the file system; by installing a custom file system client kernel module and a network client component in the DPU, installing a server kernel module and a network server component in the HOST, establishing a vsock communication channel between the DPU and the HOST, so as to transmit the target operation instruction sent by the DPU to the HOST server kernel module for execution, and realizes the access of the file system on the HSOT side on the DPU side, without using the network file system, so that the network delay in the process of remote access to the file system can be reduced, and the performance of remote access to the file system can be improved.
[0023] Furthermore, by customizing the virtual file system, the design and implementation of the file system can be simplified according to actual needs, reducing the complexity of the file system. At the same time, the difficulty of installation and use is reduced, and users do not need to learn a lot of relevant knowledge, reducing the user's learning cost, thereby improving the efficiency of remote access to the file system.
[0024] Furthermore, through a customized virtual file system, it is easier to adapt to specific operating system or environmental requirements, which can reduce the coordination and compatibility requirements between the DPU and the HOST, solve the compatibility issues that may exist when the network file system is cross-platform or when using different versions of the network file system, and improve the stability of remote access to the file system.
[0025] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.
[0026] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of this application, and do not constitute a limitation of the present invention.
[0028] Figure 1 A flowchart of a method for remotely accessing a file system for a DPU provided by an embodiment of the present invention;
[0029] Figure 2 A schematic diagram of a physical server provided in one embodiment of the present invention;
[0030] Figure 3 A schematic diagram of a user state and a kernel state provided by an embodiment of the present invention;
[0031] Figure 4 A block diagram of a file system remote access device for a DPU provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0033] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.
[0034] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.
[0035] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection with an intermediate.
[0036] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.
[0037] First, several terms involved in the embodiments of the present application are introduced.
[0038] Data Processing Unit (DPU): DPU is a hardware unit specially designed for data processing. Its main function is to achieve efficient, fast and reliable data processing and analysis. DPU plays an important role in various application scenarios, from data centers to IoT devices, from edge computing to deep learning reasoning, and can provide excellent performance and efficiency. As a specialized data processing unit, DPU is one of the indispensable key technologies in the modern digital era, and is of great significance to promoting technological innovation and application development in various fields.
[0039] Virtual Machine (VM): A virtual operating system that runs on a computer. It is usually created through virtualization software, which abstracts the computer hardware so that multiple virtual machine instances can run on one physical computer.
[0040] Virtual Socket (vsock) is a communication protocol used in Linux virtual machine environments. It provides a high-performance, low-latency communication method that allows communication between the host and the client. The virtual socket communication protocol is a secure communication method because it uses a unique address format and socket family that can only be used in a virtualized environment. This protocol can be used to transfer files between the host and the client, make remote procedure calls, and implement network stack acceleration in a virtual environment. The virtual socket communication protocol is implemented through a kernel module loaded into the host and client operating system kernels. When using the virtual socket communication protocol, the host and the client must specify a specific vsock address when communicating with each other. Once the connection is established, communication can be carried out just like on the local computer, without the need for processing by the network protocol stack, thus achieving efficient communication.
[0041] PCIe (Peripheral Component Interconnect Express) is a computer bus standard used for high-speed data transmission between expansion cards, external devices and motherboards in computer systems.
[0042] PCIe is based on a point-to-point connection structure, where each device is directly connected to one or more PCIe slots on the motherboard. It provides high-bandwidth and low-latency data transmission by using multiple data channels (called lanes), each of which can support a certain data throughput. Common PCIe versions include PCIe 1.0, PCIe 2.0, PCIe 3.0, PCIe 4.0, and PCIe 5.0, each of which increases data transmission speeds and functional features.
[0043] PCIe is widely used to connect high-performance expansion cards such as graphics cards, storage controllers, and network adapters. Compared with the traditional PCI bus, PCIe has higher bandwidth and faster transmission speed, supports hot plugging and hot replacement, and provides better scalability. In addition, PCIe can also manage and communicate devices through configuration space and message passing mechanisms.
[0044] Network File System (NFS): It enables different hosts to access shared file systems and directories through the network. The main working principle of NFS is:
[0045] 1. The server will export the specified file directory and expose it to the network in the form of a shared file system.
[0046] 2. The client can mount the shared directory exported by the server and map it to a local mount point.
[0047] 3. When the client performs read and write operations on the mounted directory, the request is sent to the server through the NFS protocol.
[0048] 4. After receiving the request, the server performs actual file operations on the shared directory and then returns the results to the client.
[0049] 5. After the client receives the result returned by the server, it completes access to the file system.
[0050] The basic steps to use NFS are:
[0051] 1. Install and configure the NFS service on the server and specify the file directory to be exported.
[0052] 2. Install the NFS client software on the client and use the mount command to mount the shared directory on the server to the local directory.
[0053] 3. By accessing the local mount directory, the client can access the shared file system on the server.
[0054] 4. If you need to cancel access, you can use the umount command to cancel the mounting of the directory.
[0055] NFS has developed and evolved into the most powerful and widely used network file system in UNIX systems. NFS allows multiple users to share a common file system and provides the advantages of data centralization to minimize the required storage space. The NFS protocol is mainly implemented using the RPC (Remote Procedure Call) mechanism, which provides a set of operations for accessing remote files that are independent of the machine, operating system, and low-level transmission protocol. RPC uses the support of XDR, which is a machine-independent data description encoding protocol that encodes and decodes data transmitted on the Internet in a format independent of any machine architecture, supporting data transmission between heterogeneous systems.
[0056] Virtual File System (VFS) is an abstract layer in the operating system kernel that manages the access and operation of different types of file systems. It provides a unified interface that allows applications to read, write, create, and delete files without having to worry about the implementation details of the specific file system.
[0057] The following is a detailed introduction to the file system remote access method for DPU provided in this application.
[0058] like Figure 1 As shown, the embodiment of the present application provides a file system remote access method for DPU, and this embodiment uses this method for Figure 2 Taking the DPU shown in the figure as an example, the DPU is installed on the mainboard of the physical server, and the physical server is also installed with a HOST system; the method at least includes steps S101 to S103:
[0059] Step S101, sending a connection establishment request to the HOST, establishing a vsock communication channel based on the PCI address with the HOST, so as to access the HOST through the vsock communication channel.
[0060] In this embodiment, the DPU runs a kernel module of a custom file system and a network client component for remote access to the file system; correspondingly, the HOST runs a kernel module and a network server component for remote access to the file system. Virtual Socket (Vsock) is a communication mechanism that can be used in a virtualized environment, and it can communicate using different physical channels. In this embodiment, PCIe is used as the communication channel.
[0061] The file system is a custom file system based on the Linux virtual file system, which encapsulates the implementation logic of the network connection based on vsock and the implementation logic of the file system mounting.
[0062] In this embodiment, the implementation logic of the network connection based on vsock refers to the implementation logic of establishing the vsock communication channel between the DPU and the HOST. Based on this, the kernel module of the file system installed in the DPU and the kernel module installed in the HOST both support vsock and PCIe communication; at the same time, the PCIe driver is installed in both the DPU and the HOST to ensure that the vsock communication channel between the DPU and the HOST can be established. In the applications on the DPU and the HOST, the APIs of vsock and the virtual file system are used for business operations.
[0063] After starting the network server component, the HOST enters the connection request listening state to listen for the connection establishment request from the DPU. After starting the network client component, the DPU sends a connection establishment request to the HOST to establish a vsock communication channel based on the PCI address with the HOST.
[0064] Specifically, a connection establishment request is sent to the HOST, and a vsock communication channel based on a PCI address is established with the HOST, including: sending a connection establishment request to the HOST through a network client component, and establishing a vsock communication channel with the HOST.
[0065] In this embodiment, at least one HOST is running on the physical server, and at least one DPU is installed on the motherboard of the physical server. The communication between the DPU and the HOST requires the use of a PCI address, which is used to indicate a PCIE card slot where a network card is installed; the PCI address corresponding to the vsock module in the physical server is configured through a configuration file in the HOST so that the vsock module can use the PCI address, and the network card used to establish a vsock communication connection is determined through the PCI address.
[0066] At the same time, the communication between the DPU and the HOST also uses the vsock identifier. In the same physical server, different HOSTs have different corresponding vsock identifiers, and the vsock identifier configured by the HOST is used to uniquely indicate the HOST. In order for the DPU to establish a vsock communication channel with the specified HOST, the vsock identifier configured by the DPU is the same as the vsock identifier corresponding to the HOST that needs to establish a vsock communication channel.
[0067] Specifically, before sending a connection establishment request to the HOST and establishing a vsock communication channel based on the PCI address with the HOST, it also includes: in response to the received identification configuration instruction, configuring the vsock identification corresponding to the DPU to the vsock identification indicated by the identification configuration instruction; the vsock identification indicated by the identification configuration instruction is the same as the vsock identification of the HOST; the vsock identification configured by the HOST is used to uniquely indicate the HOST.
[0068] After completing the configuration of the vsock identifier and the PCI address, a vsock communication channel based on the PCI address is established between the DPU and the HOST, and the DPU and the HOST communicate through the vsock communication channel.
[0069] Step S102, mount the file system on the HOST to obtain the mount directory.
[0070] In this embodiment, the implementation logic of the file system mounting on the HOST is encapsulated in the file system. After the vsock communication channel between the DPU and T is successfully established, the DPU is allowed to access the HOST file system by configuring the file system whitelist configuration file of the HOST. After the whitelist configuration is completed, the file system mounting sharing on the HOST side can be performed on the DPU side to obtain the mounting directory.
[0071] Specifically, in this embodiment, the network service component includes a file system whitelist configuration file, which is used to configure the mount directory and the files allowed to be accessed under the mount directory. Through the file system whitelist configuration file, the directory that can be shared with the DPU and the files under the directory are configured so that the DPU can use the operation instructions encapsulated in the network client component and the vsock communication channel to access and operate the HOST side file system.
[0072] Step S103, in response to the received target operation instruction acting on the mount directory, the target operation instruction is sent to the HOST through the vsock channel, so that the HOST executes and returns the operation result corresponding to the target operation instruction after receiving and parsing the target operation instruction.
[0073] The target operation instruction is encapsulated in the client kernel module and the server kernel module. The target operation instruction includes a file creation instruction, a file deletion instruction, a file reading instruction, a file directory creation instruction, a file directory deletion instruction, a file directory modification instruction or a file writing instruction. In actual implementation, the target operation instruction also includes a file copy instruction, a file move instruction, etc. This embodiment does not limit the implementation method of the target operation instruction.
[0074] After receiving the file operation instruction sent by the user, the DPU uses the target operation instruction corresponding to the file operation instruction to process the file, including: sending the target operation instruction to the HOST through the vsock communication channel, so that the HOST executes the operation instruction through the kernel module after receiving the target operation instruction, so as to realize the operation of the file system in the HOST on the DPU.
[0075] After the HOST parses and executes the operation instruction, the operation result corresponding to the target operation instruction is returned to the DPU through the vsock communication channel, so that the user can view or perform subsequent file operations. For example, when the target operation instruction is a file read instruction, the HOST returns the file operator corresponding to the target file to the DPU, so that the user can subsequently access the target file through the file operator. After the access is completed, the file program operator is terminated and closed.
[0076] Specifically, when the target operation instruction is a file read instruction, the operation result also includes a file operator; after sending the target operation instruction to the HOST through the vsock communication channel, it also includes: accessing the target file indicated by the file read instruction through the file operator; the file operator is the operator obtained after the HOST opens the target file through the operation interface provided by the virtual file system protocol.
[0077] Figure 3Schematic diagram of the user state and kernel state of the DPU and HOST in this embodiment.
[0078] like Figure 3 As shown, in this embodiment, a network client component yusurfs-client of a custom file system is installed on the DPU side, and the network client component includes a client kernel module yusurfs.ko and a client network connection component yusurfs-proxy-client. Among them, yusurfs is a custom file system, and the module code is compiled into a yusurfs.ko file and loaded into the client kernel module using insmod yusurfs.ko.
[0079] The network server component yusurfs-server of the file system is installed on the HOST side. The server component includes the server kernel module yusurfs-server.ko and the server network connection component yusurfs-proxy-server.
[0080] On the HOST side, configure the file system whitelist configuration file, that is, the filesystem whitelist configuration file, to configure the path of the file system that needs to be mapped to the DPU. On the DPU side, mount and share the file system.
[0081] For example, in the / opt / yusur / yusurfs / whitelist file on the HOST side, configure to allow the DPU side to access the file system / opt / yusur / yusurfs / whitelist on the HOST side. Complete the configuration through the following instructions:
[0082] Path= / var / lib / libvirt / qemu; / home / vms
[0083] After completing the configuration on the HOST side, mount the file system on the DPU side and share it. Use the following command to complete the configuration:
[0084] mount -t yusurfs / home / vms / home / vms
[0085] After that, start the client network connection component yusurfs-proxy-client on the DPU side and start the server network connection component yusurfs-proxy-server on the HOST side to establish the vsock communication channel between the DPU and the HOST.
[0086] Before starting the client network connection component and the server network connection component, you need to configure the vsock identifier of the DPU and HOST.
[0087] For example, taking the vsock ID as 2, in HOST, set it with the following command:
[0088] Yusurfs-server vsock_cid=2vsock_port=12345log_level=WARN
[0089] Among them, vsock_cid is the vsock identifier, and vsock_port is the vsock port number.
[0090] In the DPU, use the following command to set it:
[0091] Yusurfs-client vsock_cid=2vsock_port=12345log_level=WARN
[0092] Among them, vsock_cid is the vsock identifier, and vsock_port is the vsock port number.
[0093] After that, use the Linux mount command on the DPU to mount the file system on the HOST and access the file system contents on the DPU.
[0094] For example, if the path of the file system on the HOST is / home / vms, after the DPU uses the Linux mount command mount-t qtfs / home / vms / dpu / vms to mount it, you can access the contents of / home / vms on the HOST in the / home / dpu / vms directory on the DPU.
[0095] The file system remote access method for DPU provided in this embodiment establishes a vsock communication channel based on a PCI address with the HOST by sending a connection establishment request to the HOST, so as to access the HOST through the vsock communication channel; mounts the file system on the HOST to obtain a mount directory; in response to the received target operation instruction acting on the mount directory, sends the target operation instruction to the HOST through the vsock communication channel, so that the HOST executes and returns the operation result corresponding to the target operation instruction after receiving the operation instruction analysis; solves the problem of high network delay in the process of remote access to the file system; by installing a custom file system client kernel module and a network client component in the DPU, installing a server kernel module and a network server component in the HOST, establishing a vsock communication channel between the DPU and the HOST, so as to transmit the target operation instruction sent by the DPU to the HOST server kernel module for execution, and realizes the access of the file system on the HSOT side on the DPU side, without using the network file system, so that the network delay in the process of remote access to the file system can be reduced, and the performance of remote access to the file system can be improved.
[0096] Furthermore, by customizing the virtual file system, the design and implementation of the file system can be simplified according to actual needs, reducing the complexity of the file system. At the same time, the difficulty of installation and use is reduced, and users do not need to learn a lot of relevant knowledge, reducing the user's learning cost, thereby improving the efficiency of remote access to the file system.
[0097] Furthermore, through a customized virtual file system, it is easier to adapt to specific operating system or environmental requirements, which can reduce the coordination and compatibility requirements between the DPU and the HOST, solve the compatibility issues that may exist when the network file system is cross-platform or when using different versions of the network file system, and improve the stability of remote access to the file system.
[0098] This embodiment provides a file system remote access device for DPU, such as Figure 4 This embodiment uses the device to Figure 2 In the DPU shown, the device includes at least the following modules: a request sending module 410, a file mounting module 420 and an instruction sending module 430.
[0099] The request sending module 410 is used to send a connection establishment request to the HOST, establish a vsock communication channel based on the PCI address with the HOST, and access the HOST through the vsock communication channel.
[0100] The file mounting module 420 is used to mount the file system on the HOST to obtain a mounting directory.
[0101] The instruction sending module 430 is used to respond to the received target operation instruction acting on the mounted directory and send the target operation instruction to the HOST through the vsock channel, so that the HOST executes and returns the operation result corresponding to the target operation instruction after receiving the target operation instruction.
[0102] For relevant details, refer to the above method and system embodiments.
[0103] It should be noted that: the file system remote access device for DPU provided in the above embodiment only uses the division of the above functional modules as an example when performing file system remote access. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the file system remote access device for DPU is divided into different functional modules to complete all or part of the functions described above. In addition, the file system remote access device for DPU provided in the above embodiment and the file system remote access method embodiment for DPU belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0104] Corresponding to the above method, the present invention also provides a file system remote access device for DPU, which includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the file system remote access method for DPU as mentioned above.
[0105] Corresponding to the above method, the present invention also provides an electronic device comprising: a computing component 1, an acceleration component 2, a memory expansion component 3 and a heat dissipation component 4;
[0106] (1) The computing component 1 includes: a central processing unit CPU, a double data rate synchronous dynamic random access memory DDR and a power supply;
[0107] (2) The acceleration component 2 includes: a switch switch interconnecting a carrier board and an acceleration card; wherein the acceleration card includes: one or more of a graphics processor GPU, a processor distributed processing unit DPU, and a neural network processor NPU;
[0108] (3) The memory expansion component 3 includes: a carrier board, and one or more of a memory expansion chip, a dual in-line memory module DIMM, and a memory-class storage medium SCM medium;
[0109] (4) The heat dissipation component 4 includes: one or more of air cooling and liquid cooling.
[0110] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned file system remote access method for DPU are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0111] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.
[0112] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0113] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.
[0114] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A file system remote access method for DPU, characterized in that: Applied in a DPU, the DPU is installed on a mainboard of a physical server; a HOST system is also installed in the physical server; a client kernel module of a custom file system and a network client component for remote access to the file system are installed in the DPU; a server kernel module of the file system and a network server component for remote access to the file system are installed in the HOST; the method comprises the following steps: Sending a connection establishment request to the HOST, establishing a vsock communication channel based on the PCI address with the HOST, so as to access the HOST through the vsock communication channel; Mount the file system on the HOST to obtain the mount directory; In response to the received target operation instruction acting on the mount directory, the target operation instruction is sent to the HOST through the vsock channel, so that the HOST executes and returns the operation result corresponding to the target operation instruction after receiving the target operation instruction and parsing it; the target operation instruction is encapsulated in the client kernel module and the server kernel module.
2. The file system remote access method for DPU according to claim 1, characterized in that: The file system encapsulates the implementation logic of the vsock-based network connection and the implementation logic of the file system mounting.
3. The file system remote access method for DPU according to claim 1, characterized in that: The DPU runs a client network connection component; the HOST runs a server network connection component; the HOST is in a connection request listening state after starting the server network connection component; the sending of a connection establishment request to the HOST to establish a vsock communication channel based on a PCI address with the HOST includes: A connection establishment request is sent to the HOST through the client network connection component to establish the vsock communication channel with the HOST.
4. The file system remote access method for DPU according to claim 3, characterized in that: The DPU and the HOST are configured with the same vsock identifier; before sending a connection establishment request to the HOST and establishing a vsock communication channel based on a PCI address with the HOST, the method further includes: In response to the received identification configuration instruction, the vsock word identification corresponding to the DPU is configured as the vsock identification indicated by the identification configuration instruction; the vsock identification indicated by the identification configuration instruction is the same as the vsock identification of the HOST; the vsock identification configured by the HOST is used to uniquely indicate the HOST.
5. The file system remote access method for DPU according to claim 1, characterized in that: The target operation instruction includes a file creation instruction, a file deletion instruction, a file reading instruction, a file directory creation instruction, a file directory deletion instruction, a file directory modification instruction or a file writing instruction.
6. The file system remote access method for DPU according to claim 5, characterized in that: In the case where the target operation instruction is the file read instruction, the operation result further includes a file operator; after sending the target operation instruction to the HOST through the vsock communication channel, the operation result further includes: The target file indicated by the file read instruction is accessed through the file operator; the file operator is an operator obtained after the HOST opens the target file through the operation interface provided by the virtual file system protocol.
7. The file system remote access method for DPU according to claim 1, characterized in that: The network service component includes a file system whitelist configuration file, and the file system whitelist configuration file is used to configure the mount directory and the files allowed to be accessed under the mount directory.
8. The file system remote access method for DPU according to claim 1, characterized in that: The file system is a custom file system based on the Linux virtual file system.
9. A file system remote access device for a DPU, comprising a processor and a memory, characterized in that: The memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the method as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Cloud computing node and file management method and device
CN113032099A
Access processing method and computer equipment
CN115309545A
