High-performance computing power scheduling system and implementation method
By designing a high-performance computing power scheduling system and unified management of heterogeneous computing power resources, the problems of difficult and low-efficiency scheduling of heterogeneous computing power resources are solved, and efficient and flexible resource utilization and computing performance improvement are achieved.
Patent Information
- Application Number
- CN202410997646.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-07-24
AI Technical Summary
The existing technology is difficult to schedule heterogeneous computing resources, has low efficiency, and wastes a lot of computing resources, and cannot meet the demand for high-performance computing in fields such as artificial intelligence and big data analysis.
A high-performance computing power scheduling system is designed. Through the combination of startup module, message queue module, management plane module, data plane module and load balancing module, it realizes unified scheduling and management of heterogeneous computing power resources and dynamically schedules computing requests. Run on the most appropriate computing resources.
It improves the utilization of heterogeneous computing resources, achieves efficient and flexible computing resource management, enhances computing performance and scalability, reduces resource waste, and provides fast user response and low latency.
Smart Images

Figure CN118535347A
Abstract
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 an implementation method thereof. Background Art
[0002] In the current technological development trend, the demand for high-performance computing resources in fields such as artificial intelligence, big data analysis, and scientific computing is increasing day by day. However, the traditional computing power supply model has been unable to meet the urgent demand for computing power in these emerging applications. In order to make full use of heterogeneous computing power resources and improve resource utilization, a new scheduling paradigm based on computing power pools has emerged. The computing power pool is a centralized computing power resource management model that concentrates heterogeneous computing power resources such as CPU, GPU, FPGA, etc. into a unified resource pool, and manages and schedules these computing power resources in a unified manner through a scheduling system. The core goal of the computing power pool is to achieve efficient and elastic utilization of computing power resources, avoid idle and wasteful resources, and provide scalable, high-performance, on-demand computing power capabilities for applications.
[0003] In a computing power pool, computing power resources are usually composed of a variety of heterogeneous hardware, including general-purpose CPUs, dedicated GPUs, programmable FPGAs, etc. These hardware have different computing characteristics and are suitable for different types of workloads: CPUs are good at general-purpose computing tasks, with strong processing power and low cost, but their performance will be bottlenecked in some intensive computing scenarios. GPUs are designed for highly parallelized numerical calculations, and they perform well in fields such as deep learning and graphics rendering. Their performance exceeds that of CPUs by several orders of magnitude, but their power consumption is relatively high. FPGAs have reconfigurable computing capabilities and can achieve customized acceleration for specific fields such as signal processing and cryptography. In some scenarios, their energy efficiency ratio exceeds that of GPUs, but their development cycle is long and their reusability is limited.
[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 as needed. 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 high waste of computing power resources in the prior art.
[0006] The technical solution adopted by the present invention is as follows: The first aspect of the present invention is a high-performance computing power scheduling system, which 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 and implement fully asynchronous processing; the queue thread management thread is used to manage the message queue; 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 manage and monitor the data plane computing resource pool in real time according to the mapping relationship table; 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 threads are used to bind to the computing core and use the computing power of the CPU or FPGA or GPU components; 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 calculation.
[0007] 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.
[0008] Furthermore, a mapping relationship table is generated by computing threads in the management plane module, specifically: computing threads are respectively bound to different virtual cores, and a portion of computing threads are divided 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.
[0009] 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%.
[0010] 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 to 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 power pool by querying the management platform, and directly forwards user requests to the data plane to complete the calculation.
[0011] 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: (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. (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; (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.
[0012] Furthermore, in the step (1), the remaining computing power pool of a computing power resource is considered to have a computing power surplus when the CPU usage rate of each virtual core is monitored and the CPU usage rate is lower than 50%.
[0013] Furthermore, the rule in step (2) is specifically as follows: a comprehensive decision is made 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, the message is forwarded to the FPGA message queue for processing.
[0014] 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.
[0015] 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.
[0016] 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.
[0017] 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.
[0018] The beneficial effects of the present invention are: The present invention makes full use of heterogeneous computing resources, including CPU, FPGA, GPU, etc., and constructs a computing pool through a unified computing scheduling method, shielding the differences between heterogeneous computing hardware, providing a unified interface for applications, and improving the utilization rate of hardware computing power. The 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, speed up the processing speed and computing performance of large computing tasks, and improve the overall concurrency and throughput of the system, which is significantly improved compared with the existing related technologies. The execution overhead caused by the present invention is small, the heterogeneous computing power is completely asynchronously calculated, the user response is fast, the delay is low, and the performance indicators are better than the current heterogeneous computing power that cannot be uniformly scheduled and the synchronous calculation waits for the result mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. 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.
[0020] Figure 1 A schematic diagram of a computing power scheduling process of a high-performance computing power scheduling implementation method provided by an embodiment of the present invention; Figure 2 A schematic diagram of a system initialization process of a high-performance computing power scheduling implementation method provided by another embodiment of the present invention; Figure 3 A schematic diagram of a computing power cluster composition of a high-performance computing power scheduling implementation method and device provided by an embodiment of the present invention; Figure 4 A schematic diagram of lock-free message queue transmission and reception of a high-performance computing power scheduling implementation method and device provided by an embodiment of the present invention; 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
[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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 creative work are within the scope of protection of the present invention.
[0022] It should be noted that, in the absence of conflict, the features in the following embodiments and implementations may be combined with each other.
[0023] The present invention first provides a high-performance computing power scheduling system, which 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 and implement fully asynchronous processing; the queue thread management thread is used to manage the message queue; 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 manage and monitor the data plane computing resource pool in real time according to the mapping relationship table; 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 threads are used to bind to the computing core and use the computing power of the CPU or FPGA or GPU components; 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 calculation.
[0024] 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: S11, after the whole 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; S12. After the management plane and the data plane are started up, they read the default configurations respectively to obtain configuration information. S13. The data plane creates a lock-free message queue pair and a queue management thread according to the default configuration number, creates computing threads in proportion to the number of virtual cores, and creates a matching number of computing threads according to the computing power of the FPGA and GPU. S14. Computing threads are bound to different virtual cores respectively, 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.
[0025] 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 according to the mapping relationship table.
[0026] 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 directly forwards the user request to the data plane to complete the calculation.
[0027] like Figure 3 and Figure 4 As shown, the system computing power resource scheduling process of the present invention specifically includes the following steps: 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. It 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.
[0028] S22. 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 certain 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 certain rules are 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 uses FPGA calculation and the FPGA message queue load is not full, the message is forwarded to the FPGA message queue for processing.
[0029] 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 the management plane update the queue relationship mapping table in real time.
[0030] S24. The computing thread bound to the CPU virtual core takes out a message from the message queue receiving queue associated with it, 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.
[0031] S25, 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, the messages are taken out in rounds. After parsing the message, one or more computing threads 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.
[0032] 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 computing process to send the data to the GPU for computing. After the computing 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 GPUNPU, etc.).
[0033] S27. The queue management thread polls all message queues to find the message that the calculation is completed, and takes out 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.
[0034] 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.
[0035] 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 include a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course 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 implement the above Figure 1 Of course, in addition to the software implementation, the present invention does not exclude other implementations, 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.
[0036] For the improvement of a technology, it can be clearly distinguished whether it is a hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or a software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as 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, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0037] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0038] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with 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 smart phone, 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.
[0039] 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.
[0040] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. 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 disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0041] 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 flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, 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 flowchart and / or block diagram. 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.
[0042] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate 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 A function specified in one or more boxes.
[0043] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0044] In a typical configuration, a computing device includes one or more processors (CPU, GPU, FPGA, etc.), input / output interfaces, network interfaces, and memory.
[0045] The 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. The memory is an example of a computer-readable medium.
[0046] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. 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 disk read-only memory (CD-ROM), digital versatile disk (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 temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0047] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, 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 disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0048] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. 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 through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0049] Each embodiment of the present invention is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0050] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A high-performance computing power scheduling system, characterized in that: The 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 and realize fully asynchronous processing; the queue thread management thread is used to manage the message queue; 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 manage and monitor the data plane computing resource pool in real time according to the mapping relationship table; 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 thread is used to bind to the computing core and use the computing power of the CPU or FPGA or GPU component; 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 calculation.
2. A high-performance computing power scheduling system according to claim 1, characterized in that: 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.
3. A high-performance computing power scheduling system according to claim 1, characterized in that: In the management plane module, a mapping relationship table is generated by the computing threads, specifically: the computing threads are respectively bound to different virtual cores, 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 lock-free message queues, computing threads, virtual cores, and hardware computing power resources.
4. A high-performance computing power scheduling system according to claim 3, characterized in that: The divided proportion of computing threads is used as heterogeneous computing power for FPGA and GPU, and 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%.
5. A high-performance computing power scheduling system according to claim 1, characterized in that: 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 user requests to the data plane to complete the calculation.
6. A method for implementing a high-performance computing power scheduling system as claimed in any one of claims 1 to 5, characterized in that: 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. (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 the 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; (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.
7. The method for implementing a high-performance computing power scheduling system according to claim 6, characterized in that: The remaining computing power pool of a computing power resource in step (1) is a computing power pool where the CPU usage of each virtual core is monitored and a CPU usage of less than 50% is considered to have a computing power surplus.
8. The method for implementing a high-performance computing power scheduling system according to claim 6, characterized in that: The rule in step (2) is specifically as follows: a comprehensive decision is made 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, the message is forwarded to the FPGA message queue for processing.
9. 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, it is used to implement the implementation method of the high-performance computing power scheduling system described in any one of claims 6-8.
10. 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 any one of claims 6-8 are implemented.
Citation Information
Patent Citations
Task processing method and device based on database, equipment and storage medium
CN115934316A
CPU-GPU (Central Processing Unit-Graphic Processing Unit) cooperative scheduling method and device based on asynchronous operation
CN117032999A
Data reasoning method and device, equipment and storage medium
CN117331679A
Engineering machinery computing power extension method and device, chip and storage medium
CN117742941A
Computing power scheduling method, system, device and equipment of heterogeneous chip and medium
CN118034900A
Cited By
Fusion system of time sequence database and traditional database
CN118838922A
Dynamic scheduling system and method for computing kernel
CN119336510A
Asynchronous prefetching system based on 3D stacking
CN119440631A
An asynchronous prefetch system based on 3D stacking
CN119440631B
GPU resource isolation method and system, medium and product
CN119597491A
