Anomaly detection method, computer program product and storage medium
By collecting the operation information of the accelerator card and automatically monitoring it, the abnormality of the accelerator card is detected, which solves the problem of insufficient abnormality detection of the accelerator card in the existing technology and improves the stability and reliability of the system.
Patent Information
- Application Number
- CN202410846325.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-27
AI Technical Summary
The existing technology has not yet provided an effective method to detect abnormal conditions that may occur during long-term use of the accelerator card, leading to system stability and reliability problems.
By collecting the running information of the accelerator card, including health information, abnormal coding information and memory page status information, it automatically monitors the status of the accelerator card, determines abnormal situations and outputs alarm information to ensure the stable operation of the accelerator card.
It realizes real-time monitoring of the accelerator card, detects and handles abnormal situations in time, reduces the risk of system crash or performance degradation, and improves the stability and reliability of the system.
Smart Images

Figure CN118394558B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an anomaly detection method, a computer program product and a storage medium. Background Art
[0002] With the increasing popularity of deep learning training and large model training in the field of artificial intelligence, higher requirements are placed on the monitoring and alarm modules of artificial intelligence cloud platforms, especially in terms of compatible and adaptable hardware. Accelerator cards provided by manufacturers are favored for their stability and efficiency. However, accelerator cards will inevitably encounter abnormal status problems during long-term use. At present, the relevant technical field has not yet disclosed a solution for how to effectively detect accelerator card anomalies. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide an anomaly detection method, a computer program product, and a storage medium that overcome the above problems or at least partially solve the above problems.
[0004] In order to solve the above problems, the present invention discloses an anomaly detection method, which is applied to multiple training nodes, and the multiple training nodes are used to collaboratively perform training tasks; the training nodes include an accelerator card;
[0005] The method comprises:
[0006] Collecting operation information of the accelerator card deployed on the training node; the operation information includes at least one of health information, abnormal coding information, and video memory page status information;
[0007] Determining an abnormal condition of the accelerator card according to the operation information;
[0008] Outputting warning information according to the abnormal situation of the acceleration card.
[0009] Optionally, the method further comprises:
[0010] Obtaining and storing log information of the accelerator card;
[0011] Analyze the log information when the accelerator card is abnormal to obtain the analysis result;
[0012] The analysis results are presented.
[0013] Optionally, determining the abnormal condition of the accelerator card according to the operation information includes:
[0014] Determining whether the health information indicates that the health status of the accelerator card is abnormal;
[0015] If the health information indicates that the accelerator card is in a normal health state, it is determined that the accelerator card is operating normally.
[0016] Optionally, the health information includes high-speed peripheral interconnect interface information, flash memory information, temperature information, and power information; and determining whether the health information indicates that the health status of the accelerator card is abnormal includes:
[0017] If any one of the high-speed peripheral interconnect interface information, the flash memory information, the temperature information, and the power information is abnormal, it is determined that the acceleration card is operating abnormally.
[0018] Optionally, the collecting operation information of the accelerator card deployed on the training node includes:
[0019] Starting a first running script, and executing a command for obtaining health information of the accelerator card through the first running script;
[0020] The health information is obtained according to the execution result of the health information acquisition command.
[0021] Optionally, determining the abnormal condition of the accelerator card according to the operation information includes:
[0022] Determine the error code type corresponding to the abnormal coding information;
[0023] An abnormal condition of the accelerator card is determined according to the error code type.
[0024] Optionally, determining the abnormal condition of the accelerator card according to the error code type includes:
[0025] If the error code type is that the accelerator card bus is abnormal, it is determined that the accelerator card has a bus failure.
[0026] Optionally, the error code type includes at least one of an accelerator card bus exception, a peripheral component interconnect interface exception, and an extended identification exception. The accelerator card bus exception is used to indicate that an accelerator card bus failure has occurred, the peripheral component interconnect interface exception is used to indicate that a peripheral component interconnect interface is operating abnormally, and the extended identification exception is used to indicate that an extended identification interface is operating abnormally.
[0027] Optionally, the collecting operation information of the accelerator card deployed on the training node includes:
[0028] Starting a second running script, and executing a command for obtaining abnormal monitoring item information for the accelerator card through the second running script;
[0029] The abnormal coding information is obtained according to the execution result of the abnormal monitoring item information acquisition command.
[0030] Optionally, the video memory page status information includes single-bit memory block exception information, double-bit memory block exception information, and video memory bad page isolation exception information, and determining the abnormal situation of the accelerator card according to the operation information includes:
[0031] If the value of the single-bit memory block exception information is less than the first threshold, and the value of the double-bit memory block exception information is less than the second threshold, and the value of the video memory bad page isolation exception information is a preset value, it is determined that the acceleration card is operating normally.
[0032] Optionally, the determining, according to the operation information, an abnormal condition of the accelerator card further includes:
[0033] If the value of the single-bit memory block exception information is greater than or equal to the first threshold, and the value of the double-bit memory block exception information is greater than or equal to the second threshold, and the value of the video memory bad page isolation exception information is a preset value, then it is determined that the error correction code of the acceleration card is abnormal.
[0034] Optionally, the determining, according to the operation information, an abnormal condition of the accelerator card further includes:
[0035] If the value of the single-bit memory block exception information is greater than or equal to the first threshold, and the value of the double-bit memory block exception information is greater than or equal to the second threshold, and the value of the video memory bad page isolation exception information is not a preset value, then it is determined that the video memory bad page suspension exception of the acceleration card.
[0036] The present invention also discloses a computer program product, comprising a computer program / instruction, wherein the computer program / instruction implements the steps of the above-mentioned anomaly detection method when executed by a processor.
[0037] The present invention also discloses a non-volatile storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned abnormality detection method are implemented.
[0038] The embodiments of the present invention include the following advantages:
[0039] The present invention discloses an abnormality detection method, which can collect the operation information deployed on the accelerator card, determine the abnormal situation of the accelerator card according to the operation information, and finally output alarm information according to the abnormal situation. The present invention can ensure that the accelerator card on the training node can run stably and efficiently through automatic monitoring, and can timely discover and handle abnormal situations by real-time monitoring of the operation information of the accelerator card, reduce the risk of system crash or performance degradation, and thus improve the stability and reliability of the entire system. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1is a flowchart of the steps of an anomaly detection method provided by an embodiment of the present invention;
[0041] Figure 2 is a flowchart of another abnormality detection method provided by an embodiment of the present invention;
[0042] Figure 3 It is a structural block diagram of a non-volatile storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0044] One of the core concepts of the embodiments of the present invention is that the present invention can collect the operation information deployed on the accelerator card, determine the abnormal situation of the accelerator card according to the operation information, and finally output alarm information according to the abnormal situation. The present invention can ensure that the accelerator card on the training node can run stably and efficiently through automatic monitoring, and can timely discover and handle abnormal situations by real-time monitoring of the operation information of the accelerator card, reduce the risk of system crash or performance degradation, and thus improve the stability and reliability of the entire system.
[0045] Reference Figure 1 , discloses a flowchart of the steps of an anomaly detection method provided by an embodiment of the present invention; applied to multiple training nodes, the multiple training nodes are used to collaboratively perform training tasks; the training nodes include an accelerator card, and the method may include the following steps:
[0046] Step 101, collecting operation information of the accelerator card deployed on the training node; the operation information includes at least one of health information, abnormal coding information, and video memory page status information;
[0047] In an embodiment of the present invention, in a distributed machine learning environment, multiple training nodes can work together to perform complex training tasks, and each training node is equipped with a high-performance accelerator card to accelerate the training process of the model.
[0048] The MLU (Machine Learning Unit) accelerator card is an artificial intelligence accelerator card designed for deep learning and other machine learning tasks. It aims to provide high-performance computing capabilities to accelerate model training and inference processes.
[0049] In order to ensure the stability and efficient operation of the system, the present invention can collect the operation information of the accelerator card on the training node in real time when performing anomaly detection, wherein the operation information may include at least one of health information, exception coding information, and video memory page status information.
[0050] Step 102, determining an abnormality of the accelerator card according to the operation information;
[0051] In the embodiment of the present invention, after the operation information of the accelerator card is acquired, it can be determined whether the accelerator card operates normally according to the operation information.
[0052] Step 103: outputting alarm information according to the abnormal situation of the acceleration card.
[0053] In the embodiment of the present invention, when it is determined that the acceleration card is operating abnormally, an alarm message can be generated and output. After the user sees the alarm message, the user can perform abnormal processing on the acceleration card, which provides convenience for the user to troubleshoot.
[0054] The present invention discloses an abnormality detection method, which can collect the operation information deployed on the accelerator card, determine the abnormal situation of the accelerator card according to the operation information, and finally output alarm information according to the abnormal situation. The present invention can ensure that the accelerator card on the training node can run stably and efficiently through automatic monitoring, and can timely discover and handle abnormal situations by real-time monitoring of the operation information of the accelerator card, reduce the risk of system crash or performance degradation, and thus improve the stability and reliability of the entire system.
[0055] Reference Figure 2 , discloses a flowchart of another anomaly detection method provided by an embodiment of the present invention; applied to multiple training nodes, the multiple training nodes are used to collaboratively perform training tasks; the training nodes include an accelerator card, and the method may include the following steps:
[0056] Step 201, collect the operation information of the accelerator card deployed in the training node; the operation information includes health information, and the health information includes high-speed peripheral interconnect interface information, flash memory information, temperature information, and power information.
[0057] In an embodiment of the present invention, when the operating information includes health information, the health information may include high-speed peripheral interconnect interface information, flash memory information, temperature information, and power information, wherein the power information refers to the operating power information of the acceleration card, the flash memory information refers to the flash memory read and write rate of the acceleration card, the temperature information refers to the operating temperature of the acceleration card, and the high-speed peripheral interconnect interface information refers to the operating status of the high-speed peripheral interconnect interface of the acceleration card.
[0058] Step 202: determine whether the health information indicates that the health status of the accelerator card is abnormal.
[0059] In the embodiment of the present invention, whether the health status of the accelerator card is abnormal can be determined based on the health information.
[0060] Step 203: If the health information indicates that the accelerator card is in a normal health state, it is determined that the accelerator card is operating normally.
[0061] Step 204: If any of the high-speed peripheral interconnect interface information, flash memory information, temperature information, and power information is abnormal, it is determined that the acceleration card is operating abnormally.
[0062] In an embodiment of the present invention, if the temperature of the accelerator card indicated by the temperature information does not exceed a preset safety range, it is determined that the output temperature of the accelerator card is normal; if it exceeds the preset safety range, it is determined that the output temperature of the accelerator card is abnormal. The present invention can directly determine the state of the accelerator card based on the health information, ensuring that the abnormal state of the accelerator card can be discovered in time, thereby ensuring the stable operation of the accelerator card.
[0063] If the read and write rate of the acceleration card indicated by the flash memory information exceeds the preset rate, it is determined that the flash memory read and write of the acceleration card is abnormal; if the read and write rate of the acceleration card indicated by the flash memory information is within the normal range, it is determined that the flash memory read and write of the acceleration card is normal.
[0064] If the output power of the accelerator card indicated by the power information does not exceed the preset safety range, it is determined that the output power of the accelerator card is normal; if it exceeds the preset safety range, it is determined that the output power of the accelerator card is abnormal. The present invention can directly determine whether the output power is normal based on the collected power information, so that the user can be notified in time when the output power is abnormal.
[0065] If the high-speed peripheral interconnect interface information indicates that the high-speed peripheral interconnect interface of the acceleration card has abnormal communication, it is determined that the high-speed peripheral interconnect interface of the acceleration card has an abnormality.
[0066] Step 205: Output alarm information according to the abnormal situation of the acceleration card.
[0067] In the embodiment of the present invention, corresponding alarm information can be output according to different abnormalities. For example, if the power information is abnormal, the alarm information can be output that the output power of the acceleration card is abnormal.
[0068] In an embodiment of the present invention, the method further includes: obtaining and storing log information of the acceleration card; analyzing the log information when an abnormality occurs in the acceleration card to obtain an analysis result; and displaying the analysis result.
[0069] In one example, health information may include high-speed peripheral component interconnect interface information, flash memory information, temperature information, and power information. The high-speed peripheral component interconnect interface information, flash memory information, temperature information, and power information may be collected, and then it may be determined whether the high-speed peripheral component interconnect interface of the accelerator card is abnormal based on the high-speed peripheral component interconnect interface information, whether the flash memory of the accelerator card is abnormal based on the flash memory information, whether the output power is normal based on the power information, and whether the output temperature of the accelerator card is normal based on the temperature information. If it is determined that the high-speed peripheral component interconnect interface connection is abnormal, the flash memory is normal, the output power is abnormal, and the temperature is normal, an alarm message may be output, wherein the alarm message may indicate abnormal high-speed peripheral component interconnect interface connection and abnormal output power.
[0070] In an embodiment of the present invention, when it is determined that the acceleration card is abnormal, log information of the acceleration card can be generated. The log information is used to record the abnormal type of the acceleration card. The abnormal type may include situations such as abnormal output power, excessive temperature, etc., and may also include other methods that are not limited here. After the log information is generated, the timestamp of the current time can be added to the log information, and then analysis is performed based on the acquired log information to obtain and display the analysis results. The user can troubleshoot according to the analysis results. The user can also query the log information stored in the memory according to keywords. The present invention also records detailed log information and displays the analysis results generated according to the log information to the user, thereby providing important data support for the diagnosis and resolution of the problem. A timestamp is added to the log information to determine the timeliness of the log information.
[0071] In one embodiment of the present invention, the generated analysis results can also be displayed to the user in the form of graphics, tables or texts. While displaying, the mapping relationship between different keywords and analysis results can also be saved, so that the user can search and quickly query the analysis results corresponding to the fault. The user can use these interactive functions to quickly locate the log information that needs to be queried, so as to diagnose and handle the problem, thereby helping the user to quickly locate the specific information of the abnormality and improve maintenance efficiency.
[0072] In one embodiment of the present invention, the operation information of the accelerator card deployed in the training node is collected, including: starting a first operation script, executing a health information acquisition command for the accelerator card through the first operation script; and obtaining health information according to the execution result of the health information acquisition command.
[0073] In an embodiment of the present invention, a first running script may be started, and a command for obtaining health information of an accelerator card may be executed through the first running script. Specifically, the first running script may include health_info.py, and the basic command in health_info.py is dcmm-cli health -clear. In this command, a health check of the accelerator card is performed by using a data center management tool, and health information may be collected through the basic commands in the first script.
[0074] In one embodiment of the present invention, determining an abnormal condition of an accelerator card according to operation information includes: determining an error code type corresponding to abnormal coding information; and determining the abnormal condition of the accelerator card according to the error code type.
[0075] In the embodiment of the present invention, the error code type refers to the coding type corresponding to the abnormal coding. The error code type corresponding to the abnormal coding information can be determined first, and then the abnormal situation of the accelerator card can be determined according to the error code type.
[0076] In one embodiment of the present invention, the error code type includes at least one of an accelerator card bus exception, a peripheral component interconnect interface exception, and an extended identification exception. The accelerator card bus exception is used to indicate that an accelerator card bus failure has occurred, the peripheral component interconnect interface exception is used to indicate that the peripheral component interconnect interface is operating abnormally, and the extended identification exception is used to indicate that the extended identification interface is operating abnormally.
[0077] In an embodiment of the present invention, the error code type includes at least one of an accelerator card bus exception, a peripheral component interconnect interface exception, and an extended identification exception, wherein the accelerator card bus exception is used to indicate that the accelerator card bus has a fault, the peripheral component interconnect interface exception is used to indicate that the peripheral component interconnect interface operates abnormally, and the extended identification exception is used to indicate that the extended identification interface operates abnormally.
[0078] The abnormal coding information may include at least one of the abnormal information of the accelerator card bus, the abnormal information of the peripheral component interconnect interface, and the abnormal information of the extended identification. The abnormal information of the accelerator card bus (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus) may include bus communication errors, insufficient bandwidth, and data transmission errors. The abnormal information of the peripheral component interconnect interface may include connection errors and protocol errors. The abnormal information of the extended identification may include communication failures and configuration errors. The main features of PCIe include: Serial transmission: PCIe uses point-to-point serial connections, and each device has its own dedicated connection, which reduces signal interference and delay. Scalability: PCIe supports multiple channel configurations, called "lanes". A PCIe slot can be a single lane (x1) or a combination of multiple lanes (such as x4, x8, x16, etc.), depending on the design of the slot and the required bandwidth. High-speed data transmission: PCIe supports a variety of data transmission rates, ranging from hundreds of MB to tens of GB per second, depending on the PCIe version and the number of channels used. Hot plug support: Many PCIe devices support hot plugging, which means that the device can be installed or removed without turning off the computer power. Multi-generation compatibility: The PCIe standard is constantly updated, and new versions generally maintain backward compatibility, allowing older devices to be used on newer systems.
[0079] PCI (Peripheral Component Interconnect) is a computer bus standard used to connect hardware devices (such as graphics cards, network cards, sound cards, storage controllers, etc.) to the computer's motherboard. The PCI interface provides a standardized way for devices produced by different manufacturers to be compatible with the computer system; the main features of PCI include: Parallel data transmission: Using parallel data transmission, multiple devices are allowed to communicate with the CPU and memory at the same time. Scalability: PCI slots can support expansion cards of different lengths, depending on the required bandwidth and functions. Hot-plug support: Some PCI devices support hot plugging, allowing devices to be installed or removed while the computer is running. Multi-generation compatibility: There are multiple versions of the PCI standard, including PCI, PCI-X, and PCI Express (PCIe), the latter of which is the most commonly used version at present.
[0080] Specifically, if the exception coding information includes peripheral component interconnect interface exception information, it can be determined based on whether the peripheral component interconnect interface exception information indicates normal. If there is no error information in the peripheral component interconnect interface exception information, it means that the acceleration card is operating normally. If the peripheral component interface exception information contains a connection error, it can be determined that the peripheral component interconnect interface is working abnormally.
[0081] If the abnormal coding information includes the accelerator card bus abnormal information, it can be determined whether the accelerator card bus abnormal information indicates normal. If there is no error information in the accelerator card bus abnormal information, it can be determined that the accelerator card bus is working normally. If the accelerator card bus abnormal information indicates a bus communication error, it indicates that the accelerator card bus is working abnormally.
[0082] If the exception coding information includes extended identification exception information, it can be determined whether the extended identification exception information indicates an exception. If the extended identification exception information contains no error information, it means that the stored page is normal. If the extended identification exception information indicates a communication failure, it can be determined that the extended identification interface of the accelerator card is working abnormally.
[0083] In an embodiment of the present invention, determining the abnormality of the acceleration card according to the error code type includes: if the error code type is an acceleration card bus abnormality, determining that the acceleration card has a bus failure.
[0084] In an embodiment of the present invention, when the error type is determined to be an accelerator card bus abnormality, it can be determined that the accelerator card has a bus fault; when the error type is determined to be a peripheral component interconnect interface abnormality, it can be determined that the accelerator card has a peripheral component interconnect interface fault; when the error type is determined to be an extended identification abnormality, it can be determined that the accelerator card has an extended identification interface fault.
[0085] In one embodiment of the present invention, the operation information of the accelerator card deployed in the training node is collected, including: starting a second operation script, executing an abnormal monitoring item information acquisition command for the accelerator card through the second operation script; and obtaining abnormal coding information according to the execution result of the abnormal monitoring item information acquisition command.
[0086] In an embodiment of the present invention, a second running script can be started, and a command for obtaining abnormal monitoring item information for the acceleration card can be executed through the second running script. For example, the second running script may include policy_info.py, and the basic command in policy_info.py may be dcmm-cli policy reg. In this command, abnormal monitoring item information of the acceleration card is collected by using a data center management tool to obtain abnormal coding information.
[0087] In one embodiment of the present invention, the video memory page status information includes single-bit memory block exception information, double-bit memory block exception information, and video memory bad page isolation exception information. According to the operation information, the abnormal situation of the acceleration card is determined, including: if the value of the single-bit memory block exception information is less than a first threshold, and the value of the double-bit memory block exception information is less than a second threshold, and the value of the video memory bad page isolation exception information is a preset value, it is determined that the acceleration card is working normally.
[0088] In an embodiment of the present invention, the video memory page status information includes single-bit memory block exception information, double-bit memory block exception information, and video memory bad page isolation exception information. In one example, the first threshold is 2, the second threshold is 1, and the preset value is 0. If it is determined that the value of the single-bit memory block exception information is 0, the value of the double-bit memory block exception information is 1, and the value of the video memory bad page isolation exception information is 0, it can be determined that the accelerator card is working normally.
[0089] In one embodiment of the present invention, the abnormal situation of the acceleration card is determined based on the operation information, and it also includes: if the value of the single-bit memory block exception information is greater than or equal to the first threshold, and the value of the double-bit memory block exception information is greater than or equal to the second threshold, and the value of the video memory bad page isolation exception information is a preset value, then it is determined that the error correction code of the acceleration card is abnormal.
[0090] In the embodiment of the present invention, if it is determined that the value of the single-bit memory block exception field is 2, the value of the double-bit memory block exception field is 3, and the value of the video memory bad page isolation exception information is 0, it can be determined that the value of the single-bit memory block exception field is greater than the first threshold, and the value of the double-bit memory block exception field is greater than the second threshold. At this time, it can be determined that the error correction code of the accelerator card is abnormal.
[0091] Error Correction Code (ECC) is a technology used to detect and correct errors that occur during data storage or transmission. Error correction codes are commonly used in memory modules, disk drives, and other storage devices to improve data reliability and integrity.
[0092] In memory modules, error correction code usually refers to a special type of memory that can detect and correct single-bit errors and sometimes even double-bit errors. This type of memory uses extra bits (called parity bits or redundant bits) to store error correction information. When data is written to the memory, the error correction code logic calculates a checksum of the data and stores this checksum in the extra bits. When data is read from the memory, the error correction code logic recalculates the checksum and compares it to the stored checksum to detect and correct errors.
[0093] In disk drives, error correction codes are often used to correct errors that may occur when reading data. Disk drives use complex algorithms to generate checksums, which are stored on the disk along with the data. When the data is read, the drive uses these checksums to detect and correct errors.
[0094] In one embodiment of the present invention, the abnormal situation of the acceleration card is determined based on the operation information, and also includes: if the value of the single-bit memory block exception information is greater than or equal to the first threshold, and the value of the double-bit memory block exception information is greater than or equal to the second threshold, and the value of the video memory bad page isolation exception information is not a preset value, then it is determined that the video memory bad page suspension exception of the acceleration card.
[0095] In an embodiment of the present invention, if it is determined that the value of the single-bit memory block exception field is 2, the value of the double-bit memory block exception field is 3, and the value of the video memory bad page isolation exception field is 1, it can be determined that the video memory bad page suspension of the acceleration card is abnormal, and an alarm message can be generated at this time. The alarm message can indicate the video memory bad page suspension exception. In order to ensure the normal operation of the program, the acceleration card cannot be used normally in this case. At this time, it is necessary to perform manual operations on the relevant acceleration card according to the alarm information, such as resetting, so that it completes the isolation operation of the video memory bad page and resumes use. The present invention can determine whether the video memory bad page suspension is abnormal according to the value of the video memory bad page isolation exception field, so as to facilitate users to detect the status of the video memory page.
[0096] In one embodiment of the present invention, the operation information of the accelerator card deployed on the training node is collected, including: starting a third operation script, executing a video memory page status information acquisition command for the accelerator card through the third operation script; and obtaining the video memory page status information according to the execution result of the video memory page status information acquisition command.
[0097] In an embodiment of the present invention, a third operation script may be started to execute a video memory page status information acquisition command for the accelerator card through the third operation script. For example, the third operation script may include a video memory page status information acquisition command page_retirement.py, and the video memory page status information may be collected through the page_retirement.py command.
[0098] The present invention discloses an abnormality detection method, which can collect the operation information deployed on the accelerator card, determine the abnormal situation of the accelerator card according to the operation information, and finally output alarm information according to the abnormal situation. The present invention can ensure that the accelerator card on the training node can run stably and efficiently through automatic monitoring, and can timely discover and handle abnormal situations by real-time monitoring of the operation information of the accelerator card, reduce the risk of system crash or performance degradation, and thus improve the stability and reliability of the entire system.
[0099] The embodiment of the present invention further discloses a computer program product, including: a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the above-mentioned abnormality detection method are implemented.
[0100] like Figure 3, shows a structural block diagram of a non-volatile storage medium 30 provided in an embodiment of the present invention. A computer program 301 is stored on the computer-readable storage medium 30. When the computer program 301 is executed by the processor, the various processes of the above-mentioned abnormality detection method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0101] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0102] It should be understood by those skilled in the art that the embodiments of the present invention can be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0103] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0104] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0105] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0106] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0107] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0108] The above is a detailed introduction to an anomaly detection method, a computer program product, and a non-volatile storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. An anomaly detection method, characterized in that: Applied to multiple training nodes, the multiple training nodes are used to collaboratively execute training tasks; the training nodes include accelerator cards; The method comprises: Collecting operation information of the accelerator card deployed on the training node; the operation information includes at least one of health information, abnormal coding information, and video memory page status information; Determining an abnormal condition of the accelerator card according to the operation information; Outputting alarm information according to the abnormal situation of the acceleration card; The video memory page status information includes single-bit memory block exception information, double-bit memory block exception information, and video memory bad page isolation exception information. The determining of the abnormal situation of the accelerator card according to the operation information includes: If the value of the single-bit memory block exception information is less than the first threshold, and the value of the double-bit memory block exception information is less than the second threshold, and the value of the video memory bad page isolation exception information is a preset value, it is determined that the accelerator card is operating normally; The determining, according to the operation information, an abnormal condition of the accelerator card includes: Determining whether the health information indicates that the health status of the accelerator card is abnormal; If the health information indicates that the accelerator card is in a normal health state, determining that the accelerator card is working normally; The health information includes high-speed peripheral interconnect interface information, flash memory information, temperature information, and power information; and determining whether the health information indicates that the health status of the accelerator card is abnormal includes: If any one of the high-speed peripheral interconnect interface information, the flash memory information, the temperature information, and the power information is abnormal, it is determined that the acceleration card is operating abnormally.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining and storing log information of the accelerator card; Analyze the log information when the accelerator card is abnormal to obtain the analysis result; The analysis results are presented.
3. The method according to claim 1, characterized in that: The collecting of operation information of the accelerator card deployed on the training node includes: Starting a first running script, and executing a command for obtaining health information of the accelerator card through the first running script; The health information is obtained according to the execution result of the health information acquisition command.
4. The method according to claim 1, characterized in that: The determining, according to the operation information, an abnormal condition of the accelerator card includes: Determine the error code type corresponding to the abnormal coding information; An abnormal condition of the accelerator card is determined according to the error code type.
5. The method according to claim 4, characterized in that The determining, according to the error code type, an abnormal condition of the accelerator card includes: If the error code type is that the accelerator card bus is abnormal, it is determined that the accelerator card has a bus failure.
6. The method according to claim 5, characterized in that The error code type includes at least one of an accelerator card bus exception, a peripheral component interconnect interface exception, and an extended identification exception. The accelerator card bus exception is used to indicate that an accelerator card bus failure has occurred, the peripheral component interconnect interface exception is used to indicate that the peripheral component interconnect interface is operating abnormally, and the extended identification exception is used to indicate that the extended identification interface is operating abnormally.
7. The method according to claim 1, characterized in that The collecting of operation information of the accelerator card deployed on the training node includes: Starting a second running script, and executing a command for obtaining abnormal monitoring item information for the accelerator card through the second running script; The abnormal coding information is obtained according to the execution result of the abnormal monitoring item information acquisition command.
8. The method according to claim 1, characterized in that The determining, according to the operation information, an abnormal condition of the accelerator card further includes: If the value of the single-bit memory block exception information is greater than or equal to the first threshold, and the value of the double-bit memory block exception information is greater than or equal to the second threshold, and the value of the video memory bad page isolation exception information is a preset value, then it is determined that the error correction code of the acceleration card is abnormal.
9. The method according to claim 1, characterized in that: The determining, according to the operation information, an abnormal condition of the accelerator card further includes: If the value of the single-bit memory block exception information is greater than or equal to the first threshold, and the value of the double-bit memory block exception information is greater than or equal to the second threshold, and the value of the video memory bad page isolation exception information is not a preset value, then it is determined that the video memory bad page suspension exception of the acceleration card.
10. The method according to claim 1, characterized in that The collecting of operation information of the accelerator card deployed on the training node includes: Starting a third running script, and executing a command for obtaining video memory page status information of the accelerator card through the third running script; The video memory page status information is obtained according to the execution result of the video memory page status information acquisition command.
11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the anomaly detection method according to any one of claims 1 to 10 are implemented.
12. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the abnormality detection method according to any one of claims 1 to 10 are implemented.
