CN113946377B - Server parameter configuration method, device and storage medium - Google Patents

Server parameter configuration method, device and storage medium Download PDF

Info

Publication number
CN113946377B
CN113946377B CN202111275742.1A CN202111275742A CN113946377B CN 113946377 B CN113946377 B CN 113946377B CN 202111275742 A CN202111275742 A CN 202111275742A CN 113946377 B CN113946377 B CN 113946377B
Authority
CN
China
Prior art keywords
configuration
initial
system parameters
basic input
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111275742.1A
Other languages
Chinese (zh)
Other versions
CN113946377A (en
Inventor
陈彬
刘峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111275742.1A priority Critical patent/CN113946377B/en
Publication of CN113946377A publication Critical patent/CN113946377A/en
Application granted granted Critical
Publication of CN113946377B publication Critical patent/CN113946377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a server parameter configuration method, a server parameter configuration device and a storage medium. The server parameter configuration method comprises the following steps: initial basic input output system parameters and initial operating system parameters of the server are obtained. And judging whether the initial basic input/output system parameters meet the configuration requirements. When the initial basic input and output system parameters meet the configuration requirements, judging whether the initial operating system parameters meet the configuration requirements. When the initial operating system parameters meet the configuration requirements, judging whether the central processing unit operates in a state corresponding to the configuration requirements. When the central processor is running in state, the configuration is complete. The invention can automatically detect whether the initial parameter configuration condition of the server meets the configuration requirement, and further detect the configuration completion condition of the server, so as to realize the automatic verification of the running mode of the central processing unit, thereby reducing the labor cost and the time cost and improving the configuration efficiency.

Description

Server parameter configuration method, device and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for configuring server parameters, and a storage medium.
Background
As the market demand for servers increases, so does the need for users to customize servers according to their business needs. However, when the server leaves the factory, the running mode of the central processing unit (central processing unit, CPU) of the server is a default mode, so that the running mode of the CPU of the server to be delivered needs to be adjusted in order to meet the service requirements of users.
When the CPU operation mode is adjusted, the basic input/output system (Basic Input Output System, BIOS) parameters of the server and Operating System (OS) parameters of the server are mainly adjusted.
However, in the related art, when the BIOS parameters and the OS parameters are configured and adjusted, the configuration and adjustment are performed by adopting a manual verification and manual adjustment mode. But when the method is adopted for adjustment, the configuration efficiency is low, the labor cost is high, and the accuracy of mass operation is not guaranteed, so that the delivery quality of the server is affected.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defects of low adjustment efficiency and high labor cost of the configuration parameters for adjusting the CPU performance in the prior art, thereby providing a server parameter configuration method, a device and a storage medium.
According to a first aspect, the present invention provides a server parameter configuration method, the server parameter configuration method comprising the steps of:
acquiring initial basic input/output system parameters and initial operating system parameters of a server;
judging whether the initial basic input/output system parameters meet configuration requirements or not;
when the initial basic input/output system parameters meet the configuration requirements, judging whether the initial operating system parameters meet the configuration requirements or not;
when the initial operating system parameters meet the configuration requirements, judging whether the central processing unit operates in a state corresponding to the configuration requirements;
when the central processing unit is running in the state, configuration is completed.
In the mode, whether the initial parameter configuration condition of the server meets the configuration requirement can be automatically detected according to the initial basic input/output system parameters and the initial operating system parameters of the central processing unit in the server, and then the configuration completion condition of the server is detected by combining the running state of the central processing unit, so that the automatic verification of the running mode of the central processing unit is realized, the labor cost and the time cost are reduced, and the configuration efficiency is improved.
With reference to the first aspect, in a first implementation manner of the first aspect, the method further includes:
and when the initial basic input/output system parameters do not meet the configuration requirements, modifying the initial basic input/output system parameters according to the configuration requirements.
In the mode, the automatic configuration of the parameters is facilitated by automatically modifying the initial basic input/output system parameters which do not meet the configuration requirement, so that manual intervention is reduced, the accuracy of parameter configuration is improved, and the parameter configuration process is promoted.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, after modifying the initial bios parameters according to configuration requirements, the method further includes:
and carrying out secondary verification on the modified initial basic input/output system parameters.
In the mode, the secondary verification is carried out on the modified initial basic input/output system parameters, so that the determination of the modification completion condition of the initial basic input/output system parameters and whether the modified initial basic input/output system parameters meet the configuration requirements is facilitated, and the accuracy of parameter configuration is improved.
With reference to the first aspect, the first implementation manner of the first aspect, and/or the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the method further includes:
when the initial operating system parameters do not meet the configuration requirements, modifying the initial operating system parameters according to the configuration requirements.
In the mode, the automatic configuration of the parameters is facilitated by automatically modifying the initial operating system parameters which do not meet the configuration requirement, so that manual intervention is reduced, the accuracy of the parameter configuration is improved, and the parameter configuration process is promoted.
With reference to the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, after modifying the initial operating system parameter according to a configuration requirement, the method further includes:
and performing secondary verification on the modified initial operating system parameters.
In the mode, the secondary verification is carried out on the modified initial operating system parameters, so that the determination of the modification completion condition of the initial operating system parameters is facilitated, whether the modified operating system parameters meet the configuration requirements or not is facilitated, and the accuracy of parameter configuration is further improved.
With reference to the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the method further includes:
and performing secondary verification on the initial basic input and output system parameters meeting the configuration requirements and the operating system parameters meeting the configuration requirements.
In the mode, after each parameter is determined to meet the configuration requirement, secondary verification is carried out on each parameter, so that misjudgment in the prior step-by-step judgment process is avoided, the overall accuracy of parameter configuration is improved, and stability can be improved when a subsequent central processing unit runs based on the configured parameter.
With reference to the first aspect, in a sixth implementation manner of the first aspect, the configuration requirement is that the central processor is in a high performance mode; the state corresponding to the configuration requirement is an over-frequency state:
when the initial operating system parameter meets the configuration requirement, judging whether the central processing unit operates in a state corresponding to the configuration requirement, including:
when the initial operating system parameters meet the requirement that the central processing unit is in a high-performance mode, judging whether the central processing unit is in an over-frequency state or not in operation.
In the method, under the condition that the configuration parameters of the server meet the high-performance mode, whether the central processing unit can meet the user requirements in the follow-up actual operation or not can be determined in advance by judging whether the running state of the central processing unit is in the over-frequency state or not, and further the accuracy of parameter configuration is improved, so that the server after the configuration is completed can meet the configuration requirements in a multi-angle detection mode.
According to a second aspect, the present invention provides an interrupt setting apparatus, the server parameter configuration apparatus comprising the steps of:
the acquisition unit is used for acquiring initial basic input and output system parameters and initial operating system parameters of the server;
the first judging unit is used for judging whether the initial basic input/output system parameters meet the configuration requirements or not;
the second judging unit is used for judging whether the initial operating system parameters meet the configuration requirements or not when the initial basic input and output system parameters meet the configuration requirements;
the third judging unit is used for judging whether the central processing unit operates in a state corresponding to the configuration requirement when the initial operating system parameter meets the configuration requirement;
and the detection unit is used for completing configuration when the central processing unit runs in the state.
With reference to the second aspect, in a first implementation manner of the second aspect, the apparatus further includes:
and the first modification unit is used for modifying the initial basic input output system parameters according to the configuration requirements when the initial basic input output system parameters do not meet the configuration requirements.
With reference to the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the apparatus further includes:
and the first verification unit is used for carrying out secondary verification on the modified initial basic input/output system parameters.
With reference to the second aspect, the first implementation of the second aspect, and/or the second implementation of the second aspect, in a third implementation of the second aspect, the apparatus further includes:
and the second modification unit is used for modifying the initial operating system parameters according to the configuration requirements when the initial operating system parameters do not meet the configuration requirements.
With reference to the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the apparatus further includes:
and the second verification unit is used for carrying out secondary verification on the modified initial operating system parameters.
With reference to the fourth implementation manner of the second aspect, in a fifth implementation manner of the second aspect, the apparatus further includes:
and the third verification unit is used for carrying out secondary verification on the initial basic input and output system parameters meeting the configuration requirements and the operating system parameters meeting the configuration requirements.
With reference to the second aspect, in a sixth implementation manner of the second aspect, the configuration requirement is that the central processor is in a high performance mode;
the state corresponding to the configuration requirement is an over-frequency state;
the verification unit further includes:
and the verification subunit is used for judging whether the central processing unit is in an over-frequency state when running when the initial operating system parameters meet the requirement that the central processing unit is in a high-performance mode.
According to a third aspect, the embodiments of the present invention further provide a computer device, comprising a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the server parameter configuration method of any one of the first aspect and its alternative embodiments.
According to a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium storing computer instructions for causing the computer to perform the server parameter configuration method of any one of the first aspect and its alternative embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a server parameter configuration method according to an exemplary embodiment.
Fig. 2 is a flow chart of another server parameter configuration method according to an exemplary embodiment.
Fig. 3 is a flowchart of yet another server parameter configuration method according to an exemplary embodiment.
Fig. 4 is a flowchart of yet another server parameter configuration method according to an exemplary embodiment.
Fig. 5 is a flowchart of yet another server parameter configuration method according to an exemplary embodiment.
Fig. 6 is a flowchart of yet another server parameter configuration method according to an exemplary embodiment.
Fig. 7 is a flowchart of yet another server parameter configuration method according to an exemplary embodiment.
Fig. 8 is a block diagram of a server parameter configuration apparatus according to an exemplary embodiment.
Fig. 9 is a schematic diagram of a hardware structure of a computer device according to an exemplary embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
When the server leaves the factory, the running mode of the central processing unit (central processing unit, CPU) of the server is a default mode, so that the CPU running mode of the server to be delivered needs to be adjusted in order to meet the service demands of users and provide targeted services. The CPU operating mode may include a high performance mode, a single core mode, a power saving mode, a user isolation mode, or a default mode, among others.
When the CPU operation mode is adjusted, the BIOS parameters and OS parameters of the server need to be adjusted.
However, in the related art, when the BIOS parameters and the OS parameters are adjusted, the adjustment is performed by adopting a manual verification and manual adjustment manner, so that the adjustment efficiency is low, the labor cost is high, the accuracy of mass operation is not guaranteed, and the delivery quality of the server is affected.
In order to solve the above-mentioned problems, in the embodiments of the present invention, a server parameter configuration method is provided, which is used in a server, and it should be noted that an execution body of the server parameter configuration method may be a server parameter configuration device, and the device may be implemented in a manner of software, hardware or a combination of software and hardware to become part or all of the server. In the following method embodiments, the execution body will be described by taking a server as an example.
The server in the embodiment of the invention at least comprises a CPU and an OS so as to ensure that the computer equipment can be normally used. The server parameter configuration method provided by the invention can automatically detect whether the initial parameter configuration condition of the server meets the configuration requirement according to the initial basic input and output system parameters and the initial operating system parameters of the central processing unit in the server, and further detect the configuration completion condition of the central processing unit by combining the running state of the central processing unit so as to realize the automatic verification of the running mode of the central processing unit, thereby reducing the labor cost and the time cost and improving the configuration efficiency.
Fig. 1 is a flowchart of a server parameter configuration method according to an exemplary embodiment. As shown in fig. 1, the server parameter configuration method includes the following steps S101 to S105.
In step S101, initial basic input output system parameters and initial operating system parameters of the server are acquired.
In the embodiment of the invention, the running mode of the CPU influences the response capability and the processing efficiency when the server provides services such as information processing, program running and the like for the user. Also, in actual operation, the operation mode of the CPU depends on the support of the BIOS parameters and OS parameters of the server. Therefore, in order to determine the running mode of the CPU supported by the initial BIOS parameter and the initial OS parameter corresponding to the initial parameter configuration of the server, the BIOS parameter and the initial OS parameter of the server are respectively acquired, so that when the parameter adjustment is performed subsequently, the specific adjustment can be performed.
In step S102, it is determined whether the initial bios parameters meet the configuration requirement.
In the embodiment of the invention, the configuration requirement can be understood as an operation mode which is satisfied by the CPU in actual operation. Different configuration requirements correspond to different running modes of the CPU, so that parameters corresponding to the BIOS and parameters corresponding to the OS are different. That is, in different modes of operation, the corresponding required BIOS parameters and required OS parameters are different.
By determining whether the initial BIOS parameters meet the configuration requirements, it can be determined whether the initial BIOS parameters are the same as the required BIOS parameters, and further whether the initial BIOS parameters need to be modified. In one example, if the initial BIOS parameters are the same as the required BIOS parameters, the initial BIOS parameters are characterized to meet the configuration requirements, and no modification is needed. If the initial BIOS parameters are different from the required BIOS parameters, the initial BIOS parameters cannot meet the configuration requirements, and the parameters are definitely required to be adjusted through the comparison between the initial BIOS parameters and the required BIOS parameters. In one example, when the initial BIOS parameters are modified, the parameters that differ from the BIOS parameters may be modified. In another example, when the initial BIOS parameters are modified, the initial BIOS parameters may be replaced by the required BIOS parameters.
In step S103, when the initial bios parameters meet the configuration requirement, it is determined whether the initial os parameters meet the configuration requirement.
In the embodiment of the invention, whether the initial OS parameter can meet the configuration requirement is judged, and whether the initial OS parameter meets the required BIOS parameter is judged, so that whether the initial OS parameter can support the CPU to operate in the required operation mode under the initial condition is further determined, and whether the initial OS parameter needs to be modified is determined.
The BIOS is a set of programs solidified on a ROM chip on a main board in the computer, so that the bottommost and most direct hardware setting and control are provided for the server, and further, the stable operation of the OS is ensured. Therefore, when the parameters corresponding to the OS need to be modified, the modification is required based on the parameters corresponding to the BISO. If the parameter corresponding to the BIOS is an error parameter, the modification belongs to invalid modification when the parameter corresponding to the OS is modified, and the configuration time is easy to be excessively long.
Therefore, in order to improve the CPU parameter configuration efficiency, save the judgment cost and promote the configuration process, if the initial BIOS parameter meets the configuration requirement, the initial OS parameter is judged whether to meet the configuration requirement, and further when the initial OS parameter needs to be modified, the parameter corresponding to the BIOS can be ensured to be the correct parameter, thereby improving the modification efficiency and saving the configuration time. The parameters corresponding to the BIOS may include: initial BIOS parameters or modified initial BIOS parameters.
In step S104, when the initial operating system parameter meets the configuration requirement, it is determined whether the cpu is running in a state corresponding to the configuration requirement.
In the embodiment of the disclosure, when the initial OS parameter meets the configuration requirement, the parameter corresponding to the characterization BIOS meets the parameter required by the BIOS, and the parameter corresponding to the OS also meets the parameter required by the OS. In order to ensure that the running state corresponding to the configuration requirement can be met when the CPU runs based on the currently configured parameters, the running state of the CPU is further judged so as to simulate the real running condition of the CPU after the parameter configuration is completed, and further, the accuracy of the parameter configuration is improved.
In step S105, the configuration is completed when the central processing unit is running in a state.
Through the embodiment, the static parameter judgment and the dynamic running state judgment mode of the server parameter configuration can be verified based on the initial BIOS parameters and the OS parameters, so that the purpose of carrying out multi-aspect verification and adjustment on the server parameter configuration is achieved, labor cost and time cost are reduced, the configuration efficiency of the server parameters is improved, and the purpose of meeting the requirement of large-batch parameter configuration is achieved.
Fig. 2 is a flow chart of another server parameter configuration method according to an exemplary embodiment. As shown in fig. 2, the server parameter configuration method includes the following steps.
In step S201, initial basic input output system parameters and initial operating system parameters of the server are acquired.
In step S202, it is determined whether the initial bios parameters meet the configuration requirement. The same manner as in the embodiment of step S102 is not described here again.
In step S2031, when the initial bios parameters meet the configuration requirements, it is determined whether the initial os parameters meet the configuration requirements.
In step S2032, when the initial bios parameters do not meet the configuration requirements, the initial bios parameters are modified according to the configuration requirements.
In the embodiment of the invention, when the initial BIOS parameters do not meet the required BIOS parameters, the initial BIOS parameters are characterized in that under the initial condition, the initial BIOS parameters cannot support the CPU to operate in the required operation mode, so that the initial BIOS parameters need to be modified to meet the configuration requirement.
In one example, when the initial BIOS parameters are modified, the initial BIOS parameters are modified to the same parameters as the required BIOS parameters.
In step S204, when the initial operating system parameter meets the configuration requirement, it is determined whether the cpu is running in a state corresponding to the configuration requirement.
In step S205, the configuration is completed when the central processing unit is running in a state.
Through the embodiment, the initial BIOS parameters which do not meet the configuration requirements are automatically modified, so that the automatic configuration of the server parameters is realized, manual intervention is reduced, the accuracy of parameter configuration is improved, and the parameter configuration process is promoted.
Fig. 3 is a flowchart of yet another server parameter configuration method according to an exemplary embodiment. As shown in fig. 3, the server parameter configuration method includes the following steps.
In step S301, initial basic input output system parameters and initial operating system parameters of the server are acquired.
In step S302, it is determined whether the initial bios parameters meet the configuration requirement.
In step S3031, when the initial bios parameters meet the configuration requirements, it is determined whether the initial os parameters meet the configuration requirements.
In step S3032, when the initial bios parameters do not meet the configuration requirement, the initial bios parameters are modified according to the configuration requirement.
In step S304, a secondary verification is performed on the modified initial bios parameters.
In the embodiment of the invention, the modified initial BIOS parameters are subjected to secondary verification, so that the modification completion condition of the initial BIOS parameters is determined, and whether the modification of the initial BIOS parameters is completed or not is determined. Meanwhile, based on the secondary verification, whether the initial BIOS parameters different from the required BIOS parameters are completely modified or not is determined, whether missing or incorrect modification exists or not is facilitated, and further accuracy of parameter configuration is improved.
In one example, after the verification passes, the modified initial BIOS parameters may be validated by restarting the server. That is, after the server is restarted, the modified initial BIOS parameters completely cover the initial BIOS parameters, so that the parameters corresponding to the BIOS are only the modified initial BIOS parameters.
In step S305, when the initial operating system parameter meets the configuration requirement, it is determined whether the cpu is running in a state corresponding to the configuration requirement.
In step S306, the configuration is completed when the central processing unit is running in a state.
Through the embodiment, the modified initial BIOS parameters are subjected to secondary verification, so that the determination of the completion condition of the modification of the initial BIOS parameters is facilitated, whether the modified initial BIOS parameters meet the configuration requirements or not is facilitated, and the accuracy of parameter configuration is further improved.
Fig. 4 is a flowchart of yet another server parameter configuration method according to an exemplary embodiment. As shown in fig. 4, the server parameter configuration method includes the following steps.
In step S401, initial basic input output system parameters and initial operating system parameters of the server are acquired.
In step S402, it is determined whether the initial bios parameters meet the configuration requirement.
In step S4031, when the initial bios parameters meet the configuration requirements, it is determined whether the initial os parameters meet the configuration requirements.
In step S4032, when the initial bios parameters do not meet the configuration requirement, the initial bios parameters are modified according to the configuration requirement.
In step S404, a secondary verification is performed on the modified initial bios parameters.
In step S4051, when the initial operating system parameter meets the configuration requirement, it is determined whether the cpu is running in the state corresponding to the configuration requirement.
In step S4052, when the initial operating system parameter does not meet the configuration requirement, the initial operating system parameter is modified according to the configuration requirement.
In the embodiment of the invention, the automatic configuration of the parameters is facilitated by automatically modifying the initial OS parameters which do not meet the configuration requirement, so that manual intervention is reduced, the accuracy of the parameter configuration is improved, and the parameter configuration process is promoted.
In one example, when the initial OS parameters are modified, the initial OS parameters are modified to the same parameters as the desired OS parameters.
In step S406, the configuration is completed when the central processor is running in a state.
Fig. 5 is a flowchart of yet another server parameter configuration method according to an exemplary embodiment. As shown in fig. 5, the server parameter configuration method includes the following steps.
In step S501, initial basic input output system parameters and initial operating system parameters of the server are acquired.
In step S502, it is determined whether the initial bios parameters meet the configuration requirement.
In step S5031, when the initial bios parameters meet the configuration requirements, it is determined whether the initial os parameters meet the configuration requirements.
In step S5032, when the initial bios parameters do not meet the configuration requirement, the initial bios parameters are modified according to the configuration requirement.
In step S504, a secondary verification is performed on the modified initial bios parameters.
In step S5051, when the initial operating system parameter meets the configuration requirement, it is determined whether the cpu is running in a state corresponding to the configuration requirement.
In step S5052, when the initial operating system parameter does not meet the configuration requirement, the initial operating system parameter is modified according to the configuration requirement.
In step S506, a secondary verification is performed on the modified initial operating system parameters.
In the embodiment of the invention, the modified initial OS parameters are subjected to secondary verification, so that the modification completion condition of the initial OS parameters is determined, and whether the modification of the initial OS parameters is completed or not is determined. Meanwhile, based on the secondary verification, whether the initial OS parameters different from the required OS parameters are completely modified or not is determined, whether missing or incorrect modification exists or not is facilitated, and further accuracy of parameter configuration is improved.
In step S507, when the initial operating system parameter meets the configuration requirement, it is determined whether the cpu is running in a state corresponding to the configuration requirement.
In step S508, the configuration is completed when the central processing unit is running in a state.
Through the embodiment, the modified initial OS parameters are subjected to secondary verification, so that the determination of the modification completion condition of the initial OS parameters is facilitated, whether the modified initial OS parameters meet the configuration requirements or not is facilitated, and the accuracy of parameter configuration is improved.
Fig. 6 is a flowchart of yet another server parameter configuration method according to an exemplary embodiment. As shown in fig. 6, the server parameter configuration method includes the following steps.
In step S601, initial basic input output system parameters and initial operating system parameters of the server are acquired.
In step S602, it is determined whether the initial bios parameters meet the configuration requirement.
In step S6031, when the initial bios parameters meet the configuration requirements, it is determined whether the initial os parameters meet the configuration requirements.
In step S6032, when the initial bios parameters do not meet the configuration requirement, the initial bios parameters are modified according to the configuration requirement.
In step S604, a secondary verification is performed on the modified initial bios parameters.
In step S6051, when the initial os parameter meets the configuration requirement, it is determined whether the cpu is running in a state corresponding to the configuration requirement.
In step S6052, when the initial operating system parameter does not meet the configuration requirement, the initial operating system parameter is modified according to the configuration requirement.
In step S606, a secondary verification is performed on the modified initial operating system parameters.
In step S607, a secondary verification is performed of the initial bios parameters satisfying the configuration requirements and the operating system parameters satisfying the configuration requirements.
In the embodiment of the invention, after each parameter is determined to meet the configuration requirement, the secondary verification is carried out on each parameter, so that the occurrence of misjudgment in the prior step-by-step judgment process is avoided, the overall accuracy of parameter configuration is improved, and the stability can be improved when the subsequent CPU runs based on the configured parameters.
In step S608, it is determined whether the cpu is operating in a state corresponding to the configuration request.
In step S609, when the central processing unit is running in a state, the configuration is completed.
In an implementation scenario, the configuration requirements that the CPU needs to meet may be that the CPU is in a high performance mode. When the CPU is in the high-performance mode operation, the CPU is in the over-frequency state for operation, so that in order to judge whether the CPU can be in the high-performance mode for operation or not when the CPU is operated based on the parameters which are configured at present, the CPU can be judged based on whether the state of the CPU is in the over-frequency state or not when the state of the CPU is judged. The CPU parameter configuration process may be as shown in fig. 7, where fig. 7 is a flowchart of yet another server parameter configuration method according to an exemplary embodiment.
In step S701, initial basic input output system parameters and initial operating system parameters of the server are acquired.
In step S702, it is determined whether the initial bios parameters satisfy the high performance mode.
In step S703, when the initial bios parameters satisfy the high performance mode, it is determined whether the initial os parameters satisfy the high performance mode.
In step S704, when the initial operating system parameter satisfies the high performance mode, it is determined whether the cpu is operating in the over-frequency state.
In step S705, when the central processing unit is running in the over-frequency state, the configuration is completed.
Through the embodiment, the parameters corresponding to the BIOS and the parameters corresponding to the OS can be automatically configured to support the parameters corresponding to the CPU in the high-performance mode, so that the automatic verification and adjustment of the parameters of the server are realized, the configuration process is simplified, the labor cost and the time cost are saved, the configuration efficiency of the parameters of the server is improved, and the aim of meeting the requirement of the configuration of the parameters in a large scale is fulfilled.
In another implementation scenario, in order to ensure complete parameter configuration and improve configuration stability, after determining that the modified initial BIOS parameters meet the configuration requirements, the server is restarted, so that the modified initial BIOS parameters can be validated. And judging whether the initial OS parameters meet the configuration requirements aiming at the BIOS parameters after the BIOS parameters are validated. If the initial OS parameters do not meet the configuration requirements, modifying the initial OS parameters, and performing secondary verification on the modified initial OS parameters to ensure that the modified initial OS parameters meet the configuration requirements. After the parameters of the BIOS and the OS are configured, verifying the configured parameters corresponding to the BIOS and the configured parameters corresponding to the OS to ensure that the parameters are configured, the CPU can be supported to run in a high-performance mode, and further, whether the CPU is in an over-frequency state or not is judged, so that whether the server can meet the configuration requirement in actual application is determined, and the stability of parameter configuration is improved.
It should be understood that, although the steps in fig. 1-7 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps of fig. 1-7 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
Based on the same inventive concept, the invention also provides a server parameter configuration device.
Fig. 8 is a block diagram of a server parameter configuration apparatus according to an exemplary embodiment. As shown in fig. 8, the server parameter configuration apparatus includes an acquisition unit 801, a first judgment unit 802, a second judgment unit 803, a third judgment unit 804, and a detection unit 805.
An obtaining unit 801, configured to obtain initial basic input/output system parameters and initial operating system parameters of a server;
a first judging unit 802, configured to judge whether the initial basic input/output system parameter meets the configuration requirement;
a second judging unit 803, configured to judge whether the initial operating system parameter meets the configuration requirement when the initial basic input output system parameter meets the configuration requirement;
a third judging unit 804, configured to judge whether the central processing unit is operating in a state corresponding to the configuration requirement when the initial operating system parameter meets the configuration requirement;
the detecting unit 805 is configured to complete the configuration when the central processing unit is running in a state.
In an embodiment, the apparatus further comprises: and the first modification unit is used for modifying the initial basic input output system parameters according to the configuration requirements when the initial basic input output system parameters do not meet the configuration requirements.
In another embodiment, the apparatus further comprises: and the first verification unit is used for carrying out secondary verification on the modified initial basic input/output system parameters.
In yet another embodiment, the apparatus further comprises: and the second modification unit is used for modifying the initial operating system parameters according to the configuration requirements when the initial operating system parameters do not meet the configuration requirements.
In yet another embodiment, the apparatus further comprises: and the second verification unit is used for carrying out secondary verification on the modified initial operating system parameters.
In yet another embodiment, the apparatus further comprises: and the third verification unit is used for carrying out secondary verification on the initial basic input and output system parameters meeting the configuration requirements and the operating system parameters meeting the configuration requirements.
In yet another embodiment, the configuration requirement is that the central processor be in a high performance mode. The state corresponding to the configuration requirement is the over-frequency state. A verification unit, further comprising: and the verification subunit is used for judging whether the central processing unit is in an over-frequency state when running when the initial operating system parameters meet the requirement that the central processing unit is in a high-performance mode.
The specific limitation of the server parameter configuration device and the beneficial effects can be referred to the limitation of the server parameter configuration method, and are not described herein. The various modules described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Fig. 9 is a schematic diagram of a hardware structure of a computer device according to an exemplary embodiment. As shown in fig. 9, the device includes one or more processors 910 and a memory 920, where the memory 920 includes persistent memory, volatile memory, and a hard disk, one processor 910 being illustrated in fig. 9. The apparatus may further include: an input device 930, and an output device 940.
The processor 910, memory 920, input device 930, and output device 940 may be connected by a bus or other means, for example in fig. 9.
The processor 910 may be a central processing unit (Central Processing Unit, CPU). The processor 910 may also be any other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 920, which is a non-transitory computer readable storage medium, includes persistent memory, volatile memory, and a hard disk, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the service management method in the embodiments of the present application. The processor 910 executes various functional applications and data processing of the server by running non-transitory software programs, instructions, and modules stored in the memory 920, i.e., implements the server parameter configuration method described above.
Memory 920 may include a storage program area that may store an operating system, at least one application required for functionality, and a storage data area; the storage data area may store data, etc., as needed, used as desired. In addition, memory 920 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 920 may optionally include memory located remotely from processor 910, which may be connected to the data processing apparatus via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 930 may receive input numeric or character information and generate key signal inputs related to user settings and function control. The output device 940 may include a display device such as a display screen.
One or more modules are stored in the memory 920 that, when executed by the one or more processors 910, perform the methods illustrated in fig. 1-7.
The product can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details which are not described in detail in the present embodiment can be found in the embodiments shown in fig. 1 to 7.
The embodiment of the invention also provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the authentication method in any of the method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
It will be appreciated by those skilled in the art that implementing all or part of the above-described embodiment method may be implemented by a computer program to instruct related hardware, and the program may be stored in a computer readable storage medium, and the program may include the above-described embodiment method when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the invention.

Claims (8)

1. A server parameter configuration method, comprising:
acquiring initial basic input/output system parameters and initial operating system parameters of a server;
judging whether the initial basic input/output system parameters meet configuration requirements or not;
when the initial basic input/output system parameters do not meet the configuration requirements, modifying the initial basic input/output system parameters according to the configuration requirements;
performing secondary verification on the modified initial basic input/output system parameters;
after the verification is passed, the modified initial basic input and output system parameters are validated by restarting the server, and the modified initial basic input and output system parameters are used as the basic input and output system parameters;
when the initial basic input/output system parameters meet the configuration requirements, judging whether the initial operating system parameters meet the configuration requirements or not;
when the initial operating system parameters meet the configuration requirements, judging whether the central processing unit operates in a state corresponding to the configuration requirements;
when the central processing unit is running in the state, configuration is completed.
2. The method according to claim 1, wherein the method further comprises:
when the initial operating system parameters do not meet the configuration requirements, modifying the initial operating system parameters according to the configuration requirements.
3. The method of claim 2, wherein after modifying the initial operating system parameters according to configuration requirements, the method further comprises:
and performing secondary verification on the modified initial operating system parameters.
4. A method according to claim 3, characterized in that the method further comprises:
and performing secondary verification on the initial basic input and output system parameters meeting the configuration requirements and the operating system parameters meeting the configuration requirements.
5. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the configuration requirement is that the central processor is in a high performance mode;
the state corresponding to the configuration requirement is an over-frequency state;
when the initial operating system parameter meets the configuration requirement, judging whether the central processing unit operates in a state corresponding to the configuration requirement, including:
when the initial operating system parameters meet the requirement that the central processing unit is in a high-performance mode, judging whether the central processing unit is in an over-frequency state or not in operation.
6. A server parameter configuration apparatus, characterized in that the server parameter configuration apparatus comprises:
the acquisition unit is used for acquiring initial basic input and output system parameters and initial operating system parameters of the server;
the first judging unit is used for judging whether the initial basic input/output system parameters meet the configuration requirements or not;
the first modification unit is used for modifying the initial basic input output system parameters according to the configuration requirements when the initial basic input output system parameters do not meet the configuration requirements;
the first verification unit is used for carrying out secondary verification on the modified initial basic input/output system parameters;
a unit for executing the method that after the verification is passed, the modified initial basic input output system parameter is validated by adopting a restarting server mode, and the modified initial basic input output system parameter is used as the basic input output system parameter;
the second judging unit is used for judging whether the initial operating system parameters meet the configuration requirements or not when the initial basic input and output system parameters meet the configuration requirements;
the third judging unit is used for judging whether the central processing unit operates in a state corresponding to the configuration requirement when the initial operating system parameter meets the configuration requirement;
and the detection unit is used for completing configuration when the central processing unit runs in the state.
7. A computer device comprising a memory and a processor, said memory and said processor being communicatively coupled to each other, said memory having stored therein computer instructions, said processor executing said computer instructions to perform the server parameter configuration method of any of claims 1-5.
8. A computer-readable storage medium storing computer instructions for causing the computer to execute the server parameter configuration method according to any one of claims 1 to 5.
CN202111275742.1A 2021-10-29 2021-10-29 Server parameter configuration method, device and storage medium Active CN113946377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111275742.1A CN113946377B (en) 2021-10-29 2021-10-29 Server parameter configuration method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111275742.1A CN113946377B (en) 2021-10-29 2021-10-29 Server parameter configuration method, device and storage medium

Publications (2)

Publication Number Publication Date
CN113946377A CN113946377A (en) 2022-01-18
CN113946377B true CN113946377B (en) 2024-02-13

Family

ID=79337224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111275742.1A Active CN113946377B (en) 2021-10-29 2021-10-29 Server parameter configuration method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113946377B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645935A (en) * 2013-12-17 2014-03-19 山东中创软件工程股份有限公司 Device and method for adjusting JVM (java virtual machine) parameters in domestic environment
CN105824652A (en) * 2015-01-08 2016-08-03 深圳市祈飞科技有限公司 Method and system for directly changing BIOS settings in operating system
CN110391939A (en) * 2019-07-26 2019-10-29 秒针信息技术有限公司 Operating system configuration method, device and computer storage medium based on NFC
CN110413470A (en) * 2019-06-25 2019-11-05 苏州浪潮智能科技有限公司 A kind of server I SS function test method, system, terminal and storage medium
CN112527397A (en) * 2020-11-19 2021-03-19 宁畅信息产业(北京)有限公司 Method and device for modifying basic input output system options and computer equipment
CN113360257A (en) * 2021-04-16 2021-09-07 山东英信计算机技术有限公司 Information operation method and device based on BIOS, storage medium and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8312256B2 (en) * 2010-02-24 2012-11-13 Hewlett-Packard Development Company, L.P. Display of a basic input/output system (BIOS) productivity display
CN108845834A (en) * 2018-06-01 2018-11-20 上海兆芯集成电路有限公司 Computer installation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645935A (en) * 2013-12-17 2014-03-19 山东中创软件工程股份有限公司 Device and method for adjusting JVM (java virtual machine) parameters in domestic environment
CN105824652A (en) * 2015-01-08 2016-08-03 深圳市祈飞科技有限公司 Method and system for directly changing BIOS settings in operating system
CN110413470A (en) * 2019-06-25 2019-11-05 苏州浪潮智能科技有限公司 A kind of server I SS function test method, system, terminal and storage medium
CN110391939A (en) * 2019-07-26 2019-10-29 秒针信息技术有限公司 Operating system configuration method, device and computer storage medium based on NFC
CN112527397A (en) * 2020-11-19 2021-03-19 宁畅信息产业(北京)有限公司 Method and device for modifying basic input output system options and computer equipment
CN113360257A (en) * 2021-04-16 2021-09-07 山东英信计算机技术有限公司 Information operation method and device based on BIOS, storage medium and equipment

Also Published As

Publication number Publication date
CN113946377A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN108255653B (en) Product testing method and terminal thereof
US10142170B2 (en) Log processing method and client
WO2019140656A1 (en) Firmware upgrade method and apparatus, electronic device and control device
US20160328281A1 (en) Application error detection method for cloud streaming service, and apparatus and system therefor
US20210182052A1 (en) Method, device, and apparatus for updating application program, and storage medium
US20230396501A1 (en) Cluster quorum method and apparatus, electronic device, and readable storage medium
WO2016023345A1 (en) Gated upgrade method and apparatus
US9268662B2 (en) Method and system for a high availability framework
WO2014153311A1 (en) Automatic version management
CN109375937A (en) Method for upgrading system, device, terminal device and storage medium
CN102968354A (en) Intel Brickland-EX platform-based same-frequency lock-step mode automatic switching method
CN111159090B (en) Information processing method and device and electronic equipment
WO2016183916A1 (en) Dual card switching method and device
CN111752577B (en) Upgrading method and equipment for system version
CN113946377B (en) Server parameter configuration method, device and storage medium
CN111488163A (en) Firmware updating method and device, electronic equipment and storage medium
CN110888800A (en) Service interaction function test method, device, storage medium and test system
US11797334B1 (en) BMC parameter configuration and effect-taking method and apparatus, device, and medium
CN111400113B (en) Complete machine self-checking method, device and system of computer system
CN111930626B (en) Automatic testing method and device based on PaaS cloud service
CN114442765A (en) Fan control method for computer equipment, baseboard management controller and storage medium
CN106776119A (en) The method for restarting of Service Instance, device and server
CN109981521B (en) Message association method, message association device and message association system
CN113676894A (en) Service processing method and device
CN110554906A (en) virtual machine configuration management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant