Computing power monitoring method and device, equipment and storage medium
Through a computing power monitoring method, the computing power information of the server is obtained and analyzed in real time, and the problem of real-time monitoring of the server's computing power in the existing technology is solved, and efficient computing power scheduling and resource utilization are achieved.
Patent Information
- Application Number
- CN202411360698.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-02-21
AI Technical Summary
The existing technology cannot monitor the computing power status of the server in real time, resulting in the inability to achieve efficient computing power scheduling and waste of resources.
Through a computing power monitoring method, the computing power information of multiple computing power elements in the device is obtained based on the monitoring configuration information, and the computing power alarm judgment and log construction are carried out to realize real-time monitoring and recording of the computing power status.
Real-time monitoring of multi-computing power platforms is realized, making the state changes of computing power are well documented, making it easy to trace in real time and resource scheduling, and reducing resource waste.
Smart Images

Figure CN119493702A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a computing power monitoring method, device, equipment and storage medium. Background Art
[0002] With the rapid development of technologies such as artificial intelligence and big models, people's demand for server computing power has also begun to increase by leaps and bounds, and computing power is showing an explosive growth trend. As the core productivity in the data economy era, computing power is becoming increasingly important.
[0003] Servers, as computing power infrastructure, are required to operate efficiently. However, in actual applications, there is no real-time statistics on the server's CPU (central processing unit) utilization, GPU (graphics processing unit) utilization and other computing power status, making it impossible to monitor the server computing power in real time and support efficient computing power scheduling, resulting in a huge waste of resources. Summary of the invention
[0005] The present invention provides a computing power monitoring method, device, equipment and storage medium, which are used to solve the defect that the computing power of the server cannot be monitored in real time in the prior art, realize the monitoring of multiple computing power platforms, and make the computing power status changes of the computing power platforms traceable.
[0006] The present invention provides a computing power monitoring method, comprising the following steps: acquiring computing power information of multiple computing power elements in a device according to monitoring configuration information, wherein the monitoring configuration information includes a monitoring element identifier, and the monitoring element identifier is used to indicate the computing power element; performing computing power alarm judgment on the multiple computing power elements according to the computing power information, and generating a computing power alarm message, wherein the computing power alarm message is used to remind a user of an abnormal state of a computing power element; and constructing a computing power log according to the computing power information, and saving the computing power log.
[0007] According to a computing power monitoring method provided by the present invention, computing power alarm judgment is performed on the multiple computing power elements based on the computing power information to generate a computing power alarm message, including: obtaining the usage rate of each target computing power element based on the computing power information, the target computing power element is a computing power element in a position state among the multiple computing power elements; generating the computing power alarm message based on the relationship between the usage rate of each target computing power element and a preset threshold.
[0008] According to a computing power monitoring method provided by the present invention, before obtaining the usage rate of each target computing power element based on the computing power information, the method also includes: obtaining the in-place status of each computing power element based on the computing power information; and taking the computing power element in the in-place status as the target computing power element.
[0009] According to a computing power monitoring method provided by the present invention, the preset threshold value includes an upper usage limit and a lower usage limit, and the computing power alarm message is generated according to the size relationship between the usage rate of each target computing power element and the preset threshold value, including: judging whether the usage rate of the target computing power element is greater than the upper usage limit; if the usage rate of the target computing power element is greater than the upper usage limit, generating an alarm message; if the usage rate of the target computing power element is less than the upper usage limit, judging whether the usage rate of the target computing power element is less than the lower usage limit; if the usage rate of the target computing power element is less than the lower usage limit, generating an alarm message; generating the computing power alarm message according to the alarm information of each target computing power element.
[0010] According to a computing power monitoring method provided by the present invention, the computing power log is constructed based on the computing power information and the computing power log is saved, including: when the current round of timing of a preset timer ends, the computing power log is constructed based on the computing power information; judging the size relationship between the file size of the computing power log and the file threshold; if the file size of the computing power log is larger than the file threshold, a log file is created and the computing power log is saved in the log file; if the file size of the computing power log is smaller than the file threshold, the computing power log is appended to the end of the existing log.
[0011] According to a computing power monitoring method provided by the present invention, the monitoring configuration information also includes: the in-place status of the computing power element, the operating frequency of the computing power element, and the utilization rate of the computing power element.
[0012] The present invention also provides a computing power monitoring device, comprising the following modules: an acquisition module, used to acquire computing power information of multiple computing power elements in a device based on monitoring configuration information, wherein the monitoring configuration information includes a monitoring element identifier, and the monitoring element identifier is used to indicate the computing power element; a judgment module, used to make computing power alarm judgments on the multiple computing power elements based on the computing power information, and generate a computing power alarm message, wherein the computing power alarm message is used to remind a user of the abnormal status of the computing power element; a log module, used to construct a computing power log based on the computing power information and save the computing power log.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a computing power monitoring method as described above is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the computing power monitoring methods described above.
[0015] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the computing power monitoring methods described above.
[0016] The computing power monitoring method, device, equipment and storage medium provided by the present invention enable the user to specify the computing power elements that need to be monitored this time by setting monitoring configuration information, so that the method can be applied to computing power platforms with different computing power elements, has high maintainability and ease of use, and low cost. The computing power information is recorded in the computing power log, so that the changes in the computing power status during the operation process can be documented and convenient for real-time tracing. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flow chart of a computing power monitoring method provided by the present invention.
[0019] Figure 2 It is a schematic diagram of a process of generating a computing power log provided by the present invention.
[0020] Figure 3 It is a flowchart of an alarm judgment provided by the present invention.
[0021] Figure 4 It is a structural schematic diagram of a computing power monitoring device provided by the present invention.
[0022] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0025] Figure 1The figure is a flow chart of a computing power monitoring method provided by the present invention. The computing power monitoring method can be applied to electronic devices, which can be various types of devices with information processing capabilities during implementation. For example, the electronic device can include a personal computer, a laptop, a PDA or a server, etc.; the electronic device can also be a mobile terminal, for example, the mobile terminal can include a mobile phone, a car computer, a tablet computer or a projector, etc. Figure 1 As shown, the method may include the following steps 110 to 130: Step 110: Obtain computing power information of multiple computing power elements in the device according to monitoring configuration information, wherein the monitoring configuration information includes a monitoring element identifier, and the monitoring element identifier is used to indicate the computing power element.
[0026] The status parameters of multiple computing power elements in the target device are obtained according to the computing power monitoring options pre-specified by the user. The computing power monitoring options include multiple computing power elements that need to be monitored and the parameters of each computing power element such as voltage, temperature, power consumption, usage rate, etc.
[0027] The target device mentioned above refers to the electronic device specified by the user for computing power monitoring. The target device includes multiple computing power elements, which refer to the modules in the target device that can perform complex computing tasks and have high computing power, such as CPU (Central Processing Unit), GPU (Graphics Processing Unit), NPU (Neural Processing Unit), etc.
[0028] Step 120: Perform computing power alarm judgment on the multiple computing power elements according to the computing power information, and generate a computing power alarm message, where the computing power alarm message is used to remind the user of the abnormal status of the computing power element.
[0029] According to the parameters of the computing power elements in the computing power information, the computing power elements are judged for computing power alarms and computing power alarm information is generated. The computing power alarm information is sent to the prompt module, and the prompt model will warn the user according to the preset warning method, so that the user can notice the abnormal status of the computing power element in time.
[0030] In one embodiment of the present invention, performing computing power alarm judgment on the multiple computing power elements based on the computing power information and generating a computing power alarm message includes: obtaining the usage rate of each target computing power element based on the computing power information, the target computing power element is the computing power element in the multiple computing power elements that is in a position state; generating the computing power alarm message according to the relationship between the usage rate of each target computing power element and a preset threshold.
[0031] A target computing power element is determined from multiple computing power elements according to the computing power information. The target computing power element is a computing power element in an in-place state among the multiple computing power elements. The in-place state may be an online state, a working state, etc. of the computing power element.
[0032] In one embodiment of the present invention, before obtaining the usage rate of each target computing power element based on the computing power information, the method further includes: obtaining the in-place status of each computing power element based on the computing power information; and taking the computing power element in the in-place status as the target computing power element.
[0033] Furthermore, the monitoring configuration information also includes: the in-place status of the computing power element, the operating frequency of the computing power element, and the utilization rate of the computing power element.
[0034] The computing power monitoring options are information that users pre-specify and need to obtain. The computing power monitoring options include: computing power element identification, through which users specify the computing power elements that need to be monitored in the device, such as CPU 0x01, GPU 0x02, etc. For each computing power element, users also need to specify the information that needs to be monitored, including: the status of the computing power element, such as 0 not in place, 1 in place. The frequency of the computing power element, the utilization rate of the computing power element, etc.
[0035] According to the computing power information obtained by the above computing power monitoring option, the judgment step may include: For each computing power element, the in-place status of the computing power element is obtained according to the computing power information, so as to determine whether the computing power element is in place.
[0036] If the computing power element is in place, then the computing power element is determined to be the target computing power element
[0037] For each target computing power element, the utilization rate of the computing power element is obtained based on the information of the computing power element in the computing power information. For example, the computing power element is a CPU, and the computing power information records the idle time and non-idle time of the CPU over a period of time. Then the utilization rate is calculated by formula 1 - (CPU idle time / CPU running time).
[0038] Then, the utilization rate of the computing power element is compared with the preset threshold to obtain the size relationship between the two.
[0039] Generate computing power alarm information based on the size relationship between all computing power elements and the preset threshold. For example, if the usage rate of a computing power element is greater than the preset threshold, generate the alarm sub-information of the computing power element. Generate alarm information based on the alarm sub-information of all computing power elements.
[0040] In one embodiment of the present invention, the preset threshold includes an upper usage limit and a lower usage limit, and the generating of the computing power alarm message according to the relationship between the usage rate of each target computing power element and the preset threshold includes: determining whether the usage rate of the target computing power element is greater than the upper usage limit; if the usage rate of the target computing power element is greater than the upper usage limit, generating an alarm message; if the usage rate of the target computing power element is less than the upper usage limit, determining whether the usage rate of the target computing power element is less than the lower usage limit; if the usage rate of the target computing power element is less than the lower usage limit, generating an alarm message; generating the computing power alarm message according to the alarm information of each target computing power element.
[0041] For each computing power element, obtain the usage rate of the computing power element in the computing power information, and determine whether it is greater than the usage rate upper limit. If the usage rate of the computing power element is greater than the usage rate upper limit, an alarm message is generated.
[0042] If the usage rate of the computing power element is not greater than the upper usage rate limit, it is determined whether the usage rate of the computing power element is less than the lower usage rate limit. If the usage rate of the computing power element is less than the lower usage rate limit, an alarm message is also generated.
[0043] Generate computing power alarm information based on the alarm information of each target computing power element.
[0044] Step 130: construct a computing power log based on the computing power information, and save the computing power log.
[0045] The acquired computing power information is processed, a computing power log is generated based on the processed information, and the generated computing power log is saved.
[0046] In the above computing power monitoring method, the user specifies the computing power elements that need to be monitored this time by setting the monitoring configuration information, so that this method can be applied to computing power platforms with different computing power elements, with high maintainability and ease of use, low cost, and the computing power information is recorded in the computing power log, so that the changes in the computing power status during the operation process can be documented and convenient for real-time tracing.
[0047] In one embodiment of the present invention, constructing a computing power log based on the computing power information and saving the computing power log include: constructing a computing power log based on the computing power information when the current round of timing of a preset timer ends; judging the relationship between the file size of the computing power log and a file threshold; if the file size of the computing power log is larger than the file threshold, creating a log file and saving the computing power log in the log file; if the file size of the computing power log is smaller than the file threshold, appending the computing power log to the end of the existing log.
[0048] A timer is preset, and the timer will continuously cycle for multiple rounds of timing.
[0049] When the timer completes the current round of timing, a computing power log is constructed based on the computing power information. The computing power log can be saved to storage devices such as FLASH (flash memory), USB disk, and hard disk.
[0050] The computing power log is named with the server serial number plus the number. When computing power monitoring is started, a computing power log with the server serial number plus the number is created. The first computing power information log is numbered 1, and the numbers of the newly created computing power information logs are incremented.
[0051] The computing power information is recorded regularly to generate a log. Before recording, determine whether the current computing power log size exceeds the threshold. If it exceeds the threshold, a new computing power information log is created. If it does not exceed the threshold, the computing power information log is opened, and the computing power information is appended to the end of the log. After recording is completed, the computing power information log file is closed and the next recording cycle begins.
[0052] The following will describe an exemplary application of an embodiment of the present invention in an actual application scenario. The above-mentioned computing power monitoring method of the present invention can be implemented by a server computing power monitoring system, which includes: a server computing power information acquisition module, a server computing power information recording module, and a server computing power alarm processing module. The server computing power monitoring system runs on the server host. After the monitoring system is started, the timer is started.
[0053] The server computing power information acquisition module executes shell commands to obtain server computing power information according to the configured computing power monitoring options, and constructs computing power information data after reading, which is used by the computing power information recording module and the computing power alarm processing module. The computing power information data definition is specified in Table 1. The computing power monitoring options of the server computing power monitoring system include but are not limited to CPU in-place information, CPU frequency, CPU usage rate, GPU in-place information, GPU frequency, GPU usage rate, etc. The computing power monitoring options are configurable.
[0054]
[0055] Table 1 Definition of computing power information data structure
[0056] The computing power monitoring system records computing power information to the computing power log regularly through the server computing power information recording module. The computing power log can be saved to storage devices such as FLASH, USB flash drive, and hard disk. The computing power log is named with the server serial number plus the number. The regulations for each entry in the computing power log are shown in Table 2.
[0057]
[0058] Table 2 Computing power log structure definition
[0059] When the computing power information recording module is started, a computing power log numbered with the server serial number is created. The first computing power information log is numbered 1, and the numbers of the newly created computing power information logs are incremented.
[0060] The process of generating logs by the computing power information recording module is as follows: Figure 2 shown. Figure 2 A schematic diagram of a process for generating a computing power log provided by an embodiment of the present invention is shown.
[0061] Figure 2 After receiving the signal that the timer has expired, the computing power information recorded by the server computing power information acquisition module is obtained. First, it is determined whether the current computing power log size exceeds the threshold. If it exceeds the threshold, a new computing power information log is created. If it does not exceed the threshold, the computing power information log is opened, and the computing power information is appended to the end of the log. After recording is completed, the computing power information log file is closed and the next recording cycle begins.
[0062] After obtaining the computing power information, the server computing power alarm processing module makes a computing power alarm judgment based on the preset computing power threshold, generates a computing power alarm message and sends the computing power alarm information to the specified destination. Figure 3 shown. Figure 3 A schematic diagram of a process of alarm judgment provided by an embodiment of the present invention is shown.
[0063] Figure 3 The server computing power alarm processing module first determines whether the computing power is in place based on the computing power information. If not, the computing power not in place alarm is triggered and the next alarm judgment is made. If it is in place, it determines whether the computing power usage rate exceeds the preset computing power threshold upper limit. If it exceeds, the computing power exceeding threshold alarm is triggered. If it does not exceed the upper threshold, it determines whether the computing power usage rate is lower than the computing power threshold lower limit. If it is lower than the computing power threshold lower limit, the below threshold alarm is triggered; if it is not lower than the computing power threshold lower limit, the next alarm judgment is made. The alarm message definition is shown in Table 3. The alarm message can be sent to the specified destination through interfaces such as the network and serial port.
[0064]
[0065] Table 3 Definition of computing power warning message
[0066] The above-mentioned server computing power monitoring system monitors the computing power information such as CPU frequency, CPU utilization rate, GPU frequency, GPU utilization rate, CPU presence information, GPU presence information, etc. during the operation of the server, records the computing power information log in real time, makes alarm judgments according to the configured computing power alarm threshold, constructs computing power alarm messages, and sends them to the designated destination, thereby realizing real-time grasp of the server computing power status, actively discovering computing power anomalies and performance bottlenecks, and issuing timely warnings for users to take measures to deal with them in a timely manner, thereby improving the accuracy and real-time nature of server computing power monitoring and improving server operation efficiency.
[0067] The server computing power monitoring system mentioned above has configurable monitoring options. Depending on the server type, the type of computing power monitored also varies, including but not limited to CPU, GPU, etc. It is not limited by the CPU platform and is applicable to servers of all CPU platforms. It has high maintainability and ease of use, and low cost.
[0068] The above server computing power monitoring system records the server computing power log, regularly monitors the server computing power information such as CPU and GPU and records it in the computing power log. The computing power status changes during the server operation are well documented and easy to trace in real time. When the server computing power alarm occurs, it can be perceived in real time and the user can be quickly notified for processing. The acquired computing power information can provide basic data for computing power scheduling, assist in efficient computing power scheduling, and improve computing power resource utilization.
[0069] Based on the foregoing embodiments, an embodiment of the present invention provides a computing power monitoring device, and each module included in the device and each unit included in each module can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0070] The computing power monitoring device provided by the present invention is described below. The computing power monitoring device described below and the computing power monitoring method described above can be referenced to each other.
[0071] Figure 4 This is a schematic diagram of the structure of the computing power monitoring device provided by an embodiment of the present invention. Figure 4 As shown, the device 400 includes an acquisition module 410, a judgment module 420 and a log module 430, wherein: An acquisition module 410 is used to acquire computing power information of multiple computing power elements in a device according to monitoring configuration information, wherein the monitoring configuration information includes a monitoring element identifier, and the monitoring element identifier is used to indicate the computing power element; A decision module 420 is used to make a computing power alarm decision on the multiple computing power elements according to the computing power information, and generate a computing power alarm message, where the computing power alarm message is used to remind a user of an abnormal state of a computing power element; The log module 430 is used to construct a computing power log according to the computing power information and save the computing power log.
[0072] In some embodiments, the judgment module 420 is specifically used to obtain the utilization rate of each target computing power element based on the computing power information, where the target computing power element is the computing power element in the multiple computing power elements that is in a position state; and generate the computing power alarm message based on the relationship between the utilization rate of each target computing power element and a preset threshold.
[0073] In some embodiments, the judgment module 420 is further used to obtain the in-place status of each computing power element according to the computing power information; and the computing power element in the in-place status is used as the target computing power element. In some embodiments, the judgment module 420 is specifically used to determine whether the usage rate of the target computing power element is greater than the usage rate upper limit; if the usage rate of the target computing power element is greater than the usage rate upper limit, an alarm message is generated; if the usage rate of the target computing power element is less than the usage rate upper limit, it is determined whether the usage rate of the target computing power element is less than the usage rate lower limit; if the usage rate of the target computing power element is less than the usage rate lower limit, an alarm message is generated; based on the alarm information of each target computing power element, the computing power alarm information is generated.
[0074] In some embodiments, the log module 430 is specifically used to construct a computing power log based on the computing power information when the current round of the preset timer ends; determine the relationship between the file size of the computing power log and the file threshold; if the file size of the computing power log is larger than the file threshold, create a log file and save the computing power log to the log file; if the file size of the computing power log is smaller than the file threshold, append the computing power log to the end of the existing log.
[0075] In some embodiments, the monitoring configuration information also includes: the in-place status of the computing power element, the operating frequency of the computing power element, and the utilization rate of the computing power element.
[0076] Figure 5 A schematic diagram of the physical structure of the electronic device provided by the present invention, such as Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the computing power monitoring methods provided by the above methods.
[0077] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0078] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the computing power monitoring methods provided by the above methods.
[0079] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0080] On the other hand, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the computing power monitoring method provided by the above methods.
[0081] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0082] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0083] The program code embodied on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
[0084] Computer program code for performing the operations of the present specification may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0085] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A computing power monitoring method, characterized in that: include: Obtain computing power information of multiple computing power elements in the device according to monitoring configuration information, wherein the monitoring configuration information includes a monitoring element identifier, and the monitoring element identifier is used to indicate the computing power element; Performing a computing power alarm judgment on the multiple computing power elements according to the computing power information, and generating a computing power alarm message, wherein the computing power alarm message is used to remind a user of an abnormal state of a computing power element; A computing power log is constructed according to the computing power information, and the computing power log is saved.
2. The method according to claim 1, characterized in that The performing computing power alarm judgment on the multiple computing power elements according to the computing power information and generating a computing power alarm message includes: Acquire a usage rate of each target computing power element according to the computing power information, where the target computing power element is a computing power element in a position state among the multiple computing power elements; The computing power alarm message is generated according to the relationship between the usage rate of each target computing power element and the preset threshold.
3. The method according to claim 2, characterized in that Before obtaining the usage rate of each target computing power element according to the computing power information, the method further includes: Obtaining the status of each computing power element according to the computing power information; The computing power element in the in-place state is used as the target computing power element.
4. The method according to claim 2, characterized in that: The preset threshold includes an upper limit of the usage rate and a lower limit of the usage rate. The generating of the computing power warning message according to the relationship between the usage rate of each target computing power element and the preset threshold includes: Determine whether the usage rate of the target computing power element is greater than the usage rate upper limit; If the usage rate of the target computing power element is greater than the usage rate upper limit, an alarm message is generated; If the usage rate of the target computing power element is less than the usage rate upper limit, determining whether the usage rate of the target computing power element is less than the usage rate lower limit; If the usage rate of the target computing power element is less than the usage rate lower limit, an alarm message is generated; The computing power alarm information is generated according to the alarm information of each target computing power element.
5. The method according to claim 1, characterized in that The step of constructing a computing power log according to the computing power information and saving the computing power log includes: When the current round of the preset timer ends, a computing power log is constructed according to the computing power information; Determine the relationship between the file size of the computing power log and the file threshold; If the file size of the computing power log is greater than the file threshold, a log file is created and the computing power log is saved in the log file; If the file size of the computing power log is smaller than the file threshold, the computing power log is appended to the end of the existing log.
6. The method according to claim 1, characterized in that The monitoring configuration information also includes: the status of the computing power element, the operating frequency of the computing power element, and the utilization rate of the computing power element.
7. A computing power monitoring device, characterized in that: The device comprises: An acquisition module, used to acquire computing power information of multiple computing power elements in a device according to monitoring configuration information, wherein the monitoring configuration information includes a monitoring element identifier, and the monitoring element identifier is used to indicate the computing power element; A judgment module, used to make a computing power alarm judgment on the multiple computing power elements according to the computing power information, and generate a computing power alarm message, wherein the computing power alarm message is used to remind a user of an abnormal state of a computing power element; The log module is used to construct a computing power log based on the computing power information and save the computing power log.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the computing power monitoring method as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computing power monitoring method as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computing power monitoring method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Alarm method and device for operation and maintenance monitoring platform and computer equipment
CN110417575A
PCIE (Peripheral Component Interface Express) equipment link state monitoring and alarming method, device and equipment and readable medium
CN113448810A
Method and device for sensing computing power in computing power network, storage medium and electronic equipment
CN116467071A
Computing power network management scheduling device and method
CN117201493A
Identifier analysis-based heterogeneous computing power sharing platform
CN117971467A