Hot start method and device of target equipment, electronic equipment and storage medium
By acquiring real-time restart strategies and strategy judgment information, the hot start process is optimized, solving the problem of excessively long hot start times and enabling rapid device recovery and efficient management.
Patent Information
- Application Number
- CN202511463775.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-14
- Publication Date
- 2025-11-11
AI Technical Summary
During a warm boot, the server still performs a full initialization and self-test procedure, which significantly extends the boot time and affects device efficiency.
A hot boot method for a target device is provided. By obtaining an instant restart policy and policy judgment information, it is determined whether the device is suitable for hot boot. If applicable, the target device is controlled to perform hot boot according to the instant restart policy, including optimization steps such as selectively omitting self-test, caching hardware status, and disabling redundant log recording.
It significantly shortens the warm start time, improves the device's startup efficiency and response speed, and reduces business interruptions, making it particularly suitable for servers and high-performance computing environments that require frequent restarts.
Smart Images

Figure CN120929308A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a hot-start method, apparatus, electronic device and storage medium for a target device. Background Technology
[0002] In the management and maintenance of computer equipment (such as servers), the efficiency and speed of the startup phase have a significant impact on the overall performance of the equipment.
[0003] Server startup typically involves a series of complex initialization and self-test procedures to ensure the normal operation of the computer equipment. These procedures include, but are not limited to: link initialization, memory testing, display output, and serial port printing. During the initial server startup, due to the unknown hardware and firmware status, all of the above initialization and self-test procedures are necessary.
[0004] However, when a server performs a warm boot, the server is not powered off, and most of its hardware components are likely still functioning normally. In conventional techniques, a server will still execute a complete initialization and self-test procedure during a warm boot, which significantly extends the boot time. Summary of the Invention
[0005] This application provides a hot-start method, apparatus, electronic device, and storage medium for a target device, to at least solve the problem in the related art that a complete initialization and self-test procedure is still executed during hot start, which significantly prolongs the hot start time and thus seriously affects the hot start efficiency of the target device.
[0006] This application provides a hot-start method for a target device, comprising: if the startup type of the target device is a hot-start type, obtaining an instant restart strategy pre-set for the hot-start type; wherein the instant restart strategy is used to shorten the restart time of the target device belonging to the hot-start type; obtaining strategy judgment information corresponding to the instant restart strategy from the device information of the target device; wherein the strategy judgment information is used to determine whether the target device is suitable for hot-start; if it is determined that the strategy judgment information corresponding to the instant restart strategy is suitable for hot-start, controlling the target device to perform a hot-start according to the instant restart strategy.
[0007] This application also provides a hot-start device for a target device, comprising: a first acquisition module, which, when the startup type of the target device is a hot-start type, acquires an instant restart strategy pre-set for the hot-start type; wherein the instant restart strategy is used to shorten the restart time of the target device belonging to the hot-start type. A second acquisition module, which acquires strategy judgment information corresponding to the instant restart strategy from the device information of the target device; wherein the strategy judgment information is used to determine whether the target device is suitable for hot-start; and a control module, which, when it is determined that the strategy judgment information corresponding to the instant restart strategy is suitable for hot-start, controls the target device to perform a hot-start according to the instant restart strategy.
[0008] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for implementing the hot-start method of any of the target devices described above when executing the computer program.
[0009] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of the hot-start method for any of the above-described target devices.
[0010] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the hot-start method for any of the above-described target devices.
[0011] This application allows for the acquisition of a pre-set instant restart policy for the target device when its boot type is warm boot. This policy, along with corresponding policy judgment information, enables the acquisition of policy judgment information that applies to warm boot. If the policy judgment information is suitable for warm boot, the target device is controlled to perform a warm boot according to the policy judgment information. In other words, when the boot type is warm boot, the policy judgment information determines whether the target device is suitable for warm boot. If it is suitable, the instant restart policy is used to shorten the restart time of the target device, thus saving boot time and improving warm boot efficiency. Attached Figure Description
[0012] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1A structural block diagram of a computer device for a hot-start method of a target device provided in an embodiment of this application;
[0014] Figure 2 A flowchart illustrating a hot-start method for a target device provided in this application embodiment;
[0015] Figure 3 Architecture diagram of the target device provided in the embodiments of this application;
[0016] Figure 4 This is a screen display connection diagram of the target device provided in an embodiment of this application;
[0017] Figure 5 This is a schematic diagram of the display interface during the cold start process;
[0018] Figure 6 This is a schematic diagram of the display interface during the warm start process;
[0019] Figure 7 This is a structural block diagram of a hot-start device for a target device provided in an embodiment of this application. Detailed Implementation
[0020] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0021] It should be noted that, in the description of this application, 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. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0022] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0023] The hot-start method embodiment for the target device provided in this application can be executed in the target device, which can specifically be a computer device or a similar computing device. (See reference) Figure 1 As shown, Figure 1 This is a hardware structure block diagram of a computer device for a hot-start method of a target device according to an embodiment of this application. For example... Figure 1 As shown, a computer device may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a central processing unit (CPU), a microprocessor (MCU), or a programmable logic device (FPGA), etc.) and a memory 104 for storing data are also shown. The computer device may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer device described above. For example, the computer device may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0024] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the hot-start method of the target device in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0025] The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the computer equipment. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0026] This application provides a method for warm-booting a target device, applied to the BIOS (Basic Input / Output System) of the aforementioned computer device. The BIOS is a firmware program responsible for initialization and self-testing during computer device startup, and for loading the operating system. The execution flow of the warm-boot method for the target device is described in detail below. Figure 2 As shown, the method includes the following steps S202-S206:
[0027] S202, if the boot type of the target device is a hot boot type, obtain the instant restart strategy pre-set for the hot boot type; wherein, the instant restart strategy is used to shorten the restart time of the target device that is a hot boot type.
[0028] The "Warm Start Type" indicates that the boot type is a warm start. A warm start refers to a restart performed without the target device experiencing a complete power outage. Compared to a cold start (where the target device is completely powered off and then powered on again), a warm start retains some of the target device's operating state and typically does not require a complete hardware initialization and testing process. Common triggering methods for warm starts include, but are not limited to: operating system-level restart commands, restart options in BIOS settings, and restarts via the BMC (Baseboard Management Controller).
[0029] Understandably, the instant restart strategy is a series of strategies designed to accelerate the warm boot process, thereby reducing boot time. The instant restart strategy leverages the difference between warm and cold boots, skipping redundant boot steps to quickly restore the operating state. Specifically, the instant restart strategy may include: selectively omitting self-tests (skipping some or all pre-boot self-tests (such as POST, Power-On Self Test), performing only the initialization of critical parts); caching hardware state (using hardware state information saved from previous cold boots (such as CPU, memory, PCI (Peripheral Component Interconnect)) to avoid re-detection and initialization); and disabling redundant logging (disabling or reducing unnecessary serial port or VGA (Video Graphics Array) log output), etc.
[0030] S204, Obtain policy judgment information corresponding to the immediate restart policy from the device information of the target device; wherein, the policy judgment information is used to determine whether the target device is suitable for warm start.
[0031] It should be noted that device information refers to the data set describing the internal hardware components and state of the target device. Device information can be collected and used during the target device's boot process, including but not limited to CPU model, memory specifications, hard drive information, firmware version, hardware configuration status, and event logs. Device information is the foundation for determining whether a server can safely perform a hot reboot. Policy judgment information, based on device information, is a subset of information used to assess and determine whether the device possesses the conditions and environment for applying an immediate reboot policy. Immediate reboot policies have their applicable preconditions and limitations. For example, a policy to disable redundant self-test requires device information indicating that the hardware did not report a fault in the previous run; while a policy to skip BIOS and BMC interaction relies on the asset information in the device information having been successfully transferred and stored in the BMC. Therefore, policy judgment information is a crucial basis for firmware decisions on whether to enable a particular immediate reboot policy.
[0032] In some embodiments, the policy decision information may include: a hardware fault record of the target device. If the hardware fault record shows no faults, the self-test can be skipped.
[0033] S206, if it is determined that the policy judgment information corresponding to the restart policy is applicable to hot start, the target device is controlled to perform hot start according to the instant restart policy.
[0034] In steps S202-S206 above, if the target device's boot type is a warm boot type, a pre-set instant restart policy for the warm boot type can be obtained. Then, policy judgment information corresponding to the instant restart policy can be obtained. If the policy judgment information corresponding to the instant restart policy is applicable to warm boot, the target device is controlled to perform a warm boot according to the instant restart policy. In other words, if the boot type is a warm boot type, the policy judgment information will determine whether the target device is suitable for warm boot. If it is suitable, the target device will be controlled to perform a warm boot according to the instant restart policy. Since the instant restart policy is used to shorten the restart time of target devices belonging to the warm boot type, boot time can be saved, and warm boot efficiency can be improved.
[0035] In some exemplary embodiments, the policy determination information includes: hardware configuration parameters corresponding to the instant restart policy; controlling the target device to perform a hot start according to the instant restart policy includes: determining whether a target configuration parameter exists in the hardware configuration parameters; wherein, the target configuration parameter refers to a hardware configuration parameter whose hardware parameter value has changed; if the target configuration parameter does not exist in the hardware configuration parameters, sending a first information multiplexing instruction carrying a hot start identifier to the baseboard management controller, so as to instruct the baseboard management controller to retrieve the hardware parameter value of the stored hardware configuration parameter from the memory of the baseboard management controller when the hot start identifier carried by the first information multiplexing instruction is extracted, and display the hardware parameter value of the hardware configuration parameter on the display interface of the baseboard management controller.
[0036] The target configuration parameters are the hardware configuration parameters whose values have been detected to have changed. In a warm boot scenario, since the target device remains powered, there may be cases where the hardware configuration parameters do not change; if a change is detected (e.g., through external commands or system configuration changes), these changed parameters are the target configuration parameters. A warm boot identifier is a special flag or signal used to distinguish between a warm boot and a cold boot during the restart process.
[0037] It should be noted that the first information reuse instruction is sent to the BMC when a warm start is confirmed to be feasible and the hardware parameter values of the hardware configuration parameters have not changed. The first information reuse instruction carries a warm start flag, instructing the BMC to skip the process of retrieving the hardware parameter values from the target device and instead directly reuse the hardware parameter values saved during the last cold start from its internal memory, thereby accelerating the startup speed of the BMC display interface.
[0038] In some embodiments, when the BIOS of the target device receives a reboot command, the BIOS first checks whether the hardware parameter values of the hardware configuration parameters have changed through a hardware self-test (POST) process. If the hardware parameter values (such as CPU (Central Processing Unit) frequency, memory size, etc.) are all consistent with those during a cold boot, i.e., the target configuration parameters do not exist, the BIOS sends a first information reuse instruction carrying a warm boot identifier to the BMC. After receiving the instruction, the BMC reuses and displays the hardware parameter values saved during the last cold boot from its memory, such as a CPU frequency of 2.0 GHz and a memory size of 16 GB, without waiting for the BIOS to complete all initialization and self-test.
[0039] In some embodiments, retrieving hardware parameter values of stored hardware configuration parameters from the memory of the baseboard management controller and displaying these values on the display interface of the baseboard management controller includes: filtering the hardware configuration parameters according to preset filtering conditions to obtain key hardware configuration parameters, and displaying the hardware parameter values of the key hardware configuration parameters on the display interface of the baseboard management controller. It is understood that the information displayed on the interface typically includes BIOS information, hardware detection status, error messages, hotkey prompts, etc. This information is crucial for diagnosing hardware problems and setting system parameters during cold starts (such as initial power-on or startup after power failure). However, in hot start scenarios, since the hardware configuration has not changed significantly, complete information output may lead to unnecessary startup delays. Therefore, adjusting the screen output of the display interface to display only necessary information becomes an important optimization technique. When setting filtering conditions, settings can be based on information crucial to user operation, such as BIOS version, BMC IP (Internet Protocol address), CPU model, total memory capacity, etc. This information helps users confirm the status of the target device and quickly enter BIOS settings when needed. By reducing unnecessary screen output, warm-up time can be significantly shortened, which is especially important for servers or high-performance computing environments that require frequent restarts, thereby improving overall response speed and work efficiency.
[0040] In the above embodiments, if it is determined that the target configuration parameter does not exist in the hardware configuration parameters, the BMC is instructed to skip the process of re-obtaining the hardware parameter values from the target device and directly reuse the hardware parameter values saved during the last cold start from its internal memory. In this way, the target device can complete the warm start in a short time, which significantly shortens the startup time, reduces service interruption, and improves the operation and maintenance efficiency of the data center.
[0041] In some exemplary embodiments, determining whether a target configuration parameter exists in the hardware configuration parameters includes: sending a query instruction to the baseboard management controller; wherein the query instruction carries a parameter identifier of the hardware configuration parameter; receiving a feedback instruction from the baseboard management controller; wherein the feedback instruction carries a parameter status identifier; wherein the feedback instruction is generated by the baseboard management controller after receiving the query instruction, based on the parameter identifier in the query instruction, querying the parameter identifier bit corresponding to the parameter identifier in the baseboard management controller's memory; and determining that a target configuration parameter exists in the hardware configuration parameters if a target status identifier exists in the parameter status identifier.
[0042] The query command is a command sent by the BIOS to the BMC to request status information of hardware configuration parameters. This command usually carries a parameter identifier, which is a unique identifier of the hardware parameter to be queried, enabling the BMC to accurately identify and locate the corresponding parameter information.
[0043] A parameter identifier is a tag used to uniquely identify hardware configuration parameters. Each hardware configuration parameter (such as CPU model, memory size, hard disk status, etc.) has an assigned parameter identifier, which allows for quick location and querying of relevant parameter information during hardware monitoring and management.
[0044] A feedback instruction is generated and returned to the BIOS after the BMC receives a query instruction, searches for the parameter identifier in its memory based on the parameter identifier in the query instruction, and then sends the feedback instruction. The feedback instruction carries a parameter status identifier to indicate the current status of the queried hardware configuration parameter, including but not limited to the parameter's value, whether it is working properly, and whether it has changed.
[0045] Parameter status identifiers are status flags or codes generated by the BMC after querying the parameter identifier bits in memory. They are used to indicate the current status of the parameter in feedback instructions. For example, "normal status" can be identified by the number 1, "parameter value changed status" can be identified by the number 2, and "fault status" can be identified by the number 3.
[0046] A target status identifier is a specific state among parameter status identifiers, used to indicate that the value of a hardware configuration parameter has changed since the last cold boot. When a target status identifier is detected, it determines that a target configuration parameter exists in the hardware configuration parameters, that is, a hardware configuration parameter whose value has changed.
[0047] Specifically, the BIOS sends a query command to the BMC, which carries the parameter identifiers of the hardware configuration parameters. For example, the BIOS might query the status of parameters such as CPU model, memory size, and hard drive type. Upon receiving the query command, the BMC retrieves the corresponding parameter identifier from its internal memory based on the carried parameter identifier and generates a feedback command carrying the parameter status identifier, which is then sent back to the BIOS. If the BMC finds that the parameter status identifier of a hardware configuration parameter matches the target status identifier (e.g., a parameter value change), the feedback command will carry this target status identifier. After receiving the feedback command, the BIOS checks whether the carried parameter status identifiers contain the target status identifier. If the target status identifier exists, the BIOS determines that the target configuration parameter exists, meaning that at least one hardware parameter value has changed since the last cold boot.
[0048] In the above embodiments, by utilizing the mechanism of query instructions and feedback instructions, it is possible to effectively determine whether the target configuration parameters exist in the hardware configuration parameters, thereby shortening the startup time and improving the response speed and management efficiency of the target device while ensuring hardware security and stable operation.
[0049] In some exemplary embodiments, after determining whether a target configuration parameter exists in the hardware configuration parameters, the method further includes: if a target configuration parameter exists in the hardware configuration parameters, accessing the target hardware device of the target device and obtaining the current hardware parameter value of the target configuration parameter fed back by the target hardware device; generating a second information multiplexing instruction based on the current hardware parameter value of the target configuration parameter, and sending the second information multiplexing instruction to the baseboard management controller to instruct the baseboard management controller to obtain the hardware parameter values of the hardware configuration parameters other than the target configuration parameter from the memory of the baseboard management controller, and displaying the current hardware parameter value in the second information multiplexing instruction and the hardware parameter values of the hardware configuration parameters other than the target configuration parameter on the display interface of the baseboard management controller.
[0050] Understandably, a target hardware device refers to a hardware component whose hardware configuration parameters have changed. During a target device warm boot, if a hardware parameter value is detected that does not match the expected or previously saved state, then this hardware component is considered a target hardware device and requires further inspection and possible reconfiguration.
[0051] Current hardware parameter values refer to the actual parameter values of the target hardware device in its current state, including but not limited to CPU frequency, memory capacity, hard drive type and capacity, and network interface connection status. These values reflect the device's real-time configuration and performance status.
[0052] It should be noted that the second information reuse instruction is a command generated by the BIOS and sent to the BMC after determining that the target configuration parameter exists in the hardware configuration parameters. This instruction contains the current hardware parameter value of the target configuration parameter, and also instructs the BMC to reuse the parameter values of other hardware configuration parameters besides the target configuration parameter from its internal memory, so as to avoid re-detecting and configuring these known stable parameters during the warm boot process.
[0053] In a specific application, a server hot boot involves changes to hardware configuration parameters, such as adding a new memory module or replacing a network card. After determining that the target configuration parameters exist in the hardware configuration parameters, the BIOS accesses the target hardware device, such as the newly added memory module, to obtain its current hardware parameter values, such as capacity, type, and manufacturer. Next, the BIOS generates a second information reuse instruction based on the newly obtained current hardware parameter values and sends it to the BMC. This instruction informs the BMC that, except for the newly added memory module parameters which need to be updated, other hardware configuration parameters can be reused from the BMC's memory without needing to be retrieved again. Upon receiving the instruction, the BMC immediately updates the latest memory module parameter values on the display interface and displays the remaining unchanged hardware configuration parameter information, such as CPU model, original memory capacity, and hard drive status, thereby ensuring the accuracy of the hardware configuration while quickly completing the hot boot process.
[0054] In the above embodiments, a second information multiplexing instruction is generated based on the current hardware parameter value of the target configuration parameter, and the second information multiplexing instruction is sent to the baseboard management controller. This can flexibly respond to changes in hardware parameters, ensuring the real-time performance and accuracy of hardware configuration, while effectively reducing unnecessary checks during the hot start process, thus improving the speed and efficiency of hot start.
[0055] In some exemplary embodiments, the policy judgment information further includes: the status parameters of the target device corresponding to the instant restart policy, the status parameter values including: historical status parameter values and current status parameter values; controlling the target device to perform a hot start according to the instant restart policy includes: comparing the historical status parameter values and the current status parameter values to obtain a comparison result; if the comparison result is that the historical status parameter and the current status parameter are consistent, determining the test item corresponding to the status parameter and disabling the test item.
[0056] Status parameters are various indicators describing the current operating status of a target device, encompassing multiple dimensions such as hardware status, software operation, and system resource utilization. In target devices such as servers, routers, and personal computers, specific status parameters include CPU temperature, memory usage, hard drive read / write speed, and network connectivity status.
[0057] It's important to note that historical status parameter values refer to the status parameter values recorded by the target device during its last cold start or at a specific point in time. These values are typically stored in the device's management system or BMC's memory, serving as a baseline for subsequent status comparisons. By using the stored historical status parameter values, it's possible to determine whether the device's status has changed, and thus decide whether additional tests or configuration updates are needed. Current status parameter values are the real-time status parameter values of the target device acquired before the immediate restart strategy is executed. This represents the device's instantaneous state before preparing for a warm start, including the latest readings of all key status parameters. By acquiring the current status parameter values and comparing them with historical status parameter values, it's possible to understand whether the device's status has changed since the last cold start.
[0058] Test items refer to a series of checks or tests performed during the boot process of a target device to ensure the stability and security of the hardware and software. Common test items may include memory tests (such as RMT tests) and PCI link tests. These test items help to detect potential hardware failures or configuration problems in a timely manner. During a warm boot, if the device state remains unchanged, re-executing these test items is unnecessary and may lead to prolonged boot time.
[0059] Specifically, the target device's BIOS can collect current status parameter values, including CPU temperature, memory usage, and hard drive read / write status, and then compare them with historical status parameter values stored in the BMC. If the comparison results show consistency of the status parameters—that is, the status parameter values have not changed between the cold boot and the warm boot—it will be determined that there is no need to test the corresponding test items for these status parameters again. For example, if the current memory usage is the same as after the last cold boot, the BIOS can skip lengthy memory tests (such as RMT tests) and directly enter the operating system loading stage, significantly shortening the warm boot time.
[0060] In the above embodiments, by using the comparison mechanism between historical status parameter values and current status parameter values, redundant test items can be intelligently shut down under the instant restart strategy, effectively shortening the hot start time, while ensuring the security and stability of device restart, and improving the efficiency of device management and user experience.
[0061] In some exemplary embodiments, the policy judgment information further includes: fault parameters of the target device corresponding to the instant restart policy; controlling the target device to perform a hot start according to the instant restart policy includes: disabling the serial port printing function of the target device when the fault parameters indicate that the target device has not failed.
[0062] Fault parameters are a series of indicators used to describe the normal status of the hardware or software of a target device during a warm start. Fault parameters can cover various types of faults that the target device may encounter, including but not limited to power failures, hardware malfunctions (such as CPU overheating, memory read / write errors), and system software errors (such as driver failures, operating system malfunctions). Recording and analyzing fault parameters helps system administrators quickly locate problems and improves the efficiency of fault diagnosis and repair.
[0063] Serial port printing is a function that allows a device to output log, debugging, or fault information via a serial communication interface (such as USB (Universal Serial Bus)) during startup or operation. This information can be received and parsed by external devices (such as terminals or server management interfaces) for monitoring device status, debugging programs, or troubleshooting. In some cases, serial port printing can contain a large amount of information, leading to a prolonged startup process.
[0064] In some embodiments, when a target device needs to perform a warm boot, the BIOS first checks fault parameters to determine if the target device encountered any faults or anomalies during its last operation. If the fault parameters indicate that the target device did not experience a fault—that is, all hardware and software components are functioning normally and no abnormal states are recorded—then the target device's BIOS will disable serial port printing. Disabling serial port printing means that during a warm boot, the target device will not output lengthy boot logs, debugging information, or fault information via the serial port; instead, it will directly load the operating system. This optimization significantly reduces the time required for a warm reboot, which can significantly improve the availability and response speed of data center servers that require frequent restarts for software updates or fault recovery, and reduce business downtime.
[0065] In the above embodiments, the strategy of checking fault parameters and disabling serial port printing can ensure that the device can quickly return to the previous normal operating state during a hot start, reducing unnecessary information output and processing time, thereby greatly improving the speed and efficiency of device restart. This has important application value for data centers, enterprise networks and daily personal computer usage scenarios.
[0066] In some exemplary embodiments, disabling the serial port printing function of the target device includes: determining the serial port configuration file for the serial port printing function; searching for a macro switch in the serial port configuration file that matches the serial port printing function; wherein the macro switch is a function set in the serial port configuration file to control the start and stop of the serial port printing function; and updating the switch bit of the macro switch to disable the serial port printing function of the target device.
[0067] As is understandable, a serial port configuration file is used to set the attributes of the serial communication port and the behavior of the serial port printing function. It contains communication parameters such as the serial port's baud rate, data bits, stop bits, and parity, and also defines the on / off state of the serial port printing function, output levels, and filtering rules for specific information. Serial port configuration files are usually editable, allowing adjustments to the serial port's communication settings and enabling or disabling the printing function as needed.
[0068] Macro switches are predefined codes or configuration items used in programming or system configuration to control the on / off state of specific functions or behaviors. In a serial port configuration file, a macro switch can be a specific key-value pair, where the key represents the control item for the serial port printing function, and the value is a switch state (such as on or off). By modifying the value of the macro switch, the state of the serial port printing function can be dynamically adjusted without recompiling the system or restarting the device.
[0069] In some embodiments, the serial port configuration file or other configuration files related to serial port printing of the target device can be located. In the serial port configuration file, the macro switch matching the serial port printing function is found. For example, the macro switch can be defined as SERIAL_PRINT_ENABLE, with a value of 1 indicating on and 0 indicating off. If it is confirmed that the target device has not malfunctioned before a warm boot, and to shorten the boot time, the value of SERIAL_PRINT_ENABLE can be modified to 0 to disable the serial port printing function. This modification can be made while the target device is running and takes effect without restarting the target device. In this way, during a warm boot of the target device, the BIOS will no longer output boot logs via the serial port, thereby saving significant boot time and improving server response speed and management efficiency.
[0070] In the above embodiments, the serial port printing function is controlled by a macro switch in the serial port configuration file. This allows for flexible adjustment of the serial port printing status as needed, while ensuring the normal operation of the target device. This is an effective means of optimizing the target device's hot start time.
[0071] In some exemplary embodiments, searching for macro switches that match the serial port printing function in the serial port configuration file includes: determining a first keyword for the macro switch and multiple second keywords in the serial port configuration file; wherein the multiple second keywords are determined based on directory information and annotation information in the serial port configuration file; performing vector representation on the first keyword to obtain a first vector representation of the first keyword, and performing vector representation on the multiple second keywords to obtain second vector representations corresponding to the multiple second keywords respectively; determining the similarity between the first vector representation and the multiple second vector representations respectively; and searching for macro switches that match the serial port printing function based on each similarity.
[0072] The primary keyword is a specific word or phrase used to identify macro switches related to the serial port printing function. In the serial port configuration file, the primary keyword is used to mark or reference configuration items or functions related to the serial port printing function. By searching the configuration file for this keyword, the specific location controlling the serial port printing function can be quickly determined.
[0073] Multiple secondary keywords refer to a series of auxiliary keywords in the serial port configuration file, determined based on the file's directory information and comments, in addition to the primary keyword. These keywords are typically related to the context, function description, or implementation details of the serial port printing function, helping the system to more accurately understand and locate the macro switches for serial port printing. Directory information refers to the structural layout within the configuration file, i.e., how the various configurations are organized and categorized. In complex systems, configuration files may be divided into multiple sections or parts, each responsible for different functions. Directory information provides grouping information about macro switches and other configuration items, enabling the system to more efficiently locate the target configuration when searching for keywords.
[0074] Annotations are comment text within configuration files used to explain the purpose, function, or implementation details of a piece of code or configuration. Annotations typically begin with special characters (such as # or / / ), are not executed, but are crucial for understanding the configuration file content. Annotations can serve as auxiliary keywords, helping the system locate macro switches related to serial port printing functionality, especially when keywords are not specific enough.
[0075] Vector representation is a method of converting keywords into mathematical vectors for semantic similarity calculation in natural language processing. Through trained word embedding models, text can be converted into vectors in a high-dimensional space, thereby quantifying the semantic distance between keywords. Vector representation is an important technique for keyword matching and function localization.
[0076] Similarity refers to the degree of similarity between two vectors, and is commonly calculated using algorithms such as cosine similarity and Euclidean distance. In this scenario, similarity refers to the degree of similarity between the first keyword vector representation of the serial port printing function and the multiple second keyword vector representations in the configuration file. Keyword combinations with high similarity are more likely to be macro switches that match the serial port printing function.
[0077] In some embodiments, during hot restart optimization of the target device, the BIOS can quickly locate and disable the macro switch for the serial port printing function to reduce boot time. First, a first keyword is determined. Then, the directory information and annotation information in the serial port configuration file are analyzed to extract a set of second keywords. Next, word embedding technology is used to convert the first keyword into a first vector representation, while the set of second keywords is converted into their respective second vector representations. Then, the cosine similarity between the first vector and each of the second vectors is calculated to find the macro switch most relevant to the serial port printing function.
[0078] In the above embodiments, the keyword matching method based on vector representation and similarity calculation can not only quickly locate the macro switch of the serial port printing function, but also more intelligently understand and adjust the status of the serial port printing function in complex and ever-changing configuration files, thereby significantly shortening the device hot start time and improving system management efficiency.
[0079] In some exemplary embodiments, if the boot type of the target device is a warm boot type, before obtaining the instant restart strategy pre-set for the warm boot type, the warm boot method of the target device further includes: in response to a reset command, reading a boot identifier in the reset register of the target device based on the reset command; determining that the boot type is a warm boot type if the boot identifier is a warm boot identifier; and determining that the boot type is a cold boot type if the boot identifier is a cold boot identifier.
[0080] As is understandable, a reset command is a command used to restart a hardware device. It typically resets the device's state to an initial state for rebooting. In target devices such as servers, routers, and personal computers, the reset command can be a hardware button operation, a software command (such as a reboot or reset command), or a remote reset command from the BMC. Depending on the device's current state and the type of reset command, the device may perform a warm boot or a cold boot.
[0081] The reset register is a hardware register in the target device used to store reset status information. After the target device is reset, the register retains the reset type—warm boot or cold boot. This helps to quickly determine the boot type of the target device during a warm boot, thereby enabling the implementation of an appropriate immediate restart strategy.
[0082] The boot flag is an identifier recorded in the reset register that indicates whether the target device is booting warmly or coldly. The boot flag can be a binary flag or a specific code value; for example, "0" represents a cold boot and "1" represents a warm boot.
[0083] Specifically, after receiving a reset command, the BIOS of the target device checks the boot flag stored in the reset register. If the flag is "1" (warm boot flag), the boot type is determined to be warm boot; if the flag is "0" (cold boot flag), the boot type is determined to be cold boot. If the boot flag is warm boot, the BIOS will skip the redundant hardware self-test and directly read the stored hardware configuration and system status information to quickly load the operating system. If the boot flag is cold boot, the BIOS will execute a complete hardware initialization and testing process to ensure the stability and security of the target device.
[0084] In the above embodiments, the startup type is determined based on the startup identifier in the reset register, and an immediate restart strategy is adopted accordingly. This can greatly shorten the hot start time while ensuring system safety and stability, and is an effective means to optimize the device startup process and improve the device startup speed.
[0085] The embodiments described above are merely some embodiments of this application, and not all embodiments. To better understand the above methods, the following description, in conjunction with embodiments, illustrates the process, but is not intended to limit the technical solutions of the embodiments of this application. Specifically:
[0086] The target device (such as a server) needs to be reinitialized regardless of whether it is AC (power off and then powered on) or DC (continuous power supply). That is, every time it starts up, the server needs to re-execute the startup program. Figure 3 As shown, this application can be Figure 3 The server, running within this architecture, can include: BIOS, BMC, CPU (CPU0 and CPU1), PCI, PCI retimer, network card, disk array, and storage. CPU0 can connect to a USB keyboard, USB mouse, SPD, DIMMO (Dual In-line Memory Module), etc., via a USB interface. CPU0 can connect to multiple components such as PCI Slots (Peripheral Component Interconnect Slots) and DIMMO. The BIOS and BMC can communicate via IPMI (Intelligent Platform Management Interface) commands. During server startup, the BMC can display relevant information on a VGA screen, and the BIOS can read SPD (Serial Presence Detect) data and store it in the NVRAM (Non-Volatile Random Access Memory) area. For example... Figure 4The diagram shown is a VGA display connection diagram. It illustrates the signal path from the fiber optic interface module, switch, and display module through the 10 Gigabit direct connection copper cable, input module, and optical module, as well as the connection relationships between the various components.
[0087] Taking the cold boot startup program as an example, the cold boot startup program includes: screen output printing, see reference. Figure 5 As shown, this includes, but is not limited to, platform information 1, platform information 2, platform information 3, platform information 4, platform information 5, platform information 7, execution hotkey 1, startup information 1, and startup information 2. Specifically, this can refer to breakpoint print information, function code execution location information, CPU model information, CPU quantity information, BIOS version information, UEFI (Unified Extensible Firmware Interface) version information, CPU quantity, memory quantity, memory manufacturer, total memory capacity, number of memory slots, BMC IP address, hard drive model and quantity, etc. This is information that users can directly view on the screen. Besides this, some information cannot be observed on the screen and can only be collected and viewed through special tools or methods. For example, a commonly used tool is a serial cable, which can be used to collect the print information printed during server startup, including... Figure 5 The initialization of the CPU, memory, and PCI link; parameter settings in the BIOS setup interface; BIOS reading SPD (Serial Presence Detect) data to the NVRAM (Non-Volatile Random Access Memory) area; memory RMT (Memory Testing) testing; RAID (Redundant Arrays of Independent Disks) card driver loading and display; and other related tasks. Figure 5Data interaction between the BIOS and BMC includes: asset information transfer between the BIOS and BMC, BIOS option exchange, boot item exchange, and boot order exchange. All of these processes are executed during startup, and each startup is relatively time-consuming. These steps are performed on the first boot to allow for quick problem location via serial port logs or evaluation displays when the server malfunctions. However, if these steps are performed again after the server has successfully booted and entered the operating system, it will result in excessively long server startup times and repeated output of the aforementioned information, causing long waiting times for users. Therefore, shortening the startup time during server restarts is a crucial issue that needs to be addressed.
[0088] When the server is restarted via the BIOS setup interface, the BMC's KVM (Keyboard, Video, Mouse) management interface, or through the reboot command within the server system, a warm reboot is confirmed by reading the server's reset signal. In this case, the server sets the global warm reboot flag to 1. When set to 1, the BIOS disables serial port printing, preventing task printing output. Breakpoints and function execution information during server startup are also not printed; only partial information is displayed on the screen. (See reference...) Figure 6 As shown, if only hotkey 1, platform information 1, platform information 3, platform information 5, and platform information 7 are displayed, these information can specifically refer to CPU model, memory manufacturer, memory speed, total memory capacity, BIOS and BMC versions, BMC IP address, hotkey prompts, etc., and the above information is integrated into one screen for display; in the initialization section, only information such as... Figure 6This includes CPU initialization, memory initialization, and PCI link initialization; furthermore, in addition to screen printing information, it sets the RMT option to off, Quiet Boot (silent startup) to off, and Fast Boot to off via global flags. Boot (fast startup) is enabled (meaning fast startup can skip the initialization or checks of PCI devices); for memory display, some parameters are read directly from the NVRAM area of the BIOS and updated and passed to the corresponding location information for display; asset information collected by the BIOS is passed to the BMC through the hot restart flag, notifying the BMC to use the previous asset information for display. At the same time, for the BIOS option settings, if there are no changes, the previously passed BIOS options are stored; if there are changes, the modified BIOS options are passed to the BMC for storage. In other words, the BIOS passes asset information to the BMC; the server's startup time fault information still needs to be printed to avoid the inability to locate faults during fast startup. When the server has finished booting and is about to enter the operating system, the global hot restart variable is set to 0, and the setting of whether the next restart is a hot restart or a cold restart is continuously polled, and this process is repeated.
[0089] This application's server, upon initial power-on, meticulously records and prints information generated by the display module, BIOS serial port printing module, and BIOS-BMC interaction module. This facilitates rapid fault location during the first boot by analyzing the printed information. If the first boot proceeds without issues, the data stored during the first boot can be backed up. During a warm boot, fault-free data parameters from the previous boot can be retrieved from storage and reused by disabling BIOS options, disabling BIOS serial port printing, adjusting VGA screen output, transmitting a warm reboot signal to the BMC, or reading NVRAM data. Even if BIOS options are modified or the server crashes during a restart, only the modified data can be transmitted or only the fault location information can be printed. Even if a warm reboot disables some core functions, the fault information at the time of reboot can still be located. This application can shorten the server's warm reboot startup time.
[0090] Specifically, this application provides comprehensive functionality for the server's first power-on startup process after AC / DC conversion, including location tracking, information printing, screen display, BIOS serial port output, BIOS-BMC asset interaction, BIOS-BMC storage backup, and BIOS option selection. A warm reboot, on the other hand, simply restarts the server once, and the server's physical configuration may not change. If the initial startup is successful and the system is already in operation, the current startup parameters are considered correct. A warm reboot can directly reuse the results of the first startup without repeating the process. Based on this requirement, the server's warm reboot is significantly optimized to save startup time and avoid the technical problem of users waiting excessively for the machine during a warm reboot. This solution is unaffected by CPU architecture and is applicable to servers of any architecture.
[0091] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0092] Embodiments of this application also provide a parameter adjustment device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the modules described in the following embodiments are preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0093] Figure 7 This is a structural block diagram of a hot-start device for a target device according to an embodiment of this application. The device includes:
[0094] The first acquisition module 702, when the boot type of the target device is a hot boot type, acquires an instant restart strategy pre-set for the hot boot type; wherein, the instant restart strategy is used to shorten the restart time of the target device belonging to the hot boot type.
[0095] The second acquisition module 704 acquires policy judgment information corresponding to the instant restart policy from the device information of the target device; wherein, the policy judgment information is used to determine whether the target device is suitable for hot start;
[0096] The control module 706, when determining that the policy judgment information corresponding to the instant restart policy is applicable to the hot start, controls the target device to perform a hot start according to the instant restart policy.
[0097] With the aforementioned device, when the target device's boot type is a warm boot type, a pre-set instant restart strategy for the warm boot type can be obtained. Then, strategy judgment information corresponding to the instant restart strategy can be obtained. If the strategy judgment information corresponding to the instant restart strategy is applicable to warm boot, the target device is controlled to perform a warm boot according to the instant restart strategy. In other words, when the boot type is a warm boot type, the system determines whether the target device is suitable for warm boot based on the strategy judgment information. If it is suitable, the target device is controlled to perform a warm boot according to the instant restart strategy. Since the instant restart strategy is used to shorten the restart time of target devices belonging to the warm boot type, boot time can be saved, and warm boot efficiency can be improved.
[0098] In an exemplary embodiment, the policy judgment information includes: hardware configuration parameters corresponding to the immediate restart policy; the control module 706 is further configured to determine whether a target configuration parameter exists in the hardware configuration parameters; wherein, the target configuration parameter refers to a hardware configuration parameter whose hardware parameter value has changed; if the target configuration parameter does not exist in the hardware configuration parameters, a first information multiplexing instruction carrying a hot-start identifier is sent to the baseboard management controller to instruct the baseboard management controller to retrieve the stored hardware parameter value of the hardware configuration parameter from the memory of the baseboard management controller when the hot-start identifier carried by the first information multiplexing instruction is extracted, and to display the hardware parameter value of the hardware configuration parameter on the display interface of the baseboard management controller.
[0099] In an exemplary embodiment, the control module 706 is further configured to send a query instruction to the baseboard management controller; wherein the query instruction carries a parameter identifier of the hardware configuration parameters; receive a feedback instruction from the baseboard management controller; wherein the feedback instruction carries a parameter status identifier; wherein the feedback instruction is generated by the baseboard management controller after receiving the query instruction, based on the parameter identifier in the query instruction, querying the parameter identifier bit corresponding to the parameter identifier in the memory of the baseboard management controller; and if a target status identifier exists in the parameter status identifier, determining that a target configuration parameter exists in the hardware configuration parameters.
[0100] In an exemplary embodiment, the control module 706 is further configured to, when the target configuration parameter exists in the hardware configuration parameters, access the target hardware device of the target device and obtain the current hardware parameter value of the target configuration parameter fed back by the target hardware device; generate a second information multiplexing instruction based on the current hardware parameter value of the target configuration parameter, and send the second information multiplexing instruction to the baseboard management controller to instruct the baseboard management controller to obtain the hardware parameter values of the hardware configuration parameters other than the target configuration parameter from the memory of the baseboard management controller, and display the current hardware parameter value in the second information multiplexing instruction and the hardware parameter values of the hardware configuration parameters other than the target configuration parameter on the display interface of the baseboard management controller.
[0101] In an exemplary embodiment, the policy judgment information further includes: a status parameter of the target device corresponding to the immediate restart policy, wherein the status parameter value includes: a historical status parameter value and a current status parameter value; the control module 706 is further configured to compare the historical status parameter value and the current status parameter value to obtain a comparison result; if the comparison result is that the historical status parameter and the current status parameter are consistent, determine the test item corresponding to the status parameter and disable the test item.
[0102] In an exemplary embodiment, the policy judgment information further includes: fault parameters of the target device corresponding to the instant restart policy; the control module 706 is also used to disable the serial port printing function of the target device when the fault parameters indicate that the target device has not failed.
[0103] In an exemplary embodiment, the control module 706 is further configured to determine the serial port configuration file of the serial port printing function; search in the serial port configuration file for a macro switch that matches the serial port printing function; wherein the macro switch is a function set in the serial port configuration file for controlling the start and stop of the serial port printing function; and update the switch bit of the macro switch to disable the serial port printing function of the target device.
[0104] In an exemplary embodiment, the control module 706 is further configured to determine a first keyword of the macro switch and a plurality of second keywords of the serial port configuration file; wherein the plurality of second keywords are determined based on directory information and annotation information in the serial port configuration file; to perform vector representation on the first keyword to obtain a first vector representation of the first keyword, and to perform vector representation on the plurality of second keywords to obtain second vector representations corresponding to the plurality of second keywords respectively; to determine the similarity between the first vector representation and the plurality of second vector representations respectively; and to find a macro switch that matches the serial port printing function based on each similarity.
[0105] In one exemplary embodiment, the apparatus further includes a determining module, configured to, in response to a reset command, read a boot identifier from the reset register of the target device based on the reset command; determine that the boot type is a warm boot type if the boot identifier is a warm boot identifier; and determine that the boot type is a cold boot type if the boot identifier is a cold boot identifier.
[0106] For a description of the features in the embodiment corresponding to the hot start device of the target device, please refer to the relevant description of the embodiment corresponding to the hot start method of the target device. For a description of the features in the embodiment corresponding to the start device of the device, please refer to the relevant description of the embodiment corresponding to the start method of the device. They will not be repeated here.
[0107] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above-described hot-start method embodiments of the target device.
[0108] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described embodiments of the hot-start method for the target device when it is run.
[0109] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0110] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above-described hot-start method embodiments for the target device.
[0111] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above-described hot-start method embodiments for the target device.
[0112] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0113] The above provides a detailed description of a hot-start method for a target device provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only intended to help understand the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A hot-start method for a target device, characterized in that, include: If the boot type of the target device is a warm boot type, obtain the instant restart strategy pre-set for the warm boot type; wherein, the instant restart strategy is used to shorten the restart time of the target device belonging to the warm boot type; Obtain policy judgment information corresponding to the instant restart policy from the device information of the target device; wherein, the policy judgment information is used to determine whether the target device is suitable for hot start; If it is determined that the policy judgment information corresponding to the instant restart policy is applicable to the hot start, the target device is controlled to perform a hot start according to the instant restart policy.
2. The method according to claim 1, characterized in that, The strategy determination information includes: hardware configuration parameters corresponding to the instant restart strategy; controlling the target device to perform a warm boot according to the instant restart strategy includes: Determine whether a target configuration parameter exists among the hardware configuration parameters; wherein, the target configuration parameter refers to a hardware configuration parameter whose hardware parameter value changes. If the target configuration parameter is not present in the hardware configuration parameters, a first information multiplexing instruction carrying a hot start identifier is sent to the baseboard management controller to instruct the baseboard management controller to retrieve the stored hardware parameter value of the hardware configuration parameter from the baseboard management controller's memory when the hot start identifier carried by the first information multiplexing instruction is extracted, and to display the hardware parameter value of the hardware configuration parameter on the display interface of the baseboard management controller.
3. The method according to claim 2, characterized in that, Determining whether the target configuration parameter exists among the hardware configuration parameters includes: A query command is sent to the baseboard management controller; wherein the query command carries the parameter identifier of the hardware configuration parameters; The system receives a feedback instruction from the substrate management controller; wherein the feedback instruction carries a parameter status identifier; wherein the feedback instruction is generated by the substrate management controller after receiving the query instruction, based on the parameter identifier in the query instruction, and querying the parameter identifier bit corresponding to the parameter identifier in the substrate management controller's memory; If a target status identifier exists in the parameter status identifiers, it is determined that a target configuration parameter exists in the hardware configuration parameters.
4. The method according to claim 2, characterized in that, After determining whether the target configuration parameter exists among the hardware configuration parameters, the method further includes: If the target configuration parameter exists in the hardware configuration parameters, access the target hardware device of the target device and obtain the current hardware parameter value of the target configuration parameter fed back by the target hardware device; A second information multiplexing instruction is generated based on the current hardware parameter value of the target configuration parameter, and the second information multiplexing instruction is sent to the baseboard management controller to instruct the baseboard management controller to retrieve the hardware parameter values of the hardware configuration parameters other than the target configuration parameter from the baseboard management controller's memory, and to display the current hardware parameter value and the hardware parameter values of the hardware configuration parameters other than the target configuration parameter in the second information multiplexing instruction on the display interface of the baseboard management controller.
5. The method according to claim 1, characterized in that, The strategy judgment information further includes: the status parameters of the target device corresponding to the instant restart strategy, wherein the status parameter values include: historical status parameter values and current status parameter values; controlling the target device to perform a hot restart according to the instant restart strategy includes: The historical state parameter values and the current state parameter values are compared to obtain a comparison result. If the comparison result shows that the historical state parameter and the current state parameter are consistent, the test item corresponding to the state parameter is determined and the test item is turned off.
6. The method according to claim 1, characterized in that, The strategy judgment information further includes: fault parameters of the target device corresponding to the instant restart strategy; controlling the target device to perform a warm restart according to the instant restart strategy includes: If the fault parameters indicate that the target device is not malfunctioning, disable the serial port printing function of the target device.
7. The method according to claim 6, characterized in that, Disabling the serial port printing function of the target device includes: Determine the serial port configuration file for the serial port printing function; Locate the macro switch in the serial port configuration file that matches the serial port printing function; wherein, the macro switch is a function set in the serial port configuration file to control the start and stop of the serial port printing function; Update the switch bit of the macro switch to disable the serial port printing function of the target device.
8. The method according to claim 7, characterized in that, The step of searching for a macro switch in the serial port configuration file that matches the serial port printing function includes: The first keyword of the macro switch and a plurality of second keywords of the serial port configuration file are determined; wherein the plurality of second keywords are determined based on the directory information and annotation information in the serial port configuration file; The first keyword is represented by a vector to obtain a first vector representation of the first keyword, and the plurality of second keywords are represented by vectors to obtain second vector representations corresponding to the plurality of second keywords respectively; Determine the similarity between the first vector representation and each of the multiple second vector representations; Based on the aforementioned similarity, a macro switch matching the serial port printing function is found.
9. The method according to claim 1, characterized in that, Before obtaining the pre-set instant restart strategy for the hot boot type when the target device's boot type is a warm boot type, the method further includes: In response to a reset command, a boot flag is read from the reset register of the target device based on the reset command; If the startup identifier is a warm startup identifier, it is determined that the startup type belongs to the warm startup type. If the startup identifier is a cold start identifier, it is determined that the startup type belongs to the cold start type.
10. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the hot-start method for the target device as claimed in any one of claims 1 to 9 when executing the computer program.
Citation Information
Patent Citations
Server starting method and device, electronic equipment and storage medium
CN116339838A
Server starting process control method and system, terminal and storage medium
CN117130672A
Memory startup processing method and device
CN117827294A
Method for starting network communication apparatus and device thereof
CN1949773A
Electronic equipment, control method for electronic equipment, program for control method for electronic equipment, and recording medium recording program for control method for electronic equipment
JP2007133621A
Cited By
Multi-BIOS (Basic Input / Output System) starting switching method and equipment, storage medium and computer program product
CN121433987A