Search

CN-121996499-A - Data analysis method, device, equipment and medium based on CPU platform

CN121996499ACN 121996499 ACN121996499 ACN 121996499ACN-121996499-A

Abstract

The invention relates to the technical field of data analysis, and discloses a data analysis method, a device, equipment and a medium based on a CPU platform, which comprise the steps of identifying the CPU type and the operating system type of the operating environment where monitoring application software is located; the method comprises the steps of calling a monitoring program corresponding to the identified CPU type and the identified operating system type in a monitoring program unit, activating a hardware monitoring interface corresponding to the CPU type according to the monitoring program, loading a target monitoring driver corresponding to the hardware monitoring interface, monitoring performance data of the CPU in real time through the target monitoring driver, carrying out alarm analysis on the monitored performance data to generate an alarm signal of a CPU platform, transmitting the alarm signal and the performance data to monitoring application software, and displaying the alarm signal and the performance data on a visual interface of the monitoring application software. The invention can improve the accuracy of CPU data analysis.

Inventors

  • XIAO FENG
  • LIU YUHONG

Assignees

  • 深圳微步信息股份有限公司

Dates

Publication Date
20260508
Application Date
20251211

Claims (10)

  1. 1. A data analysis method based on a CPU platform, comprising: identifying the CPU type and the operating system type of the running environment where the monitoring application software is located; invoking a monitoring program corresponding to the identified CPU type and the identified operating system type in a preset monitoring program unit; Activating a hardware monitoring interface corresponding to the CPU type according to the monitoring program, and loading a target monitoring driver corresponding to the hardware monitoring interface; monitoring the performance data of the CPU in real time through the target monitoring driver, and carrying out alarm analysis on the monitored performance data to generate an alarm signal of a CPU platform; And transmitting the alarm signal and the performance data to the monitoring application software, and displaying the alarm signal and the performance data on a visual interface of the monitoring application software.
  2. 2. The CPU platform based data analysis method of claim 1, wherein the identifying the CPU type and the operating system type of the operating environment in which the monitoring application software is located includes: Calling a system platform interface based on the running environment of the monitoring application software, and extracting machine architecture information and operating system name information of the running environment through the system platform interface; Analyzing an architecture type sequence in the machine architecture information, and determining the CPU type of the running environment where the monitoring application software is located according to the architecture type sequence; extracting a system identifier in the operating system name information, and matching a predefined operating system type list based on the system identifier; and determining the type of the operating system of the operating environment where the monitoring application software is located according to the matched result.
  3. 3. The CPU platform-based data analysis method according to claim 1, wherein the calling the identified CPU type and the monitoring program corresponding to the operating system type in the preset monitoring program unit includes: Accessing a preset monitoring program configuration library based on the identified CPU type and the identified operating system type; Querying the monitor configuration library for a monitor path associated with the CPU type and the operating system type; in the preset monitoring program unit, positioning a target position corresponding to a monitoring program according to the monitoring program path; and calling a monitoring program corresponding to the CPU type and the operating system type based on the target position.
  4. 4. The CPU platform-based data analysis method according to claim 1, wherein activating the hardware monitoring interface corresponding to the CPU type according to the monitoring program includes: determining a hardware monitoring interface address corresponding to the CPU type based on the monitoring program; Constructing a hardware access instruction corresponding to the CPU type according to the hardware monitoring interface address; the hardware access instruction is sent to a hardware monitoring interface corresponding to the CPU type; and receiving response data of the hardware monitoring interface, and determining the activation state of the hardware monitoring interface according to the response data.
  5. 5. The CPU platform-based data analysis method of claim 1, wherein loading the target monitoring driver corresponding to the hardware monitoring interface includes: identifying a driver type corresponding to the hardware monitoring interface; Selecting a target monitoring driver corresponding to the driver type from a preset driver storage library; initializing the target monitoring driver, and establishing connection between the initialized target monitoring driver and the hardware monitoring interface to obtain a connection state; and loading the target monitoring driver into a preset system kernel according to the connection state.
  6. 6. The CPU platform-based data analysis method of claim 4, wherein the monitoring the CPU performance data in real time by the target monitoring driver comprises: Sending a data acquisition request to the hardware monitoring interface through the target monitoring driver; Receiving an original performance data stream of a CPU from the hardware monitoring interface based on the data acquisition request; analyzing the original performance data stream to obtain power consumption data, frequency data and fan rotating speed data of a CPU; And carrying out standardized processing on the power consumption data, the frequency data and the fan rotating speed data to generate performance data of the CPU in a unified format.
  7. 7. The CPU platform based data analysis method of claim 1, wherein said transmitting the alert signal and the performance data to the monitoring application software comprises: Packaging the alarm signal and the performance data into a data packet according to the data interface specification of the monitoring application software; Transmitting the data packet to the monitoring application software through a preset network socket, and receiving a receiving confirmation signal from the monitoring application software; When the receiving confirmation signal is not received, transmitting the data packet according to a preset transmission period until the receiving confirmation signal is received; And when the receiving confirmation signal is received, determining the transmission state of the data packet as successful transmission.
  8. 8. A CPU platform based data analysis device, comprising: The type identification module is used for identifying the CPU type and the operating system type of the operating environment in which the monitoring application software is located; The monitoring program identification module is used for calling the identified CPU type and the monitoring program corresponding to the operating system type in the preset monitoring program unit; The monitoring driver loading module is used for activating a hardware monitoring interface corresponding to the CPU type according to the monitoring program and loading a target monitoring driver corresponding to the hardware monitoring interface; the alarm signal generating module is used for monitoring the performance data of the CPU in real time through the target monitoring driver program, carrying out alarm analysis on the monitored performance data and generating an alarm signal of the CPU platform; And the data display module is used for transmitting the alarm signal and the performance data to the monitoring application software and displaying the alarm signal and the performance data on a visual interface of the monitoring application software.
  9. 9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the CPU platform based data analysis method according to any of claims 1 to 7 when the computer program is executed by the processor.
  10. 10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the CPU platform based data analysis method according to any one of claims 1 to 7.

Description

Data analysis method, device, equipment and medium based on CPU platform Technical Field The present invention relates to the field of data analysis technologies, and in particular, to a data analysis method, apparatus, device, and medium based on a CPU platform. Background With the deep development of information technology application innovation, a domestic CPU platform and a domestic operating system become important basic stones of key information infrastructure. Under the current background, the running states of the server, the workstation and other equipment are monitored accurately in real time, and the method is a necessary technical means for guaranteeing the stable running of the system, optimizing the performance and diagnosing faults. Existing CPU data analysis solutions typically employ static adaptation methods for specific CPU architectures and operating systems. In practical applications, since the instruction sets of different CPU architectures accessing the underlying hardware monitor registers or system interfaces are quite different from the call specifications, for example, a monitor designed for a mega-core cannot correctly analyze the power consumption adjustment interface of the fly, and vice versa, this results in that valid data cannot be obtained or data errors are generated when used across platforms, so that the accuracy in analyzing CPU data is low. Disclosure of Invention The invention provides a data analysis method, a device, equipment and a medium based on a CPU platform, which are used for solving the technical problem of lower accuracy in CPU data analysis. In a first aspect, a data analysis method based on a CPU platform is provided, including: identifying the CPU type and the operating system type of the running environment where the monitoring application software is located; invoking a monitoring program corresponding to the identified CPU type and the identified operating system type in a preset monitoring program unit; Activating a hardware monitoring interface corresponding to the CPU type according to the monitoring program, and loading a target monitoring driver corresponding to the hardware monitoring interface; monitoring the performance data of the CPU in real time through the target monitoring driver, and carrying out alarm analysis on the monitored performance data to generate an alarm signal of a CPU platform; And transmitting the alarm signal and the performance data to the monitoring application software, and displaying the alarm signal and the performance data on a visual interface of the monitoring application software. In a second aspect, there is provided a CPU platform based data analysis apparatus, comprising: The type identification module is used for identifying the CPU type and the operating system type of the operating environment in which the monitoring application software is located; The monitoring program identification module is used for calling the identified CPU type and the monitoring program corresponding to the operating system type in the preset monitoring program unit; The monitoring driver loading module is used for activating a hardware monitoring interface corresponding to the CPU type according to the monitoring program and loading a target monitoring driver corresponding to the hardware monitoring interface; the alarm signal generating module is used for monitoring the performance data of the CPU in real time through the target monitoring driver program, carrying out alarm analysis on the monitored performance data and generating an alarm signal of the CPU platform; And the data display module is used for transmitting the alarm signal and the performance data to the monitoring application software and displaying the alarm signal and the performance data on a visual interface of the monitoring application software. In a third aspect, a computer device is provided, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the CPU platform based data analysis method described above when the computer program is executed by the processor. In a fourth aspect, a computer readable storage medium is provided, the computer readable storage medium storing a computer program, which when executed by a processor, implements the steps of the CPU platform-based data analysis method described above. In the scheme realized by the data analysis method, the device, the equipment and the medium based on the CPU platform, the CPU type and the operating system type of the operating environment where the monitoring application software is located can be identified through the client, the identified CPU type and the operating system type corresponding monitoring program are called in the preset monitoring program unit, a hardware monitoring interface corresponding to the CPU type is activated according to the monitoring program, and a target monitoring driving p