System function execution method and device
By configuring the interface of the server control system and detecting the configuration status, adjusting the operating frequency of the server processor, the problem of insufficient processor operation flexibility is solved, and higher flexibility and adaptability is achieved.
Patent Information
- Application Number
- CN202510595767.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-09
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2045-05-09
AI Technical Summary
The server processor has poor operational flexibility and cannot meet the complex usage needs of users.
By displaying the configuration interface of the server control system, users are allowed to configure the processor's operating mode, detect the configuration status, and adjust the processor's operating frequency in the target state.
It improves the operation flexibility of the server processor, and can flexibly select the operating mode and adjust the operating frequency according to the needs, meeting the complex usage needs of users.
Smart Images

Figure CN120104200A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to a method and device for executing system functions. Background Art
[0002] With the continuous development of servers, more and more functions are integrated into servers, and users' demands for servers are becoming increasingly complex. In this case, the operation mode of a single fixed server processor in the traditional mode can no longer meet the user's needs, and the operation flexibility of the server processor is poor. Summary of the invention
[0003] The present application provides a method and device for executing system functions, so as to at least solve the problem of poor operating flexibility of a processor of a server in the related art.
[0004] The present application provides a method for executing a system function, including: displaying a first configuration interface of a control system of a server, wherein a first tab is displayed on the first configuration interface, and the first tab is used to configure an operation mode configuration item of a processor of the server; in response to a confirmation operation triggered on the first configuration interface, saving an option value of the first tab on the first configuration interface; during a server startup process, detecting a configuration state of the option value of the first tab; and when it is detected that the configuration state is a target state, executing an adjustment function through the control system during the operation of the processor, wherein the adjustment function is used to adjust the operating frequency of the processor.
[0005] The present application also provides a system function execution device, including: a first display module, used to display a first configuration interface of a control system of a server, wherein a first tab is displayed on the first configuration interface, and the first tab is used to configure an operation mode configuration item of a processor of the server; a saving module, used to respond to a confirmation operation triggered on the first configuration interface, and save the option value of the first tab on the first configuration interface; a first detection module, used to detect the configuration status of the option value of the first tab during the server startup process; a first execution module, used to execute an adjustment function through the control system during the operation of the processor when the configuration status is detected to be a target status, wherein the adjustment function is used to adjust the operating frequency of the processor.
[0006] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of the execution method of any of the above-mentioned system functions when executing the computer program.
[0007] The present application also provides a computer-readable storage medium, in which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the execution method of any of the above-mentioned system functions are implemented.
[0008] The present application also provides a computer program product, including a computer program, which implements the steps of the execution method of any of the above-mentioned system functions when the computer program is executed by a processor.
[0009] Through the present application, the first configuration interface of the control system of the server is displayed to provide the selection of the operation mode configuration items of the processor of the server, the confirmation operation triggered on the first configuration interface is responded to, the option value of the first tab on the first configuration interface is saved, and during the server startup process, the configuration state of the option value of the first tab is detected, and then when the configuration state is detected to be the target state, the control system is used to perform the adjustment function for adjusting the operation frequency of the processor during the operation of the processor, that is, the operation mode of the processor of the server can be flexibly selected through the first configuration interface, and the operation frequency of the processor can be flexibly adjusted when the processor is running in the target state, and the operation flexibility of the processor of the server is effectively improved. Therefore, the technical problem of poor operation flexibility of the processor of the server in the related technology can be solved, and the technical effect of improving the operation flexibility of the processor of the server can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0011] Figure 1 It is a hardware structure block diagram of the execution of the system functions of the embodiment of the present application;
[0012] Figure 2 is a flowchart of a method for executing system functions according to an embodiment of the present application;
[0013] Figure 3 is a schematic diagram of a method for executing a system function according to an embodiment of the present application;
[0014] Figure 4 This is a schematic diagram of the first configuration interface according to an embodiment of the present application. Figure 1 .
[0015] Figure 5 This is a schematic diagram of the first configuration interface according to an embodiment of the present application. Figure 2 .
[0016] Figure 6 This is a schematic diagram of the first configuration interface according to an embodiment of the present application. Figure 3 .
[0017] Figure 7is a schematic diagram of a second configuration interface according to an embodiment of the present application.
[0018] Figure 8 It is a schematic diagram of a third configuration interface according to an embodiment of the present application.
[0019] Fig. 9 It is a control schematic diagram of the operation process of a processor according to an embodiment of the present application.
[0020] Fig.10 This is a control schematic diagram of the operation process of a fan according to an embodiment of the present application.
[0021] Fig.11 A server dynamic energy efficiency management method according to an embodiment of the present application Figure 1 .
[0022] Fig.12 It is a flowchart of the judgment sub-process a according to an embodiment of the present application.
[0023] Fig.13 A server dynamic energy efficiency management method according to an embodiment of the present application Figure 2 .
[0024] Fig.14 It is a structural block diagram of the execution of a system function according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] It should be noted that, in the description of this application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence.
[0027] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0028] In conjunction with the specific application environment architecture or specific hardware architecture on which the execution of the method for executing the system function depends, the specific application environment architecture or the specific hardware architecture is described herein.
[0029] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure diagram of the execution of the system functions of the embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0030] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the execution methods of the system functions in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, that is, the above-mentioned methods are implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0031] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0032] The embodiment of the present application provides a method for executing a system function, and the method is described in detail in conjunction with the execution flow of the method for executing a system function.
[0033] The following is an explanation of the professional terms that appear in this application:
[0034] BIOS: Basic Input / Output System, is the first program that runs when the computer starts up. It is responsible for initializing the hardware, detecting hardware devices, and loading the operating system. The BIOS is stored in the ROM (Read-Only Memory) chip on the motherboard, providing the most basic interaction layer between the hardware and the operating system, ensuring that the computer system can start up and run smoothly.
[0035] BMC: Baseboard Management Controller is a dedicated microcontroller used to monitor and manage the hardware health and status in servers, workstations, and other computing platforms. BMC can remotely monitor and control servers through the IPMI (Intelligent Platform Management Interface) protocol, including monitoring temperature, voltage, fan speed, power status, etc., and performing remote control operations such as power on, power off, and restart.
[0036] IPMI: Intelligent Platform Management Interface is an industry standard specification for remote monitoring and management of system-level events, especially for servers and other computing devices.
[0037] Redfish: The "Redfish" protocol or "Redfish standard" or "Redfish technology" is a standardized management interface for unified management of servers, storage and network devices in modern data centers. It provides a RESTful (Representational State Transfer) API (Application Programming Interface) interface, making the management of hardware devices more flexible and efficient.
[0038] In this embodiment, a method for executing a system function is provided. Figure 2 is a flowchart of a method for executing system functions according to an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:
[0039] Step S202, displaying a first configuration interface of the control system of the server, wherein a first tab is displayed on the first configuration interface, and the first tab is used to configure an operation mode configuration item of a processor of the server;
[0040] Step S204, in response to the confirmation operation triggered on the first configuration interface, saving the option value of the first tab on the first configuration interface;
[0041] Step S206, during the process of starting the server, detecting the configuration status of the option value of the first tab;
[0042] Step S208, when it is detected that the configuration state is the target state, an adjustment function is executed by the control system during the operation of the processor, wherein the adjustment function is used to adjust the operating frequency of the processor.
[0043] Through the above steps, the first configuration interface of the control system of the server is displayed to provide the selection of the operation mode configuration items of the processor of the server, the confirmation operation triggered on the first configuration interface is responded to, the option value of the first tab on the first configuration interface is saved, and during the server startup process, the configuration state of the option value of the first tab is detected, and then when the configuration state is detected to be the target state, the control system is used to perform the adjustment function for adjusting the operation frequency of the processor during the operation of the processor, that is, the operation mode of the processor of the server can be flexibly selected through the first configuration interface, and the operation frequency of the processor can be flexibly adjusted when the processor is running in the target state, and the operation flexibility of the processor of the server is effectively improved. Therefore, the technical problem of poor operation flexibility of the processor of the server in the related technology can be solved, and the technical effect of improving the operation flexibility of the processor of the server can be achieved.
[0044] In the embodiment provided in step S202, the control system of the server may be, but is not limited to, a comprehensive management platform integrating software and hardware functions, which is responsible for monitoring and managing the running status of the server, including the initialization, configuration, performance adjustment and fault diagnosis of hardware devices. Specifically, the control system of the server may be, but is not limited to, an out-of-band system. An out-of-band system may be, but is not limited to, a system outside the in-band system of the server, which does not rely on the operating system and can provide the lowest level, direct hardware management and control for the device. The control system of the server may be, but is not limited to, BIOS, which may be, but is not limited to, a ROM chip solidified on the server motherboard and a group of programs running on it, including the most important basic input and output programs of the computer, system setting information, self-test programs after power-on, and system self-starting programs. BIOS can provide the lowest level, direct hardware settings and control for the device. At present, the functions of BIOS are mainly used for device power-on self-test, hardware initialization, driver loading, system booting and starting, etc., and usually will automatically exit operation after the device is booted into the system.
[0045] Optionally, in this embodiment, the first configuration interface may be, but is not limited to, displayed on a display device inside the server, or displayed on a display device external to the server, and this application does not impose specific limitations on this.
[0046] Optionally, in this embodiment, there are multiple possibilities for displaying the first configuration interface of the control system of the server, which may be but is not limited to one of the following possibilities:
[0047] When the server is first installed or a major hardware upgrade is performed, the control system automatically loads and presents a first configuration interface, allowing the user to initialize the processor's operating mode according to the server's intended use, such as high-performance computing, data center energy-saving operation, or balanced mode;
[0048] In normal operation of the server, when the user needs to adjust the performance or power consumption of the server, the user may, but is not limited to, access and modify the first tab, i.e., the processor operation mode configuration item, by re-entering the first configuration interface of the control system of the server to adapt to the changed workload requirements;
[0049] The server control system can also, but is not limited to, automatically pop up a configuration interface when a user requests performance optimization or changes to an energy-saving strategy, and guide the user to confirm or adjust the processor's operating mode to ensure the best balance between server performance and efficiency.
[0050] Optionally, in this embodiment, the first configuration interface may display, but is not limited to, a first tab, or may also display a selection guide for the first tab, wherein the selection guide is used to indicate the correspondence between various option values of the first tab and the operating mode of the processor of the server.
[0051] Optionally, in this embodiment, the first tab may be but is not limited to providing the user with a selection of multi-angle processor operation control mechanisms. For example, the first tab may be but is not limited to including multiple sub-tabs, each sub-tab being used to indicate the operation mode of the processor at different angles: sub-tab A is used to indicate the operation mode of the processor, sub-tab B is used to indicate whether the frequency modulation function of the processor control system is turned on, sub-tab C is used to indicate the cooling strategy of the processor, etc. The user can achieve multi-angle operation control of the processor by selecting the respective option values of sub-tab A, sub-tab B and sub-tab C.
[0052] Optionally, in this embodiment, the first tab may be, but is not limited to, an operating mode configuration item for configuring a processor of the server, and the operating mode configuration item may be, but is not limited to, an operating mode for configuring a processor of the server.
[0053] Optionally, in this embodiment, the operating mode of the processor is no longer limited to a fixed one, but can be but is not limited to being set to multiple modes according to the operating requirements of the server. The user can adjust the operating mode of the server processor according to the real-time server operating requirements. For example, in a scenario where the task execution time requirement of the server is not high and the energy consumption requirement of the server is high, the server operating mode can be but is not limited to being configured to a more energy-saving mode. In the more energy-saving mode, the server will try to ensure that it is in a lower energy consumption state when there is no load.
[0054] Optionally, in this embodiment, the various operating modes of the processor may be, but are not limited to, set according to various possibilities of the server operating scenarios. The various operating modes of the processor may include, but are not limited to, high-performance computing mode, energy-saving mode, and energy-efficiency mode, wherein when the high-performance computing mode is selected, the energy-saving requirements of the server will give way to the task execution requirements of the server, when the energy-saving mode is selected, the priority of the energy-saving requirements of the server will be higher than the task execution requirements of the server, and when the energy-efficiency mode is selected, the ability of the server's processor to execute tasks will be adjusted according to the load of the server's processor to balance the energy-saving requirements and the task execution requirements.
[0055] In the embodiment provided in step S204, the confirmation operation may be, but is not limited to, used to trigger saving of the option value of the first tab on the first configuration interface.
[0056] Optionally, in this embodiment, the confirmation operation may include but is not limited to clicking on a confirmation option on the first configuration interface; in response to the confirmation operation triggered on the first configuration interface, saving the option value of the first tab on the first configuration interface may include but is not limited to: after the user completes the selection of the option value of the first tab, manually confirming the change of the option value through the "Save and Exit" option or a similar confirmation button on the first configuration interface, at which time the control system will save the new option value.
[0057] Optionally, in this embodiment, the confirmation operation may also include but is not limited to a series of instructions executed by an automated script; it may include but is not limited to pre-setting predetermined conditions (for example, the continuous running time of the server's processor reaches a certain threshold) through the automated script, and when the server is under the predetermined conditions, the automated script automatically executes the determination operation. Under this design, responding to the confirmation operation triggered on the first configuration interface and saving the option value of the first tab on the first configuration interface may include but is not limited to: the control system communicates with the automated script, responding to the confirmation instruction of the automated script, and saving the option value of the first tab on the first configuration interface.
[0058] Optionally, in this embodiment, the option value of the first option card may be, but is not limited to, a configuration item for indicating an operating mode of a processor.
[0059] Optionally, in this embodiment, the option value of the first tab may include, but is not limited to, multiple configuration states, and the multiple configuration states correspond to multiple operating modes of the processor of the server. Different operating modes may be configured for the processor of the server by selecting different states of the option value of the first tab, but is not limited to.
[0060] Optionally, in this embodiment, after saving the option value of the first tab on the first configuration interface, the server may be restarted immediately, but is not limited to; or the server may be shut down and the server may be waited for the next normal startup of the server.
[0061] In the embodiment provided in step S206, the option value of the first tab may include, but is not limited to, one or more sub-option values; in the case where the option value of the first tab includes multiple sub-option values, each sub-option value is represented as a different option at different times, and the configuration state may be, but is not limited to, a combination of multiple options. Detecting the configuration state of the option value of the first tab may include, but is not limited to, detecting the options of each sub-option value, and the obtained option combination is the configuration state.
[0062] In the embodiment provided in step S208, the adjustment function performed by the control system during the operation of the processor may include but is not limited to periodically adjusting the operating frequency of the processor through the control system, or monitoring the energy consumption parameters of the processor, and adjusting the operating frequency of the processor through the control system when the energy consumption parameters reach a parameter threshold, wherein the energy consumption parameters are used to indicate the energy consumption of the processor when performing tasks.
[0063] Optionally, in this embodiment, the adjustment function performed by the control system during the operation of the processor may also include but is not limited to adjusting the operating frequency of the core components of the processor through the control system, or adjusting the operating frequencies of the core components and non-core components in the processor separately through the control system.
[0064] As an optional embodiment, the first configuration interface of the control system of the display server includes: displaying a first sub-tab and a second sub-tab on the first configuration interface, wherein the first sub-tab is used to configure the operation mode configuration item, and the second sub-tab is used to configure the configuration item of the adjustment function to be on or off, and the first tab includes the first sub-tab and the second sub-tab.
[0065] Optionally, in this embodiment, it is possible but not limited to displaying a first sub-tab on the first configuration interface to provide a selection of operation mode configuration items, and displaying a second sub-tab to provide a selection of whether to enable the adjustment function.
[0066] Optionally, in this embodiment, the option value of the first sub-tab may be but is not limited to indicating an operating mode configuration item of the processor, and the option value of the first sub-option energy efficiency mode tab may be but is not limited to an energy efficiency mode option or other mode options other than the energy efficiency mode option.
[0067] Optionally, in this embodiment, the option value of the second sub-tab may be, but is not limited to, an on option or a off option.
[0068] Through the above content, by adding the first sub-tab and the second sub-tab, not only the configuration flexibility and management accuracy of the server control system are enhanced, but also the user's operation process is simplified, so that the system can better adapt to diverse needs.
[0069] As an optional embodiment, the first configuration interface of the control system of the display server also includes: when the option value of the second sub-tab is an on option, at least one third sub-tab is displayed on the first configuration interface, wherein the on option is used to indicate the start of the adjustment function, and the at least one third sub-tab is used to configure the configuration item of at least one function parameter used in the adjustment function.
[0070] Optionally, in this embodiment, when the option value of the second sub-tab is an on option, i.e., the adjustment function is turned on, at least one third sub-tab can be displayed on the first configuration interface to provide selection of at least one function parameter, but is not limited to.
[0071] Optionally, in this embodiment, the at least one functional parameter may include, but is not limited to, a functional parameter for indicating an adjustment expected state of the adjustment function, and / or a functional parameter for indicating an adjustment trigger period of the adjustment function.
[0072] Through the above content, by dynamically displaying the third sub-tab on the first configuration interface, users can customize the frequency adjustment strategy according to their own needs, thereby improving the user's flexibility and efficiency in server performance management and energy efficiency control, and realizing more refined and intelligent dynamic energy efficiency management.
[0073] As an optional embodiment, at least one third sub-tab is displayed on the first configuration interface, including: displaying a parameter threshold tab and / or a function cycle tab on the first configuration interface, wherein the parameter threshold tab is used to configure configuration items of parameter thresholds used in configuring the adjustment function, and the function cycle tab is used to configure configuration items of the execution cycle of the adjustment function, and at least one third sub-tab includes a parameter threshold tab and / or a function cycle tab.
[0074] Optionally, in this embodiment, the parameter threshold may be, but is not limited to, used to indicate the expected adjustment state of the adjustment function. The parameter threshold may be, but is not limited to, an expected value of the proportion of the time during which the processor is in an active state in an execution cycle to the entire execution cycle.
[0075] Optionally, in this embodiment, the execution cycle may be, but is not limited to, used to indicate the time interval between two adjacent executions of the adjustment function by the control system.
[0076] Optionally, in the present embodiment, displaying at least one third sub-tab on the first configuration interface may include but is not limited to: displaying an auto-close tab on the first configuration interface, wherein the auto-close tab is used to configure an auto-close function of the adjustment function to be turned on or off, the auto-close function being used to automatically close the adjustment function when it is detected that the number of times a busyness parameter of the processor is lower than a busyness threshold is greater than or equal to a number threshold, and the busyness parameter is used to indicate the busyness of the processor in executing a task.
[0077] Optionally, in this embodiment, when the adjustment function is turned on and the automatic shutdown function is turned on, the control system may monitor the operating state of the processor, and when the operating state of the processor remains inactive for a long time, the adjustment function is turned off, that is, the option value of the second sub-tab is displayed as the off option. Specifically, the control system may monitor the processor utilization of the processor for a long time, and when the processor utilization remains at a low level for a long time, the adjustment function is turned off and the option value of the second sub-tab is displayed as the off option.
[0078] As an optional implementation, displaying the first sub-tab and the second sub-tab on the first configuration interface includes one of the following:
[0079] On the first configuration interface, the option value of the first sub-tab is displayed as an energy efficiency mode option, and the option value of the second sub-tab is displayed as an enable option, wherein the energy efficiency mode option is used to configure the operation mode of the processor of the server to the energy efficiency mode, the energy efficiency mode is used to control the processor to balance the processor energy efficiency during operation, and the enable option is used to indicate to enable the adjustment function;
[0080] On the first configuration interface, the option value of the first sub-tab is displayed as the other mode option, and the option value of the second sub-tab is displayed as the off option, wherein the other mode option is used to configure the operating mode of the server's processor to a mode other than the energy efficiency mode, and the off option is used to indicate turning off the adjustment function.
[0081] Optionally, in this embodiment, the adjustment function may be enabled in conjunction with, but not limited to, the operation mode of the server processor is the energy efficiency mode. The adjustment function may be disabled by default, but not limited to, the operation mode of the server processor is other than the energy efficiency mode.
[0082] Optionally, in this embodiment, the energy efficiency mode can be, but is not limited to, used to control the processor to balance the processor energy efficiency during operation, that is, to balance the energy consumption of the processor and the task execution efficiency of the processor. It can be, but is not limited to, in the energy efficiency mode, each device in the processor that consumes energy to perform tasks will reduce energy consumption on the basis of maintaining a certain task execution efficiency. For example, it can be, but is not limited to, in the energy efficiency mode, dynamically adjust the operating frequency of the processor according to the active state ratio of the processor to balance the processor energy efficiency.
[0083] Optionally, in this embodiment, after displaying the option value of the first sub-tab as the other mode option and displaying the option value of the second sub-tab as the close option on the first configuration interface, the user can manually turn on the adjustment function by modifying the option value of the second sub-tab to the on option on the first configuration interface.
[0084] Through the above content, when the option value of the first sub-tab is set to the energy efficiency mode option, the adjustment function is enabled in conjunction without the user having to make further manual selections, thereby simplifying the usage operation while meeting the user's usage needs.
[0085] As an optional implementation, detecting the configuration status of the first tab includes: detecting the option value of the second sub-tab displayed on the first configuration interface, wherein the first tab includes a first sub-tab and a second sub-tab, the first sub-tab is used to configure the operation mode configuration item, and the second sub-tab is used to configure the configuration item of the adjustment function to be on or off; when the option value of the second sub-tab is the on option, it is determined that the detected configuration status is the target status.
[0086] Optionally, in this embodiment, the configuration item of the adjustment function can be turned on or off through the second sub-tab configuration but is not limited to being configured. Then, when it is detected that the option value of the second sub-tab is the on option, it can be determined that the detected configuration state is the target state.
[0087] Optionally, in this embodiment, after detecting that the option value of the second sub-tab is the off option, it is possible but not limited to detecting whether the option value of the first sub-tab is the energy efficiency mode option; when it is detected that the option value of the first sub-tab is the energy efficiency mode option, an alarm message is displayed on the first configuration interface, wherein the alarm message is used to indicate that the status of the adjustment function is abnormal.
[0088] As an optional implementation, during the server startup process, before detecting the configuration status of the option value of the first tab, the method also includes: displaying a second configuration interface of the server's controller, wherein a second tab is displayed on the second configuration interface, and the second tab is used to configure operating mode configuration items for the control system; the controller responds to a confirmation operation triggered on the second configuration interface, and sends the option value of the second tab on the second configuration interface to the control system; and the control system configures the operating mode configuration items according to the option value of the second tab.
[0089] Optionally, in this embodiment, the user can configure the operation mode and adjustment function of the server processor through the first configuration interface of the server control system, but is not limited to, and can also configure the operation mode and adjustment function of the server processor through the second configuration interface of the server controller. The operation mode and adjustment function of the processor can be configured through one of the first configuration interface and the second configuration interface, or through both the first configuration interface and the second configuration interface, but is not limited to.
[0090] Optionally, in this embodiment, the controller of the server may be, but is not limited to, a control device that can be used for server management and monitoring. Similarly, the controller of the server may be, but is not limited to, an out-of-band system. Specifically, the controller of the server may be, but is not limited to, a BMC or a CPLD (Complex Programmable Logic Device), etc. Among them, the BMC does not rely on the processor, BIOS, or user operating system of the device. The BMC hardware implementation may be an independent board installed on the mainboard of the device, or it may be integrated on the mainboard. The BMC is not restricted by the previous management method based on the user operating system. For example, when the user operating system does not respond or is not loaded, the BMC can still be used to switch the device, extract device-related information, etc.
[0091] Optionally, in this embodiment, the functions that can be implemented by the second tab can be but are not limited to being similar to those of the first tab. The user can configure the operating mode configuration items for the control system by configuring the option values of the second tab, and ultimately configure the operating mode of the server's processor.
[0092] Optionally, in this embodiment, the configuration state of the optional option values of the second tab may be, but is not limited to, consistent with the configuration state of the optional option values of the first tab, or may be, but is not limited to, giving the second tab a smaller selection range of the configuration state of the option values than the first tab.
[0093] Optionally, in this embodiment, the second configuration interface is similar to the first configuration interface and can also be displayed on a display device inside the server or on a display device external to the server. The first configuration interface and the second configuration interface can be displayed on different display devices, so that the user can control the operating mode of the processor in multiple locations.
[0094] Optionally, in this embodiment, the confirmation operation on the second configuration interface may be, but is not limited to, similar to the confirmation operation on the first configuration interface.
[0095] Optionally, in this embodiment, the controller responds to the confirmation operation triggered on the second configuration interface, and sends the option value of the second tab on the second configuration interface to the control system, which may include, but is not limited to, when BMC is selected as the controller and BIOS is selected as the control system, and the BMC responds to the confirmation operation triggered on the second configuration interface, and sends the option value of the second tab on the second configuration interface to BIOS via IPMI or redfish.
[0096] Through the above content, not only the first configuration interface of the control system can be displayed, but also the second configuration interface of the controller can be displayed, which broadens the way for users to configure the operating mode of the processor.
[0097] As an optional implementation, the control system configures the operating mode configuration item according to the option value of the second tab, including: the control system configures the operating mode of the processor to the option value of the second tab; when the option value of the second tab is the energy efficiency mode option, the configuration item of the adjustment function is configured to be turned on, wherein the energy efficiency mode option is used to configure the operating mode of the server's processor to the energy efficiency mode, and the energy efficiency mode is used to control the processor to balance the processor energy efficiency during operation; when the option value of the second tab is other mode options, the configuration item of the adjustment function is configured to be turned off, wherein the other mode options are used to configure the operating mode of the server's processor to a mode other than the energy efficiency mode.
[0098] Optionally, in this embodiment, the control system can, but is not limited to, configure the operating mode of the processor to the option value of the second tab when receiving the option value of the second tab sent by the controller, and when the option value of the second tab is the energy efficiency mode option, configure the configuration item of the adjustment function to be on, that is, turn on the adjustment function in conjunction, and when the option value of the second tab is other mode options except the energy efficiency mode option, configure the configuration item of the adjustment function to be off, that is, turn off the adjustment function.
[0099] Optionally, in this embodiment, since the second configuration interface does not have a tab for directly configuring the configuration item of the adjustment function as on or off, the adjustment function cannot be directly turned on or off through the second configuration interface, but can only be turned on or off indirectly by configuring the operating mode of the processor through the second configuration interface.
[0100] As an optional implementation, the method also includes: when the option value of the second tab is the energy efficiency mode option, the control system configures the configuration item of at least one functional parameter used in the adjustment function to the default parameter corresponding to each functional parameter, wherein at least one functional parameter includes: a parameter threshold used in the adjustment function, and / or an execution cycle of the adjustment function.
[0101] Optionally, in this embodiment, when the option value of the second tab is an energy efficiency mode option, but is not limited to, that is, when the adjustment function is indirectly turned on through the second configuration interface, the control system configures the configuration item of at least one function parameter used in the adjustment function to the default parameters corresponding to each function parameter.
[0102] As an optional implementation, during the server startup process, before detecting the configuration status of the option value of the first tab, the method also includes: displaying a third configuration interface of the server's controller, wherein the third configuration interface displays a third tab, and the third tab is used to configure the cooling strategy configuration item of the server's cooling device; the controller responds to a confirmation operation triggered on the third configuration interface to detect the option value of the third tab; when the option value of the third tab is an energy efficiency strategy option, the controller sends a first configuration instruction to the control system, wherein the first configuration instruction is used to instruct the control system to configure the processor's operating mode to an energy efficiency mode and configure the configuration item of the adjustment function to be turned on, the energy efficiency mode is used to control the processor to balance the processor energy efficiency during operation, the energy efficiency strategy option is used to configure the cooling strategy of the cooling device to an energy efficiency strategy, and the energy efficiency strategy is used to instruct to adjust the cooling parameters of the cooling device according to the operating frequency of the processor during operation; the control system executes the first configuration instruction during the server startup process, and executes the adjustment function through the control system during the operation of the processor.
[0103] Optionally, in this embodiment, the third configuration interface of the controller of the server may be displayed but is not limited to providing the user with the selection of the heat dissipation strategy configuration items of the heat dissipation device of the server.
[0104] Optionally, in this embodiment, the selection of the cooling strategy configuration item of the cooling device of the server may be, but is not limited to, linked with the selection of the operating mode of the processor of the server. It may be, but is not limited to, in the case where the cooling strategy configuration item is an energy efficiency strategy option, to configure the operating mode of the processor to the energy efficiency mode and to enable the adjustment function in a linked manner.
[0105] Optionally, in this embodiment, the user may configure the operating mode and adjustment function of the processor through one or more of the first configuration interface, the second configuration interface, and the third configuration interface, but is not limited to doing so.
[0106] Optionally, in this embodiment, the heat dissipation strategy configuration items may include, but are not limited to, a low noise strategy option, an energy efficiency strategy option, and a high performance strategy option. When the heat dissipation device operates according to the low noise strategy, the heat dissipation device may provide, but is not limited to, a lower heat dissipation intensity (for example, the fan runs at a lower speed); when the heat dissipation device operates according to the energy efficiency strategy, the heat dissipation intensity provided by the heat dissipation device may be dynamically adjusted according to the busyness of the task execution of the processor (for example, the speed of the fan is continuously adjusted according to the busyness of the task execution of the processor); when the heat dissipation device operates according to the high performance strategy, the heat dissipation device may provide, but is not limited to, a higher heat dissipation intensity (for example, the fan runs at a higher speed).
[0107] Optionally, in this embodiment, the energy efficiency strategy may be, but is not limited to, used to indicate adjusting the cooling parameters of the cooling device according to the operating frequency of the processor during operation. The cooling parameters may be, but are not limited to, used to indicate the cooling strength of the cooling device. The cooling parameters may include, but are not limited to, the speed of the fan.
[0108] Optionally, in this embodiment, the third configuration interface is similar to the first configuration interface and can also be displayed on a display device inside the server or on a display device external to the server. The first configuration interface, the second configuration interface, and the third configuration interface can be displayed on different display devices, so that the user can control the operating mode of the processor in multiple locations.
[0109] Optionally, in this embodiment, the confirmation operation on the third configuration interface may be, but is not limited to, similar to the confirmation operation on the first configuration interface.
[0110] Optionally, in this embodiment, the controller sending the first configuration instruction to the control system may include, but is not limited to, when the BMC is selected as the controller and the BIOS is selected as the control system, the BMC sending the first configuration instruction to the BIOS through IPMI or redfish.
[0111] Through the above content, through comprehensive configuration during the server startup process, the intelligent linkage between the processor operation mode and the cooling strategy is realized, thereby significantly improving the energy efficiency and cooling performance of the server while meeting the workload requirements. This comprehensive energy efficiency management method not only simplifies the configuration process and enhances the usability and management efficiency of the server, but also ensures the stability and reliability of the server operation by dynamically adjusting the frequency and cooling parameters.
[0112] As an optional implementation, after detecting the configuration status of the option value of the first tab, the method also includes: when it is detected that the configuration status is the target status, the control system sends a second configuration instruction to the controller of the server, wherein the second configuration instruction is used to instruct the controller to configure the cooling strategy of the cooling device of the server to an energy efficiency strategy, and the energy efficiency strategy is used to instruct the cooling parameters of the cooling device to be controlled according to the operating frequency of the processor during operation; the controller executes the second configuration instruction and controls the cooling parameters of the cooling device according to the operating frequency of the processor during operation.
[0113] Optionally, in this embodiment, the heat dissipation strategy of the heat dissipation device can be linked to be configured as an energy efficiency strategy when the adjustment function is turned on, but is not limited to.
[0114] Optionally, in this embodiment, the controller may, but is not limited to, control the heat dissipation parameters of the heat dissipation device according to the operating frequency of the processor during operation.
[0115] As an optional implementation, Figure 3 is a schematic diagram of a method for executing a system function according to an embodiment of the present application, such as Figure 3 As shown, the operation mode selection function can be supported by the preset tab "Performance Energy Consumption Scenario" tab (i.e., the first tab) in the BIOS Setup interface (i.e., the first configuration interface) through, but not limited to, the preset option value of the tab after entering the BIOS Setup interface, a series of sub-tabs will be set in linkage according to the preset policy information table to conform to the current operation mode, and sent to the BMC in real time through the IPMI command to switch the fan speed control strategy (i.e., the cooling strategy of the cooling device). When the server saves the settings and restarts, the above settings take effect. At the same time, the BMC interface (i.e., the second configuration interface) also provides a tab "Performance Energy Consumption Scenario" tab (i.e., the second tab). When the tab is set to a certain option value in the BMC interface, it will be sent to the BIOS through the redfish channel and the fan speed control strategy will be modified synchronously. When the server restarts, the above settings take effect. During the startup process, the BIOS will set a series of sub-tabs in linkage according to the preset policy information table according to the option value sent by the BMC through redfish, so as to conform to the current operation mode. It should be emphasized that when the energy efficiency mode option is selected in the "Performance and Energy Consumption Scenario" tab (i.e., the first sub-tab in the first tab), a BIOS tab called "Dynamic Frequency Adjustment" (i.e., the adjustment function) (i.e., the second sub-tab) will be opened in conjunction with it, but is not limited to.
[0116] As an optional implementation, after the control system performs the adjustment function during the operation of the processor, the method further includes: the control system controls the heat dissipation parameters of the heat dissipation device of the server according to the operation frequency of the processor during the operation.
[0117] Optionally, in this embodiment, the control system may, but is not limited to, control the heat dissipation parameters of the heat dissipation device according to the operating frequency of the processor during operation, and the controller controls the operation of the heat dissipation device according to the heat dissipation parameters determined by the control system.
[0118] As an optional implementation, the control system controls the heat dissipation parameters of the server's heat dissipation device according to the operating frequency of the processor during operation, including: the control system generates target heat dissipation parameters according to the operating frequency of the processor during operation; the control system sends the target heat dissipation parameters to the controller of the server; and the controller controls the operation of the heat dissipation device according to the target heat dissipation parameters.
[0119] Through the above content, the control system generates target heat dissipation parameters according to the operating frequency of the processor during operation. The control system only needs to send the generated target heat dissipation parameters to the controller instead of sending each operating frequency to the controller, thereby reducing the data transmission pressure between the control system and the controller.
[0120] As an optional implementation, Figure 4 This is a schematic diagram of the first configuration interface according to an embodiment of the present application. Figure 1 . Figure 5 This is a schematic diagram of the first configuration interface according to an embodiment of the present application. Figure 2 . Figure 6 This is a schematic diagram of the first configuration interface according to an embodiment of the present application. Figure 3 . Figure 7 is a schematic diagram of a second configuration interface according to an embodiment of the present application. Figure 8 is a schematic diagram of a third configuration interface according to an embodiment of the present application. It may be displayed on the first display device of the server, but is not limited to: Figure 4 As shown, or as Figure 5 As shown, or as Figure 6 The first configuration interface shown is displayed on the second display device of the server as shown in Figure 7 The second configuration interface shown is displayed on the third display device of the server as shown in Figure 8 In the third configuration interface shown, the user can operate on the first display device, the second display device and the third display device to configure the operating mode of the processor, the cooling strategy of the cooling device and whether the configuration adjustment function is turned on.
[0121] As an optional implementation, controlling the heat dissipation parameters of the heat dissipation device of the server according to the processor frequency of the processor during operation includes: searching for the current heat dissipation parameters corresponding to the current processor frequency of the processor from the processor frequencies and heat dissipation parameters with corresponding relationships, wherein the processor frequencies and heat dissipation parameters with corresponding relationships are established according to the maximum processor frequency and the minimum processor frequency of the processor; and controlling the heat dissipation device to operate according to the current heat dissipation parameters.
[0122] Optionally, in this embodiment, the parameters may be adjusted according to, but not limited to, the adjustment range of the processor frequency, so that the adjustment range of the heat dissipation parameters matches the frequency adjustment range of the processor.
[0123] Optionally, in this embodiment, the processor frequency and heat dissipation parameters having a corresponding relationship can be established based on, but not limited to, the maximum processor frequency and the minimum processor frequency of the processor. Establishing a corresponding relationship based on the maximum and minimum frequencies of the processor means that the heat dissipation device can find the most suitable heat dissipation parameters within the entire operating frequency range of the processor. This helps to avoid excessive operation of the heat dissipation device at low frequencies, while also ensuring that the heat dissipation efficiency can be increased in a timely manner at high frequencies to maximize energy efficiency.
[0124] By looking up the corresponding processor frequency and cooling parameter table, the cooling level required for the processor's current frequency can be determined in real time. This dynamic association enables the cooling device to accurately respond to the thermal changes of the processor, avoiding the problem of overcooling or overheating under a fixed cooling strategy.
[0125] As an optional implementation, before searching for the current heat dissipation parameter corresponding to the current processor frequency of the processor from the processor frequencies and heat dissipation parameters with corresponding relationships, the method also includes: calculating a target number based on the maximum processor frequency, the minimum processor frequency and the unit frequency, wherein the unit frequency is used to indicate the minimum frequency value allowed to be adjusted for the processor; dividing the processor frequency between the minimum processor frequency and the maximum processor frequency into multiple processor frequencies according to the unit frequency according to the target number, and dividing the heat dissipation parameter between the minimum heat dissipation parameter and the maximum heat dissipation parameter into multiple heat dissipation parameters according to the target number, wherein the total frequency number of the multiple processor frequencies, the minimum processor frequency and the maximum processor frequency is the target number, and the total parameter number of the multiple heat dissipation parameters, the minimum heat dissipation parameter and the maximum heat dissipation parameter is the target number; establishing a corresponding relationship between the maximum processor frequency and the maximum heat dissipation parameter, a corresponding relationship between the minimum processor frequency and the minimum heat dissipation parameter, and a one-to-one corresponding relationship between the multiple processor frequencies and the multiple heat dissipation parameters, to obtain processor frequencies and heat dissipation parameters with corresponding relationships, wherein the larger the processor frequency, the larger the corresponding heat dissipation parameter.
[0126] Optionally, in this embodiment, the adjustment value of the processor frequency may be, but is not limited to, an integer multiple of the unit frequency.
[0127] Optionally, in this embodiment, the target number may be obtained by calculating, but not limited to, the ratio of the difference between the maximum processor frequency and the minimum processor frequency to the unit frequency.
[0128] Optionally, in this embodiment, it is possible but not limited to divide the adjustable space of the processor frequency and the adjustable space of the heat dissipation parameters of the heat dissipation device into the same number of parts, so as to adjust the heat dissipation parameters of the heat dissipation device with the same adjustment force as the processor frequency adjustment.
[0129] Optionally, in this embodiment, Table 1 is a correspondence table of processor frequency and heat dissipation parameters according to an embodiment of the present application, wherein the maximum frequency Freq of the processor core device may be, but is not limited to, core_max and the maximum frequency of non-core devices Freq uncore_max The sum of the processor core frequency is regarded as the maximum processor frequency, and the minimum frequency Freq core_min The minimum frequency of non-core devices is Freq uncore_min The sum of is regarded as the minimum processor frequency, 0.1GHz is selected as the unit frequency, k is the target number, k=(Freq core_max +Freq uncore_max -Freq core_min -Freq uncore_min) / The heat dissipation parameter may be, but is not limited to, a percentage of the fan speed to the maximum fan speed, the maximum heat dissipation parameter may be, but is not limited to, 100%, and the minimum heat dissipation parameter may be, but is not limited to, 10%.
[0130] Table 1
[0131]
[0132] Through the above content, by establishing a precise correspondence between processor frequency and heat dissipation parameters, dynamic energy efficiency management and intelligent heat dissipation control are realized, which not only improves the energy efficiency of the server, but also ensures the stability and reliability of server operation.
[0133] As an optional implementation, the adjustment function is performed by the control system during the operation of the processor, including: during the operation of the processor, the operating frequency of the processor is adjusted by the control system according to the processor information corresponding to the target state.
[0134] Optionally, in this embodiment, the processor information may be, but is not limited to, used to indicate the busyness of the processor in executing tasks, and the processor information may be, but is not limited to, including processor utilization.
[0135] As an optional implementation, Fig. 9 is a control schematic diagram of an operation process of a processor according to an embodiment of the present application, Fig.10 FIG. 1 is a control schematic diagram of the operation process of a fan according to an embodiment of the present application. Fig. 9As shown, multiple options corresponding to the processor operation mode can be added but are not limited to. The user can select the processor operation mode by selecting the options. When the energy efficiency mode is selected, the CPU (Central Processing Unit) utilization is obtained through periodic interrupts. In addition, the corresponding relationship between CPU utilization and frequency is preset in the BIOS, so the CPU frequency can be dynamically adjusted according to the CPU utilization. Fig.10 As shown, it is possible but not limited to, after adding multiple options corresponding to the processor operating mode, presetting the correspondence between the processor operating mode and the cooling strategy of the cooling device, sending the cooling strategy corresponding to the selected processor operating mode to the BMC, and the BMC performing fan regulation according to the received cooling strategy.
[0136] As an optional implementation, adjusting the operating frequency of the processor according to processor information corresponding to the target state includes: adjusting the core operating frequency of the processor according to first processor information corresponding to the core device, and adjusting the non-core operating frequency of the processor according to second processor information corresponding to the non-core device, wherein the processor information includes first processor information and second processor information, the processor includes core devices and non-core devices, and the operating frequency of the processor includes core operating frequency and non-core operating frequency.
[0137] Optionally, in this embodiment, the processor may include but is not limited to core components and non-core components, and adjusting the operating frequency of the processor according to the processor information corresponding to the target state may include but is not limited to adjusting the core operating frequency according to the first processor information corresponding to the core component and adjusting the non-core operating frequency according to the second processor information corresponding to the non-core component.
[0138] Optionally, in this embodiment, the core device may refer to, but is not limited to, the execution unit of the processor, that is, one or more processing cores. Each core is an independent computing unit that can execute instructions, process data, and perform arithmetic and logical operations. Modern processors often contain multiple cores that can perform different tasks simultaneously, provide parallel computing capabilities, and thus significantly improve the performance of the processor.
[0139] Optionally, in this embodiment, non-core devices, also referred to as uncore or north bridge / south bridge devices, can be, but are not limited to, processing other functions in the processor in addition to computing tasks. Non-core devices are mainly responsible for coordinating communications between multiple cores, managing memory access, providing I / O (Input / Output) control, and handling interactions with other hardware components of the system. Non-core devices can include, but are not limited to, memory controllers responsible for communicating with system memory, managing data read and write operations, I / O controllers that handle input / output operations, and the like.
[0140] Optionally, in this embodiment, the first processor information may be, but is not limited to, used to indicate the busyness of the core component in executing a task, and the second processor information may be, but is not limited to, used to indicate the busyness of the non-core component in executing a task.
[0141] Through the above content, by adjusting the operating frequencies of core components and non-core components respectively, the energy consumption of the server processor can be controlled more accurately.
[0142] As an optional implementation, adjusting the core operating frequency of the processor according to the first processor information corresponding to the core device includes: detecting a first state parameter of the core device, wherein the first processor information includes a first state parameter, and the first state parameter is used to indicate the proportion of time that the core device is running in an active working state; calculating a target core operating frequency according to the first state parameter and the current core operating frequency of the processor; and adjusting the core operating frequency of the processor from the current core operating frequency to the target core operating frequency.
[0143] Optionally, in this embodiment, the first state parameter may be, but is not limited to, used to indicate the overall situation of the time proportion that multiple target core components are running in an active working state.
[0144] As an optional implementation, detecting a first state parameter of a core component includes: obtaining a hyperthreading configuration item of a control system, wherein the hyperthreading configuration item is used to indicate whether the hyperthreading function of the control system is turned on; when it is detected that the hyperthreading configuration item is used to indicate that the hyperthreading function is turned on, determining multiple virtual cores in the processor as a core component; when it is detected that the hyperthreading configuration item is used to indicate that the hyperthreading function is turned off, determining a virtual core in the processor as a core component; traversing each core component in the processor; detecting a state parameter corresponding to each core component, wherein the state parameter corresponding to each core component is used to indicate the proportion of time that the corresponding core component is running in an active working state; determining a core component whose corresponding state parameter is greater than or equal to a first parameter threshold as a target core component; and determining an average value of the state parameter of the target core component as the first state parameter.
[0145] Optionally, in this embodiment, the hyperthreading function can be, but is not limited to, creating two independent thread contexts on one physical core, each context having its own register set and other necessary processor resources. This means that a processor supporting hyperthreading technology can process multiple threads simultaneously, and even when a thread is waiting for data or resources, the processor can immediately switch to another thread instead of being idle, thereby improving the utilization of the processor and the overall computing efficiency. That is, when the hyperthreading function is turned on, one core device of the processor can derive multiple virtual cores.
[0146] Optionally, in this embodiment, the target core component that may require frequency adjustment may be determined by, but is not limited to, comparing the size relationship between the state parameters corresponding to each core component and the first parameter threshold.
[0147] Through the above content, when hyperthreading is enabled, multiple virtual cores are regarded as one actual core device, which helps to more accurately evaluate the actual core load.
[0148] As an optional implementation, the target core operating frequency is calculated based on the first state parameter and the current core operating frequency of the processor, including: calculating a first difference between the first state parameter and a second parameter threshold; when the first difference is greater than or equal to a third parameter threshold, calculating a frequency adjustment amount corresponding to each target core component based on a second difference between the state parameter of each target core component and the second parameter threshold and a unit frequency, wherein the unit frequency is used to indicate the minimum frequency value allowed to be adjusted for the processor; and determining the sum of the current core operating frequency corresponding to each target core component and the frequency adjustment amount corresponding to each core component as the target core operating frequency corresponding to each target core component.
[0149] Optionally, in this embodiment, it is possible but not limited to comparing the first difference between the average value of each state parameter (i.e., the first state parameter) and the second parameter threshold and the size relationship between the third parameter threshold to determine whether to currently perform the adjustment of the operating frequency of each core device in the processor. When the first difference is greater than or equal to the third parameter threshold, it means that the overall frequency adjustment demand of multiple core devices of the processor is high. In this case, the frequency adjustment amount corresponding to each target core device is calculated according to the second difference between the state parameter of each target core device and the second parameter threshold and the unit frequency, and the frequency of each target core device is adjusted according to each frequency adjustment amount; when the first difference is less than the third parameter threshold, it means that the overall frequency adjustment demand of multiple core devices of the processor is low. In this case, in order to save operating resources, the frequency of each target device is not adjusted.
[0150] As an optional implementation, adjusting the operating frequency of a non-core device according to second processor information corresponding to the non-core device includes: detecting a second state parameter of the non-core device, wherein the second processor information includes a second state parameter, and the second state parameter is used to indicate the proportion of time that the non-core device is running in an active working state; calculating a target non-core operating frequency according to the second state parameter and a current non-core operating frequency of the processor; and adjusting the non-core operating frequency of the processor from the current non-core operating frequency to the target non-core operating frequency.
[0151] Optionally, in this embodiment, the second state parameter may be, but is not limited to, used to indicate the time ratio of each non-core component running in the active working state.
[0152] As an optional implementation, the target non-core operating frequency is calculated based on the second state parameter and the current non-core operating frequency of the processor, including: traversing each non-core device; calculating the third difference between the second state parameter of the currently traversed non-core device and the fourth parameter threshold; when the third difference is greater than or equal to the fifth parameter threshold, calculating the frequency adjustment amount corresponding to the currently traversed non-core device based on the third difference and the unit frequency, wherein the unit frequency is used to indicate the minimum frequency value allowed to be adjusted for the processor; and determining the sum of the current non-core operating frequency corresponding to the currently traversed non-core device and the frequency adjustment amount as the target non-core operating frequency corresponding to the currently traversed non-core device.
[0153] Optionally, in this embodiment, it is possible but not limited to separately judging whether each non-core component needs to adjust its operating frequency. When the third difference between the second state parameter of a non-core component and the fourth parameter threshold is greater than or equal to the fifth parameter threshold, it is determined that the operating frequency of the non-core component needs to be adjusted; when the third difference between the second state parameter of a non-core component and the fourth parameter threshold is less than the fifth parameter threshold, it is determined that the operating frequency of the non-core component does not need to be adjusted temporarily.
[0154] As an optional implementation, the present application also proposes a method for dynamic energy efficiency management of servers. Under the operating system, the running program generally applies to the kernel layer of the system for a higher CPU operating frequency. When the load brought by the running program is very large, such logic will not have other effects. However, when the load brought by the running program is small or the running time is short, the application for an excessively large CPU operating frequency will cause additional system power consumption, reducing the energy efficiency level of the entire system. In order to avoid such a scenario, it is possible but not limited to providing tabs in the BIOS and BMC to set performance energy consumption scenarios. When the high-performance computing mode is selected, the system will not intervene too much in the adjustment of the CPU frequency; when the energy-saving mode is selected, the system will turn on all energy-saving related options to try to ensure that the system is in the lowest energy consumption state when there is no load; when the energy-efficiency mode is selected, the CPU frequency will be adjusted dynamically according to the load conditions. At the same time, different performance and energy consumption scenarios (that is, the operating mode of the processor) will also synchronously set different BMC fan cooling control strategies (that is, the cooling strategy of the cooling device). When the high-performance computing mode is selected, a higher fan speed will be provided, and the corresponding fan speed control strategy is the high-performance mode; when the performance and energy consumption scenario selects the energy-saving mode, a lower fan speed will be provided, and the corresponding fan speed control strategy is the low-noise mode; when the performance and energy consumption scenario selects the energy-efficiency mode, the fan speed will be dynamically adjusted, and the corresponding fan speed control strategy is the energy-saving mode (that is, the energy-efficiency strategy).
[0155] Optionally, when the energy efficiency mode is selected, the "dynamic frequency adjustment" function (ie, adjustment function) can be enabled in conjunction with, but is not limited to, the "dynamic frequency adjustment" function. The "dynamic frequency adjustment" function is mainly enabled by triggering the periodic SMI (System Management Interrupt) set by the BIOS. Fig.11 A server dynamic energy efficiency management method according to an embodiment of the present application Figure 1 .like Fig.11 As shown in the figure, BIOS (i.e. the aforementioned control system) is the first program to run when the server starts. It pre-sets the periodic SMI interrupt, and the trigger period of the SMI interrupt is T. When the server time reaches the preset trigger point, the interrupt will be triggered. This interrupt is like a signal, indicating that the control system BIOS begins a comprehensive check of the CPU's operating status. After entering the SMI interrupt handler, the system will traverse each CPU core in turn. In this process, the operation of the judgment sub-process a will be executed. Fig.12 is a flowchart of the judgment sub-process a according to an embodiment of the present application. Fig.12As shown, it is possible but not limited to read the value of the first register of the virtual core or the core and compare it with the value of the first register read last time to determine whether the core (i.e., the core device) needs to adjust the operating frequency in the current cycle. The first register here can be but not limited to MSR (Model Specific Register) 0xE8, that is, the register with the Model Specific Register address of 0xE8, which is called IA32_APERF in the processor. This register is mainly used for performance monitoring, and it records the number of clock cycles spent by the processor when executing instructions in the C0 state (i.e., the active state). It is possible but not limited to compare the difference between the value of the first register read this time and the value of the register read last time and 0.05T to determine whether the core needs frequency adjustment. It is also possible to compare the ratio of the difference between the value of the first register read this time and the value of the register read last time to the period T (i.e., the state parameter) and 0.05 (i.e., the first parameter threshold) to determine whether the core needs frequency adjustment.
[0156] Optional, such as Fig.11 As shown, after executing sub-process a, the BIOS will further judge and process the cores that meet sub-process a. For these cores, the BIOS will read the value of MSR 0xE8 corresponding to its logical core. The value of this register means the number of clock cycles that the current logical core has gone through in the C0 state. According to Formula 1: CoreC0 Residency =(APERF After -APERF Before ) / T, by dividing the difference between the register before and after entering the SMI interrupt twice by the SMI interrupt cycle time, the C0 of each core to be adjusted can be obtained. Residency The value (i.e., status parameter) reflects the proportion of time that the logical core is in an active state. Then, the BIOS collects the C0 Residency values and calculate their average value (i.e. the first state parameter). This average value represents the C0 Residency The situation is an important indicator to measure the overall CPU load. Based on the calculated C0 Residency The BIOS will compare the average value with 85% (the second parameter threshold). This 85% threshold is an empirical setting that represents a higher level of CPU load. ResidencyIf it is close to or exceeds 85%, it means that the CPU is in a high-load operation state and the frequency may need to be increased to meet the work requirements; on the contrary, if it is far below 85%, the frequency can be appropriately reduced to save energy. Based on the comparison results, the control system will use the preset formula 2: Freq 期望 =Freq 当前 +(100×C0 Residency -85)×0.1, Freq max ≥Freq 期望 ≥Freq min To calculate the frequency adjustment amount and the adjusted frequency value. Formula 2 takes into account C0 Residency The difference from the threshold, the performance requirements of the server, and the energy-saving goals are taken into account to ensure that the adjusted frequency can meet the workload and achieve reasonable use of energy. Finally, the control system will traverse the cores whose frequencies are to be adjusted again, and write the adjusted frequency value into the second register (i.e., MSR 0x199 register) corresponding to each logical core according to the calculation result of formula 2. MSR 0x199 is a register specifically used to control the core frequency. By modifying the value in it, the control system can directly change the operating frequency of the core.
[0157] Fig.13 A server dynamic energy efficiency management method according to an embodiment of the present application Figure 2 .like Fig.13 As shown, the uncore (non-core, i.e. non-core device) part of the CPU also has similar operation logic, and the control system will start the operation of traversing the Uncore of each Package (i.e. physical packaging unit). In a multi-core processor, Package is a unit of physical packaging, which contains multiple cores and Uncore parts. Uncore covers components such as cache, memory controller, bus interface, etc., which play a key role in data interaction and collaborative work between processors and other hardware devices. The state of the Uncore part can include but is not limited to the active state C0 state and the inactive state (i.e. C2 state and C6 state). The control system will check the Uncore in each Package in turn to prepare for subsequent performance evaluation and adjustment. Then, when traversing each Uncore, the system will read the third register (i.e. MSR0x3F9 register) and the fourth register (i.e. MSR 0x60D register) on the Uncore. The value in the third register represents the C6 state of the uncore in this Package. Residency (i.e., the time ratio of the uncore in an inactive state C6). The value in the fourth register represents the C2 Residency(i.e. the proportion of time that the uncore is in another inactive state C2), according to Formula 3: UncoreC0 Residency =1-(UncoreC6 ResidencyAfter +UncoreC2 ResidencyAfter -UncoreC6 ResidencyBefore -UncoreC2 ResidencyBefore ) / T, using the value of the third register read when entering the SMI interrupt twice (i.e. UncoreC6 ResidencyAfter and UncoreC6 ResidencyBefore ) and the value of the fourth register read when entering the SMI interrupt twice (i.e. UncoreC2 ResidencyAfter and UncoreC2 ResidencyBefore ) Calculate the C0 of the uncore Residency (C0 state duration ratio, i.e. the second state parameter), compare C0 Residency The difference between 85% (i.e., the fourth parameter threshold) and 1% (i.e., the fifth parameter threshold) is in C0 Residency When the difference from 85% is greater than 1%, the expected uncore frequency of the uncore is calculated according to Formula 2, and finally the calculated frequency value is written to the fifth register (i.e., MSR 0x620 register), which will make the set frequency effective.
[0158] Optionally, in this embodiment, after the core and uncore frequencies are set, the control system will map the expected fan speed according to the set frequency, and use the PWM (Pulse Width Modulation) duty cycle Duty during actual control to represent the fan speed. The maximum and minimum core frequencies and uncore frequencies currently supported by the CPU can be obtained, and the number of k (i.e., the target number) of the finest adjustment interval between the maximum frequency and the minimum frequency is calculated based on their difference and the lowest frequency adjustment granularity of the currently used CPU (i.e., the aforementioned 0.1GHz), so as to establish a mapping relationship between the frequency adjustment interval and the fan duty, wherein the fan duty is set to 10% at the lowest, because even when the server is not working at all, a certain amount of heat dissipation is required. The setting of the fan speed can be executed by a periodic function called by PRM (Platform Runtime Mechanism), so as to avoid continuing to execute too many tasks in the SMI interruption, resulting in a long SMI interruption time and affecting system performance. After calculating and setting the system core and uncore frequencies, the program will pass these two frequency values to the fan speed setting function, which completes the fan speed control by sending IPMI commands to the BMC. The aforementioned periodic function called by PRM (Platform Runtime Mechanism) can be, but not limited to, BIOS code running under OS (Operating System), and can be, but not limited to, not setting the frequency setting and demand judgment process in the PRM function for processing, because the function called by PRM is a single-threaded task called under OS, and it is impossible to read and write the MSR registers corresponding to all threads under a single thread.
[0159] Through the above content, it is possible to pass C0 Residency It can effectively avoid the extra power waste caused by excessive CPU frequency under low load conditions, and can adjust the fan speed in real time according to the dynamic load conditions, further improving the energy efficiency of the server, realizing the closed loop of load perception-strategy calculation-hardware execution, and achieving a three-dimensional balance of performance, power consumption and temperature. Its core value lies in maintaining the active state of the CPU core and non-core in the efficient range of about 85%, while reducing operation and maintenance costs.
[0160] As an optional implementation, after calculating the frequency adjustment amount corresponding to the currently traversed non-core device based on the third difference and the unit frequency, the method also includes: determining a functional adjustment direction for the frequency adjustment direction of the non-core frequency of the processor based on the frequency adjustment amount, and determining a functional adjustment amount based on the frequency adjustment amount, wherein the functional adjustment direction is an adjustment direction for the operating level of the device function of the non-core device, and the functional adjustment amount is an adjustment amount for the operating level of the device function of the non-core device, and the higher the operating level, the greater the energy consumption of the non-core device; and adjusting the operating level of the device function of the non-core device according to the functional adjustment direction and the functional adjustment amount.
[0161] Optionally, in this embodiment, after adjusting the frequencies of the core components and non-core components of the processor, the operating level of the device function of the non-core components can be adjusted according to, but not limited to, the frequency adjustment trends of the core components and non-core components to further achieve energy saving goals.
[0162] Through the above content, by associating the frequency adjustment direction and frequency adjustment amount with the operating level of non-core components, it is possible to make a more intelligent trade-off between performance and power consumption and improve energy efficiency. In low-load scenarios, the operating level of non-core components is reduced to reduce power consumption; in high-load scenarios, the operating level is appropriately increased to ensure that performance requirements are met.
[0163] As an optional implementation, adjusting the operating frequency of the processor according to processor information corresponding to a target state includes: determining the expected frequency of each device in the processor according to the processor information corresponding to the target state; predicting the operating state of the processor at the expected frequency of each device; when the operating state fails to meet the operating conditions of the processor, adjusting the current priority parameters of each device according to the rate of change between the processor information of each device and the reference processor information to obtain a target priority parameter, wherein the reference processor information is detected in the execution cycle of the last adjustment function, and the priority parameter is used to indicate the importance of the performance requirements of the corresponding device to the processor; adjusting the operating frequency of each device according to the target priority parameter and the operating conditions.
[0164] Optionally, in this embodiment, each device in the processor may include, but is not limited to, each core device and each non-core device.
[0165] Optionally, in this embodiment, predicting the operating state of the processor at the expected frequency of each component may include, but is not limited to, predicting the temperature of the processor when each component of the processor operates at its corresponding expected frequency.
[0166] Optionally, in the present embodiment, the operating state failing to meet the operating conditions of the processor may include, but is not limited to, the temperature of the processor being greater than or equal to the maximum acceptable temperature for the processor to operate when each component of the processor operates at its respective expected frequency. In this case, if the operating frequency of each component is directly set to its respective expected frequency, the processor will not be able to operate normally, causing the processor to automatically reduce its frequency. In order to avoid this situation, further operations need to be performed on the expected frequency.
[0167] Optionally, in this embodiment, the priority parameter may be, but is not limited to, used to indicate the importance of the performance requirement of the corresponding device to the processor, that is, may be, but is not limited to, used to indicate the urgency of the performance requirement of the corresponding device.
[0168] Optionally, in this embodiment, the frequency modulation requirements of devices with higher target priority parameters may be preferentially met, but are not limited to, and the frequency modulation requirements of devices with lower target priority parameters may be ensured as much as possible on the basis of ensuring that the operating conditions are met.
[0169] Through the above content, the change rate between the processor information of each device and the reference processor information in the previous adjustment cycle is calculated, and the priority parameters of each device are dynamically adjusted based on this. This mechanism can quickly identify the changing trend of performance requirements, give priority to meeting the needs of key components, ensure that the most important tasks or services receive sufficient performance support, and reduce the focus on secondary components to achieve effective resource allocation.
[0170] As an optional implementation, the current priority parameters of each device are adjusted according to the change rate between the processor information of each device and the reference processor information to obtain the target priority parameter, including: determining the difference between the processor information of each device and the reference processor information as the change rate; when the change rate is greater than a first threshold, increasing the priority parameter of the current device to obtain the target priority parameter; when the change rate is less than the first threshold and greater than a second threshold, reducing the priority parameter of the current device to obtain the target priority parameter; when the change rate is less than the second threshold, determining the priority parameter of the current device as the minimum priority to obtain the target priority parameter.
[0171] Optionally, in this embodiment, each component of the processor may, but is not limited to, have the same initial priority parameters, or the same initial priority parameters may be set for each core component and each non-core component as required, but the initial priority parameters of the core components are different from the initial priority parameters of the non-core components.
[0172] Optionally, in this embodiment, it is possible but not limited to determining that the fluctuation of the busyness of the current device is greater and the frequency modulation demand is more urgent when the change rate is greater than or equal to the first threshold, and thus the priority parameter of the current device is increased; it is possible but not limited to determining that the fluctuation of the busyness of the current device is smaller and the frequency modulation demand is not urgent when the change rate is less than the first threshold and greater than or equal to the second threshold, and thus the priority parameter of the current device is decreased; it is possible but not limited to determining that the performance requirement of the current device is the least important to the processor when the change rate is less than the second threshold, and thus the priority parameter of the current device is determined to be the minimum priority.
[0173] Optionally, in this embodiment, the first threshold may be, but is not limited to, greater than 0.
[0174] Optionally, in this embodiment, the second threshold may be, but is not limited to, greater than 0 or less than 0.
[0175] As an optional implementation, the operating frequency of each device is adjusted according to the target priority parameter and the operating conditions, including: selecting the target device whose expected frequency meets the operating conditions from the devices of the processor except the device with the lowest priority according to the target priority parameter from high to low; adjusting the operating frequency of the target device to the expected frequency corresponding to the target device; and reducing the operating frequency of the device with the lowest priority.
[0176] Optionally, in this embodiment, the operating frequency of the device with the lowest priority level may be directly reduced, but is not limited to, to provide more frequency adjustment space for devices whose performance requirements are more important to the processor.
[0177] As an optional implementation, in the aforementioned server dynamic energy efficiency management method, in certain work scenarios, the frequency requirements of both core and uncore are very high (note that the requirements here are applied by the software under the operating system to the kernel or the CPU, so they may be real requirements or pseudo requirements (that is, the business with small actual performance requirements but applying for large performance)), but the TDP (Thermal Design Power) of a CPU is fixed, and it is impossible to meet both the extreme core frequency and the extreme uncore frequency. When this happens, the overheating caused by heat accumulation often triggers the CPU bottom-level adjustment plan, that is, frequency reduction processing. At this time, the CPU will directly reduce the frequency to ensure that the current power consumption does not exceed the TDP and the temperature of the processor does not exceed the threshold temperature, thereby protecting the CPU from being burned by high temperature. When this happens, the frequency is rigidly reduced, which is actually even more unable to meet the actual business needs. The ups and downs of the frequency will make the business performance worse, which can neither meet the performance requirements of the work scenario nor bring about a high energy efficiency ratio for the whole machine.
[0178] Optionally, in this embodiment, in view of the above considerations, the BIOS can, but is not limited to, obtain a series of CPU characteristic values by reading and writing a series of MSR registers in the SMI interrupt handler, including CPU_CLK_UNHALTED (processor non-idle time), UNC_UPI (uncore UPI (Ultra Path Interconnect) link usage), IO_METRIC (input and output metrics), etc. These characteristic values can reflect information such as UPI link utilization, IO access ratio, memory read and write ratio, etc. in addition to processor utilization. By combining the above multiple characteristic values, the frequency modulation requirements of the core components and non-core components of the processor can be comprehensively judged.
[0179] Optionally, in this series of characteristic values, some can characterize the utilization rate of physical links of certain devices, such as the utilization rate of UPI, the utilization rate of PCIe (Peripheral Component Interconnect Express) devices, the utilization rate of memory, etc. When the actual data transmission on these physical links continues to be 0, the corresponding device is notified to reduce the energy consumption level during the SMI interrupt processing. For example, UPI notifies the control unit to downgrade the UPI link from L0 to L1, entering a more power-saving state, so as to achieve a higher energy efficiency ratio.
[0180] Optionally, in this embodiment, in view of the above considerations, the present application also proposes a preemptive core and uncore frequency control strategy. Combined with the aforementioned server dynamic energy efficiency management method, after obtaining the current core and uncore respective C0 Residency After that, the C0 obtained when entering the interrupt this time and the last time entering the interrupt Residency Do the difference and divide it by C0 obtained when the interrupt was last entered Residency , and obtain their respective C0 ResidencyThe rate of change of the core or uncore is determined by the positive threshold (i.e., the first threshold) and the negative threshold (i.e., the second threshold) (the rate of change may be positive or negative). The positive threshold and the negative threshold are obtained through experimental and empirical adjustments. When the rate of change exceeds the positive threshold in this SMI interrupt, it is determined to be a new performance requirement change. The weight of the core or uncore that is greater than or equal to the positive threshold is increased by 1. When the rate of change is less than the positive threshold and greater than the negative threshold, the weight of the core or uncore is reduced by 1. When the rate of change is lower than the negative threshold, the frequency of the corresponding core or uncore is directly reduced. After all the change rates and weights are calculated, the performance requirement with the largest weight in the current SMI interrupt processing process is regarded as the most important performance requirement, and its frequency adjustment should be met first. If the power consumption of running at the expected frequency is about to reach TDP, the frequency of unimportant performance requirements is reduced to ensure the frequency of important performance requirements.
[0181] Optionally, in this embodiment, the aforementioned change rate and weight can also be saved in the SMI periodic interrupt processing function, but not limited to, and the change of the change rate is judged in the periodic function called by the PRM. If the change rate continues to remain at 0, it is judged that the current working scene is stable and unchanged, and the count value of the timer that triggers the SMI interrupt is adjusted in the PRM periodic function, and the count value is increased to lengthen the SMI cycle accordingly, reduce the frequency of entering the SMI interrupt, and avoid entering too many SMI interrupts to affect performance. And set a time threshold. When the SMI interrupt is not entered within this time threshold, force an SMI interrupt to judge the current demand change.
[0182] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.
[0183] The embodiment of the present application also provides a device for executing system functions. Fig.14 is a structural block diagram of the execution of a system function according to an embodiment of the present application, such as Fig.14 As shown, the device comprises:
[0184] A first display module 1402 is used to display a first configuration interface of the control system of the server, wherein a first tab is displayed on the first configuration interface, and the first tab is used to configure an operation mode configuration item of a processor of the server;
[0185] The saving module 1404 is used to save the option value of the first tab on the first configuration interface in response to the confirmation operation triggered on the first configuration interface;
[0186] A first detection module 1406, used to detect the configuration status of the option value of the first tab during the server startup process;
[0187] The first execution module 1408 is used to execute an adjustment function through the control system during the operation of the processor when it is detected that the configuration state is the target state, wherein the adjustment function is used to adjust the operating frequency of the processor.
[0188] Through the above device, the first configuration interface of the control system of the server is displayed to provide the selection of the operation mode configuration items of the processor of the server, the confirmation operation triggered on the first configuration interface is responded to, the option value of the first tab on the first configuration interface is saved, and during the server startup process, the configuration state of the option value of the first tab is detected, and then when the configuration state is detected to be the target state, the control system is used to perform the adjustment function for adjusting the operation frequency of the processor during the operation of the processor, that is, the operation mode of the processor of the server can be flexibly selected through the first configuration interface, and the operation frequency of the processor can be flexibly adjusted when the processor is running in the target state, and the operation flexibility of the processor of the server is effectively improved. Therefore, the technical problem of poor operation flexibility of the processor of the server in the related technology can be solved, and the technical effect of improving the operation flexibility of the processor of the server can be achieved.
[0189] Optionally, the first display module includes: a first display unit, used to display a first sub-tab and a second sub-tab on a first configuration interface, wherein the first sub-tab is used to configure an operation mode configuration item, and the second sub-tab is used to configure the configuration item of the adjustment function to be on or off, and the first tab includes the first sub-tab and the second sub-tab.
[0190] Optionally, the first display module also includes: a second display unit, used to display at least one third sub-tab on the first configuration interface when the option value of the second sub-tab is an on option, wherein the on option is used to indicate the start of the adjustment function, and the at least one third sub-tab is used to configure a configuration item of at least one function parameter used in the adjustment function.
[0191] Optionally, the second display unit is also used to: display a parameter threshold tab and / or a function cycle tab on the first configuration interface, wherein the parameter threshold tab is used to configure configuration items of the parameter threshold used in the adjustment function, the function cycle tab is used to configure configuration items of the execution cycle of the adjustment function, and at least one third sub-tab includes a parameter threshold tab and / or a function cycle tab.
[0192] Optionally, the first display unit is also used to: display the option value of the first sub-tab on the first configuration interface as an energy efficiency mode option, and display the option value of the second sub-tab as an on option, wherein the energy efficiency mode option is used to configure the operating mode of the server's processor to the energy efficiency mode, the energy efficiency mode is used to control the processor to balance the processor energy efficiency during operation, and the on option is used to indicate that the adjustment function is turned on; display the option value of the first sub-tab on the first configuration interface as other mode options, and display the option value of the second sub-tab as the off option, wherein the other mode options are used to configure the operating mode of the server's processor to a mode other than the energy efficiency mode, and the off option is used to indicate that the adjustment function is turned off.
[0193] Optionally, the first detection module includes: a first detection unit, used to detect the option value of the second sub-tab displayed on the first configuration interface, wherein the first tab includes a first sub-tab and a second sub-tab, the first sub-tab is used to configure the operation mode configuration item, and the second sub-tab is used to configure the configuration item of the adjustment function to be on or off; a first determination unit, used to determine that the detected configuration state is the target state when the option value of the second sub-tab is an on option.
[0194] Optionally, the execution device of the system function also includes: a second display module, used to display a second configuration interface of the server's controller, wherein a second tab is displayed on the second configuration interface, and the second tab is used to configure operation mode configuration items for the control system; a first sending module, used by the controller to respond to a confirmation operation triggered on the second configuration interface, and send the option value of the second tab on the second configuration interface to the control system; a first configuration module, used by the control system to configure the operation mode configuration items according to the option value of the second tab.
[0195] Optionally, the first configuration module includes: a first configuration unit, used by the control system to configure the operating mode of the processor to the option value of the second tab; a second configuration unit, used to configure the configuration item of the adjustment function to be turned on when the option value of the second tab is the energy efficiency mode option, wherein the energy efficiency mode option is used to configure the operating mode of the server's processor to the energy efficiency mode, and the energy efficiency mode is used to control the processor to balance the processor energy efficiency during operation; a third configuration unit, used to configure the configuration item of the adjustment function to be turned off when the option value of the second tab is other mode options, wherein the other mode options are used to configure the operating mode of the server's processor to a mode other than the energy efficiency mode.
[0196] Optionally, the execution device of the system function also includes: a second configuration module, which is used to configure the configuration item of at least one function parameter used in the adjustment function to the default parameter corresponding to each function parameter by the control system when the option value of the second option card is the energy efficiency mode option, wherein at least one function parameter includes: a parameter threshold used in the adjustment function, and / or an execution cycle of the adjustment function.
[0197] Optionally, the execution device of the system function also includes: a third display module, which is used to display a third configuration interface of the controller of the server, wherein a third tab is displayed on the third configuration interface, and the third tab is used to configure the cooling strategy configuration items of the cooling device of the server; a second detection module, which is used by the controller to respond to the confirmation operation triggered on the third configuration interface and detect the option value of the third tab; a second sending module, which is used by the controller to send a first configuration instruction to the control system when the option value of the third tab is the energy efficiency strategy option, wherein the first configuration instruction is used to instruct the control system to configure the operating mode of the processor to the energy efficiency mode and configure the configuration item of the adjustment function to be turned on, the energy efficiency mode is used to control the processor to balance the processor energy efficiency during operation, the energy efficiency strategy option is used to configure the cooling strategy of the cooling device to the energy efficiency strategy, and the energy efficiency strategy is used to instruct to adjust the cooling parameters of the cooling device according to the operating frequency of the processor during operation; a second execution module, which is used by the control system to execute the first configuration instruction during the server startup process, and to execute the adjustment function through the control system during the operation of the processor.
[0198] Optionally, the execution device of the system function also includes: a third sending module, which is used to send a second configuration instruction from the control system to the controller of the server when it is detected that the configuration state is the target state, wherein the second configuration instruction is used to instruct the controller to configure the cooling strategy of the cooling device of the server to an energy efficiency strategy, and the energy efficiency strategy is used to instruct the cooling parameters of the cooling device to be controlled according to the operating frequency of the processor during operation; a third execution module, which is used to execute the second configuration instruction by the controller, and control the cooling parameters of the cooling device according to the operating frequency of the processor during operation.
[0199] Optionally, the device for executing the system function further includes: a control module, which is used for the control system to control the heat dissipation parameters of the heat dissipation device of the server according to the operating frequency of the processor during operation.
[0200] Optionally, the control module includes: a generating unit, used by the control system to generate target heat dissipation parameters according to the operating frequency of the processor during operation; a sending unit, used by the control system to send the target heat dissipation parameters to the controller of the server; and a first control unit, used by the controller to control the operation of the heat dissipation device according to the target heat dissipation parameters.
[0201] Optionally, a third execution module or control module includes: a search unit, used to search for current heat dissipation parameters corresponding to the current processor frequency of the processor from processor frequencies and heat dissipation parameters with corresponding relationships, wherein the processor frequencies and heat dissipation parameters with corresponding relationships are established based on the maximum processor frequency and the minimum processor frequency of the processor; and a second control unit, used to control the heat dissipation device to operate according to the current heat dissipation parameters.
[0202] Optionally, the third execution module or control module also includes: a calculation unit, which is used to calculate the target number according to the maximum processor frequency, the minimum processor frequency and the unit frequency, wherein the unit frequency is used to indicate the minimum frequency value allowed to be adjusted for the processor; a division unit, which is used to divide the processor frequency between the minimum processor frequency and the maximum processor frequency into multiple processor frequencies according to the unit frequency according to the target number, and divide the heat dissipation parameter between the minimum heat dissipation parameter and the maximum heat dissipation parameter into multiple heat dissipation parameters according to the target number, wherein the total frequency number of multiple processor frequencies, the minimum processor frequency and the maximum processor frequency is the target number, and the total parameter number of multiple heat dissipation parameters, the minimum heat dissipation parameter and the maximum heat dissipation parameter is the target number; an establishment unit, which is used to establish a corresponding relationship between the maximum processor frequency and the maximum heat dissipation parameter, a corresponding relationship between the minimum processor frequency and the minimum heat dissipation parameter, and a one-to-one corresponding relationship between multiple processor frequencies and multiple heat dissipation parameters, to obtain processor frequencies and heat dissipation parameters with corresponding relationships, wherein a larger processor frequency corresponds to a larger heat dissipation parameter.
[0203] Optionally, the first execution module includes: an adjustment unit, which is used to adjust the operating frequency of the processor according to processor information corresponding to the target state through the control system during the operation of the processor.
[0204] Optionally, the adjustment unit is also used to: adjust the core operating frequency of the processor according to the first processor information corresponding to the core device, and adjust the non-core operating frequency of the processor according to the second processor information corresponding to the non-core device, wherein the processor information includes the first processor information and the second processor information, the processor includes the core device and the non-core device, and the operating frequency of the processor includes the core operating frequency and the non-core operating frequency.
[0205] Optionally, the adjustment unit is further used to: detect a first state parameter of the core device, wherein the first processor information includes the first state parameter, and the first state parameter is used to indicate the proportion of time the core device is running in an active working state; calculate a target core operating frequency based on the first state parameter and the current core operating frequency of the processor; and adjust the core operating frequency of the processor from the current core operating frequency to the target core operating frequency.
[0206] Optionally, the adjustment unit is further used to: obtain a hyper-threading configuration item of the control system, wherein the hyper-threading configuration item is used to indicate whether the hyper-threading function of the control system is turned on; when it is detected that the hyper-threading configuration item is used to indicate that the hyper-threading function is turned on, determine multiple virtual cores in the processor as a core device; when it is detected that the hyper-threading configuration item is used to indicate that the hyper-threading function is turned off, determine a virtual core in the processor as a core device; traverse each core device in the processor; detect a state parameter corresponding to each core device, wherein the state parameter corresponding to each core device is used to indicate the proportion of time that the corresponding core device is running in an active working state; determine a core device whose corresponding state parameter is greater than or equal to a first parameter threshold as a target core device; and determine the average value of the state parameter of the target core device as the first state parameter.
[0207] Optionally, the adjustment unit is also used to: calculate a first difference between a first state parameter and a second parameter threshold; when the first difference is greater than or equal to a third parameter threshold, calculate a frequency adjustment amount corresponding to each target core component based on a second difference between the state parameter of each target core component and the second parameter threshold and a unit frequency, wherein the unit frequency is used to indicate the minimum frequency value allowed for adjustment of the processor; and determine the sum of the current core operating frequency corresponding to each target core component and the frequency adjustment amount corresponding to each core component as the target core operating frequency corresponding to each target core component.
[0208] Optionally, the adjustment unit is further used to: detect a second state parameter of the non-core device, wherein the second processor information includes the second state parameter, and the second state parameter is used to indicate the proportion of time the non-core device is running in an active working state; calculate a target non-core operating frequency based on the second state parameter and the current non-core operating frequency of the processor; and adjust the non-core operating frequency of the processor from the current non-core operating frequency to the target non-core operating frequency.
[0209] Optionally, the adjustment unit is also used to: traverse each non-core device; calculate the third difference between the second state parameter of the non-core device currently traversed and the fourth parameter threshold; when the third difference is greater than or equal to the fifth parameter threshold, calculate the frequency adjustment amount corresponding to the non-core device currently traversed based on the third difference and the unit frequency, wherein the unit frequency is used to indicate the minimum frequency value allowed for adjustment of the processor; and determine the sum of the current non-core operating frequency corresponding to the non-core device currently traversed and the frequency adjustment amount as the target non-core operating frequency corresponding to the non-core device currently traversed.
[0210] Optionally, after calculating the frequency adjustment amount corresponding to the currently traversed non-core device based on the third difference and the unit frequency, the adjustment unit is also used to: determine the functional adjustment direction of the frequency adjustment direction of the non-core frequency of the processor based on the frequency adjustment amount, and determine the functional adjustment amount based on the frequency adjustment amount, wherein the functional adjustment direction is the adjustment direction of the operating level of the device function of the non-core device, and the functional adjustment amount is the adjustment amount of the operating level of the device function of the non-core device, and the higher the operating level, the greater the energy consumption of the non-core device; and adjust the operating level of the device function of the non-core device according to the functional adjustment direction and the functional adjustment amount.
[0211] Optionally, the adjustment unit is also used to: determine the expected frequency of each device in the processor based on the processor information corresponding to the target state; predict the operating state of the processor at the expected frequency of each device; when the operating state fails to meet the operating conditions of the processor, adjust the current priority parameters of each device based on the rate of change between the processor information of each device and the reference processor information to obtain the target priority parameters, wherein the reference processor information is detected in the execution cycle of the previous adjustment function, and the priority parameter is used to indicate the importance of the performance requirements of the corresponding device to the processor; adjust the operating frequency of each device according to the target priority parameter and the operating conditions.
[0212] Optionally, the adjustment unit is also used to: determine the difference between the processor information of each device and the reference processor information as the change rate; when the change rate is greater than a first threshold, increase the priority parameter of the current device to obtain a target priority parameter; when the change rate is less than the first threshold and greater than a second threshold, reduce the priority parameter of the current device to obtain a target priority parameter; when the change rate is less than the second threshold, determine the priority parameter of the current device as the minimum priority to obtain the target priority parameter.
[0213] Optionally, the adjustment unit is also used to: screen target devices whose expected frequencies meet the operating conditions from devices other than the device with the lowest priority in the processor according to the target priority parameters from high to low; adjust the operating frequency of the target device to the expected frequency corresponding to the target device; and reduce the operating frequency of the device with the lowest priority.
[0214] For the description of the features in the embodiments corresponding to the device for executing the system function, please refer to the relevant description of the embodiments corresponding to the method for executing the system function, which will not be repeated here.
[0215] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in the embodiment of the execution method of any of the above-mentioned system functions.
[0216] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps in the above-mentioned execution method embodiment of any one of the system functions when running.
[0217] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0218] An embodiment of the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the steps in the execution method embodiment of any of the above-mentioned system functions are implemented.
[0219] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the execution method embodiment of any of the above-mentioned system functions are implemented.
[0220] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0221] The above is a detailed introduction to the execution method, device, electronic device, computer-readable storage medium and computer program product of a system function provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A method for executing a system function, characterized in that: include: Displaying a first configuration interface of a control system of a server, wherein a first tab is displayed on the first configuration interface, and the first tab is used to configure an operation mode configuration item of a processor of the server; In response to a confirmation operation triggered on the first configuration interface, saving an option value of the first tab on the first configuration interface; During the process of starting the server, detecting the configuration status of the option value of the first tab; When it is detected that the configuration state is the target state, an adjustment function is performed by the control system during the operation of the processor, wherein the adjustment function is used to adjust the operating frequency of the processor.
2. The method for executing system functions according to claim 1, characterized in that: The first configuration interface of the control system of the display server includes: A first sub-tab and a second sub-tab are displayed on the first configuration interface, wherein the first sub-tab is used to configure the operation mode configuration item, and the second sub-tab is used to configure the configuration item of the adjustment function to be on or off, and the first tab includes the first sub-tab and the second sub-tab.
3. The method for executing system functions according to claim 2, characterized in that: The first configuration interface of the control system of the display server also includes: When the option value of the second sub-tab is the on option, at least one third sub-tab is displayed on the first configuration interface, wherein the on option is used to indicate turning on the adjustment function, and the at least one third sub-tab is used to configure a configuration item of at least one function parameter used in the adjustment function.
4. The method for executing system functions according to claim 3, characterized in that: The displaying at least one third sub-tab on the first configuration interface includes: A parameter threshold tab and / or a function cycle tab are displayed on the first configuration interface, wherein the parameter threshold tab is used to configure configuration items of the parameter threshold used in the adjustment function, the function cycle tab is used to configure configuration items of the execution cycle of the adjustment function, and the at least one third sub-tab includes the parameter threshold tab and / or the function cycle tab.
5. The method for executing system functions according to claim 2, characterized in that: The displaying of the first sub-tab and the second sub-tab on the first configuration interface includes one of the following: Displaying on the first configuration interface that the option value of the first sub-tab is an energy efficiency mode option, and displaying that the option value of the second sub-tab is an enable option, wherein the energy efficiency mode option is used to configure the operation mode of the processor of the server to the energy efficiency mode, and the energy efficiency mode is used to control the processor to balance the processor energy efficiency during operation, and the enable option is used to indicate to enable the adjustment function; The option value of the first sub-tab is displayed on the first configuration interface as the other mode option, and the option value of the second sub-tab is displayed as the off option, wherein the other mode option is used to configure the operating mode of the processor of the server to a mode other than the energy efficiency mode, and the off option is used to indicate turning off the adjustment function.
6. The method for executing system functions according to claim 1, characterized in that: The detecting the configuration state of the first tab includes: Detecting an option value of a second sub-tab displayed on the first configuration interface, wherein the first tab includes a first sub-tab and a second sub-tab, the first sub-tab is used to configure the operation mode configuration item, and the second sub-tab is used to configure the configuration item of the adjustment function to be turned on or off; When the option value of the second sub-tab is an on option, it is determined that the configuration state is detected to be the target state.
7. The method for executing system functions according to claim 1, characterized in that: In the process of starting the server, before detecting the configuration status of the option value of the first tab, the method further includes: Displaying a second configuration interface of the controller of the server, wherein a second tab is displayed on the second configuration interface, and the second tab is used to configure the operation mode configuration item for the control system; The controller responds to a confirmation operation triggered on the second configuration interface, and sends the option value of the second option card on the second configuration interface to the control system; The control system configures the operation mode configuration item according to the option value of the second option card.
8. The method for executing system functions according to claim 7, characterized in that: The step of configuring the operation mode configuration item according to the option value of the second option card by the control system includes: The control system configures the operating mode of the processor to be an option value of the second option card; In a case where the option value of the second tab is the energy efficiency mode option, configuring the configuration item of the adjustment function to be turned on, wherein the energy efficiency mode option is used to configure the operation mode of the processor of the server to be the energy efficiency mode, and the energy efficiency mode is used to control the processor to balance the processor energy efficiency during operation; When the option value of the second tab is other mode options, the configuration item of the adjustment function is configured to be closed, wherein the other mode options are used to configure the operating mode of the processor of the server to a mode other than the energy efficiency mode.
9. The method for executing system functions according to claim 8, characterized in that: The method further comprises: When the option value of the second tab is the energy efficiency mode option, the control system configures the configuration item of at least one functional parameter used in the adjustment function to the default parameters corresponding to each functional parameter, wherein the at least one functional parameter includes: a parameter threshold used in the adjustment function, and / or an execution cycle of the adjustment function.
10. The method for executing a system function according to claim 1, characterized in that: In the process of starting the server, before detecting the configuration status of the option value of the first tab, the method further includes: Displaying a third configuration interface of the controller of the server, wherein a third tab is displayed on the third configuration interface, and the third tab is used to configure a heat dissipation strategy configuration item of a heat dissipation device of the server; The controller detects an option value of the third option card in response to a confirmation operation triggered on the third configuration interface; In a case where the option value of the third tab is the energy efficiency strategy option, the controller sends a first configuration instruction to the control system, wherein the first configuration instruction is used to instruct the control system to configure the operating mode of the processor to the energy efficiency mode and configure the configuration item of the adjustment function to be turned on, the energy efficiency mode is used to control the processor to balance the processor energy efficiency during operation, the energy efficiency strategy option is used to configure the heat dissipation strategy of the heat dissipation device to the energy efficiency strategy, and the energy efficiency strategy is used to instruct to adjust the heat dissipation parameters of the heat dissipation device according to the operating frequency of the processor during operation; The first configuration instruction is executed by the control system during the startup of the server, and the adjustment function is executed by the control system during the operation of the processor.
11. The method for executing a system function according to claim 1, characterized in that: After detecting the configuration status of the option value of the first tab, the method further includes: In the case where it is detected that the configuration state is the target state, the control system sends a second configuration instruction to the controller of the server, wherein the second configuration instruction is used to instruct the controller to configure the heat dissipation strategy of the heat dissipation device of the server to an energy efficiency strategy, and the energy efficiency strategy is used to instruct to control the heat dissipation parameters of the heat dissipation device according to the operating frequency of the processor during operation; The controller executes the second configuration instruction and controls the heat dissipation parameters of the heat dissipation device according to the operating frequency of the processor during operation.
12. The method for executing a system function according to claim 1, characterized in that: After the control system performs the adjustment function during the operation of the processor, the method further includes: The control system controls the heat dissipation parameters of the heat dissipation device of the server according to the operating frequency of the processor during operation.
13. The method for executing system functions according to claim 12, characterized in that: The control system controls the heat dissipation parameters of the heat dissipation device of the server according to the operating frequency of the processor during operation, including: The control system generates a target heat dissipation parameter according to the operating frequency of the processor during operation; The control system sends the target heat dissipation parameter to a controller of the server; The controller controls the operation of the heat dissipation device according to the target heat dissipation parameter.
14. The method for executing a system function according to claim 11 or 12, characterized in that: The step of controlling the heat dissipation parameters of the heat dissipation device of the server according to the processor frequency of the processor during operation includes: Searching for a current heat dissipation parameter corresponding to the current processor frequency of the processor from the processor frequencies and heat dissipation parameters having a corresponding relationship, wherein the processor frequencies and heat dissipation parameters having a corresponding relationship are established based on the maximum processor frequency and the minimum processor frequency of the processor; The heat dissipation device is controlled to operate according to the current heat dissipation parameters.
15. The method for executing system functions according to claim 14, characterized in that: Before searching for the current heat dissipation parameter corresponding to the current processor frequency of the processor from the processor frequencies and heat dissipation parameters having a corresponding relationship, the method further includes: Calculating a target quantity according to the maximum processor frequency, the minimum processor frequency and a unit frequency, wherein the unit frequency is used to indicate a minimum frequency value allowed to be adjusted for the processor; Dividing the processor frequencies between the minimum processor frequency and the maximum processor frequency into a plurality of processor frequencies according to the unit frequency according to the target quantity, and dividing the heat dissipation parameters between the minimum heat dissipation parameter and the maximum heat dissipation parameter into a plurality of heat dissipation parameters according to the target quantity, wherein the total frequency quantity of the plurality of processor frequencies, the minimum processor frequency and the maximum processor frequency is the target quantity, and the total parameter quantity of the plurality of heat dissipation parameters, the minimum heat dissipation parameter and the maximum heat dissipation parameter is the target quantity; A correspondence between the maximum processor frequency and the maximum heat dissipation parameter, a correspondence between the minimum processor frequency and the minimum heat dissipation parameter, and a one-to-one correspondence between the multiple processor frequencies and the multiple heat dissipation parameters are established to obtain processor frequencies and heat dissipation parameters with corresponding relationships, wherein a larger processor frequency corresponds to a larger heat dissipation parameter.
16. The method for executing a system function according to claim 1, characterized in that: The performing of the adjustment function by the control system during the operation of the processor includes: During the operation of the processor, the control system adjusts the operating frequency of the processor according to the processor information corresponding to the target state.
17. The method for executing system functions according to claim 16, characterized in that: The adjusting the operating frequency of the processor according to the processor information corresponding to the target state includes: The core operating frequency of the processor is adjusted according to first processor information corresponding to the core device, and the non-core operating frequency of the processor is adjusted according to second processor information corresponding to the non-core device, wherein the processor information includes the first processor information and the second processor information, the processor includes the core device and the non-core device, and the operating frequency of the processor includes the core operating frequency and the non-core operating frequency.
18. The method for executing system functions according to claim 17, characterized in that: The step of adjusting the core operating frequency of the processor according to the first processor information corresponding to the core device includes: Detecting a first state parameter of the core device, wherein the first processor information includes the first state parameter, and the first state parameter is used to indicate a time ratio of the core device running in an active working state; Calculating a target core operating frequency according to the first state parameter and a current core operating frequency of the processor; The core operating frequency of the processor is adjusted from the current core operating frequency to the target core operating frequency.
19. The method for executing a system function according to claim 18, characterized in that: The detecting the first state parameter of the core device comprises: Obtaining a hyperthreading configuration item of the control system, wherein the hyperthreading configuration item is used to indicate whether to enable a hyperthreading function of the control system; In the case where it is detected that the hyperthreading configuration item is used to indicate that the hyperthreading function is turned on, multiple virtual cores in the processor are determined as one of the core devices; in the case where it is detected that the hyperthreading configuration item is used to indicate that the hyperthreading function is turned off, one virtual core in the processor is determined as one of the core devices; Traversing each of the core devices in the processor; Detecting a state parameter corresponding to each of the core components, wherein the state parameter corresponding to each of the core components is used to indicate a time proportion in which the corresponding core component is in an active working state; Determine the core component whose corresponding state parameter is greater than or equal to the first parameter threshold as a target core component; An average value of the state parameter of the target core component is determined as the first state parameter.
20. The method for executing a system function according to claim 19, characterized in that: The calculating the target core operating frequency according to the first state parameter and the current core operating frequency of the processor includes: Calculating a first difference between the first state parameter and a second parameter threshold; When the first difference is greater than or equal to the third parameter threshold, the frequency adjustment amount corresponding to each of the target core components is calculated according to the second difference between the state parameter of each of the target core components and the second parameter threshold and the unit frequency, wherein the unit frequency is used to indicate the minimum frequency value allowed to be adjusted for the processor; The sum of the current core operating frequency corresponding to each of the target core components and the frequency adjustment amount corresponding to each of the core components is determined as the target core operating frequency corresponding to each of the target core components.
21. The method for executing a system function according to claim 17, characterized in that: The adjusting the operating frequency of the non-core device according to the second processor information corresponding to the non-core device includes: Detecting a second state parameter of the non-core device, wherein the second processor information includes the second state parameter, and the second state parameter is used to indicate a time ratio of the non-core device running in an active working state; Calculating a target non-core operating frequency according to the second state parameter and a current non-core operating frequency of the processor; The non-core operating frequency of the processor is adjusted from the current non-core operating frequency to the target non-core operating frequency.
22. The method for executing a system function according to claim 21, characterized in that: The calculating the target non-core operating frequency according to the second state parameter and the current non-core operating frequency of the processor includes: Traversing each of the non-core components; Calculate a third difference between the second state parameter of the non-core device currently traversed and a fourth parameter threshold; When the third difference is greater than or equal to the fifth parameter threshold, a frequency adjustment amount corresponding to the non-core device currently traversed is calculated according to the third difference and the unit frequency, wherein the unit frequency is used to indicate a minimum frequency value allowed to be adjusted for the processor; The sum of the current non-core operating frequency corresponding to the non-core device currently traversed and the frequency adjustment amount is determined as the target non-core operating frequency corresponding to the non-core device currently traversed.
23. The method for executing a system function according to claim 22, characterized in that: After calculating the frequency adjustment amount corresponding to the non-core component currently traversed according to the third difference and the unit frequency, the method further includes: Determining a function adjustment direction according to the frequency adjustment direction of the non-core frequency of the processor by the frequency adjustment amount, and determining a function adjustment amount according to the frequency adjustment amount, wherein the function adjustment direction is an adjustment direction of an operation level of a device function of the non-core device, and the function adjustment amount is an adjustment amount of an operation level of the device function of the non-core device, and the higher the operation level, the greater the energy consumption of the non-core device; The operation level of the device function of the non-core device is adjusted according to the function adjustment direction and the function adjustment amount.
24. The method for executing system functions according to claim 15, characterized in that: The adjusting the operating frequency of the processor according to the processor information corresponding to the target state includes: Determining the expected frequency of each device in the processor according to the processor information corresponding to the target state; Predicting the operating state of the processor at the expected frequency of each device; In the case that the operating state fails to meet the operating conditions of the processor, adjusting the current priority parameters of each device according to the change rate between the processor information of each device and the reference processor information to obtain a target priority parameter, wherein the reference processor information is detected in the last execution cycle of the adjustment function, and the priority parameter is used to indicate the importance of the performance requirement of the corresponding device to the processor; The operating frequency of each device is adjusted according to the target priority parameter and the operating condition.
25. The method for executing system functions according to claim 24, characterized in that: The step of adjusting the current priority parameter of each device according to the change rate between the processor information of each device and the reference processor information to obtain the target priority parameter includes: determining a difference between the processor information of each device and the reference processor information as the change rate; When the change rate is greater than a first threshold, increasing the priority parameter of the current device to obtain the target priority parameter; When the change rate is less than the first threshold and greater than the second threshold, reducing the priority parameter of the current device to obtain the target priority parameter; When the change rate is less than the second threshold, the priority parameter of the current device is determined as the minimum priority to obtain the target priority parameter.
26. The method for executing system functions according to claim 25, characterized in that: The adjusting the operating frequency of each device according to the target priority parameter and the operating condition includes: Filter the target device whose expected frequency meets the operating condition from the devices of the processor except the device with the minimum priority according to the target priority parameter from high to low; Adjusting the operating frequency of the target device to the expected frequency corresponding to the target device; The operating frequency of the device having the lowest priority is reduced.
27. A device for executing a system function, characterized in that: include: A first display module, used for displaying a first configuration interface of a control system of a server, wherein a first tab is displayed on the first configuration interface, and the first tab is used for configuring an operation mode configuration item of a processor of the server; A saving module, configured to respond to a confirmation operation triggered on the first configuration interface and save the option value of the first tab on the first configuration interface; A first detection module, used for detecting the configuration status of the option value of the first tab during the startup of the server; The first execution module is used to execute an adjustment function through the control system during the operation of the processor when it is detected that the configuration state is a target state, wherein the adjustment function is used to adjust the operating frequency of the processor.
28. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for executing the system function as claimed in any one of claims 1 to 26 when executing the computer program.
29. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method for executing the system function as claimed in any one of claims 1 to 26.
30. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for executing the system function as claimed in any one of claims 1 to 26 are implemented.
Citation Information
Patent Citations
Mobile terminal and performance adjustment method of processor of mobile terminal
CN105260236A
Method and device for adjusting frequencies of CPU (central processing unit) subsystems of Linux systems
CN105511593A
Server control method and device, equipment and storage medium
CN115617620A
Energy-saving control method, device and equipment for storage equipment and storage medium
CN118519514A
Processor control method and device and electronic equipment
CN118860119A
Cited By
Electronic equipment control method and device, server, medium and program product
CN120723129A
Control method and apparatus for electronic device, server, medium, and program product
CN120723129B
Electronic equipment operation control method, electronic equipment, server and storage medium
CN120909665A