System repairing method and device based on memory mapping, electronic equipment and medium

By mapping the physical address of the BMC register to the memory address space of the computer system, monitoring data is collected in real time and abnormalities are automatically repaired, which solves the problems of slow response speed and the need for manual intervention in traditional methods, and improves the stability and reliability of the computer system.

CN118567948APending Publication Date: 2024-08-30INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410703285.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Traditional computer system monitoring and repair methods are slow to respond or require manual intervention, and cannot effectively solve potential problems in real time.

Method used

By mapping the physical address of the BMC register to the memory address space of the computer system, monitoring data is collected in real time, and abnormal situations are automatically repaired using preset dynamic adjustment mechanisms and fault handling strategies.

Benefits of technology

It achieves fast and automatic system repair, reduces data transmission and processing time, avoids manual intervention, and improves system stability and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567948A
    Figure CN118567948A
Patent Text Reader

Abstract

The invention provides a system repairing method and device based on memory mapping, electronic equipment and a medium, and relates to the technical field of computer systems.The method comprises the steps that a physical address of a register of a BMC is mapped into a memory address space of a computer system; the method comprises the following steps: performing data acquisition on a computer system through a BMC to obtain monitoring data, and storing the monitoring data in a register; accessing the virtual address in the memory address space, and reading the monitoring data; and when the monitoring data shows that the computer system has an abnormal condition, repairing the computer system through a preset dynamic adjustment mechanism and / or a preset fault processing strategy. Through the memory mapping mode, the monitoring data in the memory is directly accessed and read, and the data transmission and processing time is shortened. Moreover, the computer system is repaired through a preset dynamic adjustment mechanism and / or a preset fault processing strategy, and the repair of the computer system can be completed without manual intervention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer systems, and in particular to a system repair method, device, electronic device and medium based on memory mapping. Background Art

[0002] In computing systems, maintaining system stability and reliability is extremely important. This includes being able to monitor the health of computer systems in real time and taking quick action to repair or prevent failures when potential problems are detected. Traditionally, this monitoring and repair work relies on software solutions at the operating system level, or dedicated hardware devices and external tools. However, these methods usually have the problem of slow response speed or require manual intervention. Summary of the invention

[0003] In view of this, embodiments of the present application provide a system repair method, device, electronic device and medium based on memory mapping, so as to overcome the above problems or at least partially solve the above problems.

[0004] A first aspect of an embodiment of the present application provides a system repair method based on memory mapping, the method comprising:

[0005] Map the physical address of the BMC register to the memory address space of the computer system;

[0006] Collecting data from the computer system through the BMC to obtain monitoring data, wherein the monitoring data is stored in the register;

[0007] Accessing a virtual address in the memory address space to read the monitoring data;

[0008] When the monitoring data indicates that an abnormal situation exists in the computer system, the computer system is repaired through a preset dynamic adjustment mechanism and / or a preset fault handling strategy.

[0009] Optionally, mapping the physical address of the register of the BMC to the memory address space of the computer system includes:

[0010] Obtaining the physical address of the register;

[0011] When the operating system is started, the memory address space is reserved in the kernel space according to the size of the physical address through the memory management interface of the operating system, and the physical address of the register is mapped to the virtual address in the memory address space;

[0012] The method further comprises: writing a device driver, wherein the device driver is used to implement communication between the computer system and the BMC;

[0013] The device driver at least includes: a BMC register opening function, a BMC register closing function, a reading function and a writing function.

[0014] Optionally, mapping the physical address of the register of the BMC to the memory address space of the computer system includes:

[0015] When there are multiple registers, obtaining the hardware status of the multiple registers, the system load of the operating system, and the memory usage of the kernel space;

[0016] Inputting the hardware status of the plurality of registers, the system load of the operating system, and the memory usage of the kernel space into a pre-created memory mapping decision tree, wherein each node of the memory mapping decision tree represents a conditional judgment, each of the conditional judgments is set based on the type of the register, the access frequency of the register, and the data sensitivity of the monitoring data stored in the register, and the plurality of conditional judgments constitute a mapping rule of the memory mapping decision tree;

[0017] Determining a mapping strategy for each of the multiple registers according to a judgment result output by the memory mapping decision tree;

[0018] Based on the mapping strategy, the physical address of the register is mapped to the memory address space of the computer system specified by the mapping strategy.

[0019] Optionally, the method further comprises:

[0020] Determine a monitoring parameter, and set an upper threshold value of the monitoring parameter and a lower threshold value of the monitoring parameter;

[0021] Setting a timer, wherein the timer is used to trigger the reading of the monitoring data;

[0022] The accessing the virtual address in the memory address space to read the monitoring data includes:

[0023] When each trigger cycle of the timer arrives, the monitoring data is acquired by converting the read function of the device driver into a memory access instruction and performing a read operation on the virtual address in the memory address space corresponding to the physical address of the register;

[0024] The method further comprises:

[0025] After acquiring the monitoring data, comparing the monitoring data according to the threshold of the monitoring parameter corresponding to the monitoring parameter to which the monitoring data belongs;

[0026] When the monitoring data is greater than an upper threshold of the monitoring parameter or the monitoring data is less than a lower threshold of the monitoring parameter, determining that an abnormality exists in the computer system;

[0027] Among them, the monitoring parameters are key indicators that affect the performance of the computer system. The thresholds of the monitoring parameters are determined based on the historical operating status of the computer system and the historical monitoring data corresponding to the historical operating status. The thresholds of the monitoring parameters are different in different operating environments and / or different application requirements.

[0028] Optionally, when the monitoring data indicates that the computer system is abnormal, repairing the computer system by using a preset dynamic adjustment mechanism and / or a preset fault handling strategy includes:

[0029] When the monitoring data is greater than the upper threshold of the monitoring parameter, the abnormal situation is adjusted through the negative feedback mechanism in the preset dynamic adjustment mechanism so that the monitoring data is not greater than the upper threshold of the monitoring parameter;

[0030] When the monitoring data is less than the lower threshold of the monitoring parameter, the abnormal situation is adjusted through the positive feedback mechanism in the preset dynamic adjustment mechanism so that the monitoring data is not less than the lower threshold of the monitoring parameter.

[0031] Optionally, when the monitoring data indicates that the computer system is abnormal, repairing the computer system by using a preset dynamic adjustment mechanism and / or a preset fault handling strategy includes:

[0032] When the abnormal situation cannot be repaired by the preset dynamic adjustment mechanism, the abnormal situation is handled by the preset fault handling strategy, including:

[0033] Determine the faulty software or faulty hardware corresponding to the abnormal situation in the computer system, and perform fault isolation on the faulty software or the faulty hardware;

[0034] For the faulty software, stop allocating data flow or resources to the faulty software by controlling routing or instructions;

[0035] For the faulty hardware, disconnect the physical connection and power supply of the faulty hardware.

[0036] Optionally, after isolating the faulty software or the faulty hardware, the method further includes:

[0037] Reallocate system resources to other parts except the faulty software or the faulty hardware;

[0038] The faulty software or the faulty hardware will not be accessed after the system resources are reallocated.

[0039] A second aspect of an embodiment of the present application provides a system repair device based on memory mapping, the device comprising:

[0040] A mapping module, used to map the physical address of the BMC register to the memory address space of the computer system;

[0041] A collection module, used for collecting data from the computer system through the BMC to obtain monitoring data, wherein the monitoring data is stored in the register;

[0042] A reading module, used for accessing the virtual address in the memory address space to read the monitoring data;

[0043] The repair module is used to repair the computer system by using a preset dynamic adjustment mechanism and / or a preset fault handling strategy when the monitoring data indicates that the computer system is abnormal.

[0044] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the system repair method based on memory mapping as described in the first aspect.

[0045] A fourth aspect of an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the system repair method based on memory mapping as described in the first aspect is implemented.

[0046] Beneficial effects of this application:

[0047] An embodiment of the present application provides a system repair method, device, electronic device and medium based on memory mapping, the method comprising: mapping the physical address of a register of a BMC to a memory address space of a computer system; collecting data on the computer system through the BMC to obtain monitoring data, the monitoring data being stored in the register; accessing a virtual address in the memory address space to read the monitoring data; and when the monitoring data indicates that an abnormality exists in the computer system, repairing the computer system through a pre-set dynamic adjustment mechanism and / or a pre-set fault handling strategy.

[0048] By mapping the registers of the BMC to the memory address space, the computer system can directly access the memory and read the monitoring data in the memory, reducing the time for data transmission and processing. In addition, when it is determined that the computer system is abnormal, the computer system can be repaired through a pre-set dynamic adjustment mechanism and / or a pre-set fault handling strategy, thereby completing the repair of the computer system without manual intervention. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application.

[0050] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0051] Figure 1 It is a flowchart of a system repair method based on memory mapping provided in an embodiment of the present application;

[0052] Figure 2 It is a schematic diagram of memory mapping in a system repair method based on memory mapping provided in an embodiment of the present application;

[0053] Figure 3 It is a mind map of memory mapping in a memory mapping system repair provided by an embodiment of the present application;

[0054] Figure 4 It is a flow chart of a monitoring mechanism based on memory mapping in a memory mapping system repair provided by an embodiment of the present application;

[0055] Figure 5 It is a flowchart of executing a dynamic adjustment mechanism in a system repair method based on memory mapping provided by an embodiment of the present application;

[0056] Figure 6 It is a flow chart of a regulation process of executing positive and negative feedback in a dynamic regulation mechanism in a system repair method based on memory mapping provided by an embodiment of the present application;

[0057] Figure 7 It is a schematic diagram of the framework of a system repair device based on memory mapping provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0060] Figure 1 is a flow chart of a system repair method based on memory mapping provided by an embodiment of the present application, such as Figure 1 The embodiment of the present application provides a system repair method based on memory mapping, the method comprising:

[0061] In step S101, the physical address of the register of the BMC is mapped to the memory address space of the computer system;

[0062] In step S102, data is collected on the computer system through the BMC to obtain monitoring data, and the monitoring data is stored in the register;

[0063] In step S103, access the virtual address in the memory address space to read the monitoring data;

[0064] In step S104, when the monitoring data indicates that an abnormal situation exists in the computer system, the computer system is repaired by a preset dynamic adjustment mechanism and / or a preset fault handling strategy.

[0065] First, in step S101 , the physical address of the register of the BMC is mapped to the memory address space of the computer system.

[0066] In the embodiment of the present application, BMC (Baseboard Management Controller) is a special processor for remotely monitoring and managing server hardware. Through memory mapping, the physical address of the register of BMC is mapped to the memory address space of the computer system, so as to access and control the functions of BMC in the operating system.

[0067] The physical address of the register of the BMC is mapped to the memory address space of the computer system, so that the data in the memory of the computer system and the data stored in the register can communicate with each other.

[0068] Further, in step S102, data is collected from the computer system through the BMC to obtain monitoring data, and the monitoring data is stored in the register.

[0069] In the embodiment of the present application, the BMC can be connected to the computer system as external hardware. The BMC is used to monitor and manage various components in the computer system. The BMC usually contains some special registers for storing the collected monitoring data. Through the BMC, real-time data collection is performed on the computer system. Through sensors and other hardware devices, the BMC can monitor and obtain monitoring data related to the computer system in real time, and store the monitoring data in the registers of the BMC.

[0070] The monitoring data represents the operating status and performance of the computer system, including hardware data (such as CPU utilization, memory utilization, hard disk space, temperature, and fan speed), network data (such as bandwidth utilization, number of network connections), and application data (such as response time, error log).

[0071] Further, in step S103, the virtual address in the memory address space is accessed to read the monitoring data.

[0072] In an embodiment of the present application, after the physical address of the BMC register is mapped to the virtual address in the memory address space, the monitoring data stored in the BMC register is mapped to the memory address space of the computer system. When an application or system tool needs to obtain the monitoring data, the stored monitoring data can be obtained by accessing the virtual address corresponding to the physical address of the BMC register in the memory address space.

[0073] By reading these monitoring data, the operating system or application can monitor the status, performance parameters, etc. of the computer system (such as servers, personal computers, embedded systems, cloud computing systems, energy storage systems, supercomputers, etc.) in real time and make appropriate responses and processing.

[0074] Finally, in step S104, when the monitoring data indicates that the computer system is abnormal, the computer system is repaired by a preset dynamic adjustment mechanism and / or a preset fault handling strategy.

[0075] In the embodiment of the present application, when the monitoring data collected by the BMC shows that the computer system has abnormal conditions, such as high CPU temperature, performance degradation, abnormal load, etc. These conditions may affect the system stability and performance.

[0076] The dynamic adjustment mechanism refers to a pre-set system automatic adjustment strategy, which is used to adjust the computer system in real time according to the changes in monitoring data. For example, dynamically increase or decrease resources according to the load of the computer system, adjust the power management strategy, etc. When the monitoring data shows abnormalities, the computer system can automatically adjust according to the set dynamic adjustment mechanism to quickly restore the normal operation of the computer system and avoid further problems.

[0077] Fault handling strategies refer to pre-set strategies and processes for handling abnormal situations. This includes steps such as identifying the cause of the fault, executing repair measures, and restoring system operation.

[0078] When an abnormal situation cannot be resolved through the dynamic adjustment mechanism, the system will execute pre-set fault handling strategies, such as issuing alarms, automatically switching to backup equipment, fault isolation, notifying system administrators, etc., thereby improving the reliability and stability of the system and reducing the need for manual intervention.

[0079] Through the above embodiments, the BMC registers can be mapped to the memory address space, so that the computer system can directly access the memory and read the monitoring data in the memory, reducing the time of data transmission and processing. In addition, when it is determined that the computer system is abnormal, the computer system can be repaired through the pre-set dynamic adjustment mechanism and / or the pre-set fault handling strategy, so that the computer system can be repaired without manual intervention.

[0080] Figure 2 is a schematic diagram of memory mapping in a system repair method based on memory mapping provided in an embodiment of the present application, such as Figure 2 shown.

[0081] Optionally, the step S101 includes:

[0082] Obtaining the physical address of the register;

[0083] When the operating system is started, the memory address space is reserved in the kernel space according to the size of the physical address through the memory management interface of the operating system, and the physical address of the register is mapped to the virtual address in the memory address space;

[0084] The method further comprises: writing a device driver, wherein the device driver is used to implement communication between the computer system and the BMC;

[0085] The device driver at least includes: a BMC register opening function, a BMC register closing function, a reading function and a writing function.

[0086] Specifically, Figure 2As shown, in an embodiment of the present application, it is necessary to determine the physical address of the BMC register (such as the BMC monitoring register), which is a key position for communicating with the BMC and is used to read and write corresponding monitoring data in the BMC register. When the operating system of the computer system is started, a memory address space needs to be reserved in the kernel space, wherein the size of the memory address space is reserved based on the size of the physical address, so as to map the physical address of the BMC register to the virtual address in the memory address space. This process is implemented through the memory management interface of the operating system, ensuring that the operating system can identify and access the virtual address in the memory address space, facilitating subsequent communication and data exchange between the computer system and the BMC.

[0087] The device driver is a software module responsible for controlling and managing hardware devices, and is used to implement communication between the computer system and the BMC. The device driver usually includes: opening the BMC register function (for initialization), closing the BMC register function (for terminating communication), reading function (reading data from the BMC register) and writing function (writing data to the BMC register) (i.e. Figure 2 in Open, Close, Read, Write).

[0088] By writing and calling device drivers, data exchange and communication operations between the computer system and the BMC are realized. The BMC register can interact with the memory address space to monitor data, such as CPU temperature, voltage level, fan speed, memory usage, etc. Applications or operating systems can read BMC monitoring data and send instructions to BMC by calling the functions provided by the device driver to control and monitor the BMC.

[0089] Through the above embodiments, the preparation and key steps for communicating with the BMC in the computer system include the reservation of memory address space and the mapping of register addresses, as well as the data exchange between the computer system and the BMC through the device driver. These operations can ensure that the computer system can effectively communicate with the BMC, realize monitoring and control of the computer system, and ensure the stability and operation efficiency of the system.

[0090] Optionally, the step S101 includes:

[0091] When there are multiple registers, obtaining the hardware status of the multiple registers, the system load of the operating system, and the memory usage of the kernel space;

[0092] Inputting the hardware status of the plurality of registers, the system load of the operating system, and the memory usage of the kernel space into a pre-created memory mapping decision tree, wherein each node of the memory mapping decision tree represents a conditional judgment, each of the conditional judgments is set based on the type of the register, the access frequency of the register, and the data sensitivity of the monitoring data stored in the register, and the plurality of conditional judgments constitute a mapping rule of the memory mapping decision tree;

[0093] Determining a mapping strategy for each of the multiple registers according to a judgment result output by the memory mapping decision tree;

[0094] Based on the mapping strategy, the physical address of the register is mapped to the memory address space of the computer system specified by the mapping strategy.

[0095] Specifically, since it is necessary to obtain monitoring data as real-time as possible, in previous solutions, the single data transmission solution has low security. In the embodiment of the present application, the process of mapping the physical address of the BMC register to the virtual address of the memory address space of the memory can be optimized through a memory mapping decision tree, wherein the memory mapping decision tree refers to a dynamic decision on how to effectively map the physical address of the physical hardware register to the virtual address in the memory address space of the operating system, and its purpose is to optimize the memory mapping process, improve data access speed and system efficiency, and maintain system stability.

[0096] Specifically, in the embodiment of the present application, the design of the mapping strategy tree includes the following steps:

[0097] 1. Data collection: First, you need to collect data about the computer system’s hardware status, system load, memory usage, etc.

[0098] 2. Conditional judgment node: Each node in the memory mapping decision tree represents a conditional judgment. These conditional judgment nodes are set based on factors such as the type of hardware register, access frequency, and data sensitivity.

[0099] 3. Mapping decision execution: Based on the result of the conditional judgment, the memory mapping decision tree will guide the execution of specific mapping decisions. For example, for frequently accessed registers, the decision tree may decide to map them to a faster memory area.

[0100] Therefore, in the embodiment of the present application, when the memory mapping process of multiple registers needs to be completed, first, the hardware status information of multiple registers needs to be obtained, including the stored monitoring data and the access frequency of each register and the sensitivity of the monitoring data stored by the register. At the same time, the system load data of the operating system and the memory usage of the kernel space are collected, and the above data (the hardware status of multiple registers, the system load of the operating system and the memory usage of the kernel space) are input into the pre-created memory mapping decision tree.

[0101] Each node of the memory mapping decision tree represents a conditional judgment. The conditional judgment of each node of the mapping decision data is set based on the type of register, access frequency and data sensitivity of the stored monitoring data. The multiple conditional judgments constructed constitute the mapping rules of the memory mapping decision tree.

[0102] The mapping strategy of each register in the multiple registers is determined through the judgment results output by the memory mapping decision tree. The mapping strategy indicates which memory address space the register is mapped to, so as to determine how each register should be mapped to the memory address space of the computer system according to the multiple mapping strategies.

[0103] After the mapping strategy of each register is determined, the physical address of the register is mapped to the memory address space of the computer system specified by the mapping strategy according to the mapping strategy corresponding to the register.

[0104] As an example, assuming that the physical addresses of multiple hardware monitoring registers need to be mapped into the memory address space, the memory mapping decision tree includes the following steps:

[0105] Step 1: Determine the access frequency of the register. If the access frequency is greater than the preset access frequency, go to step 2; if the access frequency is not greater than the preset access frequency, go to step 3.

[0106] Step 2: Map the registers to a cache or fast-access memory area.

[0107] Step 3: Map registers to standard memory areas.

[0108] In addition to the conditional judgment of access frequency, the register mapping strategy can also be generated through register access mode (read-write, read-only), data importance, etc.

[0109] Figure 3 This is a mind map of memory mapping in a memory mapping system repair provided by an embodiment of the present application, such as Figure 3 shown.

[0110] The following is used to generate Figure 3 The mind map shown is in the MindMap markup language.

[0111] @startmindmap

[0112] +Memory-mapped decision trees

[0113] ++Fast cache

[0114] +++Level 1 cache

[0115] +++Second level cache

[0116] +++Level 3 cache

[0117] ++Standard memory area

[0118] --Register access frequency

[0119] ---Map registers around registers

[0120] --Register access mode

[0121] ---Read only

[0122] ---Read and write

[0123] --Register data importance

[0124] @endmindmap

[0125] pass Figure 3 It can be seen that the left side of the memory mapping decision tree can input the access frequency of registers (registers around the mapping register), register access mode (read-only or read-write), register data importance and other contents into the memory mapping decision tree. Through the memory mapping decision tree, the mapping strategy corresponding to the register is output, such as mapping to fast cache (cache), standard memory area, first-level cache, second-level cache, and third-level cache.

[0126] Through the above embodiments, the memory mapping decision tree can be used to allocate the register to the memory area that suits it, which is an optimization of the memory mapping process, improves the access speed of monitoring data and the system efficiency, and maintains the stability of the system.

[0127] Optionally, the method further comprises:

[0128] Determine a monitoring parameter, and set an upper threshold value of the monitoring parameter and a lower threshold value of the monitoring parameter;

[0129] Setting a timer, wherein the timer is used to trigger the reading of the monitoring data;

[0130] The accessing the virtual address in the memory address space to read the monitoring data includes:

[0131] When each trigger cycle of the timer arrives, the monitoring data is acquired by converting the read function of the device driver into a memory access instruction and performing a read operation on the virtual address in the memory address space corresponding to the physical address of the register;

[0132] The method further comprises:

[0133] After acquiring the monitoring data, comparing the monitoring data according to the threshold of the monitoring parameter corresponding to the monitoring parameter to which the monitoring data belongs;

[0134] When the monitoring data is greater than an upper threshold of the monitoring parameter or the monitoring data is less than a lower threshold of the monitoring parameter, determining that an abnormality exists in the computer system;

[0135] Among them, the monitoring parameters are key indicators that affect the performance of the computer system. The thresholds of the monitoring parameters are determined based on the historical operating status of the computer system and the historical monitoring data corresponding to the historical operating status. The thresholds of the monitoring parameters are different in different operating environments and / or different application requirements.

[0136] Specifically, in an embodiment of the present application, it is possible to regularly monitor the operating status of a computer system and detect possible abnormal situations based on setting monitoring parameters and thresholds (upper threshold and lower threshold) and combining a method of reading monitoring data with a timer.

[0137] Specifically, we first need to determine the monitoring parameters, which are key indicators that have a greater impact on the performance of the computer system. The setting of monitoring parameters can be obtained through system performance benchmark testing, consultation with system architects and hardware engineers. These key indicators include but are not limited to CPU temperature, voltage level, fan speed and memory usage, CPU utilization, memory usage, network bandwidth, etc.

[0138] Furthermore, after determining the monitoring parameters, it is necessary to set thresholds corresponding to the respective monitoring parameters, so that each monitoring parameter corresponds to an upper threshold and a lower threshold. The setting of the thresholds can refer to the performance and stability standards provided by the hardware manufacturer, as well as the best practices in the industry. In addition, according to the operating status and historical performance data of the computer system, the thresholds can also be dynamically adjusted to adapt to different operating environments and application requirements.

[0139] Optionally, the upper and lower thresholds can be set in the following ways:

[0140] 1. Fixed threshold setting: According to the computer system performance and specification requirements, the fixed upper and lower thresholds of each monitoring parameter are pre-determined. When the monitoring data exceeds the upper threshold or falls below the lower threshold, the computer system will trigger an alarm or automatic processing action.

[0141] 2. Dynamically adjust the threshold: Based on the historical data and trend analysis of the computer system, dynamically adjust the upper and lower thresholds. Through machine learning algorithms or intelligent analysis, the thresholds are automatically adjusted according to the actual situation to adapt to the changes in the operating status of the computer system under different circumstances.

[0142] 3. Percentage threshold: Set the upper and lower thresholds based on the percentage of the computer system capacity. For example, an alarm is triggered when the memory utilization reaches 80%, and an alarm is triggered when the CPU utilization is less than 20%.

[0143] 4. Benchmark comparison: Compare the current monitoring parameters with the benchmark values ​​of the computer system to set the upper and lower thresholds. The benchmark value can be the average level of normal system operation or the expected performance level set by the user.

[0144] 5. Associate with business needs: Link threshold settings with business needs and goals. Set different upper and lower thresholds and corresponding exception response strategies based on the characteristics and impact of business activities to ensure that computer systems avoid performance problems or failures while meeting business needs.

[0145] 6. Consider setting the upper and lower thresholds based on a variety of factors, such as system load, capacity planning, and budget constraints. Avoid setting thresholds that are too high or too low to fully utilize system resources and ensure system performance and availability.

[0146] Furthermore, a timer is set to trigger the reading operation of the monitoring data so as to obtain the operating status of the system regularly. When each timer cycle arrives, the monitoring data of the computer system is read from the memory address space corresponding to the physical address of the register by converting the reading function of the device driver into a memory access instruction.

[0147] Furthermore, after acquiring the monitoring data, the acquired monitoring data is compared with the threshold value (upper threshold value and lower threshold value) of the corresponding monitoring parameter to determine whether the monitoring data exceeds the upper threshold value or the lower threshold value. When the monitoring data exceeds the upper threshold value or the lower threshold value, it is determined that an abnormality exists in the computer system, and an abnormality handling or repair operation is required. The monitoring parameters and their corresponding threshold values ​​are determined based on the historical operating status and monitoring data of the computer system, and can be adjusted according to different operating environments and application requirements. By setting different monitoring parameters and threshold values, comprehensive monitoring of system performance and abnormality detection can be achieved.

[0148] Through the above embodiments, real-time monitoring and abnormality detection of computer systems can be achieved, which helps to timely discover and solve problems in system operation and ensure stable operation of the system. This method is based on the setting of monitoring parameters and thresholds, combined with periodic data reading and comparison operations, effectively improving the efficiency and reliability of computer system management.

[0149] Figure 4 FIG. 1 is a flowchart of a monitoring mechanism based on memory mapping in a memory mapping system repair provided by an embodiment of the present application, such as Figure 4 shown.

[0150] To summarize, in the embodiments of the present application, in order to realize real-time monitoring of monitoring data, you first need to determine the monitoring parameters, that is, which parameter indicators need to be obtained, and further determine the upper and lower thresholds corresponding to each monitoring parameter based on the determined monitoring parameters, and further obtain detailed information (including physical addresses, etc.) of the BMC registers, call the device driver to realize the communication between the BMC and the computer system, and then realize the mapping process of the physical address of the BMC register to the virtual address of the memory address space through the kernel module. After completing the address mapping, you can read and write the BMC registers by calling the device driver to obtain the monitoring data stored in the registers, so as to realize real-time monitoring.

[0151] Optionally, the step S104 includes:

[0152] When the monitoring data is greater than the upper threshold of the monitoring parameter, the abnormal situation is adjusted through the negative feedback mechanism in the preset dynamic adjustment mechanism so that the monitoring data is not greater than the upper threshold of the monitoring parameter;

[0153] When the monitoring data is less than the lower threshold of the monitoring parameter, the abnormal situation is adjusted through the positive feedback mechanism in the preset dynamic adjustment mechanism so that the monitoring data is not less than the lower threshold of the monitoring parameter.

[0154] Figure 5 FIG. 1 is a flow chart of executing a dynamic adjustment mechanism in a system repair method based on memory mapping provided in an embodiment of the present application. Figure 5 shown.

[0155] Specifically, in an embodiment of the present application, when monitoring data indicates that an abnormal situation exists in a computer system, a process of repairing the system is performed through a pre-set dynamic adjustment mechanism and fault handling strategy.

[0156] Specifically, in an embodiment of the present application, monitoring data can be obtained through a device driver. When the monitoring data exceeds the set upper threshold limit or is lower than the lower threshold limit, it indicates that the system has an abnormal situation and needs to be adjusted and repaired accordingly. First, it should be processed by a dynamic adjustment mechanism. The dynamic adjustment mechanism is an automated feedback adjustment system for abnormal situations, including a negative feedback mechanism and a positive feedback mechanism, which is used to restore the monitoring data to a normal range (i.e., within the range from the lower threshold limit to the upper threshold limit). If the monitoring data is greater than the upper threshold limit, the system parameters or control operations will be adjusted through the negative feedback mechanism to reduce the monitoring data value so that it does not exceed the upper threshold limit. This is conducive to preventing the continuous increase of data from causing the problem to escalate. If the monitoring data is lower than the lower threshold limit, measures are taken through the positive feedback mechanism to increase the data value so that it is not lower than the lower threshold limit to avoid further declines and cause system problems.

[0157] Figure 6 FIG. 1 is a flow chart of a regulation process of executing positive and negative feedback in a dynamic regulation mechanism in a system repair method based on memory mapping provided in an embodiment of the present application, such as Figure 6 shown.

[0158] As an example, taking CPU temperature, fan speed, and system load as examples, the mechanism of positive and negative feedback of the system is demonstrated. The following is used to generate Figure 6 PlantUML language.

[0159] @startuml

[0160] package fan {

[0161] Agent speed increases

[0162] agent speed reduction

[0163] }

[0164] package cpu{

[0165] Agent temperature rise

[0166] Agent temperature decreases

[0167] }

[0168] package system

[0169] Agent load increases

[0170] Agent load reduction

[0171] }

[0172] Temperature decreases --> load increases: negative feedback

[0173] Temperature rises --> load decreases: negative feedback

[0174] Temperature rises --> speed increases: positive feedback

[0175] Temperature decreases --> speed decreases: positive feedback

[0176] Speed ​​increases --> temperature decreases: negative feedback

[0177] Speed ​​decreases --> temperature increases: negative feedback

[0178] Load increases --> Temperature increases: Negative feedback

[0179] Load reduction --> temperature reduction: negative feedback

[0180] @enduml

[0181] Specifically, when the system load is higher than the upper threshold, the CPU temperature is increased through a negative feedback mechanism, thereby prompting the system to accelerate processing under high load conditions; conversely, when the system load is lower than the lower threshold, the CPU temperature is reduced through a negative feedback mechanism to keep the system running stably within an appropriate temperature range. In addition, when the CPU temperature is higher than the upper threshold, the system increases the fan speed through a positive feedback mechanism to effectively reduce the CPU temperature; and when the CPU temperature is lower than the lower threshold, the system reduces the fan speed through a positive feedback mechanism to keep the CPU in a suitable working state. These adjustment relationships constitute a dynamic adjustment mechanism that can automatically adjust the status between various parts to ensure stable operation and performance optimization of the system in different working scenarios.

[0182] It should be noted that in the embodiments of the present application, the dynamic adjustment mechanism is a technical method that automatically detects system failures and performs instant repairs based on real-time monitoring data, and can dynamically adjust system configuration or repair failures according to predetermined rules. This strategy reduces manual intervention, improves the autonomous recovery capability of the computer system, thereby enhancing the stability and reliability of the computer system and reducing maintenance costs.

[0183] Through the above embodiments, it is possible to automatically adjust when abnormal situations occur through a dynamic adjustment mechanism, reduce the need for manual intervention, and improve system operation efficiency and service quality.

[0184] Optionally, the step S104 includes:

[0185] When the abnormal situation cannot be repaired by the preset dynamic adjustment mechanism, the abnormal situation is handled by the preset fault handling strategy, including:

[0186] Determine the faulty software or faulty hardware corresponding to the abnormal situation in the computer system, and perform fault isolation on the faulty software or the faulty hardware;

[0187] For the faulty software, stop allocating data flow or resources to the faulty software by controlling routing or instructions;

[0188] For the faulty hardware, disconnect the physical connection and power supply of the faulty hardware.

[0189] Specifically, in an embodiment of the present application, when the abnormal situation cannot be repaired by the pre-set dynamic adjustment mechanism, the system will handle the abnormal situation according to a pre-set fault handling strategy.

[0190] Specifically, when an abnormal situation occurs in the computer system and the abnormal situation cannot be resolved through the dynamic adjustment mechanism (that is, the monitoring data cannot be adjusted to within the threshold drop value or the upper threshold limit), the computer system will automatically start the fault handling strategy to handle the abnormal situation.

[0191] First, it is necessary to determine the faulty software or hardware corresponding to the abnormal situation in the computer system, that is, to find the specific source of the abnormal situation. Accurate identification of the faulty software or hardware will help to adopt effective fault handling strategies to solve the abnormal situation.

[0192] For faulty software, the system will stop allocating data flow or resources to the faulty software by controlling routing or instructions to prevent the abnormality from spreading further and affecting other parts of the system. In this way, the faulty software is isolated from the rest of the system and the normal operation of the rest of the system is guaranteed.

[0193] For faulty hardware, the system will disconnect the physical connection and power supply of the faulty hardware. By disconnecting the connection and power supply of the faulty hardware, the faulty hardware can be prevented from further affecting the system, while ensuring the stable operation of the system.

[0194] Through the above embodiments, when a computer system encounters an abnormal situation that cannot be repaired by a dynamic adjustment mechanism, it can quickly and effectively identify and separate faulty software or hardware, minimize the impact of the abnormality on the computer system, and ensure the stability and reliability of the computer system. This fault handling strategy is an important measure to ensure that the computer system can cope with various abnormal situations and perform timely repairs.

[0195] Optionally, after isolating the faulty software or the faulty hardware, the method further includes:

[0196] Reallocate system resources to other parts except the faulty software or the faulty hardware;

[0197] The faulty software or the faulty hardware will not be accessed after the system resources are reallocated.

[0198] Specifically, in an embodiment of the present application, after isolating the faulty software or faulty hardware, the computer system needs to reallocate resources to other parts of the computer system to ensure that the computer system can operate normally and meet the needs of each part, and quickly restore the stability of the computer system. Reallocating system resources may include reallocating CPU, memory, network bandwidth and other resources to meet the operating requirements of other parts of the system. After the fault isolation process, the faulty software or faulty hardware has been effectively isolated from other parts of the system and no longer affects the computer system. After the reallocation of resources, it can be ensured that the isolated faulty software or hardware will no longer be accessed to avoid causing system failures again.

[0199] Through the above embodiments, after processing faulty software or hardware, the computer system can maintain normal operation by reallocating resources, while effectively preventing the faulty part from causing further impact on the computer system.

[0200] The technical solution of the embodiment of the present application can be used in the following scenarios:

[0201] ① Internet of Things (IoT) device management: With the popularization of IoT devices, memory mapping, dynamic adjustment mechanisms and / or pre-set fault handling strategies can be applied to the remote management and maintenance of IoT devices to improve device reliability and reduce maintenance costs.

[0202] ② Intelligent manufacturing: In the context of intelligent manufacturing and Industry 4.0, memory mapping, dynamic adjustment mechanisms and / or pre-set fault handling strategies can be used to improve the operating efficiency and reliability of various machines and equipment on the production line, and achieve early prediction of faults and preventive maintenance.

[0203] ③ Smart home system: In the smart home system, memory mapping, dynamic adjustment mechanism and / or pre-set fault handling strategy can be used to improve the intelligent monitoring and automatic fault repair capabilities of home appliances, and enhance user experience and security.

[0204] Figure 7 is a schematic diagram of a system repair device based on memory mapping provided by an embodiment of the present application, such as Figure 7 The embodiment of the present application provides a system repair device based on memory mapping, the device comprising:

[0205] The device comprises:

[0206] A mapping module 11, used for mapping the physical address of the register of the BMC to the memory address space of the computer system;

[0207] A collection module 12, used for collecting data from the computer system through the BMC to obtain monitoring data, wherein the monitoring data is stored in the register;

[0208] A reading module 13, used to access the virtual address in the memory address space and read the monitoring data;

[0209] The repair module 14 is used to repair the computer system by using a preset dynamic adjustment mechanism and / or a preset fault handling strategy when the monitoring data indicates that the computer system is abnormal.

[0210] Optionally, the mapping module 11 includes:

[0211] A physical address acquisition unit, used to acquire the physical address of the register;

[0212] A memory address space reservation unit, used to reserve the memory address space in the kernel space according to the size of the physical address through the memory management interface of the operating system when the operating system is started, and map the physical address of the register to the virtual address in the memory address space;

[0213] The apparatus further comprises: a writing unit, configured to write a device driver, wherein the device driver is configured to implement communication between the computer system and the BMC;

[0214] The device driver at least includes: a BMC register opening function, a BMC register closing function, a reading function and a writing function.

[0215] Optionally, the mapping module 11 includes:

[0216] an acquisition unit, configured to acquire, when there are multiple registers, the hardware status of the multiple registers, the system load of the operating system, and the memory usage of the kernel space;

[0217] An input unit, used to input the hardware status of the multiple registers, the system load of the operating system, and the memory usage of the kernel space into a pre-created memory mapping decision tree, each node of the memory mapping decision tree represents a conditional judgment, each of the conditional judgments is set based on the type of the register, the access frequency of the register, and the data sensitivity of the monitoring data stored in the register, and multiple conditional judgments constitute a mapping rule of the memory mapping decision tree;

[0218] A determination unit, configured to determine a mapping strategy for each of the plurality of registers according to a judgment result output by the memory mapping decision tree;

[0219] A mapping unit is used to map the physical address of the register to the memory address space of the computer system specified by the mapping strategy based on the mapping strategy.

[0220] Optionally, the device further comprises:

[0221] A monitoring parameter determination unit, configured to determine a monitoring parameter and set an upper threshold value of the monitoring parameter and a lower threshold value of the monitoring parameter;

[0222] A timer setting unit, used for setting a timer, wherein the timer is used for triggering the reading of the monitoring data;

[0223] The reading module 13 includes:

[0224] A conversion unit, configured to, when each trigger cycle of the timer arrives, convert the read function of the device driver into a memory access instruction, perform a read operation on the virtual address in the memory address space corresponding to the physical address of the register, and obtain the monitoring data;

[0225] The device also includes:

[0226] A comparing unit, configured to compare the monitoring data according to a threshold value of a monitoring parameter corresponding to the monitoring parameter to which the monitoring data belongs after acquiring the monitoring data;

[0227] an abnormality determination unit, configured to determine that an abnormality exists in the computer system when the monitoring data is greater than an upper threshold value of the monitoring parameter or the monitoring data is less than a lower threshold value of the monitoring parameter;

[0228] Among them, the monitoring parameters are key indicators that affect the performance of the computer system. The thresholds of the monitoring parameters are determined based on the historical operating status of the computer system and the historical monitoring data corresponding to the historical operating status. The thresholds of the monitoring parameters are different in different operating environments and / or different application requirements.

[0229] Optionally, the repair module 14 includes:

[0230] a negative feedback adjustment unit, configured to adjust the abnormal situation by means of a negative feedback mechanism in the preset dynamic adjustment mechanism when the monitoring data is greater than an upper threshold value of the monitoring parameter, so that the monitoring data is not greater than an upper threshold value of the monitoring parameter;

[0231] A positive feedback adjustment unit is used to adjust the abnormal situation through the positive feedback mechanism in the pre-set dynamic adjustment mechanism when the monitoring data is less than the lower threshold of the monitoring parameter, so that the monitoring data is not less than the lower threshold of the monitoring parameter.

[0232] Optionally, the repair module 14 includes:

[0233] A fault handling strategy application module is used to handle the abnormal situation by using a preset fault handling strategy when the abnormal situation cannot be repaired by the preset dynamic adjustment mechanism, including:

[0234] A fault isolation module, used to determine the faulty software or faulty hardware corresponding to the abnormal situation in the computer system, and to perform fault isolation on the faulty software or the faulty hardware;

[0235] A first fault isolation unit is used to stop allocating data flow or resources to the faulty software by controlling routing or instructions;

[0236] The second fault isolation unit is used to disconnect the physical connection and power supply of the faulty hardware.

[0237] Optionally, the device further comprises:

[0238] A reallocation unit, configured to reallocate system resources to other parts except the faulty software or the faulty hardware after isolating the faulty software or the faulty hardware;

[0239] The faulty software or the faulty hardware will not be accessed after the system resources are reallocated.

[0240] Based on the same inventive concept, another embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the system repair method based on memory mapping as described in any of the above embodiments.

[0241] Based on the same inventive concept, another embodiment of the present application further provides a computer program product, including a computer program, which is executed by a processor to perform the system repair method based on memory mapping as described in any of the above embodiments.

[0242] Based on the same inventive concept, another embodiment of the present application further provides a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the system repair method based on memory mapping as described in any of the above embodiments is implemented.

[0243] As for the device, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0244] 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.

[0245] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt 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 code.

[0246] The embodiments of the present application 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 application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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.

[0247] 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.

[0248] 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.

[0249] Although the preferred embodiments of the present application 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 application.

[0250] 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.

[0251] The above is a detailed introduction to a system repair method, device, electronic device and medium based on memory mapping provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, 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 application.

Claims

1. A system repair method based on memory mapping, characterized in that: The method comprises: Map the physical address of the BMC register to the memory address space of the computer system; Collecting data from the computer system through the BMC to obtain monitoring data, wherein the monitoring data is stored in the register; Accessing a virtual address in the memory address space to read the monitoring data; When the monitoring data indicates that an abnormal situation exists in the computer system, the computer system is repaired through a preset dynamic adjustment mechanism and / or a preset fault handling strategy.

2. The system repair method based on memory mapping according to claim 1, characterized in that: Mapping the physical address of the register of the BMC to the memory address space of the computer system includes: Obtaining the physical address of the register; When the operating system is started, the memory address space is reserved in the kernel space according to the size of the physical address through the memory management interface of the operating system, and the physical address of the register is mapped to the virtual address in the memory address space; The method further comprises: writing a device driver, wherein the device driver is used to implement communication between the computer system and the BMC; The device driver at least includes: a BMC register opening function, a BMC register closing function, a reading function and a writing function.

3. The system repair method based on memory mapping according to claim 2 is characterized in that: Mapping the physical address of the register of the BMC to the memory address space of the computer system includes: When there are multiple registers, obtaining the hardware status of the multiple registers, the system load of the operating system, and the memory usage of the kernel space; Inputting the hardware status of the plurality of registers, the system load of the operating system, and the memory usage of the kernel space into a pre-created memory mapping decision tree, wherein each node of the memory mapping decision tree represents a conditional judgment, each of the conditional judgments is set based on the type of the register, the access frequency of the register, and the data sensitivity of the monitoring data stored in the register, and the plurality of conditional judgments constitute a mapping rule of the memory mapping decision tree; Determining a mapping strategy for each of the multiple registers according to a judgment result output by the memory mapping decision tree; Based on the mapping strategy, the physical address of the register is mapped to the memory address space of the computer system specified by the mapping strategy.

4. The system repair method based on memory mapping according to claim 2 is characterized in that: The method further comprises: Determine a monitoring parameter, and set an upper threshold value of the monitoring parameter and a lower threshold value of the monitoring parameter; Setting a timer, wherein the timer is used to trigger the reading of the monitoring data; The accessing the virtual address in the memory address space to read the monitoring data includes: When each trigger cycle of the timer arrives, the monitoring data is acquired by converting the read function of the device driver into a memory access instruction and performing a read operation on the virtual address in the memory address space corresponding to the physical address of the register; The method further comprises: After acquiring the monitoring data, comparing the monitoring data according to the threshold of the monitoring parameter corresponding to the monitoring parameter to which the monitoring data belongs; When the monitoring data is greater than an upper threshold of the monitoring parameter or the monitoring data is less than a lower threshold of the monitoring parameter, determining that an abnormality exists in the computer system; Among them, the monitoring parameters are key indicators that affect the performance of the computer system. The thresholds of the monitoring parameters are determined based on the historical operating status of the computer system and the historical monitoring data corresponding to the historical operating status. The thresholds of the monitoring parameters are different in different operating environments and / or different application requirements.

5. The system repair method based on memory mapping according to claim 4 is characterized in that: When the monitoring data indicates that the computer system is abnormal, the computer system is repaired by using a preset dynamic adjustment mechanism and / or a preset fault handling strategy, including: When the monitoring data is greater than the upper threshold of the monitoring parameter, the abnormal situation is adjusted through the negative feedback mechanism in the preset dynamic adjustment mechanism so that the monitoring data is not greater than the upper threshold of the monitoring parameter; When the monitoring data is less than the lower threshold of the monitoring parameter, the abnormal situation is adjusted through the positive feedback mechanism in the preset dynamic adjustment mechanism so that the monitoring data is not less than the lower threshold of the monitoring parameter.

6. The system repair method based on memory mapping according to claim 5, characterized in that: When the monitoring data indicates that the computer system is abnormal, the computer system is repaired by using a preset dynamic adjustment mechanism and / or a preset fault handling strategy, including: When the abnormal situation cannot be repaired by the preset dynamic adjustment mechanism, the abnormal situation is handled by the preset fault handling strategy, including: Determine the faulty software or faulty hardware corresponding to the abnormal situation in the computer system, and perform fault isolation on the faulty software or the faulty hardware; For the faulty software, stop allocating data flow or resources to the faulty software by controlling routing or instructions; For the faulty hardware, disconnect the physical connection and power supply of the faulty hardware.

7. The system repair method based on memory mapping according to claim 6, characterized in that: After isolating the faulty software or the faulty hardware, the method further includes: Reallocate system resources to other parts except the faulty software or the faulty hardware; The faulty software or the faulty hardware will not be accessed after the system resources are reallocated.

8. A system repair device based on memory mapping, characterized in that: The device comprises: A mapping module, used to map the physical address of the BMC register to the memory address space of the computer system; A collection module, used for collecting data from the computer system through the BMC to obtain monitoring data, wherein the monitoring data is stored in the register; A reading module, used for accessing the virtual address in the memory address space to read the monitoring data; A repair module is used to repair the computer system by using a preset dynamic adjustment mechanism and / or a preset fault handling strategy when the monitoring data indicates that the computer system is abnormal.

9. An electronic device, characterized in that: The system comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the system repair method based on memory mapping as claimed in any one of claims 1 to 7.

10. A computer-readable medium, characterized in that A computer program is stored thereon, wherein when the computer program is executed by a processor, the system repair method based on memory mapping as described in any one of claims 1 to 7 is implemented.