BIOS (Basic Input Output System), computer and system starting optimization method based on self-adaptive strategy and intelligent scheduling

By introducing adaptive policies and intelligent scheduling technology into the BIOS, dynamically adjusting the hardware resource allocation and startup paths, the problem that existing BIOS cannot adapt to different hardware environments and load conditions is solved, and faster system startup speed and higher resource utilization are achieved.

CN120066743AActive Publication Date: 2025-05-30SHANGHAI XINLIJI SEMICON CO LTD

Patent Information

Application Number
CN202510541255.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-28
Publication Date
2025-05-30
Estimated Expiration
2045-04-28

AI Technical Summary

Technical Problem

The existing BIOS startup process cannot adapt to different hardware environments and load conditions, resulting in slow system startup speed and low resource utilization.

Method used

Using a BIOS based on adaptive strategies and intelligent scheduling, hardware configuration information is obtained through the hardware detection module, the startup process manager determines the initial startup process, the resource monitoring module monitors the current startup data in real time, and the intelligent scheduling engine optimizes the startup process based on the current and historical data, and dynamically adjusts the resource allocation and startup path.

Benefits of technology

It improves the system startup speed and resource utilization, can adapt to different hardware environments and load conditions, optimize task scheduling and resource allocation, and improves overall response capabilities and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066743A_ABST
    Figure CN120066743A_ABST
Patent Text Reader

Abstract

The invention discloses a BIOS (Basic Input Output System) based on an adaptive strategy and intelligent scheduling, a computer and a system startup optimization method. The BIOS comprises a hardware detection module, a startup process manager, a resource monitoring module and an intelligent scheduling engine, the hardware detection module obtains configuration information of hardware; the startup process manager determines and executes a first BIOS startup process according to the configuration information of the hardware, wherein the first BIOS startup process comprises system resource allocation and startup paths for each piece of hardware; the resource monitoring module obtains current starting data and transmits the current starting data to the intelligent scheduling engine, wherein the current starting data comprises system load, memory occupation, storage bandwidth and I / O operation speed; the intelligent scheduling engine optimizes the first BIOS starting process according to the current starting data and the historical starting data to obtain a second BIOS starting process; and the startup process manager executes the second BIOS startup process. The starting speed of the computer system can be increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer science and technology, and in particular, to a BIOS, a computer, and a system startup optimization method based on an adaptive strategy and intelligent scheduling. Background Art

[0002] The fields of computer system architecture, operating system, and hardware acceleration are the core fields of computer science, involving the interaction between computer hardware, software, and operating systems. In a computer system, the Basic Input Output System (BIOS) is the first piece of software when the computer starts up, responsible for initializing hardware devices and loading the operating system. With the development of computer hardware, the complexity and speed requirements of computer systems are getting higher and higher. How to optimize the startup process of the BIOS and improve the system startup speed and resource utilization has become an important issue.

[0003] In the existing technologies, the startup process of the BIOS is usually fixed, that is, initializing hardware devices and loading the operating system in a preset order. Although this method is simple, it cannot adapt to different hardware environments and load conditions, resulting in a slower system startup speed and lower resource utilization in complex hardware environments. Specifically, the existing BIOS startup process has at least the following deficiencies: (1) It cannot adapt to different hardware environments and load conditions, resulting in a slower system startup speed and lower resource utilization in complex hardware environments; (2) In some advanced computer systems, although intelligent scheduling technologies have been introduced, the existing intelligent scheduling technologies are usually based on simple rules and experiences, lacking the ability of self-learning and optimization, and it is difficult to adapt to the changes in the hardware environment and the dynamic changes in the system load; (3) Especially when dealing with the execution order and resource allocation of multiple tasks, given that the existing intelligent scheduling technologies rely on fixed rules and lack flexibility, they cannot make full use of the advantages of multi-core processors and high-speed storage devices.

[0004] The disclosure of the above background art content is only used to assist in understanding the inventive concept and technical solution of the present invention. It does not necessarily belong to the prior art of this application, nor will it necessarily provide technical guidance; in the case where there is no clear evidence indicating that the above content has been publicly disclosed before the filing date of this application, the above background art should not be used to evaluate the novelty and inventiveness of this application. Summary of the Invention

[0005] The object of the present invention is to provide a BIOS, a computer, and a system startup optimization method based on an adaptive strategy and intelligent scheduling, which can improve the startup speed and resource utilization of a computer system.

[0006] To achieve the above object, the technical solution adopted by the present invention is as follows: A BIOS based on an adaptive strategy and intelligent scheduling, comprising a hardware detection module, a startup process manager, a resource monitoring module, and an intelligent scheduling engine; Wherein, the hardware detection module is configured to obtain the configuration information of the hardware and transmit it to the startup process manager; The startup process manager is configured to determine and execute a first BIOS startup process according to the configuration information of the hardware, and the first BIOS startup process includes system resource allocation and startup paths for each hardware; The resource monitoring module is configured to obtain current startup data and transmit it to the intelligent scheduling engine, and the current startup data includes system load, memory occupancy, storage bandwidth, and I / O operation speed during the current startup process; The intelligent scheduling engine is configured to optimize the first BIOS startup process according to the current startup data and historical startup data to obtain a second BIOS startup process, and the second BIOS startup process has system resource allocation and / or startup paths different from those of the first BIOS startup process; the historical startup data includes system load, memory occupancy, storage bandwidth, and I / O operation speed during the previous startup process; The startup process manager is further configured to execute the second BIOS startup process.

[0007] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, it further includes a hardware configuration pre-storage module, and the hardware configuration pre-storage module is configured to store the configuration information of the first hardware after the previous BIOS startup is completed, and the first hardware is part of the hardware; During the BIOS startup process, the hardware detection module is configured to obtain the configuration information of other hardware except the first hardware and transmit it to the startup process manager, and the startup process manager is further configured to directly obtain the configuration information of the first hardware through the hardware configuration pre-storage module.

[0008] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the first hardware satisfies at least one of the following conditions: During the BIOS startup process, the priority of starting the first hardware is higher than the priority of starting other hardware; During the BIOS startup process, the system resources required by the hardware detection module to obtain the configuration information of the first hardware are greater than a preset system resource threshold; During the BIOS startup process, the duration required by the hardware detection module to obtain the configuration information of the first hardware is greater than a preset duration threshold.

[0009] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the intelligent scheduling engine is configured to optimize the first BIOS startup process in the following manner: Determine a first BIOS startup comprehensive index according to the current startup data; If the first BIOS startup comprehensive index does not meet the preset conditions, optimize the first BIOS startup process to obtain an optimized BIOS startup process, and predict the BIOS startup comprehensive index of the optimized BIOS startup process according to historical startup data; Determine whether the BIOS startup comprehensive index of the optimized BIOS startup process meets the preset conditions. If not, continue to optimize the first BIOS startup process until the BIOS startup comprehensive index of the optimized BIOS startup process meets the preset conditions.

[0010] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the intelligent scheduling engine is configured to optimize the first BIOS startup process in the following manner: Predict the subsequent startup data in the first BIOS startup process according to the current startup data and the historical startup data; Determine a second BIOS startup comprehensive index according to the subsequent startup data; If the second BIOS startup comprehensive index does not meet the preset conditions, optimize the first BIOS startup process to obtain an optimized BIOS startup process, and predict the BIOS startup comprehensive index of the optimized BIOS startup process according to historical startup data; Determine whether the BIOS startup comprehensive index of the optimized BIOS startup process meets the preset conditions. If not, continue to optimize the first BIOS startup process until the BIOS startup comprehensive index of the optimized BIOS startup process meets the preset conditions.

[0011] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the intelligent scheduling engine is configured to optimize the first BIOS startup process in the following manner: Adjust the system resource allocation and / or startup path in the first BIOS startup process according to the current startup data and historical startup data to obtain multiple optimized BIOS startup processes; Predict the required duration of each optimized BIOS startup process respectively; Determine the optimized BIOS startup process with the minimum required duration as the second BIOS startup process.

[0012] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the intelligent scheduling engine is configured to optimize the first BIOS startup process in the following manner: Adjust the system resource allocation and / or startup path in the first BIOS startup process according to the current startup data and historical startup data to obtain multiple optimized BIOS startup processes; Predict the required duration and the total number of task suspensions and failures for each optimized BIOS startup process respectively; Determine one of the multiple optimized BIOS startup processes as the second BIOS startup process according to the required duration and the total number of task suspensions and failures.

[0013] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the intelligent scheduling engine optimizes the first BIOS startup process according to the current startup data and historical startup data to obtain the second BIOS startup process, including dynamically adjusting the system resource allocation policy and / or dynamically adjusting the startup path.

[0014] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the dynamic adjustment of the system resource allocation policy includes: If the system load is greater than a preset first load threshold, then for the first BIOS startup process, reduce the system resource allocation for low-priority tasks among the tasks executed in parallel therein; If the system load is less than a preset second load threshold, then for the first BIOS startup process, increase the system resource allocation for low-priority tasks among the tasks executed in parallel therein; Combine the historical startup data and use an AI algorithm to predict whether the system load in the BIOS startup process after adjusting the system resource allocation is not less than the second load threshold and not greater than the first load threshold. If so, use the BIOS startup process after adjusting the system resource allocation as the second BIOS startup process; Otherwise, adjust the system resource allocation again until the system load in the BIOS startup process after adjusting the system resource allocation is not less than the second load threshold and not greater than the first load threshold.

[0015] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the dynamic adjustment of the startup path includes: If the system load is higher than a preset first load threshold, for the first BIOS startup process, the startup order of low-priority tasks is postponed. Specifically, the startup of low-priority tasks among tasks executed in parallel can be postponed, or the startup order of other low-priority tasks can be postponed based on the dependency relationship. In this application, low-priority tasks and high-priority tasks can be determined based on a preset task priority level, or can be determined by an intelligent scheduling engine based on an AI algorithm; If the system load is lower than a preset second load threshold, for the first BIOS startup process, the startup order of low-priority tasks is advanced; Combined with historical startup data, use the AI algorithm to predict whether the system load in the BIOS startup process after adjusting the startup path is not less than the second load threshold and not greater than the first load threshold. If so, use the BIOS startup process after adjusting the startup path as the second BIOS startup process; Otherwise, adjust the startup path again until the system load in the BIOS startup process after adjusting the startup path is not less than the second load threshold and not greater than the first load threshold.

[0016] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the system resource allocation includes memory address space allocation, I / O port allocation, interrupt vector allocation, and device detection and initialization; Optimizing the first BIOS startup process to obtain a second BIOS startup process includes dynamically adjusting one or more of memory address space allocation, I / O port allocation, interrupt vector allocation, and device detection and initialization.

[0017] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, during the execution of the second BIOS startup process by the startup process manager, the following steps are further included: The resource monitoring module obtains the current startup data again and transmits it to the intelligent scheduling engine; The intelligent scheduling engine optimizes the second BIOS startup process again according to the current startup data and historical startup data to obtain a third BIOS startup process, and the third BIOS startup process has a system resource allocation and / or startup path different from that of the second BIOS startup process; The startup process manager executes the third BIOS startup process.

[0018] According to another aspect of the present invention, a computer is provided, including the BIOS based on an adaptive strategy and intelligent scheduling as described in any one of the foregoing technical solutions or a combination of multiple technical solutions.

[0019] According to another aspect of the present invention, there is provided a method for optimizing the startup of a computer system, comprising the following steps: Obtain the configuration information of the hardware of the computer system, and determine the first BIOS startup process according to the configuration information of the hardware. The first BIOS startup process includes system resource allocation and startup paths for each piece of hardware; Execute the first BIOS startup process and obtain the current startup data during the execution process. The current startup data includes system load, memory occupancy, storage bandwidth, and I / O operation speed; Optimize the first BIOS startup process according to the current startup data and historical startup data to obtain a second BIOS startup process. The second BIOS startup process has system resource allocation and / or startup paths different from those of the first BIOS startup process; Execute the second BIOS startup process.

[0020] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the method further includes the following steps: After the last system startup is completed, store the configuration information of the first hardware in the cache. The first hardware is a part of the hardware; During the current system startup process, directly obtain the configuration information of the first hardware from the cache.

[0021] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the first BIOS startup process is optimized in the following manner: Adjust the system resource allocation and / or startup paths in the first BIOS startup process according to the current startup data and historical startup data to obtain multiple optimized BIOS startup processes; Predict the required duration of each optimized BIOS startup process respectively; Determine the optimized BIOS startup process with the minimum required duration as the second BIOS startup process.

[0022] The beneficial effects brought by the technical solutions provided by the present invention are as follows: a. The BIOS based on the adaptive strategy and intelligent scheduling provided by the present invention initially determines the system resource allocation and startup paths through the startup process manager to obtain the first BIOS startup process, monitors the current startup data during the execution of the first BIOS startup process by the resource monitoring module, and dynamically adjusts the system resource allocation and startup paths of the BIOS by the intelligent scheduling engine, enabling the startup process to adapt to different hardware environments and improving the compatibility and adaptability of the system; b. The intelligent scheduling engine of the present invention is based on deep learning algorithms, combines historical startup data and real-time hardware status data, i.e., current startup data, and optimizes task scheduling and system resource allocation by continuously analyzing the data during the startup process, automatically adjusts the task execution order, and decides whether tasks are executed in parallel or sequentially. This intelligent, dynamic, and adaptive adjustment of the startup process not only improves the efficiency and accuracy of task scheduling but also avoids resource bottlenecks and waiting times during the startup process, enhancing the overall response ability of the system and the user experience. c. After the previous system startup is completed, the present invention determines some hardware as the first hardware and preloads the configuration information of the first hardware into the hardware configuration pre-storage module. During the next system startup, the BIOS can directly read the data in the hardware configuration pre-storage module, accelerating the hardware identification and initialization speed. Without the time required for the hardware detection module to read data from the storage device and then transfer it to the startup process manager, the system startup speed can be further improved. d. The present invention provides various methods for the intelligent scheduling engine to optimize the first BIOS startup process, making the BIOS provided in this application adaptable, intelligent, flexible, and highly efficient, significantly superior to the prior art, capable of better meeting the complexity and speed requirements of modern computer systems, improving the system startup speed and resource utilization rate, and also enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0024] Figure 1 Schematic diagram of the working principle of the first BIOS provided for an exemplary embodiment of the present invention; Figure 2 Schematic diagram of the working principle of the second BIOS provided for an exemplary embodiment of the present invention; Figure 3 Schematic diagram of the working principle of the startup process manager provided for an exemplary embodiment of the present invention; Figure 4 Schematic diagram of the working principle of the intelligent scheduling engine provided for an exemplary embodiment of the present invention; Figure 5 Flowchart of the startup process manager initially determining the startup path based on hardware information for an exemplary embodiment of the present invention; Figure 6Interaction diagram of the resource monitoring module and the intelligent scheduling engine provided for an exemplary embodiment of the present invention; Figure 7 Flowchart of startup path decision-making and dynamic adjustment provided for an exemplary embodiment of the present invention; Figure 8 Sequence diagram of real-time monitoring and dynamic adjustment of the startup process provided for an exemplary embodiment of the present invention; Figure 9 For Figure 2 Workflow diagram of the second BIOS shown. Detailed implementation manners

[0025] In order to enable those skilled in the art of the present technology to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or equipment.

[0027] In view of the fact that the existing BIOS startup optimization technologies are stretched when facing the complexity and higher speed requirements of modern computer systems, the present application proposes a BIOS based on adaptive strategies and intelligent scheduling, which can improve the startup speed of computer systems and the resource utilization rate during the startup process of computer systems.

[0028] In an embodiment of the present invention, a BIOS based on adaptive strategies and intelligent scheduling is provided. Refer to Figure 1 , the BIOS includes a hardware detection module, a startup process manager, a resource monitoring module, and an intelligent scheduling engine; Among them, the hardware detection module is configured to obtain the configuration information of the hardware and transmit it to the startup process manager (BSPM); The startup process manager is configured to determine and execute a first BIOS startup process according to the configuration information of the hardware, and the first BIOS startup process includes system resource allocation and startup paths for each piece of hardware; The resource monitoring module is configured to obtain current startup data and transmit it to the intelligent scheduling engine, and the current startup data includes system load, memory occupancy, storage bandwidth, and I / O operation speed during the current startup process; The intelligent scheduling engine is configured to optimize the first BIOS startup process according to the current startup data and historical startup data to obtain a second BIOS startup process, and the second BIOS startup process has system resource allocation and / or startup paths different from those of the first BIOS startup process; The startup process manager is further configured to execute the second BIOS startup process.

[0029] As Figure 1 、 Figure 2 、 Figure 5 and Figure 6 described, the hardware detection module scans the hardware to identify configuration information such as the CPU model, number of cores, storage device type, memory parameters, and hardware adaptability results of the computer system, and interacts with the startup process manager to provide the configuration information of the hardware to the startup process manager.

[0030] As Figures 1 to 3 and Figure 5 shown, the startup process manager then determines the system resource allocation and startup paths for BIOS loading according to the configuration information of the hardware, and thus determines the first BIOS startup process. The main responsibility of the startup process manager (BSPM) is to manage and coordinate the initial allocation of hardware and software resources during the startup process. It decides the basic startup path of the system and the amount of system resource allocation according to the hardware configuration information provided by the hardware detection module.

[0031] Specifically, the startup process manager will make resource scheduling arrangements during startup based on the initial state of the hardware (such as whether it is multi-core, memory size, etc.), such as processing corresponding tasks in parallel or sequentially executing corresponding tasks. The startup process manager is one of the decision-making engines during system startup, responsible for deciding which tasks to execute during startup and the order of execution. It can make some preliminary judgments on hardware configuration, such as allocating memory addresses, I / O ports, and device detection.

[0032] The allocation of system resources during the BIOS startup process is mainly reflected in the initialization and configuration of the following four aspects of hardware devices: (1) Memory address space allocation: The BIOS allocates memory address space for hardware devices (such as PCIe devices) for data exchange between the devices and the system; (2) I / O port allocation: The BIOS allocates I / O ports for the devices so that the operating system can communicate with the devices through these ports; (3) Interrupt vector allocation: The BIOS allocates interrupt vectors for the devices to manage signal transmission between the devices and the CPU; (4) Device detection and initialization: The BIOS detects the hardware devices in the system at startup and initializes them to ensure that the devices can work properly.

[0033] The startup process manager mainly makes an initial plan for the startup path according to the dependencies between tasks, the priorities of tasks, and the number of cores during the startup process to obtain the startup path in the first BIOS startup process.

[0034] It should be noted that in this application, the startup path and the task scheduling order are two different concepts. The startup path refers to the logical process or path of task execution during startup. The startup path usually refers to the execution order and method of each task during the entire system startup process. It involves multiple stages such as hardware initialization, driver loading, and operating system booting. The startup path is a large framework describing the entire startup process, defining the execution steps and processes of tasks. For example: Startup path E may first initialize the hard disk, then load the operating system kernel, and then load peripheral drivers. Startup path F may first perform hardware detection, and then load the operating system and hard disk drivers in parallel, etc. The task scheduling order refers to the order and priority of specific task execution during startup. The task scheduling order involves how to arrange tasks to execute in the startup path, including which tasks can be executed in parallel and which tasks can be postponed.

[0035] Such as Figure 1 and Figure 6 As shown, the resource monitoring module is responsible for continuously monitoring the real-time usage of resources during startup, including current startup data such as CPU load, memory occupancy, storage bandwidth, and I / O operation speed. The resource monitoring module collects resource usage data through interaction with the hardware layer interface for subsequent dynamic adjustment of BIOS resource allocation and startup path optimization. Figure 1 and Figure 2 The solid lines in Figure 1 and Figure 2 represent the process of initially determining system resource allocation and startup path,

[0036] Specifically, during the BIOS startup process, the resource monitoring module will continuously acquire and record data such as CPU load, memory occupancy, storage bandwidth, and I / O operation speed. These monitoring data can reflect the current resource usage of the system, and are used to determine whether the first BIOS startup process is reasonable and can be further optimized. For example, when the system starts up, if the CPU load is very high, it may mean that the system is processing a large number of computing tasks. At this time, it is necessary to adjust the execution order of tasks to avoid resource contention caused by excessive parallel tasks. If the memory occupancy is relatively high, the system may need to postpone or adjust the execution order of some tasks to avoid overloading the memory during the startup process. Monitoring of storage bandwidth and I / O operation speed can help the system identify which devices or tasks need to be processed first during startup to optimize the resource scheduling of the hard disk, memory, and CPU.

[0037] For example, the resource monitoring module obtains a CPU load of 30%, a memory occupancy of 50%, a storage bandwidth of 100 MB / s, and 1000 I / O operations per second. It transmits the above acquired resource usage data to the intelligent scheduling engine (AI engine) in real time, so that the intelligent scheduling engine can adjust the priority, execution order of tasks, and the amount of system resource allocation for each task according to the load situation.

[0038] Such as Figure 1 、 Figure 4 、 Figure 6 and Figure 7 As shown in

[0039] Such as Figure 9As shown, the continuous optimization of the system startup process is reflected in not only optimizing the first BIOS startup process, but also including optimizing the second BIOS startup process during the execution of the second BIOS startup process by the startup process manager. Specifically, during the execution of the second BIOS startup process, the resource monitoring module obtains the current startup data again and transmits it to the intelligent scheduling engine. The intelligent scheduling engine optimizes the second BIOS startup process again according to the current startup data and historical startup data to obtain a third BIOS startup process, and the third BIOS startup process has a system resource allocation and / or startup path different from that of the second BIOS startup process; the startup process manager executes the third BIOS startup process.

[0040] When optimizing the first BIOS startup process, Figure 9 the current BIOS startup process in [description] is the first BIOS startup process, and the optimized BIOS startup process is the second BIOS startup process. When optimizing the second BIOS startup process, Figure 9 the current BIOS startup process in [description] is the second BIOS startup process, and the optimized BIOS startup process is the third BIOS startup process. Similarly, during the third BIOS startup process, the third BIOS startup process is optimized according to the above method, so as to optimize the system startup process in real time and dynamically to improve the system startup efficiency and resource utilization rate as much as possible.

[0041] The key function of the intelligent scheduling engine is to dynamically analyze and optimize the startup process. It will perform time series analysis based on real-time monitoring data (such as CPU load, memory occupancy, etc.), predict the priority and dependency relationship of tasks, and adaptively adjust the tasks during the startup process. For example, if it detects a high CPU load, the AI engine can postpone the execution of low-priority tasks and give priority to key tasks. Its role is more of "late-stage" optimization, that is, during the startup process, continuously adjust and improve the startup strategy to ensure that tasks are executed in the best order and flexibly adapt to the load changes of the system.

[0042] For example, in a multi-core processor environment, the intelligent scheduling engine can load multiple hardware drivers in parallel, while on a single-core system, it will give priority to executing the most important tasks (such as storage device initialization). For example, when the system load is high, the scheduling engine will postpone some low-priority tasks (such as network driver initialization) and give priority to executing key tasks (such as disk reading, operating system loading, etc.).

[0043] The AI engine in this application is designed to be adaptable to multiple devices, so it is not necessarily one-to-one corresponding to a certain device. In practical applications, the AI engine can optimize according to the historical data of different hardware configurations through adaptive learning and optimization algorithms, so as to adapt to the startup requirements of different devices.

[0044] In a multi-device environment, the AI engine will adjust the startup strategy through learning and optimization according to the hardware configuration, resource utilization rate and task characteristics during startup of each device. Even if multiple devices use the same AI engine, the AI engine can dynamically adjust the task execution order and resource allocation according to the specific conditions of the device (such as CPU model, memory configuration, storage device, etc.).

[0045] Specifically, the AI engine will record the startup data under different hardware configurations, and then automatically optimize the startup path and task scheduling according to the historical data. For example, the same AI engine can be applied to different devices, but for each device, according to the device's own hardware configuration and historical startup data, the AI engine will select the most suitable startup strategy for it.

[0046] There are multiple ideas and methods for the intelligent scheduling engine to optimize the first BIOS startup process, which are described separately below.

[0047] The first method is as follows. Determine the first BIOS startup comprehensive index according to the current startup data. The first BIOS startup comprehensive index is a comprehensive evaluation index of the current startup process, which is related to the current startup data. For example, the BIOS startup comprehensive index can be calculated by the following formula: x =A*a + B*b + C*c + D*d, where, x is the BIOS startup comprehensive index, a is the CPU load, A is the CPU load ratio, b is the memory occupancy, B is the memory occupancy ratio, c is the storage bandwidth, C is the storage bandwidth ratio, d is the I / O operation speed, D is the I / O operation speed ratio. Or, the BIOS startup comprehensive index can be calculated by the following formula: .

[0048] If the first BIOS startup comprehensive index does not meet the preset conditions, then optimize the first BIOS startup process to obtain the optimized BIOS startup process. There are multiple ways to judge that the first BIOS startup comprehensive index does not meet the preset conditions. For example, the larger the first BIOS startup comprehensive index, the better. If the first BIOS startup comprehensive index is lower than the preset index threshold, then the first BIOS startup comprehensive index does not meet the preset conditions.

[0049] Predict the BIOS startup comprehensive index of the optimized BIOS startup process based on historical startup data; determine whether the BIOS startup comprehensive index of the optimized BIOS startup process meets the preset conditions, and if not, continue to optimize the first BIOS startup process until the BIOS startup comprehensive index of the optimized BIOS startup process meets the preset conditions.

[0050] The second method is to use the intelligent scheduling engine to predict and optimize the first BIOS startup process in advance. According to the current startup data and the historical startup data, predict the subsequent startup data in the first BIOS startup process. Determine the second BIOS startup comprehensive index according to the subsequent startup data. If the second BIOS startup comprehensive index does not meet the preset conditions, optimize the first BIOS startup process to obtain an optimized BIOS startup process, and predict the BIOS startup comprehensive index of the optimized BIOS startup process based on historical startup data. Determine whether the BIOS startup comprehensive index of the optimized BIOS startup process meets the preset conditions, and if not, continue to optimize the first BIOS startup process until the BIOS startup comprehensive index of the optimized BIOS startup process meets the preset conditions.

[0051] The above second method and the first method can be combined and used as the third method.

[0052] The fourth method is as follows. The intelligent scheduling engine adjusts the system resource allocation and / or startup path in the first BIOS startup process according to the current startup data and historical startup data to obtain multiple optimized BIOS startup processes; predict the required duration of each optimized BIOS startup process respectively; determine the optimized BIOS startup process with the shortest required duration as the second BIOS startup process.

[0053] The startup time is usually the most important indicator to evaluate the efficiency of the startup process. A shorter startup time means that the system can enter the working state faster, improving the user experience. Therefore, the intelligent scheduling engine evaluates which method is more efficient by comparing the time consumption of different startup processes.

[0054] The fifth method is a further improvement of the above fourth method. The intelligent scheduling engine adjusts the system resource allocation and / or startup path in the first BIOS startup process according to the current startup data and historical startup data to obtain multiple optimized BIOS startup processes. Predict the required duration, resource utilization rate, and the total number of task suspensions and failures of each optimized BIOS startup process respectively. Determine one of the multiple optimized BIOS startup processes as the second BIOS startup process according to the required duration, resource utilization rate, and the total number of task suspensions and failures.

[0055] The intelligent scheduling engine analyzes the usage of system resources under different startup process scenarios, such as CPU load, memory occupancy, storage bandwidth, etc. The optimized startup process should be able to reasonably utilize system resources while ensuring startup efficiency, avoiding resource waste or excessive competition.

[0056] In addition to startup time and resource utilization rate, the intelligent scheduling engine also considers the system stability during startup, including whether there are task suspensions or failures, hardware or driver loading errors, etc. These factors affect the overall experience of the system and are therefore key criteria for evaluating the quality of startup methods.

[0057] Different from evaluating and judging the quality of the startup process through the comprehensive indicators of the BIOS startup process provided by the above five methods, the sixth method is to separately evaluate multiple indicators in the startup process and optimize the first BIOS startup process based on their respective evaluation results.

[0058] The sixth method includes that the intelligent scheduling engine optimizes the first BIOS startup process according to the current startup data and historical startup data to obtain a second BIOS startup process, including dynamically adjusting the system resource allocation strategy and / or dynamically adjusting the startup path, including: If the system load is greater than a preset first load threshold, then for the first BIOS startup process, reduce the system resource allocation for low-priority tasks among the tasks executed in parallel therein; If the system load is less than a preset second load threshold, then for the first BIOS startup process, increase the system resource allocation for low-priority tasks among the tasks executed in parallel therein; Combined with historical startup data, use an AI algorithm to predict whether the system load in the BIOS startup process after adjusting the system resource allocation is not less than the second load threshold and not greater than the first load threshold. If so, use the BIOS startup process after adjusting the system resource allocation as the second BIOS startup process; otherwise, adjust the system resource allocation again until the system load in the BIOS startup process after adjusting the system resource allocation is not less than the second load threshold and not greater than the first load threshold.

[0059] The dynamic adjustment of the startup path is as Figure 8 shown, and also includes: If the system load is higher than a preset first load threshold, then for the first BIOS startup process, postpone the startup order of low-priority tasks among the tasks executed in parallel therein; If the system load is lower than a preset second load threshold, then for the first BIOS startup process, advance the startup order of low-priority tasks among the tasks executed in parallel therein; Use the AI algorithm in combination with historical startup data to predict whether the system load in the BIOS startup process after adjusting the startup path is not less than the second load threshold and not greater than the first load threshold. If so, use the BIOS startup process after adjusting the startup path as the second BIOS startup process; otherwise, adjust the startup path again until the system load in the BIOS startup process after adjusting the startup path is not less than the second load threshold and not greater than the first load threshold.

[0060] When the system load is high (e.g., the CPU load is too high), the scheduling engine will postpone the execution of low-priority tasks. This is to reduce resource contention and ensure that critical tasks can be executed smoothly without being blocked by low-priority tasks. For example, if the system is running under high load, high-priority tasks such as the loading of the operating system and the initialization of storage devices will be given priority, while low-priority tasks such as network adapter driver or peripheral initialization may be postponed until the system load decreases. Since the CPU processes tasks in parallel, the CPU may handle tasks such as the loading of the operating system and the initialization of storage devices simultaneously. When the load is relatively high, we need to postpone the processing of low-priority tasks until the current tasks are completed to avoid excessive CPU load and process congestion caused by simultaneous execution.

[0061] In the case of low load, with sufficient system resources, the scheduling engine will accelerate the execution of low-priority tasks to improve the overall startup efficiency. At this time, low-priority tasks no longer occupy excessive resources, so they can be executed in parallel or as soon as possible to make full use of system resources. For example, when the system load is low, low-priority tasks such as network adapter initialization and the loading of external device driver programs can be given priority and do not need to be postponed.

[0062] Different from the existing BIOS which is based on preset configurations and fixed startup sequences and cannot adapt to different hardware environments and load conditions, resulting in slower system startup speed and lower resource utilization in complex hardware environments. In the present invention, most of the tasks in the BIOS are pre-configured, but only a preliminary preset. For example, hardware initialization, memory allocation, I / O port allocation, driver loading, etc., these are all fixed tasks that constitute the basic processes that must be executed during the BIOS startup process. During the system startup process, the execution order and resource allocation of tasks will be dynamically adjusted to optimize the startup process.

[0063] For example, a more reasonable dynamic priority adjustment of tasks and system resource allocation is achieved through an intelligent scheduling engine (AI engine). According to the system load and hardware status, the intelligent scheduling engine will adjust the execution order, priority, and system resource configuration of tasks based on real-time resource monitoring data at each startup. This enables the adjustment of priorities not only limited to pre-configuration but also optimized according to the actual situation.

[0064] For example, when the hardware changes, if the hardware configuration changes (such as replacing the CPU, memory, hard disk, etc.), or the system configuration changes in some aspects (such as adding a new hardware device), then the execution order of tasks and resource allocation may change. The technical solution provided by this application can also quickly and efficiently provide a more efficient and reasonable startup plan for the system after the hardware changes, and automatically select the best startup method.

[0065] The BIOS based on the adaptive strategy and intelligent scheduling provided in this embodiment, at each startup, the BIOS will automatically select the best startup method according to the previous learning results. Through the above steps, the BIOS provided in this embodiment has the ability of self-learning and optimization, can automatically adapt to different hardware environments and load conditions, and flexibly handle the execution order of multiple tasks and resource allocation, thereby improving the system startup efficiency and the utilization rate of system resources.

[0066] In an embodiment of the present invention, the BIOS based on the adaptive strategy and intelligent scheduling further includes a hardware configuration pre-storage module, and the hardware configuration pre-storage module is a cache, which is configured to store the configuration information of the first hardware after the previous BIOS startup is completed. During the current BIOS startup process, the hardware detection module is configured to obtain the configuration information of other hardware except the first hardware and transmit it to the startup process manager, and the startup process manager is also configured to directly obtain the configuration information of the first hardware from the hardware configuration pre-storage module.

[0067] Wherein, the first hardware is part of the hardware, and the first hardware satisfies at least one of the following conditions: During the BIOS startup process, the startup priority of the first hardware is higher than that of other hardware; During the BIOS startup process, the system resources required by the hardware detection module to obtain the configuration information of the first hardware are greater than a preset resource threshold; During the BIOS startup process, the duration required by the hardware detection module to obtain the configuration information of the first hardware is greater than a preset duration threshold.

[0068] After the previous BIOS startup is completed, for example, during / after the computer is shut down, the low-power chip (such as the management chip) on the motherboard is used to pre-analyze the hardware configuration information, and the configuration information of some key drivers is pre-loaded into the cache. In this way, at startup, the BIOS can directly read the data in the cache, accelerating the hardware recognition and initialization speed, without the time required for the hardware detection module to read data from the storage device and then transmit it to the startup process manager, which can further improve the system startup speed.

[0069] Due to the advancement of this technical solution, it can have a wide range of applications in application fields such as the computer system architecture field, the operating system field, and the hardware acceleration field. First, in the computer system architecture field, this technical solution realizes the dynamic adaptation and optimization to different hardware environments through the adaptive strategy and the intelligent scheduling engine. Especially in the environment of multi-core processors and high-speed storage devices, it can significantly improve the startup efficiency. This technical solution can be widely applied to various computer system architectures, especially those systems that require fast startup and high resource utilization, such as servers, workstations, and high-end personal computers. Second, in the operating system field, this technical solution reduces the waiting time during startup by optimizing task scheduling, and improves the overall response ability and user experience of the system. This technical solution can be applied to various operating systems, such as Windows, Linux, Unix, etc., especially those operating systems that require efficient task scheduling and resource management.

[0070] Finally, in the hardware acceleration field, this technical solution realizes the rapid acquisition and real-time monitoring of the hardware configuration information through the hardware configuration pre-storage module, the hardware detection module, and the resource monitoring module, providing a basis for the dynamic allocation and optimization of system resources. Especially in the environment of high-speed storage devices and large-scale memory, it can significantly improve the data transmission speed and system performance. This technical solution can be applied to various hardware acceleration devices, such as GPUs, FPGAs, etc., especially those applications that require efficient data transmission and processing, such as image processing, video coding, artificial intelligence, etc. Generally speaking, with the development of computer hardware and the diversification of applications, the market's demand for efficient, flexible, and adaptive startup optimization technologies is increasing. This technical solution realizes the dynamic adaptation and optimization to different hardware environments and system loads by introducing an AI engine and deep learning algorithms, and has broad application prospects and market demand.

[0071] In an embodiment of the present invention, a computer is provided, including the BIOS based on the adaptive strategy and intelligent scheduling described in any one of the above embodiments or a combination of multiple embodiments.

[0072] In an embodiment of the present invention, a method for optimizing the startup of a computer system is provided, including the following steps: After the last system startup is completed, store the configuration information of the first hardware in the cache; During the current system startup process, directly obtain the configuration information of the first hardware from the cache, obtain the configuration information of the hardware of the computer system from other storage devices, and determine the first BIOS startup process according to the configuration information of the hardware. The first BIOS startup process includes the system resource allocation and startup path for each hardware; Execute the first BIOS startup process and obtain the current startup data during the execution process, where the current startup data includes system load, memory occupancy, storage bandwidth, and I / O operation speed; Optimize the first BIOS startup process according to the current startup data and historical startup data to obtain a second BIOS startup process, where the second BIOS startup process has a system resource allocation and / or startup path different from that of the first BIOS startup process; Execute the second BIOS startup process.

[0073] Among them, optimizing the first BIOS startup process includes the following steps: Adjust the system resource allocation and / or startup path in the first BIOS startup process according to the current startup data and historical startup data to obtain multiple optimized BIOS startup processes; Predict the required duration of each optimized BIOS startup process respectively; Determine the optimized BIOS startup process with the minimum required duration as the second BIOS startup process.

[0074] It should be noted that the embodiments of the computer and computer system startup optimization method provided by the present invention have the same inventive concept as the embodiments of the system code protection method based on the hybrid algorithm. By introduction, all the contents of the embodiments of the system code protection method based on the hybrid algorithm are incorporated into the embodiments of the computer and computer system startup optimization method.

[0075] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including the element.

[0076] The above are only specific embodiments of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A BIOS based on adaptive strategy and intelligent scheduling, characterized in that: Includes hardware detection module, startup process manager, resource monitoring module and intelligent scheduling engine; Wherein, the hardware detection module is configured to obtain hardware configuration information and transmit it to the startup process manager; The boot process manager is configured to determine and execute a first BIOS boot process according to the configuration information of the hardware, wherein the first BIOS boot process includes system resource allocation and a boot path for each hardware; The resource monitoring module is configured to obtain current startup data and transmit it to the intelligent scheduling engine, wherein the current startup data includes system load, memory usage, storage bandwidth, and I / O operation speed; The intelligent scheduling engine is configured to optimize the first BIOS startup process according to the current startup data and the historical startup data to obtain a second BIOS startup process, wherein the second BIOS startup process has a system resource allocation and / or a startup path different from the first BIOS startup process; The boot process manager is further configured to execute the second BIOS boot process.

2. The BIOS based on adaptive strategy and intelligent scheduling according to claim 1, characterized in that: It also includes a hardware configuration pre-storage module, wherein the hardware configuration pre-storage module is configured to store configuration information of a first hardware after the last BIOS startup is completed, wherein the first hardware is part of the hardware; During the BIOS startup process, the hardware detection module is configured to obtain configuration information of hardware other than the first hardware and transmit it to the startup process manager. The startup process manager is also configured to directly obtain the configuration information of the first hardware through the hardware configuration pre-storage module.

3. The BIOS based on adaptive strategy and intelligent scheduling according to claim 2, characterized in that: The first hardware satisfies at least one of the following conditions: During the BIOS startup process, the startup priority of the first hardware is higher than the startup priority of other hardware; During the BIOS startup process, the system resources required by the hardware detection module to obtain the configuration information of the first hardware are greater than a preset system resource threshold; During the BIOS startup process, the time required for the hardware detection module to obtain the configuration information of the first hardware is greater than a preset time threshold.

4. The BIOS based on adaptive strategy and intelligent scheduling according to claim 1, characterized in that: The intelligent scheduling engine is configured to optimize the first BIOS boot process in the following manner: Determine a first BIOS boot comprehensive index according to the current boot data; If the first BIOS startup comprehensive index does not meet the preset condition, the first BIOS startup process is optimized to obtain an optimized BIOS startup process, and the BIOS startup comprehensive index of the optimized BIOS startup process is predicted according to the historical startup data; Determine whether the BIOS boot comprehensive index of the optimized BIOS boot process meets the preset condition. If not, continue to optimize the first BIOS boot process until the BIOS boot comprehensive index of the optimized BIOS boot process meets the preset condition.

5. The BIOS based on adaptive strategy and intelligent scheduling according to claim 1, characterized in that: The intelligent scheduling engine is configured to optimize the first BIOS boot process in the following manner: Predicting subsequent startup data in the first BIOS startup process according to the current startup data and the historical startup data; Determine a second BIOS startup comprehensive index according to the subsequent startup data; If the second BIOS startup comprehensive index does not meet the preset condition, optimizing the first BIOS startup process to obtain an optimized BIOS startup process, and predicting the BIOS startup comprehensive index of the optimized BIOS startup process according to the historical startup data; Determine whether the BIOS boot comprehensive index of the optimized BIOS boot process meets the preset condition. If not, continue to optimize the first BIOS boot process until the BIOS boot comprehensive index of the optimized BIOS boot process meets the preset condition.

6. The BIOS based on adaptive strategy and intelligent scheduling according to claim 1, characterized in that: The intelligent scheduling engine is configured to optimize the first BIOS boot process in the following manner: adjusting the system resource allocation and / or the boot path in the first BIOS boot process according to the current boot data and the historical boot data to obtain a plurality of optimized BIOS boot processes; Predict the time required for each optimized BIOS boot process; An optimized BIOS startup process with the shortest required time is determined as the second BIOS startup process.

7. The BIOS based on adaptive strategy and intelligent scheduling according to claim 1, characterized in that: The intelligent scheduling engine is configured to optimize the first BIOS boot process in the following manner: adjusting the system resource allocation and / or the boot path in the first BIOS boot process according to the current boot data and the historical boot data to obtain a plurality of optimized BIOS boot processes; Predict the duration of each optimized BIOS boot process and the total number of task hangs and failures; According to the required time and the total number of task suspensions and failures, one of the multiple optimized BIOS startup processes is determined as the second BIOS startup process.

8. The BIOS based on adaptive strategy and intelligent scheduling according to claim 1, characterized in that: The intelligent scheduling engine optimizes the first BIOS startup process according to the current startup data and the historical startup data to obtain a second BIOS startup process, including dynamically adjusting a system resource allocation strategy and / or dynamically adjusting a startup path.

9. The BIOS based on adaptive strategy and intelligent scheduling according to claim 8, characterized in that: The dynamically adjusting system resource allocation strategy includes: If the system load is greater than a preset first load threshold, reducing the system resource allocation of low-priority tasks among the tasks executed in parallel in the first BIOS startup process; If the system load is less than a preset second load threshold, increasing the system resource allocation of low-priority tasks among the tasks executed in parallel in the first BIOS startup process; Using an AI algorithm in combination with historical startup data to predict whether the system load in the BIOS startup process after adjusting the system resource allocation is not less than the second load threshold and not greater than the first load threshold, if so, using the BIOS startup process after adjusting the system resource allocation as the second BIOS startup process; Otherwise, the system resource allocation is adjusted again until the system load in the BIOS startup process after the system resource allocation is adjusted is not less than the second load threshold and not greater than the first load threshold.

10. The BIOS based on adaptive strategy and intelligent scheduling according to claim 9, characterized in that: The dynamically adjusting the startup path includes: If the system load is higher than a preset first load threshold, the startup sequence of low priority tasks is postponed for the first BIOS startup process; If the system load is lower than a preset second load threshold, advancing the startup sequence of low-priority tasks for the first BIOS startup process; Using an AI algorithm in combination with historical startup data to predict whether the system load in the BIOS startup process after the startup path is adjusted is not less than the second load threshold and not greater than the first load threshold; if so, using the BIOS startup process after the startup path is adjusted as the second BIOS startup process; Otherwise, the boot path is adjusted again until the system load in the BIOS boot process after the boot path is adjusted is not less than the second load threshold and not greater than the first load threshold.

11. The BIOS based on adaptive strategy and intelligent scheduling according to claim 1, characterized in that: The system resource allocation includes memory address space allocation, I / O port allocation, interrupt vector allocation, and device detection and initialization; Optimizing the first BIOS startup process to obtain the second BIOS startup process includes dynamically adjusting one or more of memory address space allocation, I / O port allocation, interrupt vector allocation, and device detection and initialization.

12. The BIOS based on adaptive strategy and intelligent scheduling according to claim 1, characterized in that: In the process of the boot process manager executing the second BIOS boot process, the following steps are also included: The resource monitoring module obtains the current startup data and transmits it to the intelligent scheduling engine; The intelligent scheduling engine optimizes the second BIOS startup process according to the current startup data and the historical startup data to obtain a third BIOS startup process, wherein the third BIOS startup process has a system resource allocation and / or a startup path different from that of the second BIOS startup process; The boot process manager executes the third BIOS boot process.

13. A computer, characterized in that: It comprises a BIOS based on adaptive strategy and intelligent scheduling as described in any one of claims 1 to 12.

14. A computer system startup optimization method, characterized in that: The following steps are involved: Acquire hardware configuration information of the computer system, and determine a first BIOS startup process according to the hardware configuration information, wherein the first BIOS startup process includes system resource allocation and startup path for each hardware; Execute the first BIOS startup process and obtain current startup data during the execution process, wherein the current startup data includes system load, memory usage, storage bandwidth, and I / O operation speed; Optimizing the first BIOS startup process according to the current startup data and the historical startup data to obtain a second BIOS startup process, wherein the second BIOS startup process has a system resource allocation and / or a startup path different from that of the first BIOS startup process; Execute the second BIOS startup process.

15. The computer system startup optimization method according to claim 14, characterized in that: The following steps are also included: storing configuration information of first hardware in a cache after the last system startup is completed, the first hardware being part of the hardware; During the current system startup process, the configuration information of the first hardware is directly obtained from the cache.

16. The computer system startup optimization method according to claim 14, characterized in that: The first BIOS boot process is optimized by: adjusting the system resource allocation and / or the boot path in the first BIOS boot process according to the current boot data and the historical boot data to obtain a plurality of optimized BIOS boot processes; Predict the time required for each optimized BIOS boot process; An optimized BIOS startup process with the shortest required time is determined as the second BIOS startup process.

Citation Information

Patent Citations

  • Integrated input device and automatic switching method for key input and cursor control

    CN103455252A

  • Information processing method and electronic device

    CN105892915A

  • Method and device for accelerating cold start of application and terminal

    CN111061516A

  • Cold start optimization method based on time domain convolutional network in server-free computing environment

    CN114489940A

  • Equipment quick starting method and system, terminal and readable storage medium

    CN118963847A

Cited By

  • Resource allocation method and computer equipment

    CN121029433A

  • GPU resource intelligent dynamic optimization method and system based on BIOS and BMC

    CN121411919A

  • BIOS and BMC-based GPU resource intelligent dynamic optimization method and system

    CN121411919B