A GPU server cloud computing resource management method and system
By identifying and scoring high real-time task request packets from GPU nodes, generating priority processing instructions, and sending them directly to the bus arbitrator via a bypass channel, the problem of bus arbitration latency is solved, ensuring timely response and real-time priority scheduling of high real-time tasks.
Patent Information
- Application Number
- CN202611047574.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-15
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2046-07-15
AI Technical Summary
In a GPU server cloud computing environment, when the shared bus domain faces a sudden high load, the bus arbiter cannot quickly identify and prioritize high real-time task requests, resulting in a significant increase in bus arbitration latency for high real-time tasks, which in turn undermines the real-time guarantee of priority scheduling in a multi-task parallel environment.
By acquiring the status information of each GPU node, high real-time task request data packets are identified, and an urgency score is calculated based on their location coordinates and dwell time. When the score exceeds a preset threshold, a priority processing instruction is generated and sent directly to the bus arbitrator through a bypass extraction channel, bypassing the regular queue and priority comparison logic.
It shortens the bus arbitration latency of high real-time tasks, ensures timely response of high real-time tasks, and improves the real-time performance of priority scheduling in multi-task parallel environments.
Smart Images

Figure CN122861990B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of cloud computing resource management, and more specifically, to a method and system for managing cloud computing resources on a GPU server. Background Technology
[0002] In large-scale distributed computing tasks such as AI model training, server nodes equipped with multiple GPUs are typically interconnected and connected to the CPU via a high-speed bus. Under normal load, the bus arbiter receives data transmission requests from each channel and sorts them according to a preset priority rule, granting bus access rights to higher-priority requests first, thus ensuring the coordinated progress of different tasks. However, in large-scale distributed deep learning training scenarios, synchronous gradient updates based on data parallelism occur frequently. At the moment all GPU computing units complete a request, they simultaneously calculate a batch of gradient data and package it into a transmission request, injecting it into their respective task request buffers. If, at this time, an administrator or monitoring program detects an anomaly and issues a high-priority emergency control command, this command request and the massive gradient synchronization requests will meet at the interface between the output side of each GPU task request buffer and the request reception comparison logic of the bus arbiter.
[0003] When a massive number of requests generated by a single gradient synchronization instantaneously fill the task request buffers of multiple GPUs and arrive at the arbitrator entry point, the priority comparison logic inside the bus arbitrator faces a request flow far exceeding its normal processing node capacity. Although the bus arbitrator can still perform comparison operations, reading and comparing each request takes time. When the entry queue length surges and far exceeds the number that the bus arbitrator can process within an expected latency window, high-priority urgent control command requests are easily buried deep in the queue. Physically, the bus arbitrator must process the queue sequentially or by window, meaning that before scanning for high-priority requests, it can only process a large number of normal gradient synchronization requests and grant bus access.
[0004] Existing bus management methods typically rely on static priority label comparisons, which assume that the bus arbiter can traverse all current requests in a very short time. However, at extreme queue depths, existing logic cannot quickly identify and isolate high-real-time requests from a massive influx of concurrent requests, causing priority strategies to fail under sudden loads. In a request storm scenario caused by distributed training gradient synchronization, when a sudden surge of large data block transmission requests from the GPU task request cache and high-real-time control command requests simultaneously flood the bus arbiter, the bus arbiter's priority comparison logic cannot quickly identify and pre-process high-priority requests at extreme queue depths. This leads to a significant increase in bus arbitration latency for high-real-time tasks, thereby compromising the real-time performance of priority scheduling in a multi-task parallel environment.
[0005] There is currently no effective technical solution to the above problems. Summary of the Invention
[0006] The purpose of this application is to provide a GPU server cloud computing resource management method and system, which aims to solve the problem that in a GPU server cloud computing environment, when the shared bus domain faces a sudden high load, the bus arbitrator cannot quickly identify and prioritize high real-time task requests, resulting in a significant increase in bus arbitration latency for high real-time tasks, which in turn undermines the real-time guarantee of priority scheduling in a multi-task parallel environment.
[0007] To solve the above problems, the solution proposed in this application is as follows:
[0008] As one aspect of this application, a GPU server cloud computing resource management method is provided, which is applied in a shared bus domain. The shared bus domain includes multiple GPU nodes, CPU nodes, and a shared bus connecting the multiple GPU nodes and CPU nodes. A bus arbitrator is configured on the shared bus. The bus arbitrator is used to receive task request data packets output from the task request buffer in each GPU node and grant bus access rights according to preset rules. The method includes:
[0009] Step S1: When at least one GPU node in the shared bus domain is in a congested state, obtain the status information of each GPU node. The status information includes the type identifier of each task request data packet in the task request cache of the GPU node, the position coordinates of each task request data packet in the task request cache of the GPU node, and the residence time of each request data packet in the corresponding task request cache of the GPU node.
[0010] Step S2: Based on the type identifier of each task request data packet in the task request cache of each GPU node, identify whether there are high real-time task request data packets in each task request data packet in the task request cache of each GPU node.
[0011] Step S3: If so, extract the location coordinates and dwell time of each high real-time task request data packet from the status information, calculate the urgency score of each high real-time task request data packet based on the location coordinates and dwell time, and compare the urgency score of each high real-time task request data packet with the preset urgency score threshold to obtain the comparison result.
[0012] Step S4: If the comparison result indicates that the urgency score of a high real-time task request data packet exceeds the preset urgency score threshold, generate a priority processing instruction corresponding to the high real-time task request data packet, and send the priority processing instruction to the bus arbitrator through the bypass extraction channel in the GPU node corresponding to the high real-time task request data packet.
[0013] Furthermore, before step S1, there is also step S0, which specifically includes:
[0014] Step S01: Obtain the queue length of the task request queue in the task request cache of each GPU node;
[0015] Step S02: Determine whether the queue length of the task request queue in the task request cache of each GPU node exceeds the preset length threshold. If the queue length of a task request queue exceeds the preset length threshold, confirm that the corresponding GPU node is in a congested state.
[0016] Furthermore, step S01 specifically includes:
[0017] The write pointer and read pointer values of the task request cache of each GPU node are compared in real time, and the queue length of the task request queue in the task request cache of each GPU node is calculated based on the write pointer and read pointer values. When the write pointer value is greater than the corresponding read pointer value, the queue length is equal to the write pointer value minus the read pointer value. When the write pointer value is less than the corresponding read pointer value, the queue length is the maximum length of the task request cache minus the read pointer value, plus the write pointer value.
[0018] Furthermore, in step S1, the state information of the GPU node is obtained in the following manner:
[0019] The header of the task request data packet entering the task cache area of the GPU node is identified, the opcode of each task request data packet is extracted, and the type identifier of the task request data packet is confirmed based on the opcode.
[0020] Assign a trace identifier to the task request data packet that enters the task buffer area in the GPU node, and obtain the location of the task request data packet based on the trace identifier;
[0021] The task request data packets entering the task cache of the GPU node are stamped with an entry timestamp. Based on the global timestamp of the task cache of each GPU node and the entry timestamp of the task request data in the task cache of each GPU node, the resident time of each request data packet in the corresponding task request queue is calculated.
[0022] Furthermore, step S2 specifically includes:
[0023] Step S21: Based on the type identifier of each task request data packet in the task request cache of each GPU node, obtain the opcode of the header of each task request data packet in the task request cache of each GPU node.
[0024] Step S22: Perform a bitwise AND matching operation between the obtained opcode and the pre-configured high real-time feature mask;
[0025] Step S23: If a match is found, mark the successfully matched request data packet as a high real-time task request data packet.
[0026] Furthermore, step S3 specifically includes:
[0027] Step S31: Extract the location coordinates, dwell time, and type identifier of each high real-time task request data packet from the status information;
[0028] Step S32: Calculate the urgency score of each high real-time task request data packet based on the location coordinates and dwell time of each high real-time task request data packet.
[0029] Step S33: Based on the type identifier corresponding to each high real-time task request data packet, match and obtain the importance weight of each high real-time task request data packet in the prior database of business type identifiers.
[0030] Step S34: Calculate the urgency score corresponding to each high real-time task request data packet by weighting it according to the importance weight of each data packet, and obtain the weighted urgency score corresponding to each high real-time task request data packet.
[0031] Step S35: Compare the weighted urgency score corresponding to each high real-time task request data packet with the preset urgency score threshold to obtain the comparison result.
[0032] Furthermore, step S3 also includes:
[0033] The load of the shared bus domain is acquired in real time. When the load of the shared bus domain is higher than a preset load threshold, the preset emergency score threshold is increased by a set ratio. Conversely, when the load of the shared bus domain is lower than the preset load threshold, the preset emergency score threshold is decreased by a set ratio.
[0034] Furthermore, step S4 also includes:
[0035] If the comparison result indicates that the urgency score of a high real-time task request data packet does not exceed the urgency score threshold but has reached more than 80% of the urgency score threshold, the high real-time task request data packet is determined to be in a state close to the time limit boundary. A candidate identifier is generated and associated with the end boundary of the task request accepted by the current bus arbitrator. When the end boundary arrives, the bus arbitrator checks the end boundary first. If there is a bound candidate identifier, the next bus access right is granted to the high real-time task request data packet pointed to by the candidate identifier.
[0036] Furthermore, after step S4, there is also a step S5, which specifically includes:
[0037] Step S51: Obtain the processing progress information of the bus arbiter, wherein the processing progress information includes the remaining transmission time of the task request that the current bus arbiter has accepted and the switching window of the task request data packet that can be switched to another task request data packet in the task request data packet that the current bus arbiter has accepted.
[0038] Step S52: After the remaining transmission time has elapsed, the bus arbitrator grants bus access rights to the high real-time task request data packet corresponding to the priority processing indication at the switching window.
[0039] As a second aspect of this application, a GPU server cloud computing resource management system is provided, which is applied in a shared bus domain. The shared bus domain includes multiple GPU nodes, CPU nodes, and a shared bus connecting the multiple GPU nodes and CPU nodes. A bus arbitrator is configured on the shared bus. The bus arbitrator is used to receive task request data packets output from the task request buffer in each GPU node and grant bus access rights according to preset rules. The system includes:
[0040] The status information acquisition module is used to acquire the status information of each GPU node when at least one GPU node in the shared bus domain is in a congested state. The status information includes the type identifier of each task request data packet in the task request cache of the GPU node, the position coordinates of each task request data packet in the task request cache of the GPU node, and the residence time of each request data packet in the corresponding task request cache of the GPU node.
[0041] A high real-time task request data packet identification module is used to identify whether there are high real-time task request data packets in the task request cache of each GPU node based on the type identifier of each task request data packet in the task request cache of each GPU node.
[0042] The comparison result acquisition module is used to extract the location coordinates and dwell time of each high real-time task request data packet from the status information, calculate the urgency score of each high real-time task request data packet based on the location coordinates and dwell time, and compare the urgency score of each high real-time task request data packet with a preset urgency score threshold to obtain the comparison result.
[0043] The result processing module is used to generate a priority processing indication corresponding to the high real-time task request data packet if the comparison result indicates that the urgency score of the high real-time task request data packet exceeds a preset urgency score threshold, and send the priority processing indication to the bus arbitrator through the bypass extraction channel in the GPU node corresponding to the high real-time task request data packet.
[0044] As described above, the GPU server cloud computing resource management method and system of this application, in a shared bus domain, when at least one GPU node is in a congested state, can actively acquire the status information of each GPU node, including the type identifier, location coordinates, and dwell time of task request data packets. Based on this status information, the system can identify high real-time task request data packets and calculate an urgency score based on their location coordinates and dwell time. When the urgency score of a high real-time task request data packet exceeds a preset threshold, the system generates a priority processing instruction and sends it directly to the bus arbitrator through a bypass extraction channel. Through the above, this application solves the problem in the prior art where, when faced with massive concurrent requests, high-priority emergency control instructions are easily buried deep in the queue, leading to bus arbitration delays far exceeding expectations. This application, through a bypass extraction channel mechanism, enables high real-time task request data packets to bypass conventional queue queuing and priority comparison logic, directly transmitting the priority processing instruction to the bus arbitrator, shortening the bus arbitration delay of high real-time tasks, and ensuring timely response of high real-time tasks, thereby improving the real-time performance of priority scheduling in request congestion scenarios. Attached Figure Description
[0045] Figure 1 A flowchart illustrating a GPU server cloud computing resource management method provided in this application embodiment;
[0046] Figure 2 A flowchart illustrating step S0 in a GPU server cloud computing resource management method provided in this application embodiment;
[0047] Figure 3 A flowchart illustrating step S2 in a GPU server cloud computing resource management method provided in this application embodiment;
[0048] Figure 4 A flowchart illustrating step S3 in a GPU server cloud computing resource management method provided in this application embodiment;
[0049] Figure 5 A flowchart illustrating step S5 in a GPU server cloud computing resource management method provided in this application embodiment;
[0050] Figure 6 A system architecture block diagram of a GPU server cloud computing resource management system provided in this application embodiment;
[0051] Figure reference numerals: 100, GPU server cloud computing resource management system; 101, status information acquisition module; 102, high real-time task request data packet identification module; 103, comparison result acquisition module; 104, result processing module. Detailed Implementation
[0052] To better illustrate the present invention, the invention will now be described in further detail with reference to the accompanying drawings.
[0053] It should be understood that, in order to make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0054] The following description uses at least one specific embodiment as an example. In this embodiment:
[0055] Firstly, such as Figure 1As shown, a GPU server cloud computing resource management method is provided, which is applied in a shared bus domain. The shared bus domain includes multiple GPU nodes, CPU nodes, and a shared bus connecting the multiple GPU nodes and CPU nodes. GPU nodes are graphics processing units responsible for executing computationally intensive tasks; CPU nodes are central processing units responsible for general computing and coordination management; the shared bus is a data transmission channel connecting GPU nodes and CPU nodes, through which all nodes exchange data. A bus arbitrator is configured on the shared bus. The bus arbitrator is a hardware or software logic configured on the shared bus. The bus arbitrator is used to receive task request data packets output from the task request buffers in each GPU node and grant bus access rights according to preset rules. The method includes:
[0056] Step S1: When at least one GPU node in the shared bus domain is in a congested state, obtain the status information of each GPU node. The status information includes the type identifier of each task request data packet in the task request cache of the GPU node, the position coordinates of each task request data packet in the task request cache of the GPU node, and the residence time of each request data packet in the corresponding task request cache of the GPU node.
[0057] Step S2: Based on the type identifier of each task request data packet in the task request cache of each GPU node, identify whether there are high real-time task request data packets in each task request data packet in the task request cache of each GPU node.
[0058] Step S3: If so, extract the location coordinates and dwell time of each high real-time task request data packet from the status information, calculate the urgency score of each high real-time task request data packet based on the location coordinates and dwell time, and compare the urgency score of each high real-time task request data packet with the preset urgency score threshold to obtain the comparison result.
[0059] Step S4: If the comparison result indicates that the urgency score of a high real-time task request data packet exceeds the preset urgency score threshold, generate a priority processing instruction corresponding to the high real-time task request data packet, and send the priority processing instruction to the bus arbitrator through the bypass extraction channel in the GPU node corresponding to the high real-time task request data packet.
[0060] This application provides a GPU server cloud computing resource management method, which achieves priority processing of high real-time task request data packets in a shared bus domain through a series of steps.
[0061] When at least one GPU node in the shared bus domain is congested, the system actively acquires the status information of each GPU node, including the type identifier, location coordinates, and dwell time of the task request packet. This detailed status information provides the foundation for subsequent intelligent decision-making. Based on this information, the system can identify high real-time task request packets. Once a high real-time task request packet is identified, the system calculates an urgency score based on its location coordinates and dwell time. This urgency score allows the system to assess the urgency of the task, rather than relying solely on static priority. More importantly, when the urgency score of a high real-time task request packet exceeds a preset urgency score threshold, the system generates a priority processing instruction and sends it to the bus arbitrator via a bypass extraction channel. Through this mechanism, this solution solves the problem that high real-time control command requests are buried deep in the queue in request congestion scenarios, leading to a significant increase in bus arbitration latency. Compared to existing technologies, this solution, through the combined application of active identification, dynamic scoring, and bypass transmission, ensures the real-time performance of high real-time tasks under extreme load conditions, thereby improving the reliability of priority scheduling in a multi-task parallel environment.
[0062] In some embodiments of this application, when at least one GPU node in the shared bus domain is in a congested state, the identification and processing of subsequent task request packets are triggered. However, in practical applications, accurately and timely determining whether a GPU node is in a congested state is crucial for ensuring the effective scheduling of high-real-time task request packets. Failure to identify the congestion state in a timely or accurate manner may cause high-real-time task request packets to remain in the buffer for a long time, thereby affecting their real-time requirements. To address this, a preprocessing step is further proposed to determine whether a GPU node is in a congested state before step S1.
[0063] like Figure 2 As shown, before step S1, there is also step S0, which specifically includes:
[0064] Step S01: Obtain the queue length of the task request queue in the task request cache of each GPU node;
[0065] Step S02: Determine whether the queue length of the task request queue in the task request cache of each GPU node exceeds the preset length threshold. If the queue length of a task request queue exceeds the preset length threshold, confirm that the corresponding GPU node is in a congested state.
[0066] Specifically, in step S01, obtaining the queue length of the task request queue in the task request cache of each GPU node refers to the real-time monitoring and quantification of the number of task request data packets currently waiting to be processed in the cache area used to temporarily store task request data packets within each GPU node. This queue length is a key indicator for measuring the current load status of the GPU node. The task request cache can be understood as the storage area within the GPU node used to buffer task request data packets awaiting processing.
[0067] Further, in step S02, determining whether the queue length of the task request queue in the task request cache of each GPU node exceeds a preset length threshold means comparing the real-time queue length with a pre-set maximum acceptable queue length. The preset length threshold is an empirical value or an upper limit set according to system performance requirements. When the actual queue length exceeds this threshold, it indicates that the GPU node is unable to process the influx of task requests in a timely manner, and its resources may have reached saturation or overload. At this point, it can be confirmed that the corresponding GPU node is in a congested state. Confirmation of the congestion state is a prerequisite for triggering subsequent high real-time task processing mechanisms.
[0068] In some preferred embodiments, a specific example is given below. Assume a GPU node is configured with a task request buffer with a maximum capacity of 100 task request packets. Based on experience and performance testing, the system administrator sets a preset length threshold of 80. During system operation, the GPU node continuously monitors the queue length of the task request queue in its task request buffer. For example, when the queue length reaches 85, since 85 exceeds the preset length threshold of 80, the system immediately confirms that the GPU node is in a congested state. Once congestion is confirmed, step S1 in the above method is triggered, which begins acquiring the status information of each GPU node, thereby identifying and prioritizing high-real-time task request packets. Conversely, if the queue length remains below 80, such as 70, the system will not classify it as congested, thus avoiding unnecessary resource management operations and ensuring efficient system operation under normal load.
[0069] Furthermore, in the aforementioned GPU server cloud computing resource management method, the step of obtaining the queue length of the task request queue in the task request cache of each GPU node can be further refined. Specifically, step S01 includes:
[0070] The write pointer and read pointer values of the task request cache of each GPU node are compared in real time, and the queue length of the task request queue in the task request cache of each GPU node is calculated based on the write pointer and read pointer values. When the write pointer value is greater than the corresponding read pointer value, the queue length is equal to the write pointer value minus the read pointer value. When the write pointer value is less than the corresponding read pointer value, the queue length is the maximum length of the task request cache minus the read pointer value, plus the write pointer value.
[0071] Specifically, hardware status monitoring logic is deployed at the input and output of each GPU task request buffer. By comparing the write and read pointers of the buffer in real time, the absolute queue depth at the current moment is calculated. When collecting the buffer status, since the hardware task request buffer typically adopts a circular buffer design, its read and write pointers automatically flip back to zero after reaching the maximum address boundary. Therefore, the queue length calculation logic is set as follows: when the write pointer value is greater than the corresponding read pointer value, the queue length equals the write pointer value minus the read pointer value; when the write pointer value is less than the corresponding read pointer value, the queue length is the maximum length of the task request buffer minus the read pointer value, plus the write pointer value. This ensures that the length of the task request queue can be accurately obtained under any circumstances, thus providing reliable data support for subsequent congestion status assessment.
[0072] Preferably, in step S1, the state information of the GPU node is obtained in the following manner:
[0073] First, the header of the task request data packet entering the task cache area of the GPU node is identified, the opcode of each task request data packet is extracted, and the type identifier of the task request data packet is confirmed based on the opcode.
[0074] The header of a task request packet typically contains an opcode, which is a field indicating the type of task or operation instruction carried by the packet. By identifying the header of the task request packets entering the task buffer of the GPU node, the opcode of each task request packet can be accurately extracted. Based on the extracted opcode, the type identifier of the task request packet can be further confirmed, which aims to provide a basis for subsequent high real-time request judgment.
[0075] Second, a tracking identifier is assigned to the task request data packet that enters the task cache area in the GPU node, and the location of the task request data packet is obtained based on the tracking identifier.
[0076] To accurately track the location of task request packets within the task buffer, a unique tracking identifier can be assigned to each task request packet entering the task buffer of the GPU node. This tracking identifier can be an index, an address, or any marker that uniquely identifies the packet's storage location in the buffer. Based on this tracking identifier, the exact coordinates of the task request packet's location within the task buffer can be obtained, facilitating subsequent location and processing of specific packets.
[0077] Third, add an entry timestamp to the task request data packets entering the task cache area of the GPU node, and calculate the dwell time of each request data packet in the corresponding task request queue based on the global timestamp of the task cache area of each GPU node and the entry timestamp of the task request data in the task cache area of each GPU node.
[0078] To assess the waiting time of task request packets, an entry timestamp can be assigned to each packet entering the task buffer in the GPU node. This timestamp records the exact moment the packet entered the buffer. By comparing the current global timestamp of the task buffer in each GPU node with the entry timestamp of the task request packet, the resident time of each request packet in the corresponding task request queue can be accurately calculated. Resident time is an important indicator of how long a task request packet has been waiting to be processed, and it is used to subsequently determine the urgency of the requested task.
[0079] In this embodiment, the step of identifying whether there are high real-time task request data packets in each task request cache of each GPU node can be further refined into the following sub-steps. Specifically, as follows: Figure 3 As shown, step S2 specifically includes:
[0080] Step S21: Based on the type identifier of each task request data packet in the task request cache of each GPU node, obtain the opcode of the header of each task request data packet in the task request cache of each GPU node.
[0081] Step S22: Perform a bitwise AND matching operation between the obtained opcode and the pre-configured high real-time feature mask;
[0082] Step S23: If a match is found, mark the successfully matched request data packet as a high real-time task request data packet.
[0083] In step S21, the type identifier of the task request data packet is usually embedded in the header information of the data packet. By parsing this header information, the opcode representing the specific operation or business type of the data packet can be extracted. This opcode is the key basis for identifying the nature of the task request data packet.
[0084] Furthermore, in step S22, the pre-configured high real-time feature mask is set to a specific binary pattern, which is used to perform a bitwise AND operation with the opcode extracted from the packet header. For example, the mask can be designed to match only when a specific bit of the opcode is 1, and these specific bits can be defined as indicating that the task is a critical service.
[0085] Therefore, in step S23, once the operation code successfully matches the bitwise AND operation result indication of the high real-time feature mask, it indicates that the task request data packet is confirmed to have high real-time requirements and needs to be given priority attention and processing by the system. At this time, the data packet will be explicitly marked as a high real-time task request data packet so that subsequent urgency scoring calculations and priority processing procedures can identify and schedule it.
[0086] This solution first extracts the opcode from the type identifier of the task request data packet, which directly reflects the packet's service attributes. Then, it performs a bitwise AND match between this opcode and a preset high real-time feature mask. This matching mechanism accurately identifies task request data packets with specific high real-time characteristics, avoiding complex analysis of all packets and thus improving identification efficiency and accuracy. In this way, the system can quickly and reliably filter out high real-time tasks that require priority processing, laying the foundation for subsequent emergency scheduling.
[0087] Traditional GPU server cloud resource management methods primarily assess the urgency of high real-time task request packets based on their location coordinates in the cache and their residency time. However, this approach may fail to adequately consider the inherent real-time requirements and importance differences among different types of high real-time task request packets at the business level. Failure to address this issue could lead to inaccurate assessments of the urgency of certain critical high real-time task request packets, affecting the bus arbitrator's rational allocation of bus access rights. This could result in the failure to prioritize truly urgent tasks, ultimately reducing the overall response efficiency and user experience of the cloud computing system.
[0088] To address this, this solution proposes a weighted approach to the urgency score by introducing a type identifier for the task request data packet and a corresponding business importance weight, in order to more accurately reflect the actual urgency of high real-time task request data packets.
[0089] Specifically, such as Figure 4 As shown, step S3 specifically includes:
[0090] Step S31: Extract the location coordinates, dwell time, and type identifier of each high real-time task request data packet from the status information;
[0091] Step S32: Calculate the urgency score of each high real-time task request data packet based on the location coordinates and dwell time of each high real-time task request data packet.
[0092] Step S33: Based on the type identifier corresponding to each high real-time task request data packet, match and obtain the importance weight of each high real-time task request data packet in the prior database of business type identifiers.
[0093] Step S34: Calculate the urgency score corresponding to each high real-time task request data packet by weighting it according to the importance weight of each data packet, and obtain the weighted urgency score corresponding to each high real-time task request data packet.
[0094] Step S35: Compare the weighted urgency score corresponding to each high real-time task request data packet with the preset urgency score threshold to obtain the comparison result.
[0095] Specifically, an urgency score is calculated using a linear or nonlinear combination of location coordinates and dwell time. For example, a basic scoring function f(location coordinates, dwell time) can be defined to reflect the trend that the longer a task request packet waits in the queue or the closer it is to the head of the queue, the higher its urgency.
[0096] Furthermore, in practical applications, the prior database for business type identifiers is a pre-configured storage structure that stores the mapping relationship between different business type identifiers and their corresponding importance weights. For example, for financial transaction tasks, their importance weight may be set to a high value; for data analysis tasks, their importance weight may be set to a medium value; and for backend maintenance tasks with high non-real-time requirements, their importance weight may be set to a low value. This database can be dynamically updated and adjusted according to actual business needs and system strategies, with the aim of assigning different priority considerations to high real-time task request data packets of different business types.
[0097] Furthermore, the weighted urgency score is calculated using the formula "weighted urgency score = basic urgency score × importance weight", so that task request data packets with higher business importance can obtain a higher final urgency score under the same basic urgency score.
[0098] Therefore, by comparing the weighted urgency score with the preset urgency score threshold, it is possible to more accurately determine whether the high real-time task request data packet needs to be prioritized.
[0099] By extracting type identifiers from status information and matching them with a priori database of business type identifiers to obtain corresponding importance weights, this solution integrates business-level priority considerations into the calculation of urgency scores. Subsequently, by weighting the basic urgency scores, task request packets with higher business importance receive higher final urgency scores, making them more easily identified as tasks requiring priority processing when compared with preset urgency score thresholds. This mechanism ensures that the bus arbitrator, when granting bus access rights, can more accurately identify and prioritize responses to critical tasks that have the greatest impact on system performance and user experience.
[0100] Furthermore, step S3 also includes:
[0101] The load of the shared bus domain is acquired in real time. When the load of the shared bus domain is higher than a preset load threshold, the preset emergency score threshold is increased by a set ratio. Conversely, when the load of the shared bus domain is lower than the preset load threshold, the preset emergency score threshold is decreased by a set ratio.
[0102] Specifically, the load of a shared bus domain can be understood as indicators such as the amount of data transmitted per unit time, bus utilization, or the average length of the queue of pending tasks, reflecting the current busy level of the shared bus domain. This load information can be collected and calculated in real time through a bus arbiter or a dedicated monitoring module. When the real-time load of the shared bus domain is higher than a preset load threshold, it indicates that system resources are relatively strained; conversely, it indicates that system resources are relatively abundant. Increasing or decreasing the preset emergency scoring threshold by a set ratio refers to adjusting the original emergency scoring threshold by multiplication or addition based on the load situation. For example, an adjustment coefficient K (K < 1) can be set. When the load is higher than the threshold, the new emergency scoring threshold can be the original threshold multiplied by 1 + K; when the load is lower than the threshold, the new emergency scoring threshold can be the original threshold multiplied by 1 - K. This setting ratio can be flexibly configured according to actual application scenarios and performance requirements to ensure the rationality and effectiveness of the threshold adjustment.
[0103] In some preferred embodiments, assuming a preset urgency score threshold of 80 points and a preset load threshold of 70%, when the real-time load of the shared bus domain is 85% (above the preset load threshold), the system determines that it is currently in a high-load state. At this time, the urgency score threshold can be increased by 1.2, resulting in a new urgency score threshold of 96 points. This means that only high-real-time task request packets with an urgency score of 96 points or higher will receive priority processing instructions. Conversely, when the real-time load of the shared bus domain is 50% (below the preset load threshold), the system determines that it is currently in a low-load state. At this time, the urgency score threshold can be decreased by 0.8, resulting in a new urgency score threshold of 64 points. In this case, high-real-time task request packets with an urgency score of 64 points or higher will receive priority processing instructions. Through this dynamic adjustment, the system can flexibly tighten or loosen the priority processing conditions for high-real-time tasks according to the actual load situation, thereby achieving more refined resource management.
[0104] Traditional GPU server cloud resource management methods primarily focus on whether the urgency score of high real-time task request packets has exceeded a preset urgency score threshold when processing such packets. However, this strategy of intervening only after the task urgency reaches a critical point may cause some high real-time task request packets, although not yet fully exceeding the threshold but already in a high-risk state, to miss their time limit due to failing to obtain bus access in time, thus affecting the overall system's real-time performance and user experience.
[0105] Therefore, step S4 further includes:
[0106] If the comparison result indicates that the urgency score of a high real-time task request data packet does not exceed the urgency score threshold but has reached more than 80% of the urgency score threshold, the high real-time task request data packet is determined to be in a state close to the time limit boundary. A candidate identifier is generated and associated with the end boundary of the task request accepted by the current bus arbitrator. When the end boundary arrives, the bus arbitrator checks the end boundary first. If there is a bound candidate identifier, the next bus access right is granted to the high real-time task request data packet pointed to by the candidate identifier.
[0107] Specifically, when the urgency score of a high real-time task request packet, although not yet reaching the preset urgency score threshold, has reached more than 80% of that threshold, it indicates that the task request packet is in a state close to the time limit boundary that requires attention. In this state, the system generates a candidate identifier for the task request packet, which is used to temporarily mark the potential high priority of the task request packet. At the same time, this candidate identifier is associated with the end boundary of the task request currently being processed by the bus arbitrator. The end boundary can be understood as the point in time or event when the current bus transaction completes and releases bus access rights. When the bus arbitrator detects the arrival of the end boundary of the current task, it first checks whether there is a candidate identifier bound to it. If there is, it means that a high real-time task request packet in a state close to the time limit boundary is waiting, and the bus arbitrator will give priority to granting the next bus access right to the high real-time task request packet pointed to by the candidate identifier.
[0108] In some preferred embodiments, a preset urgency score threshold is assumed to be 100 points. When the urgency score of a high real-time task request packet reaches 85 points, although it has not yet reached the 100-point threshold, it has exceeded the 80% limit. At this time, the system determines that the task request packet is nearing the time limit boundary and generates a candidate identifier for it. If the current bus arbitrator is processing a normal task request, the candidate identifier will be bound to the end boundary of that normal task request. When the normal task request completes and releases the bus, the bus arbitrator will first check its end boundary, find the bound candidate identifier, and immediately grant the next bus access right to the 85-point high real-time task request packet, instead of selecting according to the regular arbitration rules. This mechanism ensures that the high real-time task request packet can be processed before its urgency truly reaches the critical point, thereby effectively avoiding potential time limit violations.
[0109] In this embodiment, as Figure 5 As shown, after step S4, there is also step S5, which specifically includes:
[0110] Step S51: Obtain the processing progress information of the bus arbiter, wherein the processing progress information includes the remaining transmission time of the task request that the current bus arbiter has accepted and the switching window of the task request data packet that can be switched to another task request data packet in the task request data packet that the current bus arbiter has accepted.
[0111] Step S52: After the remaining transmission time has elapsed, the bus arbitrator grants bus access rights to the high real-time task request data packet corresponding to the priority processing indication at the switching window.
[0112] Specifically, the switching window for switching between task request packets currently accepted by the bus arbitrator refers to one or more points in time or data boundaries during the transmission of the current task request packet that are suitable for interrupting the current task and switching to another task. For example, in packet transmission protocols, after a complete data frame or data block is transmitted, there is usually a natural switching point where switching can minimize the risk of data corruption or retransmission. The setting of this switching window aims to ensure a smooth transition of bus access rights, avoiding interruptions at critical moments in data transmission, thereby improving the reliability and efficiency of data transmission.
[0113] In practical applications, the acquisition operation in step S51 can be completed by the bus arbiter itself, by monitoring its internal status register, counters, and metadata of the currently processed task request data packet in real time. For example, the bus arbiter can maintain an internal timer to track the elapsed transmission time of the current task and calculate the remaining transmission time by combining it with the total transmission volume of the task. At the same time, the bus arbiter can identify the switching window in the current data stream according to its internal protocol parsing logic.
[0114] Specifically, the granting of bus access rights in step S52 is performed when the bus arbitrator determines that the remaining transmission time of the current task request has expired and the preset switching window has been reached. This means that the bus arbitrator will not immediately interrupt the current task, but will wait for a suitable opportunity. Therefore, the bus arbitrator can ensure that bus access rights are smoothly transferred to high real-time task request data packets with priority processing indications without affecting the integrity of the current task.
[0115] By introducing a mechanism for acquiring bus arbitrator processing progress information and granting bus access rights based on this information, the problem of smoothly and efficiently scheduling high real-time tasks after receiving a priority processing instruction is solved. Specifically, when the bus arbitrator receives a priority processing instruction for a high real-time task request packet, it does not immediately interrupt the currently executing task. Instead, the bus arbitrator first acquires the remaining transmission time of the currently accepted task request and the switching window for switching to another task request packet. Because the bus arbitrator can perceive the completion progress of the current task and potential switching points, it can grant bus access rights to the high real-time task request packet after the remaining transmission time of the current task has expired, at a preset switching window. This mechanism avoids blind interruption, ensures the integrity of the current task, and guarantees that the high real-time task can obtain bus resources in a timely manner.
[0116] In some preferred embodiments, suppose a high real-time task request packet in a GPU node is identified and a priority processing instruction is generated, which is sent to the bus arbiter. At this time, the bus arbiter is processing a large data transfer task from another GPU node. To avoid immediately interrupting this large data transfer, the bus arbiter monitors the task's progress in real time. For example, if the large data transfer task is divided into multiple data blocks, the bus arbiter identifies the interval between the completion of each data block's transfer as a switching window. When the bus arbiter detects that the remaining transfer time for the current data block has elapsed and the switching window before the next data block's transfer has arrived, it pauses the current task at this moment and grants bus access to the high real-time task request packet with the priority processing instruction. Once the high real-time task request packet completes its transfer, the bus arbiter can resume processing the previously paused data transfer task. In this way, the response time of the high real-time task is guaranteed, while the data transfer task continues, avoiding data retransmission or efficiency degradation that could result from forced interruption.
[0117] Secondly, such as Figure 6 As shown, a GPU server cloud computing resource management system 100 is provided, which is applied in a shared bus domain. The shared bus domain includes multiple GPU nodes, CPU nodes, and a shared bus connecting the multiple GPU nodes and CPU nodes. A bus arbitrator is configured on the shared bus. The bus arbitrator is used to receive task request data packets output from the task request buffer in each GPU node and grant bus access rights according to preset rules. The system includes:
[0118] The status information acquisition module 101 is used to acquire the status information of each GPU node when at least one GPU node in the shared bus domain is in a congested state. The status information includes the type identifier of each task request data packet in the task request cache of the GPU node, the position coordinates of each task request data packet in the task request cache of the GPU node, and the residence time of each request data packet in the corresponding task request cache of the GPU node.
[0119] High real-time task request data packet identification module 102 is used to identify whether there are high real-time task request data packets in each task request data packet in the task request cache of each GPU node based on the type identifier of each task request data packet in the task request cache of each GPU node.
[0120] The comparison result acquisition module 103 is used to extract the location coordinates and dwell time of each high real-time task request data packet from the status information, calculate the urgency score of each high real-time task request data packet based on the location coordinates and dwell time, and compare the urgency score of each high real-time task request data packet with a preset urgency score threshold to obtain the comparison result.
[0121] The result processing module 104 is used to generate a priority processing indication corresponding to the high real-time task request data packet if the comparison result indicates that the urgency score of the high real-time task request data packet exceeds a preset urgency score threshold, and send the priority processing indication to the bus arbitrator through the bypass extraction channel in the GPU node corresponding to the high real-time task request data packet.
[0122] As described above, the GPU server cloud computing resource management method and system of this embodiment, in a shared bus domain, when at least one GPU node is in a congested state, can actively acquire the status information of each GPU node, including the type identifier, location coordinates, and dwell time of the task request data packet. Based on this status information, the system can identify high real-time task request data packets and calculate an urgency score based on their location coordinates and dwell time. When the urgency score of the high real-time task request data packet exceeds a preset threshold, the system generates a priority processing instruction and sends it directly to the bus arbitrator through a bypass extraction channel. Through the above, this application solves the problem in the prior art where, when facing massive concurrent requests, high-priority emergency control instructions are easily buried deep in the queue, leading to bus arbitration delays far exceeding expectations. This application, through a bypass extraction channel mechanism, enables high real-time task request data packets to bypass conventional queue queuing and priority comparison logic, directly transmitting the priority processing instruction to the bus arbitrator, shortening the bus arbitration delay of high real-time tasks, and ensuring timely response of high real-time tasks, thereby improving the real-time performance of priority scheduling in request congestion scenarios.
[0123] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit them. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure.
Claims
1. A GPU server cloud computing resource management method, applied in a shared bus domain, wherein the shared bus domain includes multiple GPU nodes, CPU nodes, and a shared bus connecting the multiple GPU nodes and CPU nodes, and a bus arbitrator is configured on the shared bus, the bus arbitrator being used to receive task request data packets output from the task request buffer in each GPU node, and to grant bus access rights according to preset rules, characterized in that, The method includes: Step S1: When at least one GPU node in the shared bus domain is in a congested state, obtain the status information of each GPU node. The status information includes the type identifier of each task request data packet in the task request cache of the GPU node, the position coordinates of each task request data packet in the task request cache of the GPU node, and the residence time of each request data packet in the corresponding task request cache of the GPU node. Step S2: Based on the type identifier of each task request data packet in the task request cache of each GPU node, identify whether there are high real-time task request data packets in each task request data packet in the task request cache of each GPU node. Step S3: If so, extract the location coordinates and dwell time of each high real-time task request data packet from the status information, calculate the urgency score of each high real-time task request data packet based on the location coordinates and dwell time, and compare the urgency score of each high real-time task request data packet with the preset urgency score threshold to obtain the comparison result. Step S4: If the comparison result indicates that the urgency score of a high real-time task request data packet exceeds a preset urgency score threshold, a priority processing indication corresponding to the high real-time task request data packet is generated, and the priority processing indication is sent to the bus arbitrator through the bypass extraction channel in the GPU node corresponding to the high real-time task request data packet. If the comparison result indicates that the urgency score of a high real-time task request data packet does not exceed the urgency score threshold but has reached more than 80% of the urgency score threshold, the high real-time task request data packet is determined to be in a state close to the time limit boundary. A candidate identifier is generated and associated with the end boundary of the task request accepted by the current bus arbitrator. When the end boundary arrives, the bus arbitrator checks the end boundary first. If there is a bound candidate identifier, the next bus access right is granted to the high real-time task request data packet pointed to by the candidate identifier.
2. The GPU server cloud computing resource management method according to claim 1, characterized in that, Before step S1, there is also step S0, which specifically includes: Step S01: Obtain the queue length of the task request queue in the task request cache of each GPU node; Step S02: Determine whether the queue length of the task request queue in the task request cache of each GPU node exceeds the preset length threshold. If the queue length of a task request queue exceeds the preset length threshold, confirm that the corresponding GPU node is in a congested state.
3. The GPU server cloud computing resource management method according to claim 2, characterized in that, Step S01 specifically includes: The write pointer and read pointer values of the task request cache of each GPU node are compared in real time, and the queue length of the task request queue in the task request cache of each GPU node is calculated based on the write pointer and read pointer values. When the write pointer value is greater than the corresponding read pointer value, the queue length is equal to the write pointer value minus the read pointer value. When the write pointer value is less than the corresponding read pointer value, the queue length is the maximum length of the task request cache minus the read pointer value, plus the write pointer value.
4. The GPU server cloud computing resource management method according to claim 1, characterized in that, In step S1, the state information of the GPU node is obtained in the following manner: The header of the task request data packet entering the task cache area of the GPU node is identified, the opcode of each task request data packet is extracted, and the type identifier of the task request data packet is confirmed based on the opcode. Assign a trace identifier to the task request data packet that enters the task buffer area in the GPU node, and obtain the location of the task request data packet based on the trace identifier; The task request data packets entering the task cache of the GPU node are stamped with an entry timestamp. Based on the global timestamp of the task cache of each GPU node and the entry timestamp of the task request data in the task cache of each GPU node, the resident time of each request data packet in the corresponding task request queue is calculated.
5. The GPU server cloud computing resource management method according to claim 1, characterized in that, Step S2 specifically includes: Step S21: Based on the type identifier of each task request data packet in the task request cache of each GPU node, obtain the opcode of the header of each task request data packet in the task request cache of each GPU node. Step S22: Perform a bitwise AND matching operation between the obtained opcode and the pre-configured high real-time feature mask; Step S23: If a match is found, mark the successfully matched request data packet as a high real-time task request data packet.
6. The GPU server cloud computing resource management method according to claim 1, characterized in that, Step S3 specifically includes: Step S31: Extract the location coordinates, dwell time, and type identifier of each high real-time task request data packet from the status information; Step S32: Calculate the urgency score of each high real-time task request data packet based on the location coordinates and dwell time of each high real-time task request data packet. Step S33: Based on the type identifier corresponding to each high real-time task request data packet, match and obtain the importance weight of each high real-time task request data packet in the prior database of business type identifiers. Step S34: Calculate the urgency score corresponding to each high real-time task request data packet by weighting it according to the importance weight of each data packet, and obtain the weighted urgency score corresponding to each high real-time task request data packet. Step S35: Compare the weighted urgency score corresponding to each high real-time task request data packet with the preset urgency score threshold to obtain the comparison result.
7. The GPU server cloud computing resource management method according to claim 1, characterized in that, Step S3 further includes: The load of the shared bus domain is acquired in real time. When the load of the shared bus domain is higher than a preset load threshold, the preset emergency score threshold is increased by a set ratio. Conversely, when the load of the shared bus domain is lower than the preset load threshold, the preset emergency score threshold is decreased by a set ratio.
8. The GPU server cloud computing resource management method according to claim 1, characterized in that, Following step S4, step S5 is further included, which specifically includes: Step S51: Obtain the processing progress information of the bus arbiter, wherein the processing progress information includes the remaining transmission time of the task request that the current bus arbiter has accepted and the switching window of the task request data packet that can be switched to another task request data packet in the task request data packet that the current bus arbiter has accepted. Step S52: After the remaining transmission time has elapsed, the bus arbitrator grants bus access rights to the high real-time task request data packet corresponding to the priority processing indication at the switching window.
9. A GPU server cloud computing resource management system, applied in a shared bus domain, the shared bus domain including multiple GPU nodes, CPU nodes, and a shared bus connecting the multiple GPU nodes and CPU nodes, wherein a bus arbitrator is configured on the shared bus, the bus arbitrator being used to receive task request data packets output from the task request buffer in each GPU node, and grant bus access rights according to preset rules, characterized in that, The system includes: The status information acquisition module is used to acquire the status information of each GPU node when at least one GPU node in the shared bus domain is in a congested state. The status information includes the type identifier of each task request data packet in the task request cache of the GPU node, the position coordinates of each task request data packet in the task request cache of the GPU node, and the residence time of each request data packet in the corresponding task request cache of the GPU node. A high real-time task request data packet identification module is used to identify whether there are high real-time task request data packets in the task request cache of each GPU node based on the type identifier of each task request data packet in the task request cache of each GPU node. The comparison result acquisition module is used to extract the location coordinates and dwell time of each high real-time task request data packet from the status information, calculate the urgency score of each high real-time task request data packet based on the location coordinates and dwell time, and compare the urgency score of each high real-time task request data packet with a preset urgency score threshold to obtain the comparison result. The result processing module is used to generate a priority processing instruction corresponding to a high real-time task request data packet if the comparison result indicates that the urgency score of the high real-time task request data packet exceeds a preset urgency score threshold. This instruction is then sent to the bus arbitrator via a bypass extraction channel in the GPU node corresponding to the high real-time task request data packet. If the comparison result indicates that the urgency score of the high real-time task request data packet does not exceed the urgency score threshold but has reached more than 80% of it, the high real-time task request data packet is determined to be near the time limit boundary. A candidate identifier is generated and associated with the end boundary of the task request already accepted by the current bus arbitrator. When the end boundary arrives, the bus arbitrator checks the end boundary first. If a bound candidate identifier exists, the next bus access right is granted to the high real-time task request data packet pointed to by the candidate identifier.
Citation Information
Patent Citations
Memory access device, image processing device and imaging device
CN111033476A
Method for using shared device and resource sharing system
US20170185552A1
