Frequency control method, apparatus, system and readable storage medium

CN116414211BActive Publication Date: 2026-08-11INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0004]本发明提供一种频率控制方法、装置、系统及可读存储介质,用以解决现有调频需要依赖系统驱动与硬件参数的技术缺陷,提供了一种通过系统固件与远程管理模块相配合,将CPU频率锁定在预设范围或者预设固定值的方法

Benefits of technology

[0044] This invention provides a frequency control method, apparatus, system, and readable storage medium. By setting up a frequency information input module, a frequency information storage module, and a frequency information control module, this invention enables the input, storage, retrieval, and transmission of frequency range information at different startup stages of the server. This allows the CPU management unit to adjust the CPU frequency based on the frequency range information. This invention does not rely on system drivers or hardware parameters and can autonomously select the frequency range. By setting a preset frequency range in the BIOS display interface, the CPU frequency is locked within the supported frequency range to meet users' needs for different server frequency ranges, thereby improving overall server performance and promoting energy conservation and emission reduction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116414211B_ABST
    Figure CN116414211B_ABST
Patent Text Reader

Abstract

This invention provides a frequency control method, apparatus, system, and readable storage medium, relating to the field of server applications. The method includes: during the initial server startup phase, invoking a frequency information input module to input frequency range information within a preset frequency range; during the server restart phase, invoking a frequency information storage module and storing the frequency range information in the frequency information storage module; and in response to a startup termination command, invoking a frequency information control module to read the frequency range information from the frequency information storage module and sending the frequency range information to a CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information. This invention does not rely on system drivers and hardware parameters. By setting a preset frequency range in the BIOS display interface, the CPU frequency is locked within the supported frequency range to meet users' needs for different frequency ranges of the server, thereby improving the overall performance of the server and promoting energy conservation and emission reduction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of server applications, and more particularly to a frequency control method, apparatus, system, and readable storage medium. Background Technology

[0002] Servers are now widely used, and as the core component of a server, the CPU's frequency has a significant impact on the overall performance and power consumption. Under different loads, different frequencies are often required to reduce power consumption while meeting performance requirements.

[0003] Currently, frequency adjustment is usually achieved by combining system drivers with hardware parameters. However, frequency adjustment in this way is uncontrollable for users, resulting in excessive frequency margins for certain services, which reduces the overall performance of the server. Summary of the Invention

[0004] This invention provides a frequency control method, apparatus, system, and readable storage medium to address the technical shortcomings of existing frequency modulation methods that rely on system drivers and hardware parameters. It provides a method for locking the CPU frequency within a preset range or a preset fixed value by cooperating with system firmware and a remote management module.

[0005] In a first aspect, the present invention provides a frequency control method, comprising:

[0006] During the initial startup phase of the server, the frequency information input module is invoked to input frequency range information within a preset frequency range.

[0007] During the server restart phase, the frequency information storage module is invoked, and the frequency range information is stored in the frequency information storage module.

[0008] In response to the start / end command, the frequency information control module is invoked to read the frequency range information from the frequency information storage module and send the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information.

[0009] The startup termination command is generated after the server startup is complete.

[0010] According to the frequency control method provided by the present invention, before inputting frequency range information located within a preset frequency range, the method further includes:

[0011] Read the maximum and minimum supported frequencies of the CPU, and determine a preset frequency range based on the maximum and minimum supported frequencies;

[0012] The preset frequency range is displayed in the BIOS display interface.

[0013] According to the frequency control method provided by the present invention, the step of calling the frequency information storage module and storing the frequency range information in the frequency information storage module includes:

[0014] The system firmware in the frequency information storage module is invoked to read the frequency range information;

[0015] The frequency range information is stored in the storage chip of the frequency information storage module by calling the communication interface in the frequency information storage module.

[0016] According to the frequency control method provided by the present invention, the step of calling the frequency information control module to read the frequency range information in the frequency information storage module and sending the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information includes:

[0017] The remote management unit in the frequency information control module is invoked to read the frequency range information from the storage chip in the frequency information storage module;

[0018] The remote management unit sends the frequency range information to the CPU management unit through the management interface IPMI;

[0019] If the upper and lower limits in the frequency range information are not the same, the CPU frequency is adjusted to be between the lower and upper limits.

[0020] If the upper and lower limits in the frequency range information are the same, the CPU frequency is adjusted to the upper limit.

[0021] According to the frequency control method provided by the present invention, after storing the frequency range information to the frequency information storage module, the method further includes:

[0022] Obtain the operating frequency corresponding to all working drivers in the server;

[0023] Set all target drivers to disabled.

[0024] The target driver is a driver whose operating frequency is not within the frequency range information.

[0025] According to the frequency control method provided by the present invention, before inputting frequency range information located within a preset frequency range, the method further includes:

[0026] Under the condition that the preset conditions are met, the frequency range information is determined based on the minimum frequency value of the preset frequency range and the CPU base frequency.

[0027] The preset conditions include:

[0028] The entered password does not match the preset password;

[0029] The server's initial startup time is outside the preset time range;

[0030] No external power supply is connected.

[0031] Secondly, the present invention provides a frequency control system, including a server body, the server body including a central processing unit, a frequency information input module, a frequency information storage module and a frequency information control module;

[0032] The frequency information input module is used to input frequency range information within a preset frequency range during the initial startup phase of the server.

[0033] The frequency information storage module is used to store the frequency range information to the frequency information storage module during the server restart phase;

[0034] The frequency information control module is used to read the frequency range information in the frequency information storage module and send the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information.

[0035] The frequency information input module is connected to the frequency information storage module, and the frequency information storage module is connected to the frequency information control module;

[0036] The server body also includes a memory and a program or instruction stored in the memory that can run on the central processing unit. When the program or instruction is executed by the central processing unit, the frequency control method is executed. The method includes: during the initial startup phase of the server, calling the frequency information input module to input frequency range information within a preset frequency range; during the server restart phase, calling the frequency information storage module and storing the frequency range information in the frequency information storage module; in response to a startup end command, calling the frequency information control module to read the frequency range information in the frequency information storage module and sending the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information; the startup end command is generated after the server startup is completed.

[0037] Thirdly, the present invention provides a frequency control device, comprising:

[0038] Input unit: Used during the initial startup phase of the server to call the frequency information input module and input frequency range information within a preset frequency range;

[0039] Storage unit: used to call the frequency information storage module and store the frequency range information to the frequency information storage module during the server restart phase;

[0040] Sending unit: In response to a start / end command, it calls the frequency information control module to read the frequency range information from the frequency information storage module and sends the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information;

[0041] The startup termination command is generated after the server startup is complete.

[0042] Fourthly, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the frequency control method as described above.

[0043] Fifthly, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the frequency control method as described in any of the preceding claims.

[0044] This invention provides a frequency control method, apparatus, system, and readable storage medium. By setting up a frequency information input module, a frequency information storage module, and a frequency information control module, this invention enables the input, storage, retrieval, and transmission of frequency range information at different startup stages of the server. This allows the CPU management unit to adjust the CPU frequency based on the frequency range information. This invention does not rely on system drivers or hardware parameters and can autonomously select the frequency range. By setting a preset frequency range in the BIOS display interface, the CPU frequency is locked within the supported frequency range to meet users' needs for different server frequency ranges, thereby improving overall server performance and promoting energy conservation and emission reduction. Attached Figure Description

[0045] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0046] Figure 1 This is one of the flowcharts illustrating the frequency control method provided by the present invention;

[0047] Figure 2 This is the second flowchart of the frequency control method provided by the present invention;

[0048] Figure 3This is a schematic diagram of the process of storing the frequency range information to the frequency information storage module provided by the present invention;

[0049] Figure 4 This is a schematic diagram of the process of sending the frequency range information to the CPU management unit provided by the present invention;

[0050] Figure 5 This is the second flowchart of the frequency control method provided by the present invention;

[0051] Figure 6 This is a schematic diagram of the frequency control system provided by the present invention;

[0052] Figure 7 This is a schematic diagram of the frequency control device provided by the present invention;

[0053] Figure 8 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0055] Existing frequency adjustment strategies often involve adjusting the frequency within preset maximum and minimum values, or fixing the frequency at the base frequency or minimum frequency through parameter combinations. In such cases, system drivers and hardware parameters need to work together to achieve frequency adjustment, and precise control over the frequency magnitude is difficult, resulting in excessive frequency margins for certain services. Furthermore, because different systems employ different frequency adjustment strategies, server cluster applications often require frequent adjustments to settings across different systems, hindering batch configuration. To address these technical problems, this invention provides a frequency control method, apparatus, system, and readable storage medium. Figure 1 This is one of the flowcharts illustrating the frequency control method provided by the present invention, which provides a frequency control method comprising:

[0056] During the initial startup phase of the server, the frequency information input module is invoked to input frequency range information within a preset frequency range.

[0057] During the server restart phase, the frequency information storage module is invoked, and the frequency range information is stored in the frequency information storage module.

[0058] In response to the start / end command, the frequency information control module is invoked to read the frequency range information from the frequency information storage module and send the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information.

[0059] The startup termination command is generated after the server startup is complete.

[0060] In step 101, the initial startup phase of the server is the process from shutdown to startup. The server, as the execution entity, calls a preset frequency information input module to receive input frequency range information. Specifically, during the initial startup phase of the server, an input box is displayed in the Basic Input Output System (BIOS) interface. The frequency range information can be received in the input box of the BIOS display interface. Optionally, the frequency range of the input box is limited to a preset frequency range so that frequency input information within the preset frequency range can be received.

[0061] In an optional embodiment, the preset frequency range is 600MHz to 3000MHz, then frequency range information within the 600MHz to 3000MHz frequency range can be received, such as 700MHz to 2400MHz, 1500MHz to 3000MHz, and 1800MHz to 1800MHz.

[0062] Optionally, users can customize the frequency range in the frequency range setting. For example, users who pursue high-performance applications can keep the operating frequency constant at the highest level; customers who prioritize performance while considering both performance and power consumption can set the CPU frequency between the base frequency and a high frequency to achieve dynamic adjustment; and users with very high requirements for power consumption and noise can keep the CPU frequency constant at the base frequency or adjust it between the minimum frequency and the base frequency. Through the input box on the BIOS display interface, this invention can lock the frequency within any range with one click, unaffected by hardware or system drivers.

[0063] In step 102, during the server restart phase, the frequency information storage module is invoked, and the frequency range information is stored in the frequency information storage module. The server restart phase is the completion of the initial server startup phase, and the frequency information input module is invoked to input the frequency range information within the preset frequency range, and a corresponding restart operation is performed. This is the phase in which the server restarts. At this time, the preset frequency information storage module in the server is invoked. The frequency information storage module is used to store the frequency range information. The module that stores the frequency range information receives the frequency range information and stores the frequency range information.

[0064] In step 103, after storing the frequency range information to the frequency information storage module, wait for the server startup program to finish, generate a startup end command after the server startup program finishes, and respond to the startup end command.

[0065] Optionally, the present invention pre-sets a frequency information control module in the server. In response to a start / end command, the frequency information control module is invoked to read the frequency range information in the frequency information storage module. The server obtains the frequency range information and sends it to the CPU management unit. After receiving the frequency range information, the CPU management unit adjusts the CPU frequency according to the frequency range information.

[0066] Optionally, before inputting the frequency range information within a preset frequency range, the following may also be included:

[0067] Under the condition that the preset conditions are met, the frequency range information is determined based on the minimum frequency value of the preset frequency range and the CPU base frequency.

[0068] The preset conditions include:

[0069] The entered password does not match the preset password;

[0070] The server's initial startup time is outside the preset time range;

[0071] No external power supply is connected.

[0072] Optionally, the present invention restricts unauthorized users' use of the server by limiting the server's CPU frequency. These unauthorized users include users who are using the server illegally and users whose usage time is restricted. Specifically:

[0073] In an optional embodiment, if the entered password cannot match the preset password, the frequency range information is determined based on the minimum frequency of the preset frequency range and the CPU base frequency. The present invention can pre-set a power-on password or running password in the service area so that when the server starts up for the first time or restarts, a password is required to be entered in a specified input box. If the entered password matches the preset password, subsequent steps are executed, such as calling the frequency information input module, calling the frequency information storage module and storing the frequency range information in the frequency information storage module, calling the frequency information control module to read the frequency range information in the frequency information storage module, and sending the frequency range information to the CPU management unit.

[0074] If the entered password does not match the preset password, it is considered that the user is not authorized and will not be able to use the server within the appropriate frequency range. In this case, the frequency range information is determined based on the minimum frequency of the preset frequency range and the CPU base frequency. If the preset frequency range is 600MHz to 2800MHz and the CPU base frequency is 1800MHz, then the frequency range information is 600MHz to 1800MHz.

[0075] In another optional embodiment, if the server's initial startup time is outside the preset time range, the frequency range information is determined based on the minimum frequency of the preset frequency range and the CPU base frequency. This invention can preset a time range, for example, 7 PM to 8 PM. If the server is used at 10 PM, it is considered that the server's initial startup time is outside the preset time range. In this case, the frequency range information is determined based on the minimum frequency of the preset frequency range and the CPU base frequency. Optionally, the preset frequency range is 600MHz to 2500MHz, and the CPU base frequency is 1400MHz, so the frequency range information is 600MHz to 1400MHz. Using the server between 7 PM and 8 PM allows for normal use of the appropriate CPU frequency. This invention limits the server's CPU frequency by restricting the server's startup time, ultimately preventing certain games or entertainment programs from starting, thus enabling users to rationally plan their study, work, and gaming time and avoid internet addiction.

[0076] Optionally, this invention reduces server power consumption by limiting the server's CPU frequency, thereby saving power and extending usage time when no external power supply is connected. In one optional embodiment, when an external power supply is connected, the following steps are executed: calling the frequency information input module, calling the frequency information storage module and storing the frequency range information in the frequency information storage module, calling the frequency information control module to read the frequency range information from the frequency information storage module, and sending the frequency range information to the CPU management unit. When no external power supply is connected, it is assumed that the server cannot achieve real-time power supply. If it continues to run at a high CPU frequency, the runtime will be greatly shortened. In this case, the frequency range information is determined based on the minimum frequency of the preset frequency range and the CPU base frequency, thereby increasing the server's usability time and improving the user experience.

[0077] This invention uses CPU frequency as the control object to realize data interaction in the BIOS interface. However, the module calling, data interaction and control scheme proposed in this invention are not limited to the use of server frequency locking. When faced with technical problems of locking and controlling other performance parameters of the server, those skilled in the art can also use the technical solution of this invention to set and control parameters, which will not be elaborated here.

[0078] This invention, by setting up a frequency information input module, a frequency information storage module, and a frequency information control module in the server, enables the setting of frequency control options in the BIOS interactive interface, thereby displaying the lockable frequency range. After the user inputs the frequency range to be locked, the server sends the frequency range information to the motherboard's memory chip during the startup process, while simultaneously disabling frequency-related drivers in the system. After the out-of-band management module detects the completion of startup, it actively reads the frequency range information from the memory chip. Upon successful reading, it sends a frequency setting command to the CPU management unit, thereby locking the CPU frequency. This invention effectively solves the drawbacks of system frequency adjustment, locking the frequency range through the BIOS display interface to meet customer needs for different frequency ranges, without requiring users to make cumbersome settings in the system. It also eliminates the influence of different system frequency adjustment strategies, ensuring the consistency of the server's frequency strategy.

[0079] This invention provides a frequency control method, apparatus, system, and readable storage medium. By setting up a frequency information input module, a frequency information storage module, and a frequency information control module, this invention enables the input, storage, retrieval, and transmission of frequency range information at different startup stages of the server. This allows the CPU management unit to adjust the CPU frequency based on the frequency range information. This invention does not rely on system drivers or hardware parameters and can autonomously select the frequency range. By setting a preset frequency range in the BIOS display interface, the CPU frequency is locked within the supported frequency range to meet users' needs for different server frequency ranges, thereby improving overall server performance and promoting energy conservation and emission reduction.

[0080] Figure 2 This is a second flowchart illustrating the frequency control method provided by the present invention. Before inputting frequency range information within a preset frequency range, it further includes:

[0081] Read the maximum and minimum supported frequencies of the CPU, and determine a preset frequency range based on the maximum and minimum supported frequencies;

[0082] The preset frequency range is displayed in the BIOS display interface.

[0083] In step 201, the maximum and minimum supported frequencies of the CPU are read, and a preset frequency range is determined based on the maximum and minimum supported frequencies. This invention needs to provide a reasonable preset frequency range within the range that the CPU frequency can support. That is, firstly, the maximum and minimum supported frequencies of the CPU are read. If the maximum supported frequency is 3400MHz and the minimum supported frequency is 500MHz, then the preset frequency range is determined to be 500MHz to 3400MHz based on the maximum and minimum supported frequencies.

[0084] In step 202, during the initial startup phase of the server, the preset frequency range is displayed in the BIOS display interface, and the server calls the frequency information input module so that the user can input frequency range information within the preset frequency range.

[0085] Figure 3 This is a flowchart illustrating the process of storing the frequency range information to the frequency information storage module provided by the present invention. The step of calling the frequency information storage module and storing the frequency range information to the frequency information storage module includes:

[0086] The system firmware in the frequency information storage module is invoked to read the frequency range information;

[0087] The frequency range information is stored in the storage chip of the frequency information storage module by calling the communication interface in the frequency information storage module.

[0088] In step 1021, the frequency information storage module is equipped with system firmware, which is used to read the frequency range information, which is determined based on input within a preset frequency range.

[0089] In step 1022, the communication interface in the frequency information storage module is called to store the frequency range information to the storage chip in the frequency information storage module. The storage chip may be an electrically erasable programmable read-only memory (EEPROM) on the motherboard. The present invention enables the frequency information to be effectively stored in the frequency information storage module by pre-setting the frequency information storage module in the server and calling the frequency information storage module in the working state.

[0090] Figure 4 This is a flowchart illustrating the process of sending the frequency range information to the CPU management unit according to the present invention. The step of calling the frequency information control module to read the frequency range information from the frequency information storage module and sending the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information includes:

[0091] The remote management unit in the frequency information control module is invoked to read the frequency range information from the storage chip in the frequency information storage module;

[0092] The remote management unit sends the frequency range information to the CPU management unit through the management interface IPMI;

[0093] If the upper and lower limits in the frequency range information are not the same, the CPU frequency is adjusted to be between the lower and upper limits.

[0094] If the upper and lower limits in the frequency range information are the same, the CPU frequency is adjusted to the upper limit.

[0095] In step 1031, the present invention calls the remote management unit in the preset frequency information control module through the preset frequency information control module, accesses the storage chip in the frequency information storage module through the remote management unit, and reads the frequency range information from the storage chip in the frequency information storage module.

[0096] In step 1032, the remote management unit sends the frequency range information to the CPU management unit through the management interface IPMI. After the server starts up, the remote management unit actively reads the motherboard's storage chip and sends the frequency range information to the CPU management unit through the management interface IPMI.

[0097] In step 1033, if the upper limit and lower limit in the frequency range information are not the same, the CPU frequency is adjusted to be between the lower limit and the upper limit. For example, if the frequency range information is 500MHz to 3400MHz, where the upper limit is 3400MHz and the lower limit is 500MHz, that is, the lower limit and the upper limit are not the same, then the CPU frequency can be adjusted within the range of 500MHz to 3400MHz.

[0098] In step 1034, if the upper limit and lower limit in the frequency range information are the same, the CPU frequency is adjusted to the upper limit. For example, if the frequency range information is 1300MHz to 1300MHz, and the lower limit is the same as the upper limit, the CPU frequency is adjusted to the upper limit or the lower limit, that is, the CPU frequency is adjusted to 1300MHz.

[0099] Those skilled in the art will understand that the CPU supports frequencies within a preset frequency range. If the preset frequency range is 800MHz to 3400MHz and the base frequency is 2400MHz, this invention can set the frequency range option in the BIOS display interface, receive the maximum and minimum frequency values ​​input by the user, and set them to the desired frequency range. In an optional embodiment, if the user needs the frequency to be between the base frequency and the maximum frequency, the maximum frequency can be directly set to 3400MHz and the minimum frequency to 2400MHz. If the user's workload is light, the frequency can be fixed in a lower range to achieve energy saving. Specifically, the maximum frequency can be set to 2000MHz and the minimum frequency to 800MHz. If the user needs to fix the frequency at a certain frequency, the maximum and minimum frequency values ​​can be set to the same value.

[0100] Figure 5 This is a second schematic flowchart of the frequency control method provided by the present invention. After storing the frequency range information to the frequency information storage module, it further includes:

[0101] Obtain the operating frequency corresponding to all working drivers in the server;

[0102] Set all target drivers to disabled.

[0103] The target driver is a driver whose operating frequency is not within the frequency range information.

[0104] In step 301, the operating frequencies corresponding to all working drivers in the server are obtained. The working driver is the driver program that runs in the working state of the server. There can be multiple working drivers, such as working driver A, working driver B, working driver C, working driver D and working driver E. The operating frequency corresponding to working driver A is 4400MHz, the operating frequency corresponding to working driver B is 3800MHz, the operating frequency corresponding to working driver C is 2200MHz, the operating frequency corresponding to working driver D is 1800MHz and the operating frequency corresponding to working driver E is 5000MHz.

[0105] In step 302, the working state of all target drivers is adjusted to the disabled state. The target drivers are those whose working frequency is not within the frequency range information. If the frequency range information is 500MHz to 3400MHz, then the working drivers that are not within the frequency range information are working driver A, working driver B, and working driver E. That is, the target drivers are working driver A, working driver B, and working driver E. The working state of working driver A, working driver B, and working driver E is adjusted to the disabled state.

[0106] Figure 6 This is a schematic diagram of the frequency control system provided by the present invention. The present invention provides a frequency control system, including a server body 1, wherein the server body 1 includes a central processing unit 11, a frequency information input module 12, a frequency information storage module 13, and a frequency information control module 14.

[0107] The frequency information input module 12 is used to input frequency range information within a preset frequency range during the initial startup phase of the server.

[0108] The frequency information storage module 13 is used to store the frequency range information to the frequency information storage module during the server restart phase;

[0109] The frequency information control module 14 is used to read the frequency range information in the frequency information storage module and send the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information.

[0110] The frequency information input module 12 is connected to the frequency information storage module 13, and the frequency information storage module 13 is connected to the frequency information control module 14;

[0111] The server body also includes a memory and a program or instruction stored in the memory that can run on the central processing unit. When the program or instruction is executed by the central processing unit, the frequency control method is executed. The frequency control method includes: during the initial startup phase of the server, calling the frequency information input module to input frequency range information within a preset frequency range; during the server restart phase, calling the frequency information storage module and storing the frequency range information in the frequency information storage module; in response to a startup end command, calling the frequency information control module to read the frequency range information in the frequency information storage module and sending the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information; the startup end command is generated after the server startup is completed.

[0112] This invention provides a frequency control method, apparatus, system, and readable storage medium. By setting up a frequency information input module, a frequency information storage module, and a frequency information control module, this invention enables the input, storage, retrieval, and transmission of frequency range information at different startup stages of the server. This allows the CPU management unit to adjust the CPU frequency based on the frequency range information. This invention does not rely on system drivers or hardware parameters and can autonomously select the frequency range. By setting a preset frequency range in the BIOS display interface, the CPU frequency is locked within the supported frequency range to meet users' needs for different server frequency ranges, thereby improving overall server performance and promoting energy conservation and emission reduction.

[0113] Figure 7 This is a schematic diagram of the frequency control device provided by the present invention. The present invention provides a frequency control device, including an input unit 21: used to call the frequency information input module during the initial startup phase of the server and input frequency range information within a preset frequency range. The working principle of the input unit 21 can be referred to the aforementioned step 101, and will not be repeated here.

[0114] The frequency control device further includes a storage unit 22: used to call the frequency information storage module and store the frequency range information to the frequency information storage module during the server restart phase. The working principle of the storage unit 22 can be referred to the aforementioned step 102, and will not be repeated here.

[0115] The frequency control device further includes a sending unit 23: in response to a start / end command, it calls the frequency information control module to read the frequency range information in the frequency information storage module and sends the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information. The working principle of the sending unit 23 can be referred to the aforementioned step 103, and will not be repeated here.

[0116] The startup termination command is generated after the server startup is complete.

[0117] This invention provides a frequency control method, apparatus, system, and readable storage medium. By setting up a frequency information input module, a frequency information storage module, and a frequency information control module, this invention enables the input, storage, retrieval, and transmission of frequency range information at different startup stages of the server. This allows the CPU management unit to adjust the CPU frequency based on the frequency range information. This invention does not rely on system drivers or hardware parameters and can autonomously select the frequency range. By setting a preset frequency range in the BIOS display interface, the CPU frequency is locked within the supported frequency range to meet users' needs for different server frequency ranges, thereby improving overall server performance and promoting energy conservation and emission reduction.

[0118] Figure 8 This is a schematic diagram of the structure of the electronic device provided by the present invention. For example... Figure 8 As shown, the electronic device may include a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute a frequency control method, which includes: during the initial server startup phase, calling a frequency information input module to input frequency range information within a preset frequency range; during the server restart phase, calling a frequency information storage module and storing the frequency range information in the frequency information storage module; in response to a startup end command, calling a frequency information control module to read the frequency range information from the frequency information storage module and sending the frequency range information to a CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information; the startup end command is generated after the server startup is completed.

[0119] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0120] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a frequency control method provided by the above methods. The method includes: during the initial startup phase of the server, calling a frequency information input module to input frequency range information within a preset frequency range; during the server restart phase, calling a frequency information storage module and storing the frequency range information in the frequency information storage module; in response to a startup end command, calling a frequency information control module to read the frequency range information in the frequency information storage module and sending the frequency range information to a CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information; the startup end command is generated after the server startup is completed.

[0121] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the frequency control method provided by the above methods. The method includes: during the initial startup phase of the server, invoking a frequency information input module to input frequency range information within a preset frequency range; during the server restart phase, invoking a frequency information storage module and storing the frequency range information in the frequency information storage module; in response to a startup termination command, invoking a frequency information control module to read the frequency range information from the frequency information storage module and sending the frequency range information to a CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information; the startup termination command is generated after the server startup is completed.

[0122] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0123] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A frequency control method characterized by, include: During the initial startup phase of the server, the frequency information input module is invoked to input frequency range information within a preset frequency range. During the server restart phase, the frequency information storage module is invoked, and the frequency range information is stored in the frequency information storage module. After that, the working driver whose working frequency is not within the frequency range information is disabled. In response to the start / end command, the frequency information control module is invoked to read the frequency range information from the frequency information storage module and send the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information. The startup termination command is generated after the server startup is complete.

2. The frequency control method according to claim 1, characterized in that, Before inputting frequency range information within a preset frequency range, the following is also included: Read the maximum and minimum supported frequencies of the CPU, and determine a preset frequency range based on the maximum and minimum supported frequencies; The preset frequency range is displayed in the BIOS display interface.

3. The frequency control method according to claim 1, characterized in that, The process of calling the frequency information storage module and storing the frequency range information in the frequency information storage module includes: The system firmware in the frequency information storage module is invoked to read the frequency range information; The frequency range information is stored in the storage chip of the frequency information storage module by calling the communication interface in the frequency information storage module.

4. The frequency control method according to claim 3, characterized in that, The frequency information control module reads the frequency range information from the frequency information storage module and sends the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information, including: The remote management unit in the frequency information control module is invoked to read the frequency range information from the storage chip in the frequency information storage module; The remote management unit sends the frequency range information to the CPU management unit through the management interface IPMI; If the upper and lower limits in the frequency range information are not the same, the CPU frequency is adjusted to be between the lower and upper limits. If the upper and lower limits in the frequency range information are the same, the CPU frequency is adjusted to the upper limit.

5. The frequency control method according to claim 1, characterized in that, After storing the frequency range information to the frequency information storage module, the method further includes: Obtain the operating frequency corresponding to all working drivers in the server; Set all target drivers to disabled. The target driver is a driver whose operating frequency is not within the frequency range information.

6. The frequency control method according to claim 1, characterized in that, Before inputting frequency range information within a preset frequency range, the following is also included: Under the condition that the preset conditions are met, the frequency range information is determined based on the minimum frequency value of the preset frequency range and the CPU base frequency. The preset conditions include: The entered password does not match the preset password; The server's initial startup time is outside the preset time range; No external power supply is connected.

7. A frequency control system, characterized in that, The server body includes a central processing unit, a frequency information input module, a frequency information storage module, and a frequency information control module. The frequency information input module is used to input frequency range information within a preset frequency range during the initial startup phase of the server. The frequency information storage module is used to store the frequency range information to the frequency information storage module during the server restart phase; The frequency information control module is used to read the frequency range information in the frequency information storage module and send the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information. The frequency information input module is connected to the frequency information storage module, and the frequency information storage module is connected to the frequency information control module; The server body further includes a memory and a program or instructions stored in the memory and executable on the central processing unit, wherein the program or instructions, when executed by the central processing unit, perform the frequency control method as described in any one of claims 1 to 6.

8. A frequency control device, characterized in that, include: Input unit: Used during the initial startup phase of the server to call the frequency information input module and input frequency range information within a preset frequency range; Storage unit: Used to call the frequency information storage module and store the frequency range information to the frequency information storage module during the server restart phase, and then disable the working driver whose working frequency is not within the frequency range information; Sending unit: In response to a start / end command, it calls the frequency information control module to read the frequency range information from the frequency information storage module and sends the frequency range information to the CPU management unit to instruct the CPU management unit to adjust the CPU frequency according to the frequency range information; The startup termination command is generated after the server startup is complete.

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

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the frequency control method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • CPU clock frequency setting method in computer system

    KR1020030029378A