Search

CN-121658076-B - Method and device for sending access instruction, storage medium, electronic device and computer program product

CN121658076BCN 121658076 BCN121658076 BCN 121658076BCN-121658076-B

Abstract

The application discloses a sending method and a device of an access instruction, a storage medium, electronic equipment and a computer program product, and relates to the field of computers, wherein the method comprises the steps of reading control section data of a target message to a first-level cache and a second-level cache of a central processing unit under the condition of receiving a first notification message sent by a network card, wherein the first notification message is used for indicating that the network card has received the control section data; and determining an access instruction according to the control section data in the central processing unit, and sending the access instruction to a target hard disk to instruct the target hard disk to read the data section data of the target message stored in the network card to the target hard disk through a direct communication channel between the network card and the target hard disk.

Inventors

  • ZHANG DONG
  • MA HUAIXU
  • DANG RONGQUAN
  • FENG ZHEN
  • FANG HAO
  • DONG LIYUAN

Assignees

  • 济南浪潮数据技术有限公司

Dates

Publication Date
20260508
Application Date
20260209

Claims (18)

  1. 1. A method for sending an access instruction, comprising: under the condition that a first notification message sent by a network card is received, reading control section data of a target message to a first-level cache and a second-level cache of a central processing unit, wherein the first notification message is used for indicating that the network card has received the control section data; Determining an access instruction according to control section data in the central processing unit, and sending the access instruction to a target hard disk to instruct the target hard disk to read data section data of the target message stored in the network card to the target hard disk through a direct communication channel between the network card and the target hard disk; The method comprises the steps of reading control segment data of a target message to a first-level cache and a second-level cache of a central processing unit, registering partial memory for a network card in the central processing unit to obtain a registration memory of the network card, configuring a right of directly accessing the registration memory for the network card so that the network card configured with the right caches the control segment data to the registration memory through the mapping relationship, receiving a first notification message triggered by the network card when the network card determines that the control segment data is transferred to the registration memory, and continuously reading the control segment data cached to the registration memory to the first-level cache and the second-level cache in a batch mode when the first notification message sent by the network card is received.
  2. 2. The method according to claim 1, wherein the access instruction is sent to a target hard disk to instruct the target hard disk to read data segment data of the target packet stored in the network card to the target hard disk through a direct communication channel between the network card and the target hard disk, and the method further comprises: receiving a second notification message fed back by the target hard disk under the condition that the data segment data is successfully written into the target hard disk, wherein the second notification message is used for indicating that the data segment data is successfully written into the target hard disk; determining an on-chip memory used for storing the data of the data segment in the network card; and releasing the on-chip memory, and determining the state of the on-chip memory as an available state.
  3. 3. The method for sending an access instruction according to claim 1, wherein before reading control segment data of the target message to the primary cache and the secondary cache of the central processing unit, the method further comprises: obtaining the buffer capacity of the first-level buffer and the buffer capacity of the second-level buffer; and determining the data quantity of the control section data which is allowed to be processed by the primary cache and the secondary cache according to the cache quantity of the primary cache and the cache quantity of the secondary cache.
  4. 4. The method according to claim 3, wherein determining the data amounts of the control segment data that the primary cache and the secondary cache are permitted to process based on the cache amounts of the primary cache and the secondary cache, comprises: determining the data quantity CPU_I/O of the control segment data which is allowed to be processed by the primary cache and the secondary cache through the following formula: Cpu_i/o= (cpu_l1+cpu_l2) × (1- α), wherein cpu_l1 is the buffer size of the first level cache, cpu_l2 is the buffer size of the second level cache, and α is a first system preset coefficient.
  5. 5. The method according to claim 1, wherein the access instruction is sent to a target hard disk to instruct the target hard disk to read the data segment data of the target packet stored in the network card to the target hard disk through a direct communication channel between the network card and the target hard disk, and the method further comprises: Acquiring the bandwidth of the direct communication channel and the bandwidth of the network card; and determining the allowable data transfer quantity of the direct communication channel according to the bandwidth of the direct communication channel and the bandwidth of the network card.
  6. 6. The method according to claim 5, wherein determining the allowable data transfer amount of the direct communication channel according to the bandwidth of the direct communication channel and the bandwidth of the network card, comprises: the allowable Data Transfer amount data_transfer of the direct communication channel is determined by the following formula: Data_transfer= (pcie_bandwidth+net_bandwidth) × (1- β), where pcie_bandwidth is the Bandwidth of the direct communication channel, net_bandwidth is the Bandwidth of the network card, and β is a second system preset coefficient.
  7. 7. The method according to claim 1, wherein the access instruction is sent to a target hard disk to instruct the target hard disk to read data segment data of the target packet stored in the network card to the target hard disk through a direct communication channel between the network card and the target hard disk, and the method further comprises: acquiring the power consumption of the central processing unit, the power consumption of the network card and the power consumption of the target hard disk; And determining the current unloading capacity value of the hardware according to the power consumption of the central processing unit, the power consumption of the network card and the power consumption of the target hard disk.
  8. 8. The method for sending an access instruction according to claim 7, wherein determining the current unloading capability value of the hardware according to the power consumption of the central processing unit, the power consumption of the network card, and the power consumption of the target hard disk, comprises: the offloadability value Hardwire_Offload that the Hardware currently has is determined by the following formula: Hardware_Offload= (CPU_Power+Net_Power+Disk_Power): (1-gamma), wherein CPU_Power is the Power consumption of the central processing unit, net_Power is the Power consumption of the network card, disk_Power is the Power consumption of the target hard Disk, gamma is a third system preset coefficient, and the Hardware comprises the central processing unit, the network card and the target hard Disk.
  9. 9. The method for sending an access instruction according to claim 1, wherein determining the access instruction based on the control segment data in the central processing unit comprises: analyzing the control section data to obtain an analysis result; determining data segment data corresponding to the control segment data according to the analysis result, and determining the target hard disk and the storage offset of the target hard disk from a plurality of hard disks; And generating the access instruction at least according to the identification information of the data segment data and the storage offset.
  10. 10. The method according to claim 1, wherein the access instruction is sent to a target hard disk to instruct the target hard disk to read the data segment data of the target packet stored in the network card to the target hard disk through a direct communication channel between the network card and the target hard disk, and the method further comprises: Acquiring a peripheral component interconnection address of the network card and a peripheral component interconnection address of the target hard disk; and carrying out communication configuration according to the peripheral component interconnection address of the network card and the peripheral component interconnection address of the target hard disk so as to construct the direct communication channel.
  11. 11. The method for sending an access instruction according to claim 1, wherein sending the access instruction to a target hard disk to instruct the target hard disk to read data segment data of the target packet stored in the network card to the target hard disk through a direct communication channel between the network card and the target hard disk includes: Sending the access instruction to a target hard disk to instruct the target hard disk to initiate direct memory access operation to the network card through the direct communication channel; and writing the data segment data accessed from the network card into a memory of the target hard disk.
  12. 12. The method according to claim 11, wherein writing the data segment data accessed from the network card into the memory of the target hard disk includes: Writing the data segment data into a dynamic random access memory of the target hard disk; And under the condition of abnormal events, the data segment data stored in the dynamic random access memory is downwards brushed into a flash memory of the target hard disk through a super capacitor arranged in the target hard disk, wherein the super capacitor is respectively connected with the dynamic random access memory and the flash memory.
  13. 13. The method according to claim 1, wherein the access instruction is sent to a target hard disk to instruct the target hard disk to read the data segment data of the target packet stored in the network card to the target hard disk through a direct communication channel between the network card and the target hard disk, and the method further comprises: Determining an on-chip memory for caching data from the network card; and under the condition that the network card receives the target message, caching the data segment data in the target message to an on-chip cache in the network card.
  14. 14. The method for sending an access instruction according to claim 1, wherein before reading control segment data of the target message to the primary cache and the secondary cache of the central processing unit, the method further comprises: and distinguishing the control segment data from the data segment data in the target message according to a keyword matching mode, wherein the control segment data is used for being read to the primary cache and the secondary cache, and the data segment data is used for being written into the target hard disk.
  15. 15. An access instruction transmitting apparatus, comprising: the reading module is used for reading the control section data of the target message to the first-level cache and the second-level cache of the central processing unit under the condition that a first notification message sent by the network card is received, wherein the first notification message is used for indicating that the network card has received the control section data; The sending module is used for determining an access instruction according to the control section data in the central processing unit, and sending the access instruction to a target hard disk so as to instruct the target hard disk to read the data section data of the target message stored in the network card to the target hard disk through a direct communication channel between the network card and the target hard disk; The method comprises the steps of obtaining a network card, a reading module, a first notification message and a second notification message, wherein the network card is used for registering part of memory in a central processing unit to obtain a registration memory of the network card, a mapping relation exists between a storage area of the registration memory and an address space of the network card, configuring authority of directly accessing the registration memory for the network card, enabling the network card configured with the authority to cache control section data to the registration memory through the mapping relation, receiving the first notification message triggered by the network card when the network card determines that the control section data is transferred to the registration memory, and continuously reading the control section data cached to the registration memory to the first-level cache and the second-level cache in a batch mode when the first notification message sent by the network card is received.
  16. 16. An electronic device, comprising: A memory for storing a computer program; A processor for implementing the steps of the method of sending an access instruction according to any one of claims 1 to 14 when executing said computer program.
  17. 17. A computer-readable storage medium, in which a computer program is stored, wherein the computer program, when being executed by a processor, implements the steps of the method of sending an access instruction according to any one of claims 1 to 14.
  18. 18. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of sending access instructions according to any one of claims 1 to 14.

Description

Method and device for sending access instruction, storage medium, electronic device and computer program product Technical Field The present application relates to the field of computers, and in particular, to a method and apparatus for transmitting an access instruction, a storage medium, an electronic device, and a computer program product. Background In the information age, the volume of data has increased explosively, placing higher demands on storage systems. Conventional storage systems, especially those based on a centralized architecture, tend to suffer from high latency and low bandwidth limitations, which make it difficult to accommodate the high performance computing and large data processing requirements. In recent years, super-fusion storage systems have received increasing attention as an emerging storage solution. Super-fusion storage achieves a tight combination of computation and storage by integrating computing resources (e.g., central processing units (Central Processing Unit, abbreviated CPU)) with storage resources (e.g., hard disks) within the same node, with the aim of providing higher data processing performance and lower latency. Currently, most super-fusion storage system optimizations focus on the software level, improving system performance by improving algorithms and optimizing data structures. Although these approaches improve the efficiency of data processing to some extent, they often ignore the potential of hardware level, especially the lack of resource coordination between the central processor, the network card and the hard disk, resulting in inefficient utilization of the primary and secondary caches of the central processor, and limited performance of the network card and the hard disk. Therefore, the problem that the primary cache and the secondary cache of the central processing unit are not effectively utilized and the performance of the network card and the hard disk is limited due to insufficient resource coordination among the central processing unit, the network card and the hard disk in the related art is not solved effectively. Disclosure of Invention The application provides a sending method and a sending device of an access instruction, a storage medium, electronic equipment and a computer program product, which at least solve the problem that a server display output scheme in the related art only supports display output through on-board equipment or common display output through all off-board equipment and cannot specify specific equipment for display output. The application provides a sending method of an access instruction, which comprises the steps of reading control section data of a target message to a first-level cache and a second-level cache of a central processing unit under the condition that a first notification message sent by a network card is received, wherein the first notification message is used for indicating that the network card has received the control section data, determining the access instruction according to the control section data in the central processing unit, and sending the access instruction to a target hard disk so as to indicate the target hard disk to read the data section data of the target message stored in the network card to the target hard disk through a direct communication channel between the network card and the target hard disk. The application also provides a sending device of the access instruction, which comprises a reading module and a sending module, wherein the reading module is used for reading the control section data of the target message to the first-level cache and the second-level cache of the central processing unit under the condition of receiving the first notification message sent by the network card, the first notification message is used for indicating that the network card has received the control section data, and the sending module is used for determining the access instruction according to the control section data in the central processing unit and sending the access instruction to the target hard disk so as to indicate the target hard disk to read the data section data of the target message stored in the network card to the target hard disk through a direct communication channel between the network card and the target hard disk. The application also provides electronic equipment, which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor is used for realizing the steps of any one of the sending methods of the access instructions when executing the computer program. The present application also provides a computer-readable storage medium in which a computer program is stored, wherein the computer program when executed by a processor implements the steps of any one of the above access instruction transmission methods. The application also provides a computer program product comprising a computer program which, when executed by a proce