A GPU equipment maintenance system

Through the GPU equipment maintenance system, the collaborative work of the monitoring program and the driver is used to achieve rapid maintenance of abnormal GPU equipment and business continuity, and solve the problems of resource waste and business interruption in the existing technology.

CN117707848BActive Publication Date: 2024-09-20MUXI LINGZHI TECHNOLOGY (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311673254.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-07
Publication Date
2024-09-20
Estimated Expiration
2043-12-07

AI Technical Summary

Technical Problem

In a scenario where multiple GPU devices are connected, when an exception occurs on a single GPU device, the existing technology requires restarting all GPU devices, resulting in a waste of resources and the inability to continue business execution through breakpoints.

Method used

A GPU device maintenance system is designed. By interacting with the agent layer and operating system layer, and using monitoring programs and drivers, abnormal GPU devices actively send information, the driver generates reset commands, and the business end suspends the business and collects running status information to ensure maintenance. can continue to perform business.

Benefits of technology

It realizes rapid maintenance of abnormal GPU devices, avoids restarting the entire operating system layer, and ensures business continuity and efficient resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117707848B
    Figure CN117707848B
Patent Text Reader

Abstract

The present application relates to the field of equipment maintenance technology, and in particular to a GPU equipment maintenance system. The system includes: a GPU device, a service end, an interactive proxy layer and an operating system layer. The interactive proxy layer includes a monitoring program, and the operating system layer includes a driver. The driver sends the received abnormal information to the monitoring program, and the monitoring program sends a service suspension notification message to the service end. The service end suspends the service, collects the running status information of the GPU device, and sends the reset notification message to the monitoring program. The monitoring program sends it to the driver, and the driver generates a reset command and sends it to the GPU device. The GPU device performs the reset operation, forms a reset completion message, configures the running status information, and continues to perform the service. It can be seen that the reset command is only sent to the abnormal GPU device, and the reset operation is performed on the GPU device. The abnormal GPU device can be maintained, and the running status information of the GPU device is collected by the service end, and the GPU device is reconfigured after being reset, to ensure that the service can continue to be performed after the GPU device maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment maintenance, and in particular to a GPU equipment maintenance system. Background Art

[0002] Currently, when an abnormality occurs in a GPU device, it is usually necessary to restart the operating system connected to the GPU device to perform maintenance on the GPU device. In a scenario where the operating system is connected to multiple GPU devices, even if an abnormality occurs in a single GPU device, all GPU devices need to be restarted, which obviously causes a large waste of resources. Moreover, the way the operating system is restarted requires the GPU device to re-execute the corresponding business, and it is impossible to continue executing the business through breakpoints, which also causes a waste of resources.

[0003] Therefore, how to restart only the abnormal GPU devices and ensure that the business can continue to be executed after the GPU device maintenance has become an urgent problem to be solved. Summary of the invention

[0004] In view of the above technical problems, the technical solution adopted by the present invention is:

[0005] A GPU device maintenance system, the system comprising: a GPU device set A = {a1, a2, ..., a i , …, a I}, and a i Corresponding business end b i , an interactive proxy layer and an operating system layer, wherein the interactive proxy layer includes a monitoring program, and the operating system layer includes a driver, a i ={e i1 , e i2 ,…,e ij ,…,e iJ}, where a i is the i-th GPU device, i is an integer in the range [1, I], I is the total number of GPU devices, e ij is the jth register in the i-th GPU device, and J is the total number of registers in the i-th GPU device.

[0006] The driver is used to receive a i Abnormal information sent i When f i Sent to the monitoring program.

[0007] The driver is also used to receive the reset notification information g sent by the monitoring program i When g i , generate reset command G i , G i Send to ai .

[0008] The monitoring program is used to receive f i When i Send service suspension notification information i .

[0009] The monitoring program is also used to receive g i When g i Sent to the driver.

[0010] The business end b i Used to receive h i When a i Corresponding business k i , send g to the monitoring program i , visit a i Collect a i The values ​​of all registers in the i .

[0011] The business end b i It is also used to detect the reset completion information and use l i Configuration a i , continue to execute k i .

[0012] The GPU device a i Used to send f to the driver i , accept b i access and send the values ​​of all registers to b i .

[0013] The GPU device a i Also used when receiving G i When the reset operation is completed, the reset completion information is generated.

[0014] Compared with the prior art, the present invention has obvious beneficial effects. By means of the above technical solution, the GPU equipment maintenance system provided by the present invention can achieve considerable technical advancement and practicality, and has wide industrial utilization value, and has at least the following beneficial effects:

[0015] The present invention provides a GPU device maintenance system, the system comprising: a GPU device set A = {a1, a2, ..., a i , …, a I}, and a i Corresponding business end b i , an interactive proxy layer and an operating system layer, wherein the interactive proxy layer includes a monitoring program, and the operating system layer includes a driver, ai ={e i1 , e i2 ,…,e ij ,…,e iJ}, where a i is the i-th GPU device, i is an integer in the range [1, I], I is the total number of GPU devices, e ij is the jth register in the i-th GPU device, J is the total number of registers in the i-th GPU device, and the driver is used to receive a i Abnormal information sent i When f i The driver is further configured to receive a reset notification message g sent by the monitoring program upon receiving the reset notification message g i When g i , generate reset command G i , G i Send to a i The monitoring program is used to receive f i When i Send service suspension notification information i The monitoring program is also used to receive g i When g i Sent to the driver, the business end b i Used to receive h i When a i Corresponding business k i , send g to the monitoring program i , visit a i Collect a i The values ​​of all registers in the i , the service end b i It is also used to detect the reset completion information and use l i Configuration a i , continue to execute k i , the GPU device a i Used to send f to the driver i , accept b i access and send the values ​​of all registers to b i , the GPU device a i Also used when receiving G i When the reset operation is completed, the reset completion information is generated.

[0016] It can be seen that the GPU device actively sends the exception information to the driver, so that the maintenance system can respond quickly to maintain the GPU device, and the driver sends the reset command to the abnormal GPU device, and performs the reset operation on the GPU device side, without resetting the entire operating system layer, so that the abnormal GPU device can be restarted, and the business end collects the operating status information of the GPU device and reconfigures it after the GPU device is reset, thereby ensuring that the business can continue to be executed after the GPU device maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 An architecture diagram of a GPU device maintenance system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0019] 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0020] This embodiment provides a GPU device maintenance system. Figure 1 , is an architecture diagram of a GPU device maintenance system provided by an embodiment of the present invention, the system comprising: a GPU device set A = {a1, a2, ..., a i , …, a I}, and a i Corresponding business end b i , an interactive proxy layer and an operating system layer, wherein the interactive proxy layer includes a monitoring program, and the operating system layer includes a driver, a i ={e i1 , e i2 ,…,e ij ,…,e iJ}, where a i is the i-th GPU device, i is an integer in the range [1, I], I is the total number of GPU devices, e ij is the jth register in the i-th GPU device, and J is the total number of registers in the i-th GPU device.

[0021] The driver is used to receive a i Abnormal information sent i When f i Sent to the monitoring program.

[0022] The driver is also used to receive the reset notification information g sent by the monitoring program i When g i , generate reset command G i , G i Send to a i .

[0023] The monitoring program is used to receive f i When i Send service suspension notification information i .

[0024] The monitoring program is also used to receive g i When g i Sent to the driver.

[0025] The business end b i Used to receive h i When a i Corresponding business k i , send g to the monitoring program i , visit a i Collect a i The values ​​of all registers in the i .

[0026] The business end b i It is also used to detect the reset completion information and use l i Configuration a i , continue to execute k i .

[0027] The GPU device a i Used to send f to the driver i , accept b i access and send the values ​​of all registers to b i .

[0028] The GPU device a i Also used when receiving G i When the reset operation is completed, the reset completion information is generated.

[0029] Among them, the GPU device is a graphics processing unit (Graphics Processing Unit) device. The business end can be used to provide specific services that need to be processed by the GPU device. The services can be matrix calculations, function mapping, etc. The business end interacts with the GPU device through the interactive proxy layer and the driver in the operating system to instruct the GPU device to process the content.

[0030] The interactive proxy layer may refer to the application encapsulation layer of various system calls. The monitoring program may adopt two GPU device exception monitoring methods. The first monitoring method may be a patrol method, that is, checking the GPU devices one by one in a cyclic manner. The second monitoring method is to directly receive the exception information sent by the driver.

[0031] In this embodiment, a single GPU device abnormality is used as an example to describe the GPU device abnormality maintenance process. It should be noted that if there are multiple GPU device abnormalities, each abnormal GPU device can be processed separately, that is, this embodiment assumes that a single GPU device only corresponds to a single business end.

[0032] The GPU device sends the exception information to the driver. After the driver analyzes the exception information, it sends the analysis result to the monitoring program in a synchronous or asynchronous manner. The monitoring program then notifies the business end, that is, the monitoring program sends a service suspension notification message to the business end.

[0033] When the business end receives the service suspension notification information, it suspends the service corresponding to the GPU device, sends a reset notification information to the monitoring program, and collects the values ​​of all registers in the GPU device as the running status information. At this time, the running status information is saved in the memory of the business end to play a breakpoint protection role, so that the subsequent GPU device can continue to execute the suspended service after the maintenance is completed.

[0034] After receiving the reset notification information, the monitoring program sends the reset notification information to the driver, and the driver generates a reset command and sends the reset command to the GPU device.

[0035] After receiving the reset command, the GPU device performs a reset operation, and after the reset operation is completed, generates reset completion information.

[0036] After detecting the reset completion information, the service end sends the operation status information to the GPU device for register configuration, and the GPU device continues to execute the suspended service.

[0037] Optionally, a i It also includes several functional units and a micro control unit, wherein each functional unit is connected to the micro control unit.

[0038] The micro control unit is used to collect the status information of each functional unit. When the status information of any functional unit is abnormal, the micro control unit sends a message to the driver. i .

[0039] Among them, a microcontroller unit is used to monitor the status information of the functional unit, so that abnormal information can be reported in time. Compared with the cyclic detection of the GPU device by the monitoring program, the timeliness of the abnormal response of the GPU device is improved, so that the maintenance system can respond quickly to maintain the GPU device.

[0040] Optionally, the interactive proxy layer further includes a resource usage table, wherein the resource usage table includes a i The resources in k i usage.

[0041] The business end b i Also used in receiving h i When a is determined through the resource usage table in the interactive proxy layer i K i The resources used will be a i K i All resources used are initialized.

[0042] The GPU device resources are processed in an initialized manner, and the running status information of the GPU device is saved on the business end, so that the driver no longer needs to remove and load the running status of the GPU device, thereby improving maintenance efficiency.

[0043] Optionally, a i Including register access permission status and register inaccessible status;

[0044] when a i When the register is in the access-allowed state, a i Used to send f to the driver i , accept b i access and send the values ​​of all registers to b i ;

[0045] when a i When the register is inaccessible, a i Used to send f to the driver i ;

[0046] Accordingly, the service end b i Used to receive h i When a i Corresponding business k i , sending system reset notification information to the operating system layer;

[0047] When receiving the system reset notification information, the operating system layer sends a reset command to all GPU devices.

[0048] Among them, when a i When registers are allowed to access the state, a reset is used only for GPU devices, and when a i When the register is inaccessible, the breakpoint of the GPU device cannot be protected, so only the reset for the operating system can be used. At this time, a i Not receiving b i access and send the values ​​of all registers to b i , accordingly, b i The system reset notification information is directly sent to the operating system layer. When the operating system layer receives the system reset notification information, it sends a reset command to all GPU devices.

[0049] Optionally, when a i When communicating with other GPU devices, the service end b i Used to receive h i When a i Corresponding business k i , sending system reset notification information to the operating system layer;

[0050] When receiving the system reset notification information, the operating system layer sends a reset command to all GPU devices.

[0051] Among them, when a i When communicating with other GPU devices, it is not possible to reset only a i , which will cause errors in the GPU device that communicates with it. Therefore, at this time, only a reset for the operating system can be used.

[0052] Optionally, the b i Visit a i Collect a i The values ​​of all registers in the i ,include:

[0053] b i The monitoring program and the drive are sequentially i Send register access instructions;

[0054] a i The values ​​of all its registers are sent to b in sequence through the driver and the monitoring program. i , b i A i The values ​​of all registers in the i .

[0055] Among them, due to b i Cannot directly access a i , therefore, monitoring programs and drivers are also needed for transfer.

[0056] Optionally, the operating system layer also includes a corresponding i File node m i ;

[0057] In a i Before the reset operation is completed, m i The mark is unavailable, and all business terminals cannot use a i Perform calculations.

[0058] Among them, through a i File node m i By setting a flag, the business end is prohibited from accessing it to avoid errors. The implementer can use 0 and 1 to mark m i , when m i = 0, the mark is unavailable. i =1, indicating that it can be used.

[0059] Optionally, in a i After the reset operation is completed, m i The mark is usable, forming the reset completion information.

[0060] Among them, in a i After the reset operation is completed, you can continue to execute the business. At this time, you need to obtain the running status information of the business end to configure the register, so m i The flag can be used as reset completion information. When the service end detects the reset completion information, it also knows a i The reset operation is completed, and the running status information is sent to a i Perform register configuration.

[0061] In this embodiment, the GPU device actively sends the exception information to the driver, so that the maintenance system can respond quickly to maintain the GPU device, and the driver sends a reset command to the abnormal GPU device, and performs the reset operation on the GPU device side without resetting the entire operating system layer, so that the abnormal GPU device can be restarted, and the business end collects the operating status information of the GPU device and reconfigures it after the GPU device is reset, thereby ensuring that the business can continue to be executed after the GPU device maintenance.

[0062] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. A GPU equipment maintenance system, characterized in that: The system includes: a GPU device set A={a1, a2, ..., a i , …, a I }, and a i Corresponding business end b i , an interactive proxy layer and an operating system layer, wherein the interactive proxy layer includes a monitoring program, and the operating system layer includes a driver, a i ={e i1 , e i2 ,…,e ij ,…,e iJ }, where a i is the i-th GPU device, i is an integer in the range [1, I], I is the total number of GPU devices, e ij is the jth register in the ith GPU device, J is the total number of registers in the ith GPU device, a i Including register access permission status and register inaccessible status; The driver is used to receive a i Abnormal information sent i When f i Sending to the monitoring program; when a i When the register is in the access-allowed state, a i Used to send f to the driver i , accept b i access and send the values ​​of all registers to b i ; The driver is also used to receive the reset notification information g sent by the monitoring program i When g i , generate reset command G i , G i Send to a i ; The monitoring program is used to receive f i When i Send service suspension notification information i ; The monitoring program is also used to receive g i When g i Sending to the driver; The business end b i Used to receive h i When a i Corresponding business k i , send g to the monitoring program i , visit a i Collect a i The values ​​of all registers in the i ; when a i When the register is inaccessible, a i Used to send f to the driver i , accordingly, the service end b i Also used in receiving h i When a i Corresponding business k i , sending system reset notification information to the operating system layer; when a i When communicating with other GPU devices, the service end b i Also used in receiving h i When a i Corresponding business k i , sending the system reset notification information to the operating system layer; When the operating system layer receives the system reset notification information, it sends a reset command to all GPU devices; the service end b i It is also used to detect the reset completion information and use l i Configuration a i , continue to execute k i ; The GPU device a i Used to send f to the driver i , accept b i access and send the values ​​of all registers to b i ; The GPU device a i Also used when receiving G i When the reset operation is completed, the reset completion information is generated.

2. The GPU equipment maintenance system according to claim 1, characterized in that: a i It also includes a plurality of functional units and a micro control unit, wherein each functional unit is connected to the micro control unit; The micro control unit is used to collect the status information of each functional unit. When the status information of any functional unit is abnormal, the micro control unit sends a message to the driver. i .

3. The GPU device maintenance system according to claim 1, characterized in that: The interactive proxy layer also includes a resource usage table, wherein the resource usage table includes a i The resources in k i usage of The business end b i Also used in receiving h i When a is determined through the resource usage table in the interactive proxy layer i K i The resources used will be a i K i All resources used are initialized.

4. The GPU equipment maintenance system according to claim 1, characterized in that: The b i Visit a i Collect a i The values ​​of all registers in the i , include: b i The monitoring program and the drive are sequentially i Send register access instructions; a i The values ​​of all its registers are sent to b in sequence through the driver and the monitoring program. i , b i A i The values ​​of all registers in the i .

5. The GPU equipment maintenance system according to claim 1, characterized in that: The operating system layer also includes a corresponding i File node m i ; In a i Before the reset operation is completed, m i The mark is unavailable, and all business terminals cannot use a i Perform calculations.

6. The GPU equipment maintenance system according to claim 5, characterized in that: In a i After the reset operation is completed, m i The mark is usable, forming the reset completion information.