A firmware configuration method, apparatus, device, and medium

By collecting device information to establish the association between services and firmware configurations, and generating a set of service categories, the problem of inefficiency in manual tuning and poor adaptation to heterogeneous hardware in server BIOS configuration optimization is solved, and efficient BIOS configuration across platforms is achieved.

CN120560747BActive Publication Date: 2025-10-21LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511013862.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-23
Publication Date
2025-10-21
Estimated Expiration
2045-07-23

AI Technical Summary

Technical Problem

Server BIOS configuration optimization faces challenges such as inefficiency from manual tuning and poor compatibility with heterogeneous hardware environments.

Method used

By collecting device information from computing devices, the association between services and firmware configurations is established, service configuration association information is generated, and firmware configuration items to be modified are determined based on the service classification set and the modifications are executed to adapt to heterogeneous environments under different hardware.

Benefits of technology

It achieves cross-platform generalization capabilities, improves BIOS configuration tuning efficiency, and can dynamically recommend the optimal firmware configuration for different business scenarios, significantly improving performance utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120560747B_ABST
    Figure CN120560747B_ABST
Patent Text Reader

Abstract

The application discloses a firmware configuration method and device, equipment and medium, and relates to the technical field of servers. The present scheme collects device information of a plurality of computing devices, including hardware information, original firmware configuration information, current firmware configuration information, current service information and service evaluation information, and establishes the association between services and firmware configurations based on the above information to generate service configuration association information; according to each service configuration association information, the plurality of service classifications of each computing device under the corresponding current service information are determined, that is, the hardware parameters, configuration items and service performance under different service classifications are determined, the heterogeneous environment under different hardware can be adapted, and the cross-platform generalization capability is stronger; meanwhile, when there is a service switching requirement, only the firmware configuration items to be modified are determined and modified according to the configuration difference between the current source service classification and the target service classification to be switched, and the service switching can be completed, and the optimization efficiency is significantly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of server technology, and in particular to a firmware configuration method, device, equipment and medium. Background Art

[0002] Currently, optimizing server Basic Input / Output System (BIOS) configurations faces significant challenges, primarily in two areas. First, the BIOS contains hundreds of adjustable parameters, and the combined impact of these parameters on hardware performance is complex and highly dependent on the business scenario. For example, artificial intelligence (AI) training tasks require maximizing the multi-core parallel capabilities of the central processing unit (CPU), while database services are sensitive to memory latency. Traditional manual tuning methods rely on engineer experience, resulting in inefficiency and difficulty scalability to meet dynamic business needs.

[0003] Secondly, the rapid evolution of hardware has led to the prevalence of heterogeneous environments. Different CPU, memory, and storage device models respond significantly differently to BIOS configurations. Existing BIOS configuration tuning tools are mostly based on static rule bases or preset templates for a single hardware platform. They lack cross-platform generalization capabilities and are unable to meet the needs of diverse hardware environments. These challenges collectively hinder the efficiency and effectiveness of server BIOS configuration optimization.

[0004] In view of the above, how to solve the current problems of inefficient manual tuning of server BIOS configuration optimization and poor adaptation to heterogeneous hardware environments is an urgent problem that needs to be solved by technical personnel in this field. Summary of the Invention

[0005] The present invention provides a firmware configuration method, apparatus, device and medium to at least solve the problems of inefficient manual tuning and poor adaptation to heterogeneous hardware environments faced by current server BIOS configuration optimization.

[0006] The present invention provides a firmware configuration method, which is applied to a target computing device, and the method includes:

[0007] When a service switching command is received, a current source service classification and a target service classification to be switched are determined based on a pre-generated service classification set; wherein the process of generating the service classification set includes: collecting device information of a plurality of computing devices; the device information includes at least hardware information, original firmware configuration information, current firmware configuration information, current service information, and service evaluation information; establishing service configuration association information corresponding to each computing device based on the serial number, hardware information, original firmware configuration information, current firmware configuration information, current service information, and service evaluation information of each computing device; and determining, based on the service configuration association information, a plurality of service classifications for each computing device corresponding to the current service information;

[0008] Determine the firmware configuration items to be modified based on the source business classification and the target business classification;

[0009] Execute the modification of the firmware configuration items to be modified.

[0010] The present invention also provides a firmware configuration device, which is applied to a target computing device, and the device includes:

[0011] A first determination module is configured to, upon receiving a service switching command, determine a current source service classification and a target service classification to be switched based on a pre-generated service classification set; wherein the process of generating the service classification set includes: collecting device information of a plurality of computing devices; the device information including at least hardware information, original firmware configuration information, current firmware configuration information, current service information, and service evaluation information; establishing service configuration association information corresponding to each computing device based on the serial number, hardware information, original firmware configuration information, current firmware configuration information, current service information, and service evaluation information of each computing device; and determining, based on the service configuration association information, a plurality of service classifications for each computing device corresponding to the current service information;

[0012] A second determining module, configured to determine a firmware configuration item to be modified according to a source service classification and a target service classification;

[0013] The modification module is used to modify the firmware configuration items to be modified.

[0014] The present invention also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above firmware configuration methods when executing the computer program.

[0015] The present invention also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned firmware configuration methods are implemented.

[0016] The beneficial effect of the present invention is that, by collecting device information of multiple computing devices, including at least hardware information, original firmware configuration information, current firmware configuration information, current business information and business evaluation information, and establishing an association between business and firmware configuration based on the above information, business configuration association information is generated; according to each business configuration association information, multiple business classifications of each computing device corresponding to the current business information are determined, and a business classification set is generated, that is, the hardware parameters, configuration items and business performance under different business classifications are clarified, which can adapt to heterogeneous environments under different hardware and has stronger cross-platform generalization capabilities; at the same time, when there is a business switching demand, it is only necessary to determine the current source business classification and the target business classification to be switched according to the business classification set, determine the firmware configuration items to be modified according to the configuration differences between the two and perform the modification, and then the business switching can be completed. It can dynamically recommend the optimal firmware configuration for different business scenarios, significantly improve the tuning efficiency, and maximize the performance utilization.

[0017] In addition, the present invention also provides a firmware configuration device, equipment and medium, which have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0019] Figure 1 A flowchart of a firmware configuration method provided by an embodiment of the present invention;

[0020] Figure 2 A schematic diagram of a firmware configuration device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.

[0022] It should be noted that, in the description of the present invention, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. The terms "first," "second," etc., in the present invention are used to distinguish similar objects, and are not used to describe a particular order or precedence.

[0023] In order to enable those skilled in the art to better understand the solutions of the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0024] BIOS contains hundreds of adjustable parameters. The combination of these parameters has a complex impact on hardware performance and is highly dependent on the business scenario. Traditional manual tuning methods rely on engineers' experience, are inefficient, and difficult to adapt to dynamic business needs on a large scale. Secondly, existing tools are mostly based on static rule bases or preset templates for a single hardware platform, lack cross-platform generalization capabilities, and are difficult to meet the needs of diverse hardware environments. These challenges jointly restrict the efficiency and effectiveness of server BIOS configuration optimization. In order to solve the above problems, the present invention provides a firmware configuration method.

[0025] It should be noted that the method provided by the present invention is applied to a target computing device. In this embodiment, there is no limitation on the specific type of the target computing device, which may be, for example, a server, a host, or other computing device capable of BIOS configuration, depending on the specific implementation.

[0026] Figure 1 Flowchart of a firmware configuration method provided by an embodiment of the present invention. Figure 1 As shown, the method includes:

[0027] S10: When a service switching command is received, the current source service classification and the target service classification to be switched are determined according to a pre-generated service classification set.

[0028] Among them, the process of generating a business classification set includes: collecting device information of multiple computing devices; the device information includes at least hardware information, original firmware configuration information, current firmware configuration information, current business information and business evaluation information; establishing business configuration association information corresponding to each computing device based on the serial number, hardware information, original firmware configuration information, current firmware configuration information, current business information and business evaluation information of each computing device; determining multiple business classifications of each computing device under the corresponding current business information based on each business configuration association information.

[0029] Specifically, when a service switching command is received, it is considered that the BIOS configuration item needs to be modified. At this time, the current source service category and the target service category to be switched are determined according to a pre-generated service category set.

[0030] It should be noted that the source business classification is the specific classification of the business currently running on the target computing device, and the target business classification to be switched is determined based on the business switching command. The specific classification of the target business to be switched for execution, both of these classifications need to be determined based on the business classification set matching.

[0031] The service classification set includes multiple known service classifications, and its generation process specifically includes: collecting device information of multiple computing devices. The device information includes at least hardware information, original firmware configuration information, current firmware configuration information, current service information, and service evaluation information.

[0032] It should be noted that hardware information refers to information such as the computing device's CPU, memory, and hard disk; original firmware configuration information refers to the computing device's original, unmodified firmware configuration; current firmware configuration information refers to the firmware configuration modified to accommodate the current business operations; current business information refers to a preliminary user classification of services based on the specific content of the services executed by the computing device, which may include, for example, storage services or computing tasks; and business evaluation information refers to the user's satisfaction with the computing device based on the computing device's current firmware configuration information and current business performance. The specific process for collecting device information is not limited in this embodiment and depends on the specific implementation. Subsequently, business configuration association information corresponding to the computing device is established based on the computing device's serial number (SN), hardware information, original firmware configuration information, current firmware configuration information, current business information, and business evaluation information, thereby associating various types of information (business and firmware configurations). This business configuration association information is then stored in a relational database. Finally, multiple business categories for each computing device corresponding to the current business information are determined based on each business configuration association information. The specific process for determining multiple business categories for each computing device corresponding to the current business information based on each device information is not limited in this embodiment.

[0033] S11: Determine the firmware configuration item to be modified according to the source service classification and the target service classification.

[0034] S12: Execute modification of the firmware configuration item to be modified.

[0035] Subsequently, after determining the current source service classification of the target computing device and the target service classification to be switched, the firmware configuration items to be modified are determined based on the source service classification and the target service classification, and the firmware configuration items to be modified are modified, thereby completing the firmware configuration and service switching. It should be noted that the process for determining the firmware configuration items to be modified is not limited in this embodiment and depends on the specific implementation.

[0036] In this embodiment, by collecting device information of multiple computing devices, including at least hardware information, original firmware configuration information, current firmware configuration information, current business information and business evaluation information, and establishing an association between business and firmware configuration based on the above information, business configuration association information is generated; according to each business configuration association information, multiple business classifications of each computing device corresponding to the current business information are determined, and a business classification set is generated, that is, the hardware parameters, configuration items and business performance under different business classifications are clarified, which can adapt to heterogeneous environments under different hardware and has stronger cross-platform generalization capabilities; at the same time, when there is a need for business switching, it is only necessary to determine the current source business classification and the target business classification to be switched according to the business classification set, determine the firmware configuration items to be modified according to the configuration differences between the two and perform the modification, and then the business switching can be completed. It can dynamically recommend the optimal firmware configuration for different business scenarios, significantly improve the tuning efficiency, and maximize the performance utilization.

[0037] Based on the above embodiments, in some embodiments, collecting device information of multiple computing devices includes:

[0038] S100: Collect processor information, memory information, hard disk information, network card information, and disk array card information of the computing device.

[0039] S101: Acquire original firmware configuration information and current firmware configuration information through a management controller.

[0040] S102: Acquire current service information determined by the user based on current firmware configuration information; wherein the current service information at least includes virtualization service, storage service, and computing service.

[0041] S103: Obtain a satisfaction score of the computing device determined by the user based on the current firmware configuration information and the current service information to generate service evaluation information.

[0042] To collect device information, in this embodiment, the processor information, memory information, hard disk information, network card information, and disk array card information of the computing device must be collected first, thereby collecting hardware information. It should be noted that in actual implementation, more hardware information can be collected, and this is not limited in this embodiment.

[0043] Subsequently, the original and current firmware configuration information is obtained through the Baseboard Management Controller (BMC). These can be exported in text or JSON format. The current service information determined by the user based on the current firmware configuration information is further obtained. It is important to note that this current service information includes at least virtualization, storage, and computing services, determined by the user based on the current service execution status. Finally, the user's satisfaction score for the computing device, determined based on the current firmware configuration and service information, is obtained. Satisfaction is considered positive motivation, while dissatisfaction is considered negative motivation, thus generating service evaluation information. This service evaluation information is specifically reflected in the performance indicator recommendation index, which ranges from 1 to 10. A score less than 4 indicates a very poor match, 4-6 indicates a poor match, 6-8 indicates a good match, and 8 or above indicates a strong match.

[0044] In this way, complete collection of device information is achieved, so that business types can be divided according to device information.

[0045] Based on the above embodiment, in some embodiments, before establishing the service configuration association information corresponding to each computing device, after collecting the device information of multiple computing devices, the method further includes:

[0046] S104: Convert heterogeneous data of various types of information in the device information into a standard format.

[0047] S105: Mark missing values ​​of various types of information in the device information, and filter out abnormal values ​​of various types of information.

[0048] In order to improve the information quality of device information and enhance data availability, in this embodiment, after collecting the device information, it is also necessary to convert the heterogeneous data of various types of information in the device information into a standard format, and convert non-standard values ​​into standard values. For example, "Disabled" and "Disable" are uniformly processed as "Disabled". Missing values ​​of various types of information in the device information are further marked, for example, missing values ​​are marked as unknown; at the same time, abnormal values ​​of various types of information are filtered, such as filtering out over-limit voltage and other invalid data. In addition, for discrete data, comparison is performed directly based on the standard value. For continuous data, the maximum and minimum values ​​of the same type of hardware are obtained, and the ratio of the difference between the current value and the minimum value to the difference between the maximum and minimum values ​​is determined to determine the standard value of the corresponding hardware.

[0049] In this embodiment, by performing data preprocessing on the device information, the information quality of the device information is improved and the data availability is enhanced.

[0050] Based on the above embodiments, in some embodiments, multiple service categories of each computing device corresponding to the current service information are determined according to the service configuration association information, including:

[0051] S107: Determine each business data under the current business information according to the business configuration association information, and determine the business relevance weight value corresponding to each business data;

[0052] S108: Determine the similarity between each business data and other business data based on the business evaluation information, the weight value of each business relevance, and the weighted similarity coefficient algorithm;

[0053] S109: Determine whether each similarity is greater than a threshold; if it is confirmed that the similarity is greater than the threshold, determine that the two business data corresponding to the similarity greater than the threshold are the same business category.

[0054] When collecting device information, a preliminary classification of service types is performed. Based on this, a more specific classification of the current service is generated based on the user's service evaluation information. As you can see, different service evaluation information will result in a variety of data, including more and less recommended services. This data can also be used as feedback in recommendations when the service scenario changes.

[0055] Specifically, first determine the business data under the current business information based on the business configuration association information, and determine the business relevance weight value corresponding to each business data. Assume that there are K business information (such as virtualization business, storage business or high-performance computing business), where the number of data items in the current business information is N, =i is the i-th business data under the current business information. Since different business information has different requirements for different firmware configurations and hardware, the business relevance weight value can be specifically set as follows: the business-related weight is set to 1.2, and the irrelevant weight is 0.8.

[0056] Furthermore, the similarity between each business data and other business data is determined based on the business evaluation information, the weight value of each business relevance, and the weighted similarity coefficient algorithm. The specific formula is as follows:

[0057] ;

[0058] in, For business data and business data The similarity of To evaluate information for business purposes, is the business relevance weight value, for Attributes, for Attributes.

[0059] On this basis, it is determined whether each similarity is greater than the threshold. If it is confirmed that the similarity is greater than the threshold, the two business data corresponding to the similarity greater than the threshold are determined to be the same business classification, otherwise it is determined that the two business data are not the same business classification. In this embodiment, there is no limit on the threshold value, for example, it can be 0.7, then when When business data and business data It is understandable that in a specific implementation, business data may also be classified into a separate category.

[0060] In this embodiment, by dividing the preliminarily classified service information into smaller service categories, it is possible to achieve minimal change in firmware configuration during service switching.

[0061] Based on the above embodiments, in some embodiments, determining the firmware configuration item to be modified according to the source service classification and the target service classification includes:

[0062] S111: Determine the cosine similarity between the source service classification and the target service classification.

[0063] S112: Calculate the partial derivative of the cosine similarity to determine the influence value of each dimensional vector of the source service classification on the cosine similarity.

[0064] S113: Determine a modification order of the firmware configuration items to be modified according to the impact values ​​and their absolute values.

[0065] S114: Obtain hardware information of the target computing device.

[0066] S115: Generate multiple hardware hit count lists according to the hardware information and modification order of the target computing device; wherein the hardware hit count lists include hit counts of different hardware models.

[0067] S116: Obtain the target hardware configuration with the highest hit count in each hardware hit count list to determine the firmware configuration item to be modified.

[0068] First, determine the cosine similarity between the source business classification and the target business classification. Assume that the source business classification is business classification A1 under business information A, and the target business classification is business classification B1 under business information B. The vectors of A1 and B1 are inconsistent, and the missing items are set to 0. The dimension of the vector is , the dimension is n after calculation, then the cosine similarity calculation formula is as follows:

[0069] ;

[0070] in, is the cosine similarity; A1 is the source business classification, A1=(a1,a2,.....,an); B1 is the target business classification, B1=(b1,b2,……,bn).

[0071] We further calculate the partial derivative of the cosine similarity and analyze the impact of each dimension value on the cosine similarity to determine the impact of each dimension vector of the source business classification on the cosine similarity. The specific formula is as follows:

[0072] ;

[0073] in, is the influence value, S is the cosine similarity, The dimensions of source business classification A1 are shown in Figure 1. At the same time, the above formula is simplified to:

[0074] ;

[0075] in, Classify the target business into various dimensions of B1.

[0076] It should be noted that if , increase It will increase the similarity S, otherwise it will decrease. The bigger, the more The more significant the effect on cosine similarity. Sorting to determine the modification order of the firmware configuration items to be modified; The larger the value, the greater the impact on switching from source service category A1 to target service category B1.

[0077] Furthermore, the hardware information of the target computing device is obtained, and multiple hardware hit count lists are generated based on the hardware information of the target computing device and the modification order. The hardware hit count lists include the hit counts of different hardware models. The hit count serves as the weight of the component in this classification. An example is given below:

[0078] Table 1 CPU hit count list;

[0079] ;

[0080] As shown in the format of the table above, tables for memory, network card, disk array card, and hard disk are generated in sequence.

[0081] Finally, the target hardware configuration with the highest hit count in each hardware hit count list is obtained, that is, the CPU, memory, network card, disk array card, and hard disk with the highest hit count, so as to determine the firmware configuration item to be modified.

[0082] In this embodiment, the minimum modified configuration items are generated through the gradient priority list and the hardware compatibility rules, which effectively improves the modification and optimization efficiency of the firmware configuration.

[0083] Based on the above embodiment, in some embodiments, after modifying the firmware configuration item to be modified, the method further includes:

[0084] S121: Execute system restart and enter the firmware configuration page, and determine whether all firmware configuration items to be modified have been modified; if so, enter step S122; if not, enter step S123.

[0085] S122: Save changes and exit the firmware configuration page.

[0086] S123: Outputting prompt information indicating that the firmware configuration item to be modified needs to be adjusted again.

[0087] To verify the correctness of the configuration changes, after modifying the firmware configuration items to be modified, you must reboot the system and access the firmware configuration page. On this page, determine whether all the firmware configuration items to be modified have been modified. If all the firmware configuration items to be modified have been modified, save the changes and exit the firmware configuration page. If any firmware configuration items to be modified have not been modified, a prompt message will be displayed indicating that the firmware configuration items to be modified need to be adjusted again. This ensures that the configuration changes have been correctly applied, laying the foundation for stable system operation.

[0088] At the same time, after modifying the firmware configuration items to be modified, you need to restart the system, enter the firmware configuration page, and run the diagnostic tool. It is understandable that many BIOS systems have built-in diagnostic tools that can be run to check the correctness of each firmware configuration item modification and generate test results.

[0089] Additionally, after confirming the new firmware configuration is correct, export the current firmware configuration file for backup. This way, if you need to restore the current configuration in the future, you can quickly import the backup file, eliminating the need for manual reconfiguration. Also, record the detailed information about the firmware configuration change (e.g., modified items, pre-modification values, and post-modification values) for future reference during troubleshooting or audits.

[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.

[0091] Figure 2A schematic diagram of a firmware configuration device provided by an embodiment of the present invention. The device is applied to a target computing device, such as Figure 2 As shown, the device includes:

[0092] The first determination module 10 is used to determine the current source business classification and the target business classification to be switched according to a pre-generated business classification set when a business switching command is received; wherein, the generation process of the business classification set includes: collecting device information of multiple computing devices; the device information includes at least hardware information, original firmware configuration information, current firmware configuration information, current business information and business evaluation information; establishing business configuration association information corresponding to each computing device according to the serial number, hardware information, original firmware configuration information, current firmware configuration information, current business information and business evaluation information of each computing device; and determining multiple business classifications of each computing device under the corresponding current business information according to each business configuration association information.

[0093] The second determining module 11 is configured to determine the firmware configuration item to be modified according to the source service classification and the target service classification.

[0094] The modification module 12 is used to modify the firmware configuration item to be modified.

[0095] In some embodiments, device information of multiple computing devices is collected, specifically including: collecting processor information, memory information, hard disk information, network card information, and disk array card information of the computing devices; obtaining original firmware configuration information and current firmware configuration information through a management controller; obtaining current business information determined by a user based on the current firmware configuration information; wherein the current business information includes at least virtualization business, storage business, and computing business; obtaining a satisfaction score of the computing device determined by the user based on the current firmware configuration information and the current business information to generate business evaluation information.

[0096] In some embodiments, before establishing the business configuration association information corresponding to each of the computing devices, after collecting the device information of multiple computing devices, it also includes: converting the heterogeneous data of various types of information in the device information into a standard format; marking the missing values ​​of various types of information in the device information, and filtering out abnormal values ​​of various types of information.

[0097] In some embodiments, multiple business classifications of each computing device under the corresponding current business information are determined based on each business configuration association information, including: determining each business data under the current business information based on the business configuration association information, and determining the business relevance weight value corresponding to each business data; determining the similarity of each business data to other business data based on business evaluation information, each business relevance weight value and a weighted similarity coefficient algorithm; judging whether each similarity is greater than a threshold; if it is confirmed that the similarity is greater than the threshold, the two business data corresponding to the similarity greater than the threshold are determined to be the same business classification.

[0098] In some embodiments, the second determining module 11 includes:

[0099] A similarity determination module, used to determine the cosine similarity between the source business classification and the target business classification;

[0100] An influence value determination module is used to obtain a partial derivative of the cosine similarity to determine the influence value of each dimensional vector of the source business classification on the cosine similarity;

[0101] An order determination module, configured to determine a modification order of the firmware configuration items to be modified based on the impact value and its absolute value;

[0102] A hardware information acquisition module, used to obtain hardware information of a target computing device;

[0103] A list generation module is used to generate multiple hardware hit count lists based on the hardware information and modification order of the target computing device; wherein the hardware hit count list includes the hit counts of different hardware models;

[0104] The configuration determination module is used to obtain the target hardware configuration with the highest hit count in each hardware hit count list to determine the firmware configuration item to be modified.

[0105] In some embodiments, further comprising:

[0106] The judgment module is used to execute a system restart and enter the firmware configuration page, and judge whether the firmware configuration items to be modified have been modified; if so, save the changes and exit the firmware configuration page; if not, output a prompt message indicating that the firmware configuration items to be modified need to be adjusted again.

[0107] In some embodiments, further comprising:

[0108] Diagnostic module, used to perform a system reboot and enter the firmware configuration page and run diagnostic tools;

[0109] The detection module is used to detect various firmware configuration items through diagnostic tools and generate detection results.

[0110] For the description of the features in the embodiment corresponding to the firmware configuration device, please refer to the relevant description of the embodiment corresponding to the firmware configuration method, and will not be repeated here.

[0111] An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above firmware configuration method embodiments.

[0112] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above firmware configuration method embodiments when running.

[0113] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0114] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above firmware configuration method embodiments are implemented.

[0115] An embodiment of the present invention further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned firmware configuration method embodiments are implemented.

[0116] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0117] The above is a detailed introduction to the firmware configuration method, device, equipment and medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A firmware configuration method, characterized in that: Applied to a target computing device, the method includes: When a service switching command is received, the current source service classification and the target service classification to be switched are determined according to a pre-generated service classification set; wherein the process of generating the service classification set includes: collecting device information of multiple computing devices; the device information includes at least hardware information, original firmware configuration information, current firmware configuration information, current service information and service evaluation information; establishing service configuration association information corresponding to each computing device according to the serial number of each computing device, the hardware information, the original firmware configuration information, the current firmware configuration information, the current service information and the service evaluation information; and determining multiple service classifications of each computing device corresponding to the current service information according to the service configuration association information; Determining a firmware configuration item to be modified according to the source service classification and the target service classification; Executing modification of the firmware configuration item to be modified; Determining a firmware configuration item to be modified according to the source service classification and the target service classification includes: Determining the cosine similarity between the source service classification and the target service classification; Calculating a partial derivative of the cosine similarity to determine an influence value of each dimensional vector of the source service classification on the cosine similarity; Determining a modification order of the firmware configuration items to be modified according to the impact values ​​and their absolute values; Obtaining hardware information of the target computing device; generating a plurality of hardware hit count lists according to the hardware information of the target computing device and the modification sequence; wherein the hardware hit count lists include hit counts of different hardware models; The target hardware configuration with the highest hit count in each of the hardware hit count lists is obtained to determine the firmware configuration item to be modified.

2. The firmware configuration method according to claim 1, wherein: Collect device information from multiple computing devices, including: Collecting processor information, memory information, hard disk information, network card information, and disk array card information of the computing device; Acquire the original firmware configuration information and the current firmware configuration information through a management controller; Acquire the current service information determined by the user based on the current firmware configuration information; wherein the current service information includes at least virtualization service, storage service, and computing service; A satisfaction score of the computing device determined by a user based on the current firmware configuration information and the current service information is obtained to generate the service evaluation information.

3. The firmware configuration method according to claim 1, wherein: Before establishing the service configuration association information corresponding to each computing device, after collecting device information of multiple computing devices, the method further includes: Converting heterogeneous data of various types of information in the device information into a standard format; Mark missing values ​​of various types of information in the device information, and filter outliers of various types of information.

4. The firmware configuration method according to claim 1, wherein: Determining, according to each of the business configuration association information, a plurality of business categories of each of the computing devices corresponding to the current business information, including: Determining each business data under the current business information according to the business configuration association information, and determining a business relevance weight value corresponding to each business data; Determining the similarity between each of the business data and other business data based on the business evaluation information, the weight value of each of the business relevance, and a weighted similarity coefficient algorithm; respectively determining whether each of the similarities is greater than a threshold; If it is confirmed that the similarity is greater than a threshold, the two business data corresponding to the similarity greater than the threshold are determined to be the same business category.

5. The firmware configuration method according to any one of claims 1 to 4, characterized in that: After modifying the firmware configuration item to be modified, the method further includes: Restart the system and enter the firmware configuration page, and determine whether all the firmware configuration items to be modified have been modified; If yes, save the changes and exit the firmware configuration page; If not, a prompt message indicating that the firmware configuration item to be modified needs to be adjusted again is output.

6. The firmware configuration method according to claim 5, characterized in that: After modifying the firmware configuration item to be modified, the method further includes: Perform a system reboot and enter the firmware configuration page and run the diagnostic tool; The diagnostic tool detects each firmware configuration item and generates a detection result.

7. A firmware configuration device, characterized in that: Applied to a target computing device, the apparatus comprises: A first determination module is configured to, upon receiving a service switching command, determine a current source service classification and a target service classification to be switched based on a pre-generated service classification set; wherein the process of generating the service classification set includes: collecting device information of a plurality of computing devices; the device information including at least hardware information, original firmware configuration information, current firmware configuration information, current service information, and service evaluation information; establishing service configuration association information corresponding to each computing device based on the serial number of each computing device, the hardware information, the original firmware configuration information, the current firmware configuration information, the current service information, and the service evaluation information; and determining, based on each of the service configuration association information, a plurality of service classifications of each computing device corresponding to the current service information; A second determining module, configured to determine a firmware configuration item to be modified according to the source service classification and the target service classification; A modification module, configured to modify the firmware configuration item to be modified; The second determining module includes: A similarity determination module, configured to determine the cosine similarity between the source service classification and the target service classification; An influence value determination module, configured to obtain a partial derivative of the cosine similarity to determine an influence value of each dimensional vector of the source service classification on the cosine similarity; An order determination module, configured to determine a modification order of the firmware configuration items to be modified according to the impact values ​​and their absolute values; A hardware information acquisition module, configured to acquire hardware information of the target computing device; A list generating module, configured to generate a plurality of hardware hit count lists according to the hardware information of the target computing device and the modification sequence; wherein the hardware hit count lists include hit counts of different hardware models; The configuration determination module is used to obtain the target hardware configuration with the highest hit count in each of the hardware hit count lists to determine the firmware configuration item to be modified.

8. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the firmware configuration method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the firmware configuration method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • BIOS adaptive method and system of different packages of same product

    CN107590393A

  • BIOS option value batch modification method based on redfish interface

    CN119376802A