Operation information processing method and device, equipment and computer readable storage medium

By monitoring the operational information of smart network interface cards (NICs) and recording errors during the bare metal server initialization process, the problem of bare metal servers being unable to perceive the health status of smart NICs is solved, thus improving startup reliability and stability.

CN116860337BActive Publication Date: 2026-11-20YUSUR TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310753759.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-25
Publication Date
2026-11-20
Estimated Expiration
2043-06-25

AI Technical Summary

Technical Problem

Bare-metal servers cannot detect the health status of smart network interface cards during startup and operation, leading to unpredictable consequences, especially potentially catastrophic failures in high-performance computing scenarios.

Method used

During the bare metal server initialization process, the execution status of the smart network interface card (NIC) initialization process is monitored, running information is collected and stored in a preset specification table, error information is recorded using non-volatile media, and feedback is sent to the user when requested, enabling a detailed understanding of the cause of smart NIC errors.

Benefits of technology

This improves the reliability and stability of bare metal server startup, ensuring that errors in smart network cards can be detected and handled in a timely manner during initialization, thus avoiding unpredictable failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116860337B_ABST
    Figure CN116860337B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an operation information processing method, device and equipment and a computer readable storage medium. The present disclosure provides a method for recording error information of an intelligent network card in the starting stage of a bare metal server, which is beneficial to detailed understanding of the error cause of the intelligent network card and ensures the reliability of the starting of the bare metal server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of cloud computing technology, and in particular to a method, apparatus, device and computer-readable storage medium for running information processing. Background Technology

[0002] With the development of technologies such as cloud computing, virtualization, and cloud-native computing, bare metal is becoming increasingly important as a key application scenario for cloud computing.

[0003] A bare metal server is a physical server without an operating system or applications installed. Compared to traditional virtualized servers, bare metal servers are closer to physical servers. However, unlike physical servers, bare metal servers rely on remote mounting of cloud disks, enabling remote management and automated deployment. Furthermore, in the field of high-performance computing, the computing power of bare metal servers is almost comparable to that of physical servers, primarily relying on the virtualization technology of Data Processing Units (DPUs). Since the deployment of cloud disks depends on the support of DPU virtualization technology, the health of the DPU cards is extremely important. Errors in the operation of DPU cards can be fatal to cloud computing scenarios, especially high-performance computing.

[0004] Currently, users or maintenance personnel cannot perceive the health status of the DPU card during the startup and operation of bare metal servers, leading to unpredictable consequences. Summary of the Invention

[0005] To address the aforementioned technical problems, this disclosure provides a method, apparatus, device, and computer-readable storage medium for processing operational information to gain a detailed understanding of the causes of errors in smart network interface cards (NICs).

[0006] In a first aspect, embodiments of this disclosure provide a method for processing runtime information, including:

[0007] In response to a power-on operation, the bare metal server initialization process is initiated, and the smart network interface card (NIC) initialization process is initiated simultaneously. The smart NIC is communicatively connected to the bare metal server. The bare metal server initialization process includes multiple initialization stages executed in a predetermined order.

[0008] When the bare metal server initialization process enters a preset stage among the multiple initialization stages, if the execution status of the smart network card initialization process cannot support the bare metal server to execute the preset stage, then the running information of the smart network card is collected.

[0009] The running information is added as the first entry to the preset specification table, which is stored in the bare metal server initialization process.

[0010] The operation information is stored in a non-volatile medium. After the bare metal server restarts normally, the operation information is read from the non-volatile medium through the extensible firmware interface and added as a second entry to the preset specification table.

[0011] In response to a user's input command to view information, the system returns the operational information to the user.

[0012] In some embodiments, the method further includes:

[0013] When the bare metal server is running an operating system, the running status of the smart network interface card (NIC) is monitored through the running progress code of the smart NIC.

[0014] In some embodiments, when the bare metal server initialization process enters a preset stage among the plurality of initialization stages, if the execution state of the smart network interface card (NIC) initialization process cannot support the bare metal server to execute the preset stage, then the operating information of the smart NIC is collected, including:

[0015] When the bare metal server initialization process enters a preset stage among the multiple initialization stages, the initialization progress code of the smart network card is obtained. The initialization progress code is used to characterize the execution status of the smart network card initialization process.

[0016] Determine whether the initialization progress code of the smart network card conforms to a preset rule;

[0017] If the initialization progress code of the smart network card does not conform to the preset rules, it is determined that the execution status of the smart network card initialization process cannot support the bare metal server to execute the preset stage, and the running information of the smart network card is collected.

[0018] In some embodiments, determining whether the initialization progress code of the smart network interface card conforms to a preset rule includes:

[0019] Determine whether the initialization progress code belongs to the preset normal progress code range;

[0020] If the initialization progress code is not within the normal progress code range, then it is determined that the initialization progress code of the smart network card does not conform to the preset rules.

[0021] In some embodiments, after determining whether the initialization progress code belongs to a preset normal progress code range, the method further includes:

[0022] If the initialization progress code falls within the preset normal progress code range, then determine whether the initialization progress code is greater than or equal to the target progress code.

[0023] If the initialization progress code is less than the target progress code, then it is determined that the initialization progress code of the smart network card does not conform to the preset rules.

[0024] In some embodiments, the step of determining that the initialization progress code of the smart network interface card does not conform to a preset rule if the initialization progress code is less than the target progress code includes:

[0025] If the initialization progress code is less than the target progress code, the latest initialization progress code will be re-acquired and detected every preset period within a preset waiting time.

[0026] If, after a preset waiting time, the latest initialization progress code is less than the target progress code or does not fall within the preset normal progress code range, it is determined that the initialization progress code of the smart network card does not conform to the preset rules.

[0027] In some embodiments, after determining whether the initialization progress code of the smart network interface card conforms to a preset rule, the method further includes:

[0028] If the initialization progress code conforms to the preset rules, then the preset stage is executed;

[0029] Continue executing the next stage of the preset stage until the bare metal server initialization process is completed, thus completing the startup of the bare metal server.

[0030] Secondly, embodiments of this disclosure provide an operation information processing apparatus, comprising:

[0031] A startup module is used to start the bare metal server initialization process and the smart network card initialization process in response to a power-on operation. The smart network card is communicatively connected to the bare metal server. The bare metal server initialization process includes multiple initialization stages executed in a predetermined order.

[0032] The collection module is used to collect the operating information of the smart network card when the bare metal server initialization process enters a preset stage among the multiple initialization stages, if the execution status of the smart network card initialization process cannot support the bare metal server to execute the preset stage.

[0033] The first addition module is used to add the running information as the first table entry to the preset specification table, which is stored in the bare metal server initialization process;

[0034] The second addition module is used to store the operation information in a non-volatile medium, and after the bare metal server restarts normally, read the operation information from the non-volatile medium through the extensible firmware interface and add it as a second entry to the preset specification table.

[0035] The feedback module is used to respond to the user's input command to view information and to provide the operation information back to the user.

[0036] Thirdly, embodiments of this disclosure provide an electronic device, including:

[0037] Memory;

[0038] Processor; and

[0039] Computer programs;

[0040] The computer program is stored in the memory and configured to be executed by the processor to implement the method as described in the first aspect.

[0041] Fourthly, embodiments of this disclosure provide a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the method described in the first aspect.

[0042] Fifthly, embodiments of this disclosure also provide a computer program product, which includes a computer program or instructions that, when executed by a processor, implement the runtime information processing method as described above.

[0043] The operation information processing method, apparatus, device, and computer-readable storage medium provided in this disclosure provide a method for recording error information of smart network interface cards (NICs) during the startup phase of a bare metal server. This facilitates a detailed understanding of the causes of smart NIC errors and ensures the reliability of bare metal server startup. Attached Figure Description

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

[0045] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0046] Figure 1 A flowchart of the operation information processing method provided in this embodiment of the disclosure;

[0047] Figure 2 A schematic diagram illustrating an application scenario provided by an embodiment of this disclosure;

[0048] Figure 3 This is a schematic diagram of a bare metal server operation monitoring process provided in an embodiment of the present disclosure;

[0049] Figure 4 This is a schematic diagram illustrating communication between a bare metal server and a smart network interface card according to another embodiment of this disclosure;

[0050] Figure 5 This is a schematic diagram of full-duplex serial communication provided in an embodiment of this disclosure;

[0051] Figure 6 A flowchart of the DXE stage bare metal server workflow provided in another embodiment of this disclosure;

[0052] Figure 7 A flowchart of the bare metal server workflow in the BDS stage provided in another embodiment of this disclosure;

[0053] Figure 8 A flowchart of a bare metal server startup method provided in another embodiment of this disclosure;

[0054] Figure 9 This is a schematic diagram of the structure of the operation information processing device provided in the embodiments of this disclosure;

[0055] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0056] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0057] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0058] A bare metal server is a physical server without an operating system or applications installed. Compared to traditional virtualized servers, bare metal servers are closer to physical servers, but unlike physical servers, they rely on remote mounting of cloud disks for remote management and automated deployment. Currently, the health status of the DPU card cannot be detected during the startup and operation of bare metal servers. This can lead to unpredictable consequences during operation.

[0059] For example, normally the DPU card's boot serial port information is output to a remote console via the BMC in SOL (Serial Over LAN) format for remote administrator viewing. If an error occurs during DPU boot, the bare metal server has no way to obtain this information, causing the bare metal server to be unable to load the cloud disk and unable to record the error cause.

[0060] Alternatively, if a bare metal server is running on a client OS and a DPU card malfunctions, causing errors in reading and writing to the cloud disk and preventing the bare metal memory from saving information, the bare metal server OS will freeze. In high-performance computing scenarios, this could lead to catastrophic consequences.

[0061] To address this problem, this disclosure provides a method for processing runtime information, which will be described below with reference to specific embodiments.

[0062] Figure 1 A flowchart illustrating the runtime information processing method provided in this embodiment of the disclosure. This method can be applied to... Figure 2 The application scenario shown includes a bare metal server and a data processing unit (DPU). It is understood that the bare metal server startup method provided in this disclosure can also be applied to other scenarios.

[0063] The following is combined with Figure 2 The application scenarios shown are for Figure 1 The method for processing runtime information shown is described below. The specific steps of this method are as follows:

[0064] S101. In response to the power-on operation, the bare metal server initialization process is started, and the smart network card initialization process is started at the same time. The smart network card is communicatively connected to the bare metal server. The bare metal server initialization process includes multiple initialization stages executed in a predetermined order.

[0065] The smart network interface card (NIC) communicates with the bare metal server, exchanging data via a serial port. After the bare metal server powers on, it starts its initialization process (Basic Input Output System, BIOS), and the smart NIC simultaneously powers on and starts its own initialization process. The BIOS is the computer's Basic Input Output System, the software that loads the operating system (OS) and configures the platform.

[0066] The bare metal server initialization process includes multiple initialization phases executed in a predetermined order. In some embodiments, such as... Figure 2As shown, the bare metal server initialization process includes at least the SEC (Security Phase), PEI (Pre-EFI Initialization), DXE, and BDS (Boot Device Selection) phases.

[0067] The SEC phase is the first stage of bare-metal server initialization, and it's the first stage the system enters after power-on. During the SEC phase, the bare-metal server uses the CPU's cache as random access memory (RAM) to provide storage resources for the next stage of execution. Specifically, in this phase, the bare-metal server performs a simple Cache as Rampage, initializes the stack registers, and allows the CPU to enter the C language execution environment (C environment). Simultaneously, the CPU's serial port is initialized during this phase. In some embodiments, taking an x86 system as an example, multiple serial port controllers are integrated. Typically, one set of serial ports is used as the system serial port to output bare-metal server initialization information, while other serial ports are generally unused and can be used to communicate with the smart network interface card (NIC).

[0068] The PEI stage is used to initialize the physical memory on the motherboard. It involves traversing the memory for read / write verification and setting various memory parameters to achieve stable memory read / write operations, thus creating the runtime environment for subsequent stages of the bare-metal server initialization process. Because large servers typically use physical CPUs and large amounts of memory, and generally employ advanced memory verification, encryption, and reconstruction technologies such as ADDC, ECC, and Memory Mirror, continuous training (read / write, correction, etc.) is required to stabilize memory parameters, resulting in a lengthy memory initialization process.

[0069] The DXE phase requires traversing external devices to determine if they are ready. The BDS phase is used to analyze and determine if the cloud disk is ready to be mounted. Once the external devices are ready and the cloud disk is mounted, the bare metal server initialization process can be completed, and the operating system (OS) required by the business can be entered.

[0070] S102. When the bare metal server initialization process enters a preset stage among the multiple initialization stages, if the execution status of the smart network card initialization process cannot support the bare metal server to execute the preset stage, then the running information of the smart network card is collected.

[0071] The preset stage can be either the DXE stage or the BDS stage mentioned above.

[0072] Smart network interface cards (NICs) typically consist of an FPGA (Field Programmable Gate Array) and a system-on-chip (SoC). The FPGA is a further development based on programmable devices such as PAL (Programmable Array Logic) and GAL (General Purpose Array Logic). The smart NIC stores cloud disk images, including the hard drives required for cloud computing services and the operating system to be installed on them. Therefore, the initialization process of the smart NIC determines whether each stage of the bare-metal server initialization process can proceed normally.

[0073] Typically, the initialization process of a bare metal server takes longer than that of a smart network interface card (NIC). Therefore, when the initialization process reaches a preset stage, the smart NIC's initialization level is usually sufficient to support the bare metal server in completing that preset stage. However, if the smart NIC malfunctions, the execution status of its initialization process may not be able to support the bare metal server in completing the preset stage. In this case, it is necessary to collect the smart NIC's operational information to analyze the specific fault.

[0074] S103. The running information is added as the first entry to the preset specification table, which is stored in the bare metal server initialization process.

[0075] The bare metal server initialization process (BIOS) contains at least one table for storing information, including a default specification table (SMBIOS table) conforming to the SMBIOS specification. The SMBIOS specification defines a series of data structures and access methods for users or applications to store and access computer system information.

[0076] According to the SMBIOS specification, some entries in the SMBIOS table are reserved by the system, while others can be defined by the user. Specifically, Types 0-127 are reserved by the system, while Types 128-256 can be defined by the user. This step adds the runtime information as an entry to the default specification table (SMBIOS table).

[0077] Optionally, error information from the smart network card can be added as an additional entry (e.g., a third entry) to the default specification table (SMBIOS table).

[0078] S104. Store the operation information in a non-volatile medium. After the bare metal server restarts normally, read the operation information from the non-volatile medium through the extensible firmware interface and add it as a second entry to the preset specification table.

[0079] When a smart network interface card (NIC) encounters an error, the operational information is stored in non-volatile media. When the bare metal server restarts normally, it reads the operational information from the non-volatile media through the Unified Specification Firmware Interface (UEFI) and adds it as a separate entry (e.g., a second entry) to the default specification table (SMBIOS table).

[0080] UEFI follows the EFI (Extensible Firmware Interface) specification.

[0081] S105. In response to the user's input command to view information, the operation information is fed back to the user.

[0082] Users can obtain operating information through the information viewing command, and analyze the operating information to correct the faults of the smart network card.

[0083] For example, in Linux systems, the SMBIOS table stored in the BIOS can be viewed using the tool DMI DECODE (which follows the SMBIOS / DMI standard to parse SMBIOS data and display the system hardware configuration information recorded in the SMBIOS in a readable text format). In UEFI SHELL (which provides an interface between the user and the UEFI system), the SMBIOS table stored in the BIOS can be viewed using the command SMBIOSVIEW.

[0084] In some embodiments, after the operational information is added as a first entry to the preset specification table, it can also be reported to the cloud management platform corresponding to the bare metal server. Specifically, the UEFI BIOS transmits error information to the Baseboard Management Controller (BMC) via the IPMI Protocol. The BMC then reports this to the cloud management platform, alerting the cloud management platform administrator to check it.

[0085] This embodiment of the disclosure initiates a bare metal server initialization process and a smart network interface card (NIC) initialization process in response to a power-on operation. The smart NIC is communicatively connected to the bare metal server. The bare metal server initialization process includes multiple initialization stages executed in a predetermined order. When the bare metal server initialization process enters a preset stage among the multiple initialization stages, if the execution state of the smart NIC initialization process cannot support the bare metal server in executing the preset stage, the operating information of the smart NIC is collected. The operating information is added as a first entry to a preset specification table, which is stored in the bare metal server initialization process. The operating information is also stored in a non-volatile medium. After the bare metal server restarts normally, the operating information is read from the non-volatile medium through an extensible firmware interface and added as a second entry to the preset specification table. In response to a user-inputted information viewing command, the operating information is fed back to the user. This provides a method for recording smart NIC error information during the bare metal server startup phase, which is beneficial for understanding the cause of smart NIC errors in detail and ensuring the reliability of bare metal server startup.

[0086] Based on the above embodiments, the method further includes: monitoring the operating status of the smart network interface card (NIC) through the running progress code of the smart NIC when the bare metal server is running an operating system.

[0087] Figure 3 This is a schematic diagram illustrating a bare-metal server operation monitoring process provided in an embodiment of this disclosure. Figure 3 As shown, the bare metal server (i.e., the bare metal node) obtains the progress code of the smart network interface card (NIC) to monitor its operational status. Specifically, OpenStack, a framework for managing hardware and software acceleration resources, can use Cyborg to list, identify, and discover smart NIC devices, and mount and unmount smart NIC instances. Cyborg's main functions include hardware resource discovery, resource reporting, and resource management. By leveraging OpenStack's Cyborg project, the Cyborg-agent service running in the operating system is modified to add relevant code for the smart NIC monitoring mechanism, specifically code that executes judgment logic on the progress code. When an anomaly occurs in the progress code, an error message is reported to the cloud management platform, which then takes appropriate measures (such as shutdown or service migration).

[0088] This embodiment of the disclosure improves the stability of bare metal server operation by modifying services in the operating system to monitor the operating status of the smart network card and promptly reporting any abnormalities to the cloud management platform.

[0089] In some embodiments, when the bare metal server initialization process enters a preset stage among the plurality of initialization stages, if the execution status of the smart network interface card (NIC) initialization process cannot support the bare metal server in executing the preset stage, then collecting the smart NIC's operating information includes: when the bare metal server initialization process enters a preset stage among the plurality of initialization stages, obtaining the smart NIC's initialization progress code, the initialization progress code being used to characterize the execution status of the smart NIC initialization process; determining whether the smart NIC's initialization progress code conforms to a preset rule; if the smart NIC's initialization progress code does not conform to the preset rule, then determining that the execution status of the smart NIC initialization process cannot support the bare metal server in executing the preset stage, and collecting the smart NIC's operating information.

[0090] Smart network interface cards (NICs) typically consist of an FPGA (Field Programmable Gate Array) and a system-on-chip (SoC). The FPGA is a further development based on programmable devices such as PAL (Programmable Array Logic) and GAL (General Purpose Array Logic). The smart NIC stores a cloud disk image, including the hard drive required for cloud computing services and the operating system to be installed on it. From the smart NIC firmware boot to the NIC initialization process executed by the SoC on the DPU card, and finally the preparation of the cloud disk image, each stage can define corresponding initialization progress codes.

[0091] During each stage of the initialization process, the smart network interface card (NIC) outputs an initialization progress code corresponding to the current stage. This progress code indicates the execution status of the NIC's initialization process, representing the current stage of the initialization process. The bare-metal server can obtain the initialization progress code from the smart NIC to monitor its initialization progress status.

[0092] Specifically, when the bare metal server initialization process enters a preset stage among the multiple initialization stages, the initialization progress code of the smart network interface card (NIC) is obtained. The preset stage can be either the DXE stage or the BDS stage mentioned above.

[0093] See Figure 2 When the bare metal server enters the DXE stage, it communicates with the smart network interface card (NIC) to obtain the current initialization progress code of the smart NIC; when the bare metal server enters the BDS stage, it communicates with the smart NIC to obtain the current initialization progress code of the smart NIC.

[0094] As described above, the bare metal server initialization process includes multiple initialization stages executed in a predetermined order. The next initialization stage can only be executed in the predetermined order after the previous one is completed. The initialization progress code reflects the initialization progress status of the smart network interface card (NIC). When the initialization progress code conforms to preset rules, it is determined that the current initialization status of the smart NIC meets the requirements for the bare metal server to execute the preset stages, and the preset stages continue to be executed. If the initialization progress code does not conform to the preset rules, it is determined that the execution status of the smart NIC initialization process cannot support the bare metal server to execute the preset stages, and the operating information of the smart NIC is collected.

[0095] In some embodiments, determining whether the initialization progress code of the smart network card conforms to a preset rule includes: determining whether the initialization progress code belongs to a preset normal progress code range; if the initialization progress code does not belong to the normal progress code range, then determining that the initialization progress code of the smart network card does not conform to the preset rule.

[0096] Determine whether the initialization progress code falls within the preset normal progress code range. When defining the progress code rules, a normal progress code range is also defined, encompassing all initialization progress codes that may be generated during normal operation of the smart network interface card (NIC). When the initialization progress code falls within the normal progress code range, it indicates that the smart NIC is currently operating normally, and the initialization status of the smart NIC is further determined based on the initialization progress code. If the initialization progress code does not fall within the preset normal progress code range, it is determined that the initialization progress code of the smart NIC does not conform to the preset rules, and its fault information needs to be recorded.

[0097] In some embodiments, after determining whether the initialization progress code belongs to a preset normal progress code range, the method further includes: if the initialization progress code belongs to a preset normal progress code range, then determining whether the initialization progress code is greater than or equal to a target progress code; if the initialization progress code is less than the target progress code, then determining that the initialization progress code of the smart network card does not conform to a preset rule.

[0098] Specifically, the step of determining that the initialization progress code of the smart network card does not conform to the preset rules if the initialization progress code is less than the target progress code includes: if the initialization progress code is less than the target progress code, then re-acquire the latest initialization progress code and perform detection every preset period within a preset waiting time; after the preset waiting time, if the latest initialization progress code is less than the target progress code or does not belong to the preset normal progress code range, then determine that the initialization progress code of the smart network card does not conform to the preset rules.

[0099] When the initialization progress code obtained by the bare metal server is less than the target progress code, it indicates that the current initialization level of the smart NIC is not yet able to support the bare metal server in executing the preset stage that is about to begin. However, since the initialization progress code being less than the target progress code usually means that the smart NIC is still before the stage corresponding to the target progress code, it is not possible to directly determine that the smart NIC initialization has failed or the bare metal server initialization has failed. Instead, it is necessary to wait for a period of time and then determine whether the smart NIC has entered the initialization stage corresponding to the target progress code. That is, wait for a period of time and then determine the relationship between the latest initialization progress code and the target progress code.

[0100] However, to avoid the bare metal server from continuously waiting, a preset waiting time needs to be agreed upon. During the preset waiting time, the latest initialization progress code is re-acquired and checked every preset period. After the preset waiting time, if the latest initialization progress code still does not meet the preset conditions, such as being less than the target progress code or not belonging to the preset normal progress code range, then the initialization progress code of the smart network card is determined to be inconsistent with the preset rules.

[0101] In some embodiments, after determining whether the initialization progress code of the smart network card conforms to a preset rule, the method further includes: if the initialization progress code conforms to the preset rule, then executing the preset stage; continuing to execute the next stage of the preset stage until the bare metal server initialization process is completed and the bare metal server startup is completed.

[0102] As described above, the bare metal server initialization process includes multiple initialization stages executed in a predetermined order. The next initialization stage can only be executed in the predetermined order after the previous one is completed. The initialization progress code reflects the initialization progress status of the smart network interface card (NIC). When the initialization progress code meets preset rules, it is determined that the current initialization status of the smart NIC meets the requirements for the bare metal server to execute the preset stages, and the preset stages continue to be executed.

[0103] In some embodiments, if the preset stage is the DXE stage, the initialization progress code of the smart network interface card is obtained; if the initialization progress code conforms to the preset rules, it is determined that the smart network interface card has instantiated the external devices required for the bare metal server to execute the DXE stage, and can support the bare metal server to execute the DXE stage.

[0104] In some embodiments, if the preset stage is the BDS stage, the initialization progress code of the smart network interface card is obtained; if the initialization progress code conforms to the preset rules, it is determined that the smart network interface card has prepared the cloud disk and can support the bare metal server to execute the BDS stage.

[0105] The bare metal server initialization process includes multiple initialization phases executed in a predetermined order. After the multiple initialization phases are executed in sequence, the bare metal server starts up and enters the operating system required for the business.

[0106] The above-disclosed embodiments achieve initialization information exchange between the bare metal server and the smart network card by listening to the initialization progress code of the smart network card and performing corresponding operations, which saves the startup time of the bare metal server and ensures the reliability of the bare metal server startup.

[0107] Figure 4 This is a schematic diagram illustrating communication between a bare metal server and a smart network interface card (NIC) according to another embodiment of this disclosure. The bare metal server and the smart NIC communicate with each other. The step of obtaining the initialization progress code of the smart NIC when the bare metal server initialization process enters a preset stage among the plurality of initialization stages includes: sending a progress code acquisition command to the smart NIC when the bare metal server initialization process enters the preset stage among the plurality of initialization stages; and receiving feedback information found by the smart NIC according to the progress code acquisition command, wherein the feedback information includes the initialization progress code.

[0108] Specifically, the bare-metal server and the smart network interface card (NIC) communicate with each other via a serial port. A serial port is a device communication protocol on a computer; most computer devices contain two RS232-based serial ports. Serial ports are also a communication protocol for instrumentation equipment. Communication is based on three lines: ground, transmit, and receive. Because serial communication is asynchronous, a port can send data on one line while receiving data on another; the other lines are used for handshaking. The most important parameters for serial communication are baud rate, data bits, stop bits, and parity. These parameters must match between the two communicating ports.

[0109] like Figure 4 As shown, the bare metal server side and the smart network card (DPU side) respectively perform serial port initialization and opening operations. At this time, the parameters of the ports used for serial communication on both sides are matched. The bare metal server side sends a control command to the smart network card side, specifically a progress code acquisition command. The smart network card side searches for the corresponding information according to the control command (i.e., the progress code acquisition command) and sends the feedback information back to the bare metal server side. Finally, the bare metal server performs the corresponding processing according to the initialization progress code contained in the feedback information.

[0110] Figure 5 This is a schematic diagram of full-duplex serial communication provided in an embodiment of this disclosure. Figure 5As shown, a serial port controller A is arranged on the bare metal server side, and a serial port controller B is arranged on the DPU side. The two serial port controllers communicate with each other through their respective level conversion chips via RS232 ports.

[0111] Figure 6 This is a flowchart illustrating the workflow of a bare-metal server in the DXE stage, as provided in another embodiment of this disclosure. When the preset stage in the above embodiments is the DXE stage, as... Figure 6 As shown, during the DXE phase, the bare metal server reads the initialization progress code thrown by the current smart network card. First, it determines whether the initialization progress code falls within the preset normal progress code range, i.e., whether the initialization progress code is a Normal Code. If yes, it continues to the next step; otherwise, it collects the smart network card's operating information and adds this information as the first entry to the preset specification table (SMBIOS table). Further, the UEFI BIOS transmits the error information to the Baseboard Management Controller (BMC) via the IPMI Protocol. The BMC reports this to the cloud management platform. The UEFI BIOS records the corresponding error (at least including time and date) by constructing the preset specification table (SMBIOS table) and alerts the cloud management platform to check. Additionally, the operating information is stored in non-volatile media. After the bare metal server restarts normally, it reads the operating information from the non-volatile media via the extensible firmware interface and adds it as the second entry to the preset specification table.

[0112] Furthermore, if the initialization progress code falls within the normal progress code range (i.e., the initialization progress code is a Normal Code), then the system continues to determine whether the smart network interface card (NIC) has instantiated external devices, such as PF (Physical Function) and VF (Virtual Function) devices, by checking whether the initialization progress code reaches the target progress code corresponding to the DXE stage. PF is used for PCI functions that support SR-IOV functionality as defined in the SR-IOV specification. PF contains the SR-IOV function architecture and is used to manage SR-IOV functions. PF is a full-featured PCIe (Peripheral Component Interconnect Express) function, and can be discovered, managed, and processed like any other PCIe device. PF also possesses full configuration resources that can be used to configure or control PCIe devices. VF is a function associated with PF in SR-IOV. VF is a lightweight PCIe function that can share one or more physical resources with physical functions and other VFs associated with the same physical function. VF is only allowed to have configuration resources for its own behavior.

[0113] If the initialization progress code is greater than or equal to the target progress code corresponding to the DXE stage, it means that the smart NIC has instantiated the PF and VF devices. The bare metal server continues to execute the initialization process and enters the next stage, namely the BDS stage. If the initialization progress code is not greater than the target progress code corresponding to the DXE stage, it means that the smart network card has not yet instantiated the PF and VF devices. The bare metal server performs a waiting action, re-acquiring the latest initialization progress code every preset period (e.g., 0.5 seconds) within a preset waiting time, and again judging whether the latest initialization progress code conforms to the preset rules. If it does, it means that the smart network card has instantiated the PF and VF devices, and the bare metal server continues to execute the initialization process and enters the next stage, namely the BDS stage. If the latest initialization progress code still does not conform to the preset rules after the preset waiting time, it is determined that the waiting timeout has occurred. The operating information of the smart network card is collected and added to the preset specification table (SMBIOS table) as the first table entry. Furthermore, the UEFI BIOS transmits the error information to the intelligent platform management system (Baseboard Management Controller, BMC) through the IPMI Protocol. The BMC reports to the cloud management platform. The UEFI BIOS records the corresponding error (at least including time and date, etc.) by constructing the preset specification table (SMBIOS table) and reminds the cloud management platform to check. Additionally, the operational information is stored in non-volatile media. After the bare metal server restarts normally, the operational information is read from the non-volatile media via the extensible firmware interface and added as a second entry to the preset specification table. Simultaneously, the BMC can also perform restarts of the bare metal server or other operations.

[0114] Figure 7 This is a flowchart illustrating the workflow of a bare-metal server in the BDS stage, as provided in another embodiment of this disclosure. When the preset stage in the above embodiments is the BDS stage, as... Figure 7As shown, during the BDS phase, the bare metal server reads the initialization progress code thrown by the current smart network card. First, it determines whether the initialization progress code falls within the preset normal progress code range, i.e., whether the initialization progress code is a Normal Code. If yes, it continues to the next step; otherwise, it collects the smart network card's operating information and adds this information as the first entry to the preset specification table (SMBIOS table). Further, the UEFI BIOS transmits the error information to the Baseboard Management Controller (BMC) via the IPMI Protocol. The BMC reports this to the cloud management platform. The UEFI BIOS records the corresponding error (at least including time and date, etc.) by constructing the preset specification table (SMBIOS table) and alerts the cloud management platform to check. Additionally, the operating information is stored in non-volatile media. After the bare metal server restarts normally, it reads the operating information from the non-volatile media via the extensible firmware interface and adds it as the second entry to the preset specification table.

[0115] Furthermore, if the initialization progress code falls within the normal range (i.e., the initialization progress code is a Normal Code), then the system continues to determine whether the cloud disk is mounted correctly by checking if the initialization progress code reaches the target progress code corresponding to the BDS stage. If the initialization progress code is greater than or equal to the target progress code corresponding to the BDS stage, it means that the smart network interface card has successfully mounted the cloud disk, and the bare metal server continues to execute the initialization process, entering the next stage, i.e., entering the OS required by the business. If the initialization progress code is not greater than the target progress code corresponding to the BDS stage, it means that the smart network card has not yet been properly mounted to the cloud disk. The bare metal server performs a waiting action, re-acquiring the latest initialization progress code every preset period (e.g., 0.5 seconds) within a preset waiting time, and again judging whether the latest initialization progress code conforms to the preset rules. If it does, it means that the smart network card has been properly mounted to the cloud disk, and the bare metal server continues to execute the initialization process and enters the next stage, i.e., entering the OS required by the business. If the latest initialization progress code still does not conform to the preset rules after the preset waiting time has expired, it is determined that the waiting timeout has occurred. The operating information of the smart network card is collected and added to the preset specification table (SMBIOS table) as the first table entry. Furthermore, the UEFI BIOS transmits the error information to the intelligent platform management system (Baseboard Management Controller, BMC) through the IPMI Protocol. The BMC reports to the cloud management platform. The UEFI BIOS records the corresponding error (at least including time and date, etc.) by constructing the preset specification table (SMBIOS table) and reminds the cloud management platform to check. Additionally, the operational information is stored in non-volatile media. After the bare metal server restarts normally, the operational information is read from the non-volatile media via the extensible firmware interface and added as a second entry to the preset specification table. Simultaneously, the BMC can also perform restarts of the bare metal server or other operations.

[0116] Figure 8 A flowchart of a bare metal server startup method provided in another embodiment of this disclosure.

[0117] like Figure 8 As shown, the method includes the following steps:

[0118] S801. In response to the power-on of the bare metal server, start the bare metal server initialization process and simultaneously start the smart network card initialization process.

[0119] The smart network interface card (NIC) is communicatively connected to the bare metal server, and the bare metal server initialization process includes multiple initialization phases executed in a predetermined order.

[0120] S802. When the bare metal server initialization process enters the DXE stage, the first initialization progress code of the smart network card is obtained.

[0121] S803. Determine whether the first initialization progress code belongs to the preset first normal progress code range. If yes, execute S804; if no, execute S814.

[0122] S804. Determine whether the first initialization progress code is greater than or equal to the first target progress code. If yes, execute S807; if no, execute S805.

[0123] The first target progress code is used to indicate that the smart network card has met the conditions for the bare metal server to perform the DXE stage, that is, to indicate that the smart network card has instantiated the PF and VF devices.

[0124] S805: Reacquire the latest first initialization progress code every first preset cycle.

[0125] S806. Determine whether the waiting time is greater than the first preset waiting time. If yes, execute S814; if no, execute S804.

[0126] S807. The bare metal server initialization process enters the BDS stage and obtains the second initialization progress code of the smart network card.

[0127] S808. Determine whether the second initialization progress code belongs to the preset second normal progress code range. If yes, execute S809; if no, execute S814.

[0128] S809. Determine whether the second initialization progress code is greater than or equal to the second target progress code. If yes, execute S812; if no, execute S810.

[0129] The second target progress code is used to indicate that the smart network card has met the conditions for the bare metal server to perform the BDS stage, that is, to indicate that the smart network card has been mounted with the cloud disk.

[0130] S810: Reacquire the latest second initialization progress code every first preset cycle.

[0131] S811. Determine whether the waiting time is greater than the second preset waiting time. If yes, execute S814; if no, execute S808.

[0132] S812. The bare metal server initialization process is completed, and the bare metal server is started.

[0133] S813. When the operating system is running on the bare metal server, the running status of the smart network card is monitored through the running progress code of the smart network card.

[0134] S814. Collect the operating information of the smart network card.

[0135] S815. The running information is added as the first entry to the preset specification table, which is stored in the bare metal server initialization process.

[0136] S816. Store the operation information in a non-volatile medium. After the bare metal server restarts normally, read the operation information from the non-volatile medium through the extensible firmware interface and add it as a second entry to the preset specification table.

[0137] S817. In response to the user's input command to view information, the operation information is fed back to the user.

[0138] This disclosure embodiment initiates the bare metal server and smart network interface card (NIC) in parallel, and achieves information interaction during the initialization process. By listening to the initialization progress code of the smart NIC, the progress status of the smart NIC initialization is understood, the corresponding progress is recorded, and corresponding measures are taken to enable the bare metal server to smoothly and safely start the OS image deployed in the cloud disk. Furthermore, the method of recording the smart NIC error information when the smart NIC fails is beneficial for understanding the cause of the smart NIC error in detail and ensuring the reliability of the bare metal server startup.

[0139] Figure 9 This is a schematic diagram of the structure of the operation information processing device provided in the embodiments of this disclosure. The operation information processing device may be a bare metal server as described in the above embodiments, or it may be a component or assembly within the bare metal server. The operation information processing device provided in the embodiments of this disclosure can execute the processing flow provided in the embodiments of the operation information processing method, such as... Figure 9As shown, the operating information processing device 90 includes: a startup module 91, a collection module 92, a first input module 93, a second input module 94, and a feedback module 95; wherein, the startup module 91 is used to start the bare metal server initialization process in response to a power-on operation, and simultaneously start the smart network card initialization process, wherein the smart network card is communicatively connected to the bare metal server, and the bare metal server initialization process includes multiple initialization stages executed in a predetermined order; the collection module 92 is used to, when the bare metal server initialization process enters a preset stage among the multiple initialization stages, if the execution state of the smart network card initialization process cannot support... When the bare metal server executes the preset phase, it collects the operating information of the smart network card. The first adding module 93 is used to add the operating information as a first entry to the preset specification table, which is stored in the bare metal server initialization process. The second adding module 94 is used to store the operating information in a non-volatile medium, and after the bare metal server restarts normally, it reads the operating information from the non-volatile medium through the extensible firmware interface and adds it as a second entry to the preset specification table. The feedback module 95 is used to respond to the user's input information viewing command and feed back the operating information to the user.

[0140] Optionally, the operation information processing device 90 further includes a monitoring module 96, which is used to monitor the operating status of the smart network card through the running progress code of the smart network card when the bare metal server is running an operating system.

[0141] Optionally, the collection module 92 includes an acquisition unit 921, a judgment unit 922, and a determination unit 923. The acquisition unit 921 is used to acquire the initialization progress code of the smart network card when the bare metal server initialization process enters a preset stage among the multiple initialization stages. The initialization progress code is used to characterize the execution status of the smart network card initialization process. The judgment unit 922 is used to judge whether the initialization progress code of the smart network card conforms to a preset rule. The determination unit 923 is used to determine that if the initialization progress code of the smart network card does not conform to the preset rule, the execution status of the smart network card initialization process cannot support the bare metal server to execute the preset stage, and collect the operating information of the smart network card.

[0142] Optionally, the judgment unit 922 is further configured to determine whether the initialization progress code belongs to a preset normal progress code range; if the initialization progress code does not belong to the normal progress code range, then it is determined that the initialization progress code of the smart network card does not conform to the preset rules.

[0143] Optionally, the judgment unit 922 is further configured to determine whether the initialization progress code is greater than or equal to the target progress code if the initialization progress code belongs to a preset normal progress code range; and to determine that the initialization progress code of the smart network card does not conform to the preset rules if the initialization progress code is less than the target progress code.

[0144] Optionally, the determining unit 923 is further configured to, if the initialization progress code is less than the target progress code, re-acquire the latest initialization progress code and perform detection every preset period within a preset waiting time; after the preset waiting time, if the latest initialization progress code is less than the target progress code or does not belong to the preset normal progress code range, determine that the initialization progress code of the smart network card does not conform to the preset rules.

[0145] Optionally, the collection module 92 further includes an execution unit 924, which is used to execute the preset stage if the initialization progress code conforms to the preset rules; continue to execute the next stage of the preset stage until the bare metal server initialization process is completed and the bare metal server is started.

[0146] Figure 9 The operation information processing device of the illustrated embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and will not be repeated here.

[0147] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. The electronic device can be a bare-metal server as described in the above embodiment. The electronic device provided in this embodiment of the disclosure can execute the processing flow provided in the embodiment of the running information processing method, such as... Figure 10 As shown, the electronic device 10 includes: a memory 1001, a processor 1002, a computer program, and a communication interface 1003; wherein the computer program is stored in the memory 1001 and is configured to be executed by the processor 1002 as described above in the operation information processing method.

[0148] In addition, this disclosure also provides a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the runtime information processing method described in the above embodiments.

[0149] Furthermore, this disclosure also provides a computer program product, which includes a computer program or instructions that, when executed by a processor, implement the runtime information processing method described above.

[0150] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0151] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for processing runtime information, characterized in that, The method includes: In response to a power-on operation, the bare metal server initialization process is initiated, and the smart network interface card (NIC) initialization process is initiated simultaneously. The smart NIC is communicatively connected to the bare metal server. The bare metal server initialization process includes multiple initialization stages executed in a predetermined order. When the bare metal server initialization process enters a preset stage among the multiple initialization stages, if the execution status of the smart network card initialization process cannot support the bare metal server to execute the preset stage, then the running information of the smart network card is collected. The running information is added as the first entry to the preset specification table, which is stored in the bare metal server initialization process. The operation information is stored in a non-volatile medium. After the bare metal server restarts normally, the operation information is read from the non-volatile medium through the extensible firmware interface and added as a second entry to the preset specification table. In response to a user's input command to view information, the system returns the operational information to the user.

2. The method according to claim 1, characterized in that, The method further includes: When the bare metal server is running an operating system, the running status of the smart network interface card (NIC) is monitored through the running progress code of the smart NIC.

3. The method according to claim 1, characterized in that, When the bare metal server initialization process enters a preset stage among the multiple initialization stages, if the execution state of the smart network interface card (NIC) initialization process cannot support the bare metal server to execute the preset stage, then the operating information of the smart NIC is collected, including: When the bare metal server initialization process enters a preset stage among the multiple initialization stages, the initialization progress code of the smart network card is obtained. The initialization progress code is used to characterize the execution status of the smart network card initialization process. Determine whether the initialization progress code of the smart network card conforms to a preset rule; If the initialization progress code of the smart network card does not conform to the preset rules, it is determined that the execution status of the smart network card initialization process cannot support the bare metal server to execute the preset stage, and the running information of the smart network card is collected.

4. The method according to claim 3, characterized in that, The step of determining whether the initialization progress code of the smart network card conforms to preset rules includes: Determine whether the initialization progress code falls within the preset normal progress code range; If the initialization progress code is not within the normal progress code range, then it is determined that the initialization progress code of the smart network card does not conform to the preset rules.

5. The method according to claim 4, characterized in that, After determining whether the initialization progress code belongs to the preset normal progress code range, the method further includes: If the initialization progress code falls within the preset normal progress code range, then determine whether the initialization progress code is greater than or equal to the target progress code. If the initialization progress code is less than the target progress code, then it is determined that the initialization progress code of the smart network card does not conform to the preset rules.

6. The method according to claim 5, characterized in that, If the initialization progress code is less than the target progress code, then determining that the initialization progress code of the smart network card does not conform to the preset rules includes: If the initialization progress code is less than the target progress code, the latest initialization progress code will be re-acquired and detected every preset period within a preset waiting time. If, after a preset waiting time, the latest initialization progress code is less than the target progress code or does not fall within the preset normal progress code range, it is determined that the initialization progress code of the smart network card does not conform to the preset rules.

7. The method according to claim 3, characterized in that, After determining whether the initialization progress code of the smart network card conforms to a preset rule, the method further includes: If the initialization progress code conforms to the preset rules, then the preset stage is executed; Continue executing the next stage of the preset stage until the bare metal server initialization process is completed, thus completing the startup of the bare metal server.

8. An operational information processing device, characterized in that, include: A startup module is used to start the bare metal server initialization process and the smart network card initialization process in response to a power-on operation. The smart network card is communicatively connected to the bare metal server. The bare metal server initialization process includes multiple initialization stages executed in a predetermined order. The collection module is used to collect the operating information of the smart network card when the bare metal server initialization process enters a preset stage among the multiple initialization stages, if the execution status of the smart network card initialization process cannot support the bare metal server to execute the preset stage. The first addition module is used to add the running information as the first table entry to the preset specification table, which is stored in the bare metal server initialization process; The second addition module is used to store the operation information in a non-volatile medium, and after the bare metal server restarts normally, read the operation information from the non-volatile medium through the extensible firmware interface and add it as a second entry to the preset specification table. The feedback module is used to respond to the user's input command to view information and to provide the operation information back to the user.

9. An electronic device, characterized in that, include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and configured to be executed by the processor to implement the method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Intelligent network card starting method and device capable of being actively adjusted, storage medium and equipment

    CN115129378A

  • Data processor configuration method and device, equipment and medium

    CN115562734A