A high-performance computing power scheduling system and implementation method

By designing a high-performance computing power scheduling system and utilizing asynchronous processing and dynamic scheduling of heterogeneous computing power resources, the problem of difficult and low-efficiency scheduling of heterogeneous computing power resources is solved, and efficient utilization and rapid response of computing capabilities are achieved.

CN118535347BActive Publication Date: 2024-10-22ZHEJIANG LAB
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410997646.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-22
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

The existing technology has the problems of difficulty in scheduling heterogeneous computing resources, low efficiency, and a lot of waste of computing resources.

Method used

A high-performance computing power scheduling system is designed, including a startup module, a message queue module, a management plane module, a data plane module and a load balancing module. By creating a message queue and computing threads, a mapping relationship table is generated, and user requests are dynamically scheduled to the end. Appropriate CPU, FPGA or GPU resources enable fully asynchronous processing and efficient resource utilization.

Benefits of technology

It improves the utilization of heterogeneous computing resources, realizes fast processing and high-performance computing of large computing tasks, reduces latency and execution overhead, provides a unified interface and flexible resource scheduling, and enhances the flexibility and flexibility of computing clusters. Scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535347B_ABST
    Figure CN118535347B_ABST
Patent Text Reader

Abstract

The present invention provides a high-performance computing power scheduling system and implementation method, which reads a default configuration file, pre-creates various required resources and completes the binding of computing threads and virtual cores, the allocation of message queues, and the work of message queues and computing thread mapping tables, and finally completes the computing power service registration, waiting for the computing request to enter; after distributing the request to a certain computing power pool, the computing power pool unseals the message and sends it to the message queue, and finally distributes the message to the computing thread bound to the virtual core for processing. After the processing is completed, the result is sent to the corresponding sending queue and finally returned to the user. The present invention effectively schedules heterogeneous computing power resources such as CPU, GPU, FPGA, and dynamically adjusts the number of virtual cores, computing threads, and lock-free message queues allocated to different computing power resources, thereby improving the utilization efficiency of computing power resources, and further improving the throughput and computing efficiency of the system, and also enhancing the flexibility and scalability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of high-performance computing power scheduling, and in particular to a high-performance computing power scheduling system and implementation method. Background Art

[0002] Current technological developments are driving an increasing demand for high-performance computing resources in fields such as artificial intelligence, big data analysis, and scientific computing. However, traditional computing power provision models are no longer able to meet the urgent computing demands of these emerging applications. To fully leverage heterogeneous computing resources and improve resource utilization, a new scheduling paradigm based on computing power pools has emerged. Computing power pools are a centralized computing resource management model that centralizes heterogeneous computing resources such as CPUs, GPUs, and FPGAs into a unified resource pool. These resources are then managed and scheduled uniformly through a scheduling system. The core goal of computing power pools is to achieve efficient and flexible utilization of computing resources, avoid idle resources and waste, and provide applications with scalable, high-performance, and on-demand computing power.

[0003] In a computing power pool, computing resources are typically composed of a variety of heterogeneous hardware, including general-purpose CPUs, specialized GPUs, and programmable FPGAs. These hardware components have different computing characteristics and are suitable for different types of workloads: CPUs excel at general-purpose computing tasks, offering high processing power and low cost, but their performance can be bottlenecked in certain intensive computing scenarios. GPUs are designed for highly parallelized numerical computations and excel in areas such as deep learning and graphics rendering, outperforming CPUs by orders of magnitude, but with higher power consumption. FPGAs offer reconfigurable computing capabilities and can implement customized acceleration for specific areas such as signal processing and cryptography. In some scenarios, their energy efficiency exceeds that of GPUs, but they have a longer development cycle and limited reusability.

[0004] These heterogeneous computing resources constitute a huge computing power pool. In order to fully utilize their different capabilities and characteristics, an efficient scheduling mechanism is needed to analyze the workload to be processed and dynamically schedule it to the most appropriate computing resource on demand. Summary of the Invention

[0005] The purpose of the present invention is to provide a high-performance computing power scheduling implementation method and device to solve the problems of difficulty in scheduling heterogeneous computing power resources, low efficiency, and excessive waste of computing power resources in the existing technology.

[0006] The technical solution adopted in the present invention is as follows:

[0007] The first aspect of the present invention is a high-performance computing power scheduling system, which includes the following modules:

[0008] Startup module: After the entire machine is powered on, the management plane and data plane processes are started, other processes and corresponding threads are pulled up, communication links are established, default configurations are read, and various required resources are created;

[0009] Message queue module: creates a message queue and generates a queue management thread; used to cache all computing requests and implement fully asynchronous processing; the queue thread management thread is used to manage the message queue;

[0010] Management plane module: The computing thread of the data plane generates a mapping relationship table and updates it synchronously to the management plane. The management plane uses the mapping relationship table to manage and monitor the data plane computing resource pool in real time.

[0011] Data plane module: used to read configurations and create computing threads, receive and process forwarded user requests, and build a large-scale computing power pool; the computing threads are used to bind to computing cores and use the computing power of CPU, FPGA, or GPU components;

[0012] Load balancing module: used to forward computing requests to the data plane. Based on the computing power pool registration and monitoring data, the requests are forwarded to each data plane to complete the calculation.

[0013] Furthermore, the message queue module creates a message queue and generates a queue management thread and a computing thread. Specifically, after the management plane and the data plane are started up, they read the default configuration respectively to obtain configuration information; the data plane creates a lock-free message queue pair and a queue management thread according to the default configuration number, and creates computing threads in proportion to the number of virtual cores, and creates a matching number of computing threads according to the computing power capabilities of the FPGA and GPU.

[0014] Furthermore, a mapping relationship table is generated by the computing threads in the management plane module, specifically: the computing threads are bound to different virtual cores respectively, and a proportion of the computing threads are divided as heterogeneous computing power dedicated to FPGA and GPU; the lock-free message queue is assigned to the corresponding computing thread, and the two are bound to generate a mapping relationship table of the lock-free message queue, computing thread, virtual core, and hardware computing power resources.

[0015] Furthermore, the divided portion of computing threads is used as heterogeneous computing power for FPGA and GPU, wherein the division ratio is adjusted in the configuration based on the number of heterogeneous computing power, computing power size, total number of virtual cores and business type, and the ratio value is 20%.

[0016] Furthermore, the data plane in the data plane module builds a large-scale computing power pool to forward user requests to the data plane. Specifically, the data plane registers its own computing power service with the load balancing component to facilitate the formation of a cluster and the construction of a large-scale computing power pool; the load balancing component obtains the status of each computing power pool by querying the management platform, and directly forwards user requests to the data plane to complete the calculation.

[0017] The second aspect of the present invention is a method for implementing a high-performance computing power scheduling system, the method comprising the following steps:

[0018] (1) In the system computing resource scheduling process, the user computing request is first sent to the load balancing component, which generates a UUID and encapsulates the user request into a message. Based on the current computing pool status, it selects a computing pool with remaining computing resources and forwards the user request message to the corresponding data plane.

[0019] (2) After the computing power pool of the data plane receives the message, it is handed over to the queue management thread for message parsing, and the message is selected according to certain rules. A non-full lock-free message queue is selected and the message is queued, that is, the message is distributed, and the user request is placed in the lock-free hash table and waits for the calculation result to be returned;

[0020] (3) If all message queues are full, the queue management thread dynamically creates a lock-free message queue and synchronously binds it to the same computing thread. At the same time, the data plane and management plane update the queue relationship mapping table in real time;

[0021] (4) The computing thread bound to the CPU virtual core takes out the message from the associated message queue receiving queue, parses the message, takes out the user data, and performs calculation processing. After the calculation is completed, the computing thread encapsulates the data into a result message and puts it back into the message queue sending queue;

[0022] (5) One or more computing threads bound to the FPGA take out messages from the associated message queue receiving queue. If each computing thread has multiple associated receiving queues, it polls and takes out messages. After one or more computing threads parse the message, they take out the data and call the FPGA interface to send the data to the FPGA for calculation. After the calculation is completed, the computing thread repackages the result into a message and puts it back into the message queue sending queue.

[0023] (6) One or more computing threads bound to the GPU take out messages from the associated message queue receiving queue. If each computing thread has multiple associated receiving queues, it polls and takes out messages; after one or more computing threads parse the message, they take out the data and call the GPU interface in the calculation process to send the data to the GPU for calculation. After the calculation is completed, the computing thread repackages the result into a message and puts it back into the message queue sending queue;

[0024] (7) The queue management thread polls all message queues, finds the message that the calculation is completed, and extracts the corresponding UUID from the message. The queue management thread accesses the lock-free hash table, uses the UUID as the key value, finds the user request waiting for response, fills the calculation result into the response message, and returns it to the user.

[0025] Furthermore, in the step (1), the remaining computing power pool of a certain computing power resource is considered to have computing power surplus when the CPU usage of each virtual core is monitored and the CPU usage is lower than 50%.

[0026] Furthermore, the rules in step (2) are specifically as follows: making a comprehensive decision based on the current message type, message queue load, CPU, GPU and FPGA computing power utilization; if the current message is calculated using FPGA and the FPGA message queue load is not full, then forwarding the message to the FPGA message queue for processing.

[0027] The third aspect of the present invention: an electronic device, comprising a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the implementation method of the high-performance computing power scheduling system.

[0028] The fourth aspect of the present invention: A computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the implementation method steps of the high-performance computing power scheduling system.

[0029] The third aspect of the present invention: an electronic device, comprising a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the implementation method of the high-performance computing power scheduling system.

[0030] The fourth aspect of the present invention: A computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the implementation method steps of the high-performance computing power scheduling system.

[0031] The beneficial effects of the present invention are:

[0032] The present invention makes full use of heterogeneous computing resources, including CPU, FPGA, GPU, etc., and constructs a computing power pool through a unified computing power scheduling method, shielding the differences between heterogeneous computing hardware, providing a unified interface for applications, and improving the utilization rate of hardware computing power. Its implementation method is simple and the means are flexible. The present invention can also enhance the overall flexibility and scalability of the computing power cluster by constructing a computing power pool cluster, and adapt and distribute different parallel computing tasks according to the characteristics of different computing hardware, accelerate the processing speed and computing performance of large-scale computing tasks, improve the overall concurrency and throughput of the system, and have significant improvements over existing related technologies. The execution overhead caused by the present invention is small, the heterogeneous computing power is fully asynchronously calculated, the user response is fast, the delay is low, and the performance indicators are better than the current mechanism in which heterogeneous computing power cannot be uniformly scheduled and synchronously calculates and waits for results. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 A schematic diagram of a computing power scheduling process for a high-performance computing power scheduling implementation method provided by one embodiment of the present invention;

[0035] Figure 2 A schematic diagram of a system initialization process for a high-performance computing power scheduling implementation method provided by another embodiment of the present invention;

[0036] Figure 3 A schematic diagram of a computing power cluster composition of a high-performance computing power scheduling implementation method and apparatus provided by one embodiment of the present invention;

[0037] Figure 4 A schematic diagram of lock-free message queue transmission and reception for a high-performance computing power scheduling implementation method and apparatus provided by one embodiment of the present invention;

[0038] Figure 5 A structural block diagram of a high-performance computing power scheduling implementation device provided for one embodiment of the present invention. DETAILED DESCRIPTION

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0040] It should be noted that, unless there is any conflict, the features in the following embodiments and implementations may be combined with each other.

[0041] The present invention first provides a high-performance computing power scheduling system, which includes the following modules:

[0042] Startup module: After the entire machine is powered on, the management plane and data plane processes are started, other processes and corresponding threads are pulled up, communication links are established, default configurations are read, and various required resources are created;

[0043] Message queue module: creates a message queue and generates a queue management thread; used to cache all computing requests and implement fully asynchronous processing; the queue thread management thread is used to manage the message queue;

[0044] Management plane module: The computing thread of the data plane generates a mapping relationship table and updates it synchronously to the management plane. The management plane uses the mapping relationship table to manage and monitor the data plane computing resource pool in real time.

[0045] Data plane module: used to read configurations and create computing threads, receive and process forwarded user requests, and build a large-scale computing power pool; the computing threads are used to bind to computing cores and use the computing power of CPU, FPGA, or GPU components;

[0046] Load balancing module: used to forward computing requests to the data plane. Based on the computing power pool registration and monitoring data, the requests are forwarded to each data plane to complete the calculation.

[0047] like Figure 1 and Figure 2 As shown, the system initialization phase of the present invention is implemented based on a high-performance computing power scheduling system, and specifically includes the following steps:

[0048] S11: After the entire machine is powered on, the management plane and data plane processes are started, and other processes and corresponding threads are pulled up, and communication links are established;

[0049] S12. After the management plane and the data plane are started, they read the default configuration to obtain configuration information.

[0050] S13. The data plane creates lock-free message queue pairs and queue management threads according to the default configuration number, and creates computing threads in proportion to the number of virtual cores, and creates a number of computing threads that matches the computing power of the FPGA and GPU.

[0051] S14. Computing threads are bound to different virtual cores, and the division ratio is 20% (the division ratio is adjusted in the configuration based on the number of heterogeneous computing power, computing power size, total number of virtual cores, and business type). Computing threads are used as heterogeneous computing power, dedicated to FPGA and GPU; lock-free message queues are assigned to corresponding computing threads, and the two are bound to generate a mapping relationship table of lock-free message queues, computing threads, virtual cores, and hardware computing power resources.

[0052] S15. The generated mapping relationship table is synchronously updated to the management plane, and the management plane manages and monitors the data plane computing resource pool in real time based on the mapping relationship table.

[0053] S16. The data plane registers its own computing power service with the load balancing component to facilitate the formation of a cluster and form a large-scale computing power pool; the load balancing component obtains the status of each computing power pool by querying the management platform, and forwards the user request directly to the data plane to complete the calculation.

[0054] like Figure 3 and Figure 4 As shown, the system computing power resource scheduling process of the present invention specifically includes the following steps:

[0055] S21. The user computing request is first sent to the load balancing component, which generates a UUID (universally unique identifier) ​​and encapsulates the user request into a message. Based on the current computing power pool status, it selects a computing power pool with remaining computing power resources and forwards the user request message to the corresponding data plane.

[0056] S22. After receiving the message, the computing power pool of the data plane is handed over to the queue management thread for message parsing. The message is selected according to a certain rule and a non-full lock-free message queue is selected and the message is queued, that is, the message is distributed. The user request is placed in a lock-free hash table and waits for the calculation result to be returned. The certain rule is to make a comprehensive decision based on the current message type, message queue load, CPU, GPU and FPGA computing power utilization. If the current message is calculated using FPGA and the FPGA message queue is not full, the message is forwarded to the FPGA message queue for processing.

[0057] S23. If all message queues are full, the queue management thread dynamically creates a lock-free message queue and synchronously binds it to the same computing thread. At the same time, the data plane and management plane update the queue relationship mapping table in real time.

[0058] S24. The computing thread bound to the CPU virtual core takes out the message from the associated message queue receiving queue, parses the message, takes out the user data, and performs calculation processing. After the calculation is completed, the computing thread encapsulates the data into a result message and puts it back into the message queue sending queue.

[0059] S25. One or more computing threads bound to the FPGA retrieve messages from the associated message queue's receive queue. If each computing thread has multiple associated receive queues, messages are retrieved in a round-robin fashion. After parsing the message, the one or more computing threads retrieve the data and call the FPGA interface to send the data to the FPGA for computation. After the computation is complete, the computing thread repackages the result into a message and returns it to the message queue's send queue.

[0060] S26. One or more computing threads bound to the GPU take out messages from the associated message queue receiving queue. If each computing thread has multiple associated receiving queues, the messages are taken out in rounds. After parsing the message, one or more computing threads take out the data and call the GPU interface in the calculation process to send the data to the GPU for calculation. After the calculation is completed, the computing thread repackages the result into a message and puts it back into the message queue sending queue (where Figure 4 XPU refers to various other PUs, such as CPU, GPU, NPU, etc.).

[0061] S27. The queue management thread polls all message queues, finds the message of completed calculation, and extracts the corresponding UUID from the message. The queue management thread accesses the lock-free hash table, uses the UUID as the key value, finds the user request waiting for response, fills the calculation result into the response message, and returns it to the user.

[0062] The present invention also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A high-performance computing power scheduling implementation method is provided.

[0063] The present invention also provides Figure 5 The one shown corresponds to Figure 1 A schematic diagram of a high-performance computing power scheduling implementation method and device. Figure 5 As mentioned above, at the hardware level, the high-performance computing power scheduling implementation method and device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 Of course, in addition to software implementation, the present invention does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0064] Improvements to a technology can be clearly categorized as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with technological advancements, many process flow improvements can now be considered direct hardware circuit structure improvements. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using physical hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can integrate a digital system onto a PLD by programming it themselves, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly performed using software called a "logic compiler." This is similar to the software compilers used during program development. Before compilation, the original code must be written in a specific programming language, called a hardware description language (HDL). There are many types of HDL, including ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages ​​and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.

[0065] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the memory control logic. Those skilled in the art will also appreciate that, in addition to implementing the controller purely in computer-readable program code, the controller can also be implemented in the form of logic gates, switches, an application-specific integrated circuit, a programmable logic controller, an embedded microcontroller, etc. by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the means for implementing the various functions included therein can also be considered as structures within the hardware component. Alternatively, the means for implementing the various functions can be considered both a software module implementing the method and a structure within the hardware component.

[0066] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0067] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0068] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0069] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0070] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0071] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0072] In a typical configuration, a computing device includes one or more processors (CPU, GPU, FPGA, etc.), input / output interfaces, network interfaces, and memory.

[0073] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0074] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0075] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.

[0076] The present invention may be described in the general context of computer-executable instructions, such as program modules, executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media, including storage devices.

[0077] The various embodiments of the present invention are described in a progressive manner. Similar portions between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so its description is relatively simple. For relevant portions, refer to the description of the method embodiment.

[0078] The foregoing is merely an embodiment of the present invention and is not intended to limit the present invention. It will be apparent to those skilled in the art that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are intended to be included within the scope of the claims of the present invention.

Claims

1. A method for implementing a high-performance computing power scheduling system, characterized in that: The high-performance computing power scheduling system includes the following modules: Startup module: After the whole machine is powered on, the management plane and data plane processes are started, other processes and corresponding threads are pulled up, and communication links are established, the default configuration is read respectively, and various required resources are created; Message queue module: creates a message queue and generates a queue management thread; Used to cache all computing requests to achieve fully asynchronous processing; the queue thread management thread is used to manage the message queue; the message queue module creates a message queue and generates a queue management thread and a computing thread, specifically: after the management plane and the data plane are started, they read the default configuration respectively to obtain configuration information; the data plane creates a lock-free message queue pair and a queue management thread according to the default configuration number, and creates computing threads in proportion to the number of virtual cores, and creates a matching number of computing threads according to the computing power capabilities of the FPGA and GPU; Management plane module: the computing thread of the data plane generates a mapping relationship table, and updates it synchronously to the management plane, so that the management plane can perform real-time management and monitoring of the data plane computing resource pool according to the mapping relationship table; the computing thread in the management plane module generates a mapping relationship table, specifically: the computing threads are respectively bound to different virtual cores, and a portion of the computing threads are divided as heterogeneous computing power for FPGA and GPU; the lock-free message queue is assigned to the corresponding computing thread, and the two are bound to generate a mapping relationship table of lock-free message queue, computing thread, virtual core, and hardware computing power resources; the portion of the computing threads is divided as heterogeneous computing power for FPGA and GPU, where the division ratio is adjusted in the configuration according to the number of heterogeneous computing power, computing power size, total number of virtual cores and business type, and the ratio value is 20%; Data plane module: used to read configuration and create computing threads, receive and process forwarded user requests, and build a large-scale computing power pool; the computing thread is used to bind to the computing core and use the CPU or FPGA or GPU component computing power; the data plane in the data plane module builds a large-scale computing power pool to forward user requests to the data plane, specifically: the data plane registers its own computing power service with the load balancing component to facilitate cluster formation and build a large-scale computing power pool; The load balancing component obtains the status of each computing pool by querying the management platform, and directly forwards the user request to the data plane to complete the calculation; Load balancing module: used to forward computing requests to the data plane. According to the computing power pool registration and monitoring data, the requests are forwarded to each data plane to complete the computing. The implementation method includes the following steps: (1) In the system computing resource scheduling process, the user computing request is first sent to the load balancing component, which generates a UUID and encapsulates the user request into a message. It then selects a computing pool with remaining computing resources based on the current computing pool status and forwards the user request message to the corresponding data plane. The computing pool with remaining computing resources is the one with a CPU usage rate of less than 50% under the monitoring of the CPU usage rate of each virtual core, which is considered to have computing power surplus. (2) After receiving the message, the computing power pool of the data plane is handed over to the queue management thread for message parsing, and selects a non-full lock-free message queue according to the rules and puts the message into the queue, that is, distributes the message, and puts the user request into the lock-free hash table and waits for the calculation result to be returned; the rules are specifically: make a comprehensive decision based on the current message type, message queue load, CPU, GPU and FPGA computing power utilization; if the current message uses FPGA calculation and the FPGA message queue load is not full, forward the message to the FPGA message queue for processing; (3) If all message queues are full, the queue management thread dynamically creates a lock-free message queue and synchronously binds it to the same computing thread. At the same time, the data plane and management plane update the queue relationship mapping table in real time. (4) The computing thread bound to the CPU virtual core takes out the message from the associated message queue receiving queue, parses the message, takes out the user data, and performs calculation processing. After the calculation is completed, the computing thread encapsulates the data into a result message and puts it back into the message queue sending queue; (5) One or more computing threads bound to the FPGA take out messages from the associated message queue receiving queue. If each computing thread has multiple associated receiving queues, it polls and takes out messages. After one or more computing threads parse the message, they take out the data and call the FPGA interface to send the data to the FPGA for calculation. After the calculation is completed, the computing thread repackages the result into a message and puts it back into the message queue sending queue. (6) One or more computing threads bound to the GPU take messages from the associated message queue receiving queue. If each computing thread has multiple associated receiving queues, the messages are taken out in rounds. After one or more computing threads parse the message, they take out the data and call the GPU interface in the calculation process to send the data to the GPU for calculation. After the calculation is completed, the computing thread repackages the result into a message and puts it back into the message queue sending queue. (7) The queue management thread polls all message queues, finds the message that the calculation is completed, and extracts the corresponding UUID from the message. The queue management thread accesses the lock-free hash table, uses the UUID as the key value, finds the user request waiting for response, fills the calculation result into the response message, and returns it to the user.

2. An electronic device, characterized in that: It includes a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the implementation method of the high-performance computing power scheduling system described in claim 1.

3. A computer-readable storage medium, characterized in that: A program is stored thereon, and when the program is executed by a processor, the implementation method steps of the high-performance computing power scheduling system described in claim 1 are implemented.

Citation Information

Cited By

  • Computer computing power improving method and system based on computing power resource scheduling

    CN122195608A