Fault processing method and system of server and controller

By acquiring and parsing the memory summary data when the driver is running in the server, and sending it to the baseboard management controller, the problem of low efficiency of abnormal information positioning in the existing technology is solved, fast and accurate abnormal positioning and analysis is achieved, and the stability of the server is improved. sex.

CN118606091APending Publication Date: 2024-09-06EVEX TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410795274.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In existing server debugging technology, the pre-added fixed debugging information is limited to code modules, resulting in low efficiency in locating abnormal information and the inability to accurately identify real abnormal points, especially when multiple code modules interact with each other.

Method used

During the server startup process, memory summary data of multiple driver runtimes are obtained, a data table is generated, including memory allocation and release summary data, and sent to the Baseboard Management Controller (BMC) so that the BMC can automatically parse and Compare and determine abnormal information and abnormal root causes.

Benefits of technology

It improves the efficiency and accuracy of abnormal location, can quickly capture key data after a shutdown, reduces analysis difficulties caused by environmental changes, reduces the risk of no data analysis after restart, and significantly speeds up the troubleshooting of abnormal problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606091A
    Figure CN118606091A
Patent Text Reader

Abstract

The invention provides a fault processing method and system for a server and a controller, and relates to the technology of computers and servers, the method comprises the following steps: in the startup process of the server, obtaining memory summary data used during operation of a plurality of drivers in the server, and generating a data table according to the memory summary data; wherein the data table represents memory resources occupied by the plurality of drives during operation, and the memory summary data in the data table comprises memory allocation summary data and / or memory release summary data of each drive. If it is determined that the running state of the server is an abnormal state in the startup process, the data table is sent to a substrate management controller in the server; the memory summary data in the data table is used for determining and displaying abnormal information. According to the method provided by the invention, the technical problem of relatively low efficiency of positioning the exception when the exception occurs in the operation of the server is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to computer and server technologies, and in particular to a server fault handling method, system and controller. Background Art

[0002] Currently, servers include the Unified Extensible Firmware Interface firmware system (UEFI firmware system) and the Baseboard Management Controller (BMC). BMC is a dedicated controller used to monitor and manage servers. In layman's terms, BMC is an independent system under the host server system. This independent system has its own processor and memory. Even if the host hardware or operating system crashes or is shut down, the host system can still be managed by the BMC system. The UEFI firmware system has multiple drivers. During the server startup process, the driver on the UEFI firmware system needs to be run.

[0003] In the prior art, the general server debugging technology mainly adds fixed debugging information in the code in advance, and outputs the debugging information added before when the program is executed to the abnormal point, so as to obtain the abnormal information.

[0004] However, in the prior art, since fixed debugging information is pre-added for different code modules, that is, each debugging information can only be debugged within its own code module, and the output exception information is obtained based on the information within the code module, the code position where the Exception information thrown by a general exception throwing function is located in some cases is not the actual exception point, but may be caused by other related normally running code modules, which leads to low efficiency in exception location. Summary of the invention

[0005] The present application provides a server fault handling method, system and controller, which are used to solve the technical problem of low efficiency in locating abnormalities when abnormalities occur in server operation.

[0006] In a first aspect, the present application provides a server fault handling method, which is applied to a unified extensible firmware interface firmware system in the server; the method comprises:

[0007] During the boot process of the server, memory summary data used by multiple drivers in the server during operation is obtained, and a data table is generated according to the memory summary data; wherein the data table represents the memory resources occupied by the multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver;

[0008] If it is determined during the boot process that the operating state of the server is abnormal, the data table is sent to the baseboard management controller in the server; wherein the memory summary data in the data table is used to determine and display abnormal information, and the abnormal information includes the driver information of abnormal operation during the boot process.

[0009] Furthermore, during the boot process of the server, obtaining memory summary data used by multiple drivers in the server during operation includes:

[0010] During the booting process of the server, memory is allocated to the running driver according to a preset memory allocation and release function, and memory allocation summary data in the memory summary data is generated according to the allocated memory;

[0011] The memory of the driver that has finished running is released, and the memory allocation summary data corresponding to the released memory is searched in the memory allocation summary data; the memory allocation summary data corresponding to the released memory is determined to be the memory deletion summary data in the memory summary data, and the memory deletion summary data is deleted.

[0012] Further, sending the data table to a baseboard management controller in the server includes:

[0013] The data table is sent to a baseboard management controller in a server via a preset transmission channel, wherein the transmission channel is a preset serial port, or any one of all available channels between the unified extensible firmware interface firmware system and the baseboard management controller.

[0014] Furthermore, the boot process includes multiple boot phases; the data table includes summary data of memory occupied by the drivers in the multiple boot phases when running.

[0015] In a second aspect, the present application provides a server fault handling method, which is applied to a baseboard management controller in the server; the method comprises:

[0016] Obtain a data table sent by a unified extensible firmware interface firmware system in a server; wherein the data table is sent by the unified extensible firmware interface firmware system when determining that the operating state of the server is an abnormal state during the boot process of the server, and the data table is generated based on memory summary data used by multiple drivers in the server during operation; the data table represents memory resources occupied by multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver;

[0017] According to the data table, abnormal information is determined and displayed; wherein the abnormal information includes drive information of abnormal operation during the startup process.

[0018] Further, determining the abnormal information according to the data table includes:

[0019] Performing memory analysis on the memory summary data in the data table to generate a result file;

[0020] The result file is compared with a preset benchmark reference file to determine abnormal information.

[0021] Furthermore, the memory summary data in the data table includes identification information corresponding to each driver and summary data corresponding to the identification information;

[0022] Perform memory analysis on the memory summary data in the data table to generate a result file, including:

[0023] According to the mapping relationship between the driver name and the identification information in the preset driver name list, memory parsing is performed on the memory summary data in the data table to determine the driver name corresponding to the identification information in the memory summary data;

[0024] A result file is generated according to the driver name corresponding to the identification information in the memory summary data; wherein the result file includes summary data corresponding to each driver name.

[0025] Furthermore, comparing the result file with a preset benchmark reference file to determine abnormal information includes:

[0026] The summary data corresponding to each driver name in the result file is compared with the summary data corresponding to each driver name in the preset benchmark reference file to determine the abnormal information.

[0027] In a third aspect, the present application provides a server fault handling device, which is applied to a unified extensible firmware interface firmware system in the server; the device includes:

[0028] An acquisition module, used for acquiring memory summary data used by multiple drivers in the server during the startup process of the server;

[0029] A generating module, configured to generate a data table according to the memory summary data; wherein the data table represents memory resources occupied by multiple drivers at runtime, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver;

[0030] A sending module is used to send the data table to a baseboard management controller in the server if it is determined that the operating state of the server is abnormal during the boot process; wherein the memory summary data in the data table is used to determine and display abnormal information, and the abnormal information includes the driver information of abnormal operation during the boot process.

[0031] Furthermore, the acquisition module includes:

[0032] an allocation unit, configured to allocate memory to a running driver according to a preset memory allocation and release function during the boot process of the server, and generate memory allocation summary data in the memory summary data according to the allocated memory;

[0033] A release unit is used to release memory for a driver that has finished running, and to search for memory allocation summary data corresponding to the released memory in the memory allocation summary data; to determine that the memory allocation summary data corresponding to the released memory is memory deletion summary data in the memory summary data, and to delete the memory deletion summary data.

[0034] Furthermore, the sending unit is specifically used for:

[0035] The data table is sent to a baseboard management controller in a server via a preset transmission channel, wherein the transmission channel is a preset serial port, or any one of all available channels between the unified extensible firmware interface firmware system and the baseboard management controller.

[0036] Furthermore, the boot process includes multiple boot phases; the data table includes summary data of memory occupied by the drivers in the multiple boot phases when running.

[0037] In a fourth aspect, the present application provides a server fault handling device, which is applied to a baseboard management controller in the server; the device comprises:

[0038] An acquisition module is used to acquire a data table sent by a unified extensible firmware interface firmware system in a server; wherein the data table is sent by the unified extensible firmware interface firmware system when determining that the operating state of the server is an abnormal state during the boot process of the server, and the data table is generated based on memory summary data used by multiple drivers in the server during operation; the data table represents memory resources occupied by multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver;

[0039] A determination module, used for determining abnormal information according to the data table;

[0040] The display module is used to display the abnormal information; wherein the abnormal information includes the driving information of abnormal operation during the startup process.

[0041] Furthermore, the determination module includes:

[0042] A parsing unit, used for performing memory parsing on the memory summary data in the data table to generate a result file;

[0043] The comparison unit is used to compare the result file with a preset benchmark reference file to determine abnormal information.

[0044] Furthermore, the memory summary data in the data table includes identification information corresponding to each driver and summary data corresponding to the identification information;

[0045] The parsing unit comprises:

[0046] a determination subunit, configured to perform memory parsing on the memory summary data in the data table according to a mapping relationship between a driver name in a preset driver name list and identification information, and determine a driver name corresponding to the identification information in the memory summary data;

[0047] The generating subunit is used to generate a result file according to the driver name corresponding to the identification information in the memory summary data; wherein the result file includes the summary data corresponding to each driver name.

[0048] Furthermore, the comparison unit is specifically used for:

[0049] The summary data corresponding to each driver name in the result file is compared with the summary data corresponding to each driver name in the preset benchmark reference file to determine the abnormal information.

[0050] In a fifth aspect, the present application provides a unified extensible firmware interface firmware system, comprising a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0051] In a sixth aspect, the present application provides a baseboard management controller, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, the method described in the second aspect is implemented.

[0052] In a seventh aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect, or to implement the method described in the second aspect.

[0053] In an eighth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method described in the first aspect, or implements the method described in the second aspect.

[0054] The present application provides a method, system and controller for handling server faults. During the boot process of the server, memory summary data used by multiple drivers in the server are obtained, and a data table is generated based on the memory summary data; wherein the data table represents the memory resources occupied by multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver. If the running state of the server is determined to be abnormal during the boot process, the data table is sent to the baseboard management controller in the server; wherein the memory summary data in the data table is used to determine and display abnormal information, and the abnormal information includes information about the driver that runs abnormally during the boot process. In this solution, during the boot process of the server, the unified extensible firmware interface firmware system (i.e., UEFI firmware system) in the server obtains memory allocation summary data and memory release summary data generated by the driver during operation and generates a data table, and sends the data table to the baseboard manager BMC when the server runs abnormally. BMC automatically parses data tables to determine the global code module memory usage to determine the source of the exception. That is, by analyzing the memory allocation and release during the entire driver execution process, it captures as much key data in the memory as possible in the downtime scenario, and minimizes the risk of no data for problem analysis due to the inability to reproduce environmental changes after restart. It can more quickly and comprehensively analyze and locate the root cause of the exception, speed up the location and elimination of abnormal downtime problems, and solve the technical problem of low efficiency in locating exceptions when server operation is abnormal. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0056] Figure 1 A flowchart of a method for handling server failures provided in an embodiment of the present application;

[0057] Figure 2 A flowchart of another method for handling server failures provided in an embodiment of the present application;

[0058] Figure 3 A flowchart of another method for handling server failures provided in an embodiment of the present application;

[0059] Figure 4A flowchart of another method for handling server failures provided in an embodiment of the present application;

[0060] Figure 5 A schematic diagram of the structure of memory summary data in a server fault handling method provided in an embodiment of the present application;

[0061] Figure 6 A schematic diagram of another process flow in a method for handling server failures provided in an embodiment of the present application;

[0062] Figure 7 A flowchart of another method for handling server failures provided in an embodiment of the present application;

[0063] Figure 8 A schematic diagram of the structure of a server fault handling device provided in an embodiment of the present application;

[0064] Fig. 9 A schematic diagram of the structure of another server fault handling device provided in an embodiment of the present application;

[0065] Fig.10 A schematic diagram of the structure of another server fault handling device provided in an embodiment of the present application;

[0066] Fig.11 A schematic diagram of the structure of another server fault handling device provided in an embodiment of the present application;

[0067] Fig.12 A schematic diagram of the structure of a unified extensible firmware interface firmware system provided in an embodiment of the present application;

[0068] Fig.13 A schematic diagram of the structure of a baseboard management controller provided in an embodiment of the present application;

[0069] Fig.14 It is a block diagram of an electronic device provided in an embodiment of the present application.

[0070] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0071] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0072] At present, with the increasing demand for cloud data collection, storage and computing, the market demand for server products is increasing, and relatively high requirements are put forward for long-term stable operation, usually a service level of 5 9s or 6 9s. Stability mainly depends on the stability of the server's software system. The UEFI firmware system is part of the server software system. A stable software system needs to have strong fault tolerance and troubleshooting capabilities.

[0073] The server includes the Unified Extensible Firmware Interface firmware system (UEFI firmware system) and the Baseboard Management Controller (BMC). BMC is a dedicated controller used to monitor and manage servers. In layman's terms, BMC is an independent system under the host server system. This independent system has its own processor and memory. Even if the host hardware or operating system crashes or is shut down, the host system can still be managed by the BMC system. The UEFI firmware system has multiple drivers. During the server startup process, the driver on the UEFI firmware system needs to be run.

[0074] In one example, the general server debugging technology mainly obtains the exception information by pre-adding fixed debugging information to the code, and outputting the previously added debugging information when the program executes to the exception point. Adding fixed-point debugging information requires a large amount of time, manpower and material resources, and cannot guarantee stable reproduction. The debugging process may require business interruption during normal operation, which will cause great losses. If the debugging information is not preset at all exception points, the program will run to this point without any valid information output, which is not conducive to the first-site problem analysis. However, in the prior art, since the pre-added fixed debugging information is added for different code modules, that is, each debugging information can only be debugged within its own code module, and the output exception information is obtained based on the information in the code module, the code position where the Exception information thrown by the general exception throwing function is located is not the real exception point in some cases, which may be caused by other related normal running code modules, thereby resulting in low efficiency in exception positioning.

[0075] The present application provides a server fault handling method, system and controller, which are intended to solve the above technical problems in the prior art.

[0076] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0077] Figure 1A flow chart of a server fault handling method provided in an embodiment of the present application is applied to a unified extensible firmware interface firmware system in a server; Figure 1 As shown, the method includes:

[0078] Step 101. During the boot process of the server, memory summary data used by multiple drivers in the server are obtained, and a data table is generated based on the memory summary data; wherein the data table represents the memory resources occupied by the multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver.

[0079] Exemplarily, the execution subject of this embodiment can be a unified extensible firmware interface firmware system in a server, that is, a UEFI firmware system. First, during the boot process of the server, multiple drivers will be started, and the drivers will occupy the memory resources of the server. The UEFI firmware system obtains the memory summary data used by multiple drivers during operation, and generates a data table based on the memory summary data. Among them, the data table represents the memory resources occupied by multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data generated by each driver during operation. The memory allocation summary data refers to the memory data allocated to the driver, and the memory release summary data refers to the memory data released when the driver ends.

[0080] Furthermore, the boot process includes multiple boot phases, for example, a DXE (driver execution environment) phase, etc. The driver in each boot phase may be different, and the data table includes summary data of memory occupied by all drivers in multiple boot phases during operation.

[0081] Step 102: If the operating state of the server is determined to be abnormal during the boot process, a data table is sent to a baseboard management controller in the server; wherein the memory summary data in the data table is used to determine and display abnormal information, and the abnormal information includes driver information of abnormal operation during the boot process.

[0082] Exemplarily, the UEFI firmware system detects the running state of the server during the boot process. If it is determined that the running state of the server is abnormal during the boot process, the data table is sent to the baseboard management controller BMC in the server. The baseboard management controller BMC receives the data table, performs memory parsing on the data table, determines and displays abnormal information, and the abnormal information includes the driver information of abnormal operation during the boot process.

[0083] Therefore, the UEFI firmware system creates a data table of memory summary data during operation. When memory allocation and release occurs, the UEFI firmware system generates or deletes the corresponding memory summary data after allocating and releasing memory. When a crash occurs during the operation of the UEFI firmware system, the UEFI firmware system outputs the data table containing the memory summary data recorded and maintained during the operation to the BMC. The BMC automatically parses the memory summary data in the data table to determine the abnormal data and quickly reports the root cause of the abnormality.

[0084] In an embodiment of the present application, during the boot process of the server, memory summary data used by multiple drivers in the server during operation is obtained, and a data table is generated based on the memory summary data; wherein the data table represents the memory resources occupied by multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver. If the running state of the server is determined to be an abnormal state during the boot process, the data table is sent to the baseboard management controller in the server; wherein the memory summary data in the data table is used to determine and display abnormal information, and the abnormal information includes information about the driver that runs abnormally during the boot process. In this scheme, during the boot process of the server, the unified extensible firmware interface firmware system (i.e., UEFI firmware system) in the server obtains the memory allocation summary data and memory release summary data generated by the driver during operation and generates a data table, and when the server runs abnormally, the data table is sent to the baseboard manager BMC, and the memory summary data in the data table thrown out during the abnormality includes the global memory allocation and use during the abnormality, with global level data. BMC automatically parses data tables to determine the global code module memory usage to determine the source of the exception. That is, by analyzing the memory allocation and release during the entire driver execution process, it captures as much key data in the memory as possible in the downtime scenario, and minimizes the risk of no data for problem analysis due to the inability to reproduce environmental changes after restart. It can analyze and locate the root cause of the exception more promptly, quickly and comprehensively, speed up the location and elimination of abnormal downtime problems, and solve the technical problem of low efficiency in locating exceptions when server operation is abnormal.

[0085] Figure 2 A flow chart of another server fault handling method provided in an embodiment of the present application is applied to a unified extensible firmware interface firmware system (ie, UEFI firmware system) in a server; Figure 2 As shown, the method includes: This step can refer to Figure 1 Step 101 in the above is not described in detail.

[0086] Step 201 : during the boot process of the server, memory is allocated to the running driver according to a preset memory allocation and release function, and memory allocation summary data in the memory summary data is generated according to the allocated memory.

[0087] In one example, the boot process includes multiple boot phases; the data table includes summary data of memory occupied by the drivers in the multiple boot phases during operation.

[0088] Exemplarily, the boot process includes multiple boot stages, and the data table includes memory summary data occupied by drivers in multiple boot stages during operation. Functions for recording and deleting memory allocation summary data are pre-added in the memory allocation and release functions of each boot stage of the UEFI firmware system, the function for recording memory allocation summary data is called by the function responsible for memory allocation, and the function for deleting memory allocation summary data is called by the function responsible for memory release.

[0089] In this step, during the server startup process, when the UEFI firmware system successfully allocates memory to the running driver according to the preset memory allocation and release function, it generates memory allocation summary data in the memory summary data according to the allocated memory and inserts it into the created data table. If the memory allocation fails, it returns directly and no memory allocation summary data is generated.

[0090] Step 202: release memory for the driver that has finished running, search for memory allocation summary data corresponding to the released memory in the memory allocation summary data; determine that the memory allocation summary data corresponding to the released memory is memory deletion summary data in the memory summary data, and delete the memory deletion summary data.

[0091] Exemplarily, during the boot process of the server, the UEFI firmware system releases memory for a driver that has completed execution according to a preset memory allocation and release function. When releasing memory, it searches for memory allocation summary data corresponding to the memory to be released, determines that the memory allocation summary data corresponding to the released memory is memory deletion summary data in the memory summary data, and deletes the memory deletion summary data from the data table. If the memory release fails, the summary data corresponding to the memory to be released will not be deleted.

[0092] Step 203: Generate a data table based on the memory summary data; wherein the data table represents the memory resources occupied by multiple drivers at runtime, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver.

[0093] Exemplarily, the UEFI firmware system generates a data table according to the memory allocation summary data and the memory deletion summary data, wherein the data table represents the memory resources occupied by multiple drivers during operation.

[0094] Step 204: If it is determined during the boot process that the operating state of the server is abnormal, the data table is sent to the baseboard management controller in the server through a preset transmission channel; wherein the transmission channel is a preset serial port, or any one of all available channels between the unified extensible firmware interface firmware system and the baseboard management controller; wherein the memory summary data in the data table is used to determine and display abnormal information, and the abnormal information includes driver information of abnormal operation during the boot process.

[0095] Exemplarily, if the running state of the server is determined to be abnormal during the boot process, that is, when the server has abnormal conditions such as downtime, the UEFI firmware system passes the data table to the baseboard manager BMC through the preset exception throwing function based on the preset transmission channel. The BMC automatically collects the thrown data table containing memory allocation summary data, and automatically parses the memory summary data to generate a result file, compares the result file with the preset benchmark reference file pre-stored in the BMC, and determines the abnormal information, and records and reports the root cause of the abnormality. Among them, the transmission channel is a preset serial port, or any one of all available channels between the unified extensible firmware interface firmware system and the baseboard management controller, for example, the channel is an available path between all UEFI firmware systems and BMC, such as pcie, lpc / espi, usb, H2B, etc.

[0096] Specifically, the memory summary data in the data table includes the unique identification information (i.e., ID) corresponding to each driver, and the summary data corresponding to the identification information. When the BMC determines the abnormal information, the BMC performs memory analysis on the memory summary data in the data table according to the mapping relationship between the driver name in the preset driver name list and the identification information, and searches and determines the driver name corresponding to the identification information in the memory summary data. According to the driver name corresponding to the identification information in the memory summary data, a result file is generated, and the result file includes the summary data corresponding to each driver name. Finally, each driver name in the result file, and the summary data corresponding to each driver name, are compared with each driver name in the preset benchmark reference file, and the difference data obtained by comparison is determined to determine the abnormal information.

[0097] Therefore, during the booting of the UEFI firmware system, a data table containing memory summary data during the driver loading and unloading process is recorded. When the server is determined to be running abnormally, the UEFI firmware system outputs the recorded data table to the baseboard manager. The baseboard manager comprehensively analyzes the memory summary data at the time of the exception to understand which memory is allocated and released during the execution of the program, which module the allocated and released memory belongs to, the type, size, base address, offset of the memory requested for allocation, and the location of the statement for requesting the allocated memory in the source code. These key information can locate the source of the exception more quickly, more conveniently, and more comprehensively. In addition, the BMC automatically parses the memory summary data when the UEFI throws an exception, and automatically parses and reports the root cause of the exception by comparing the key data in the parsed memory summary data and comparing the parsed data with the default benchmark data. When no exception occurs, the program will not output any memory allocation and release, and there will be no problem of too much debugging information consuming boot time due to too many preset debugging points in the code, resulting in a long boot time during each boot process.

[0098] In an embodiment of the present application, during the boot process of the server, memory is allocated to the running driver according to a preset memory allocation and release function, and memory allocation summary data in the memory summary data is generated according to the allocated memory. The memory of the driver that has finished running is released, and the memory allocation summary data corresponding to the released memory is searched in the memory allocation summary data; the memory allocation summary data corresponding to the released memory is determined to be the memory deletion summary data in the memory summary data, and the memory deletion summary data is deleted. According to the memory summary data, a data table is generated; wherein the data table represents the memory resources occupied by multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver. If it is determined that the running state of the server is an abnormal state during the boot process, the data table is sent to the baseboard management controller in the server through a preset transmission channel; wherein the transmission channel is a preset serial port, or any one of all available channels between the unified extensible firmware interface firmware system and the baseboard management controller; wherein the memory summary data in the data table is used to determine and display abnormal information, and the abnormal information includes information about the driver that runs abnormally during the boot process. In this solution, during the server startup process, the unified extensible firmware interface firmware system (i.e., UEFI firmware system) in the server obtains the memory allocation summary data and memory release summary data generated by the driver during operation and generates a data table, and sends the data table to the baseboard manager BMC when the server runs abnormally. BMC automatically parses the data table to determine the global code module memory usage to determine the source of the abnormality, that is, by analyzing the memory allocation and release of the entire process of driver execution, it captures as much key data in the memory as possible in the downtime scenario, and minimizes the risk of no data for problem analysis due to the inability to reproduce environmental changes after restarting again, and more quickly and comprehensively analyzes and locates the root cause of the abnormality, solving the technical problem of low efficiency in locating abnormalities when server operation is abnormal.

[0099] Figure 3 A flow chart of another server fault handling method provided in an embodiment of the present application is applied to a baseboard management controller BMC in a server, such as Figure 3 As shown, the method includes:

[0100] Step 301, obtaining a data table sent by a unified extensible firmware interface firmware system in a server; wherein the data table is sent by the unified extensible firmware interface firmware system when it determines that the operating state of the server is an abnormal state during the boot process of the server, and the data table is generated based on memory summary data used by multiple drivers in the server during operation; the data table represents memory resources occupied by multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver.

[0101] Step 302: Determine abnormal information according to the data table and display the abnormal information; wherein the abnormal information includes the drive information of abnormal operation during the startup process.

[0102] The method of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0103] Figure 4 A flow chart of another server fault handling method provided in an embodiment of the present application is applied to a baseboard management controller BMC in a server, such as Figure 4 As shown, the method includes:

[0104] Step 401, obtaining a data table sent by a unified extensible firmware interface firmware system in a server; wherein the data table is sent by the unified extensible firmware interface firmware system when it determines that the operating state of the server is an abnormal state during the boot process of the server, and the data table is generated based on memory summary data used by multiple drivers in the server during operation; the data table represents memory resources occupied by multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver.

[0105] Step 402: Perform memory analysis on the memory summary data in the data table to generate a result file.

[0106] In one example, the memory summary data in the data table includes identification information corresponding to each driver and summary data corresponding to the identification information.

[0107] In one example, step 402 includes: performing memory parsing on the memory summary data in the data table according to the mapping relationship between the driver name and the identification information in the preset driver name list, and determining the driver name corresponding to the identification information in the memory summary data; generating a result file according to the driver name corresponding to the identification information in the memory summary data; wherein the result file includes summary data corresponding to each driver name.

[0108] Step 403: Compare the result file with the preset benchmark reference file to determine abnormal information.

[0109] In one example, step 403 includes: comparing summary data corresponding to each driver name in the result file with summary data corresponding to each driver name in a preset benchmark reference file to determine abnormal information.

[0110] Step 404: display abnormal information; wherein the abnormal information includes information about the driver that runs abnormally during the startup process.

[0111] The method of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0112] In one example, Figure 5 A schematic diagram of the structure of memory summary data in a server fault handling method provided in an embodiment of the present application, such as Figure 5 As shown, the data table containing memory summary data contains three parts of data: driver information linked list, current total usage and total usage peak. The driver information linked list contains the globally unique ID of the image (the driver of the UEFI firmware system, the driver is in code modules), the image base address, the image size, the file type of the image (i.e. the module type of the image), the memory allocation linked list during the execution of the image code, and the current usage and peak usage of the memory allocated for the image. The driver information linked list records the summary data of the entire driver level with one driver as a unit. The memory summary data corresponding to each memory allocation request in the driver; the memory allocation linked list in the driver contains the calling program address, serial number, allocation action (i.e. whether the allocated memory is a full page allocation or a random allocation), the allocated memory type (the memory type allocated at different stages of the firmware is different), and the address and size of the allocated memory space.

[0113] In one example, Figure 6 Another flowchart of a method for handling a server failure provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the server startup process includes the DXE stage. The UEFI firmware system executes to the DXE stage. The DXE kernel loads a large number of drivers. When loading DXE / UEFI type drivers, the DXE kernel first allocates a piece of memory space for each driver. The memory allocation and release function records the driver's memory allocation summary data after successfully allocating memory, and links it to the memory summary data linked list, that is, the data table; when the driver is uninstalled, the memory allocation and release function releases the memory and deletes the driver summary data from the data table. After the driver loading is completed, it enters the driver execution stage. The code in the driver will apply for memory allocation or release. After the memory allocation and release function allocates or releases memory for the driver, it generates or deletes the corresponding memory allocation summary data under the summary data structure corresponding to the driver that applied for memory; the whole process is synchronized with the memory allocation and release action.

[0114] Figure 7 A flowchart of another method for handling server failures provided in an embodiment of the present application is shown in FIG. Figure 7As shown, a set of benchmark reference files for comparison is preset in the BMC. When the UEFI firmware system determines that the operation is abnormal or a crash occurs, a data table containing memory summary data is thrown out. After the BMC obtains the memory summary data, it automatically parses the memory summary data, matches the global unique ID of the driver of the memory summary data with the Driver name list, and parses and generates a result file containing the Driver name information. The result file includes the loaded driver during the boot process and the memory allocation operation of the loaded driver during the execution process. The BMC automatically compares the result file with the benchmark reference file corresponding to the normal boot pre-stored in the BMC, calculates the root cause of the abnormality by comparing the differences, and automatically records and reports the root cause. Among them, the benchmark reference file can be a driver operation file automatically collected when the boot operation is normal, or a driver operation file under normal operation is manually created and edited by the user.

[0115] Figure 8 A schematic diagram of a server fault handling device provided in an embodiment of the present application is applied to a unified extensible firmware interface firmware system in a server; Figure 8 As shown, the device comprises:

[0116] The acquisition module 51 is used to acquire memory summary data used by multiple drivers in the server during the startup process of the server.

[0117] The generating module 52 is used to generate a data table according to the memory summary data; wherein the data table represents the memory resources occupied by multiple drivers at runtime, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver.

[0118] The sending module 53 is used to send the data table to the baseboard management controller in the server if it is determined that the operating status of the server is abnormal during the boot process; wherein the memory summary data in the data table is used to determine and display abnormal information, and the abnormal information includes the driver information of abnormal operation during the boot process.

[0119] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0120] Fig. 9 A schematic diagram of the structure of another server fault handling device provided in an embodiment of the present application, in Figure 8 Based on the embodiment shown, Fig. 9 As shown, the acquisition module 51 includes:

[0121] The allocation unit 511 is used to allocate memory to the running driver according to a preset memory allocation and release function during the boot process of the server, and generate memory allocation summary data in the memory summary data according to the allocated memory.

[0122] The release unit 512 is used to release the memory of the driver that has finished running, and search the memory allocation summary data corresponding to the released memory in the memory allocation summary data; determine that the memory allocation summary data corresponding to the released memory is the memory deletion summary data in the memory summary data, and delete the memory deletion summary data.

[0123] In one example, the sending unit 53 is specifically configured to:

[0124] The data table is sent to the baseboard management controller in the server through a preset transmission channel; wherein the transmission channel is a preset serial port, or any one of all available channels between the unified extensible firmware interface firmware system and the baseboard management controller.

[0125] In one example, the boot process includes multiple boot phases; the data table includes summary data of memory occupied by the drivers in the multiple boot phases during operation.

[0126] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0127] Fig.10 A structural diagram of another server fault handling device provided in an embodiment of the present application is applied to a baseboard management controller in a server; Fig.10 As shown, the device comprises:

[0128] The acquisition module 61 is used to obtain a data table sent by the unified extensible firmware interface firmware system in the server; wherein the data table is sent by the unified extensible firmware interface firmware system when it determines that the operating state of the server is abnormal during the startup process of the server, and the data table is generated based on the memory summary data used by multiple drivers in the server during operation; the data table represents the memory resources occupied by multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver.

[0129] The determination module 62 is used to determine abnormal information according to the data table.

[0130] The display module 63 is used to display abnormal information; wherein the abnormal information includes the drive information of abnormal operation during the startup process.

[0131] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0132] Fig.11 A schematic diagram of a structure of another server fault handling device provided in an embodiment of the present application, in Fig.10 Based on the embodiment shown, Fig.11 As shown, the determination module 62 includes:

[0133] The parsing unit 621 is used to perform memory parsing on the memory summary data in the data table to generate a result file.

[0134] The comparison unit 622 is used to compare the result file with a preset benchmark reference file to determine abnormal information.

[0135] In one example, the memory summary data in the data table includes identification information corresponding to each driver and summary data corresponding to the identification information.

[0136] The parsing unit 621 includes:

[0137] The determination subunit 6211 is used to perform memory analysis on the memory summary data in the data table according to the mapping relationship between the driver name in the preset driver name list and the identification information, and determine the driver name corresponding to the identification information in the memory summary data.

[0138] The generating subunit 6212 is used to generate a result file according to the driver name corresponding to the identification information in the memory summary data; wherein the result file includes summary data corresponding to each driver name.

[0139] In one example, the comparison unit 622 is specifically configured to:

[0140] The summary data corresponding to each driver name in the result file is compared with the summary data corresponding to each driver name in the preset benchmark reference file to determine the abnormal information.

[0141] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0142] Fig.12 A structural diagram of a unified extensible firmware interface firmware system provided in an embodiment of the present application is shown in FIG. Fig.12 As shown, the UEFI firmware system includes: a memory 71 and a processor 72 .

[0143] The memory 71 stores a computer program that can be executed on the processor 72 .

[0144] The processor 72 is configured to execute the method provided in the above embodiment.

[0145] The UEFI firmware system further includes a receiver 73 and a transmitter 74. The receiver 73 is used to receive instructions and data sent by an external device, and the transmitter 74 is used to send instructions and data to the external device.

[0146] Fig.13 A schematic diagram of the structure of a baseboard management controller provided in an embodiment of the present application is shown in FIG. Fig.13 As shown, the baseboard management controller includes: a memory 81 and a processor 82 .

[0147] The memory 81 stores a computer program that can be executed on the processor 82 .

[0148] The processor 82 is configured to execute the method provided in the above embodiment.

[0149] The baseboard management controller further includes a receiver 83 and a transmitter 84. The receiver 83 is used to receive instructions and data sent by an external device, and the transmitter 84 is used to send instructions and data to the external device.

[0150] Fig.14 This is a block diagram of an electronic device provided in an embodiment of the present application. The electronic device may be a unified extensible firmware interface firmware system, a baseboard management controller, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0151] Device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0152] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0153] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0154] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.

[0155] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0156] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0157] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0158] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0159] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0160] In an exemplary embodiment, the apparatus 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.

[0161] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0162] An embodiment of the present application also provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method provided by the above embodiment.

[0163] An embodiment of the present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium, and at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.

[0164] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0165] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for handling server failures, characterized in that: A unified extensible firmware interface firmware system applied to a server; the method comprising: During the boot process of the server, memory summary data used by multiple drivers in the server during operation is obtained, and a data table is generated according to the memory summary data; wherein the data table represents the memory resources occupied by the multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver; If it is determined that the operating state of the server is abnormal, the data table is sent to the baseboard management controller in the server; wherein the memory summary data in the data table is used to determine and display abnormal information, and the abnormal information includes the drive information of abnormal operation during the startup process.

2. The method according to claim 1, characterized in that The step of obtaining memory summary data used by multiple drivers in the server during the startup process of the server includes: During the booting process of the server, memory is allocated to the running driver according to a preset memory allocation and release function, and memory allocation summary data in the memory summary data is generated according to the allocated memory; The memory of the driver that has finished running is released, and the memory allocation summary data corresponding to the released memory is searched in the memory allocation summary data; the memory allocation summary data corresponding to the released memory is determined to be the memory deletion summary data in the memory summary data, and the memory deletion summary data is deleted.

3. The method according to claim 2, characterized in that The step of sending the data table to a baseboard management controller in a server includes: The data table is sent to a baseboard management controller in a server via a preset transmission channel, wherein the transmission channel is a preset serial port, or any one of all available channels between the unified extensible firmware interface firmware system and the baseboard management controller.

4. The method according to any one of claims 1 to 3, characterized in that: The startup process includes multiple startup stages; the data table includes summary data of memory occupied by drivers in multiple startup stages when running.

5. A method for handling server failures, characterized in that: A baseboard management controller is applied to a server; the method comprises: Obtaining a data table sent by a unified extensible firmware interface firmware system in a server; wherein the data table is sent by the unified extensible firmware interface firmware system when determining that the operating state of the server is an abnormal state during the boot process of the server, and the data table is generated based on memory summary data used by multiple drivers in the server during operation; the data table represents memory resources occupied by multiple drivers during operation, and the memory summary data in the data table includes memory allocation summary data and / or memory release summary data of each driver; According to the data table, abnormal information is determined and displayed; wherein the abnormal information includes drive information of abnormal operation during the startup process.

6. The method according to claim 5, characterized in that The determining of abnormal information according to the data table includes: Performing memory analysis on the memory summary data in the data table to generate a result file; The result file is compared with a preset benchmark reference file to determine abnormal information.

7. The method according to claim 6, characterized in that The memory summary data in the data table includes identification information corresponding to each driver and summary data corresponding to the identification information; Perform memory analysis on the memory summary data in the data table to generate a result file, including: According to the mapping relationship between the driver name and the identification information in the preset driver name list, memory parsing is performed on the memory summary data in the data table to determine the driver name corresponding to the identification information in the memory summary data; A result file is generated according to the driver name corresponding to the identification information in the memory summary data; wherein the result file includes summary data corresponding to each driver name.

8. The method according to any one of claims 5 to 7, characterized in that: The step of comparing the result file with a preset benchmark reference file to determine abnormal information includes: The summary data corresponding to each driver name in the result file is compared with the summary data corresponding to each driver name in the preset benchmark reference file to determine the abnormal information.

9. A unified extensible firmware interface firmware system, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method according to any one of claims 1 to 4 when executing the computer program.

10. A baseboard management controller, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method according to any one of claims 5 to 8 when executing the computer program.