Electronic equipment control method and device, server, medium and program product

By setting configuration controls on the configuration interface and dynamically adjusting the processor frequency according to the status level configuration operation, the problem of resource waste in different processor models and scenarios is solved, and energy consumption optimization and resource utilization efficiency are improved.

CN120723129AActive Publication Date: 2025-09-30INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202511222019.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-28
Publication Date
2025-09-30
Estimated Expiration
2045-08-28

AI Technical Summary

Technical Problem

Existing technologies make it difficult to flexibly adjust the processor's operating frequency according to different processor models and application scenarios, resulting in waste of resources and increased energy consumption.

Method used

A control method for an electronic device is provided. The method allows a user to adjust a target operating frequency by displaying a configuration control on a configuration interface, and displays matching configuration information based on a status level configuration operation, thereby determining and controlling the operating frequency of the electronic device not to exceed the target operating frequency.

Benefits of technology

It enables flexible adjustment of processor frequency according to different application scenarios, reduces energy consumption and improves resource utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120723129A_ABST
    Figure CN120723129A_ABST
Patent Text Reader

Abstract

The invention provides a control method and device of electronic equipment, a server, a medium and a program product, and can be applied to the technical field of servers. The control method comprises the steps that a first configuration interface is displayed, the first configuration interface displays a configuration control, and the configuration control is used for adjusting the target working frequency of the electronic equipment; in response to a state level configuration operation for the configuration control, configuration information matched with the state level configuration operation is displayed on the first configuration interface, and the configuration information represents a target state level of the performance state of the electronic equipment; and in response to a received confirmation instruction for the configuration information, determining a target working frequency of the electronic equipment corresponding to the configuration information so as to control the operation of the electronic equipment based on the target working frequency in the operation process of the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and more specifically to a control method, device, server, medium, and program product for an electronic device. Background Art

[0002] A server's processor, such as the Central Processing Unit (CPU), is the server's computing and control core, much like the human brain is to the body. Its importance is self-evident. The CPU is also the server's primary energy consumer. The operating system (OS) typically adjusts CPU frequency to improve energy efficiency. However, using a universal frequency adjustment method is difficult to adapt to diverse application scenarios, resulting in wasted resources. Summary of the Invention

[0003] In view of the above problems, the present application provides a control method, device, server, medium and program product for an electronic device.

[0004] According to a first aspect of the present application, a method for controlling an electronic device is provided, comprising: displaying a first configuration interface, wherein the first configuration interface displays a configuration control, the configuration control being used to adjust a target operating frequency of the electronic device, the target operating frequency indicating a maximum operating frequency that the electronic device can support; in response to a status level configuration operation for the configuration control, displaying configuration information matching the status level configuration operation on the first configuration interface, wherein the configuration information represents a target status level of a performance status of the electronic device, and a mapping relationship exists between the target status level and the target operating frequency; and in response to receiving a confirmation instruction for the configuration information, determining the target operating frequency of the electronic device represented by the configuration information, so as to control the operating frequency of the electronic device not to exceed the target operating frequency during operation of the electronic device.

[0005] The second aspect of the present application provides a control device for an electronic device, comprising: an interface display module for displaying a first configuration interface, wherein the first configuration interface displays a configuration control, and the configuration control is used to adjust the target operating frequency of the electronic device, and the target operating frequency indicates the highest operating frequency that the electronic device can support; a level configuration module for displaying configuration information matching the status level configuration operation on the first configuration interface in response to a status level configuration operation for the configuration control, wherein the configuration information represents a target status level of a performance status of the electronic device, and a mapping relationship exists between the target status level and the target operating frequency; and an information determination module for determining the target operating frequency of the electronic device corresponding to the configuration information in response to receiving a confirmation instruction for the configuration information, so as to control the operating frequency of the electronic device not to exceed the target operating frequency during the operation of the electronic device.

[0006] The third aspect of the present application provides a server, comprising: one or more processors; a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above-mentioned control method.

[0007] The fourth aspect of the present application further provides a computer-readable storage medium having a computer program or instruction stored thereon, which implements the steps of the above-mentioned control method when the above-mentioned computer program or instruction is executed by a processor.

[0008] The fifth aspect of the present application further provides a computer program product, comprising a computer program or instructions, which implement the steps of the above-mentioned control method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above contents and other objects, features and advantages of the present application will become more apparent through the following description of the embodiments of the present application with reference to the accompanying drawings, in which:

[0010] Figure 1 A block diagram of a server according to an embodiment of the present application is shown;

[0011] Figure 2 A flow chart showing a method for controlling an electronic device according to an embodiment of the present application is shown;

[0012] Figure 3 A schematic diagram of a configuration control according to an embodiment of the present application is shown;

[0013] Figure 4A A schematic diagram showing a display of a slider-type configuration control according to an embodiment of the present application is shown;

[0014] Figure 4Bshows an operation diagram of a slider-type configuration control according to another embodiment of the present application;

[0015] Figure 4C A schematic diagram of the operation of a confirmation control according to an embodiment of the present application is shown;

[0016] Figure 5A A schematic diagram showing an activation control of a second configuration interface according to an embodiment of the present application is shown;

[0017] Figure 5B A block diagram illustrating activation of configuration information according to an embodiment of the present application is shown;

[0018] Figure 6A A schematic diagram illustrating a task configuration operation according to an embodiment of the present application is shown;

[0019] Figure 6B A schematic diagram illustrating a health assessment operation according to an embodiment of the present application is shown;

[0020] Figure 6C A schematic diagram of level state optimization according to an embodiment of the present application is shown;

[0021] Figure 7 A schematic diagram of a heterogeneous map according to an embodiment of the present application is shown;

[0022] Figure 8 A schematic diagram of a deep learning model according to an embodiment of the present application is shown;

[0023] Figure 9 A structural block diagram of a control device of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0024] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present application. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present application. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present application.

[0025] The terms used herein are only for describing specific embodiments and are not intended to limit this application. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0026] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0027] When expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0028] As digitalization sweeps the globe, demand for refined and intelligent server performance management is exploding across industries. Data centers, the computing power heart of the digital economy, face the dual challenges of diverse workloads and soaring energy costs. On the one hand, with the widespread adoption of emerging technologies such as 5G, the Internet of Things, and artificial intelligence, the types of services handled by data centers are becoming increasingly complex. From the sudden surge in transaction traffic on e-commerce platforms to the sustained demand for computing power from AI training clusters, servers must rapidly switch performance modes in different scenarios. For example, during major e-commerce promotions, transaction spikes can cause server CPU load to jump from 30% to over 90% in just minutes. On the other hand, high energy costs are placing a heavy burden on data center operations. According to statistics, global data centers consume up to 200 terawatt-hours of electricity annually, accounting for approximately 3% of global electricity consumption, with server processors accounting for a significant portion of this power consumption.

[0029] Existing technologies can dynamically adjust processor operating energy consumption by adjusting the processor's operating frequency. However, processors from different manufacturers vary in model, heat dissipation capacity, and operating power consumption. Furthermore, different application scenarios require different operating frequencies. Using the same frequency adjustment strategy, it's difficult to guarantee that every processor's operating frequency can be adjusted to the optimal parameters to minimize energy consumption.

[0030] In view of this, an embodiment of the present application provides a method for controlling an electronic device, including: displaying a first configuration interface, wherein the first configuration interface displays a configuration control, and the configuration control is used to adjust the target operating frequency of the electronic device; in response to a status level configuration operation for the configuration control, displaying configuration information matching the status level configuration operation on the first configuration interface, wherein the configuration information includes a target status level characterizing the performance status of the electronic device; and in response to receiving a confirmation instruction for the configuration information, determining the target operating frequency of the electronic device corresponding to the configuration information, so that during the operation of the electronic device, the operation of the electronic device can be controlled based on the target operating frequency.

[0031] By using the control method of an electronic device provided in an embodiment of the present application, a configuration control can be set on a first configuration interface so that the target state level representing the performance state of the electronic device can be flexibly configured using the configuration control in an interactive manner, and then based on the configuration information, the target operating frequency of the electronic device can be determined, thereby using the target operating frequency to control the operation of the electronic device, so that the frequency modulation strategy can be flexibly adjusted based on the target operating frequency, thereby reducing energy consumption.

[0032] Figure 1 A block diagram of a server according to an embodiment of the present application is shown.

[0033] like Figure 1 As shown, the server 100 of this embodiment may include components such as a processor 110, a baseboard management controller (BMC) 120, and a basic input / output system (BIOS) 130. Those skilled in the art will understand that Figure 1 The structure of the server shown in the figure does not constitute a limitation on the server. The server provided in the embodiment of the present application may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0034] The following combination Figure 1 The components of the server 100 are described in detail below:

[0035] The processor 110 may include one or more processing units 111, which may be a central processing unit, a graphics processing unit (GPU), a digital signal processor, an application-specific integrated circuit, a field-programmable gate array (FPGA), or other programmable logic device, without limitation herein. The processor 110 may also include a first storage unit 112. The processing unit 111 may utilize various interfaces and lines to connect various components, execute or execute instructions of an operating system 113 stored in the first storage unit 112, and call data stored in the first storage unit 112 to execute various functions of the server 100 and process data, thereby implementing various services based on the server 100.

[0036] Exemplarily, an operating system 113 may be run on the processor 110 , and the operating system 113 may be Linux, Windows, or vxWorks, etc.

[0037] The BMC 120 is used to monitor the hardware of the server 100, such as the processor 110. For example, it can monitor the temperature, voltage, and other information of various components of the server 100 and make corresponding adjustments to ensure normal operation. Optionally, the BMC 120 can be configured with a first configuration interface 121. Configuration controls can be displayed on the first configuration interface 121, allowing the user to configure the target operating frequency of the processor 110 as an electronic device through the configuration controls, and store the target operating frequency in the second storage unit 122 of the BMC 120.

[0038] BIOS 130 is a firmware program within server 100 that is responsible for hardware initialization and self-testing during server 100 startup, as well as providing basic input and output functions. BIOS 130 is located on the motherboard of server 100. Optionally, BIOS 130 may include a second configuration interface 131 and a third storage unit 132. BIOS 130 may also transmit the target operating frequency read from second storage unit 122 to operating system 113 running on processor 110, enabling operating system 113 to adjust processor 110's maximum supported operating frequency to the target operating frequency.

[0039] It should be noted that the first storage unit 112, the second storage unit 122, and the third storage unit 132 are all used to store data, including but not limited to random access memory (RAM), read-only memory (ROM), flash memory, or optical storage.

[0040] like Figure 1 As shown, the target operating frequency or configuration information can be stored in the first storage unit 112, so that when the operating system 113 is running, the target operating frequency can be read from the first storage unit 112 to enable the processor 110 to adjust the operating frequency according to the working state, thereby reducing energy consumption.

[0041] The processor 110 , the BMC 120 , and the BIOS 130 may communicate with each other via IPMI or Redfish.

[0042] Specifically, IPMI: Intelligent Platform Management Interface, is an industry standard specification for remotely monitoring and managing system-level events, especially for servers and other computing devices.

[0043] Redfish: The Redfish protocol is a standardized management interface for unified management of servers, storage, and network devices in modern data centers. It provides a Representational State Transfer (REST) ​​application programming interface (API), making hardware management more flexible and efficient.

[0044] It should be noted that Figure 1 This is just an example of the server in the embodiment of the present application, and the embodiment of the present application does not limit the number and form of components included in the server.

[0045] The following will be based on Figure 1 The server architecture described is used to describe the control method of the electronic device in the embodiment of the present application in detail through the accompanying drawings.

[0046] Figure 2 A flow chart of a method for controlling an electronic device according to an embodiment of the present application is shown.

[0047] like Figure 2 As shown, the control method of the electronic device of this embodiment includes operations S210 to S230.

[0048] In operation S210, a first configuration interface is displayed. The first configuration interface displays a configuration control, which is used to adjust a target operating frequency of the electronic device, where the target operating frequency indicates a maximum operating frequency that the electronic device can support.

[0049] In operation S220, in response to the state level configuration operation for the configuration control, configuration information matching the state level configuration operation is displayed on the first configuration interface. The configuration information represents the target state level of the electronic device performance state, and there is a mapping relationship between the target state level and the target operating frequency.

[0050] In operation S230, in response to receiving a confirmation instruction for the configuration information, a target operating frequency of the electronic device corresponding to the configuration information is determined, so that the operating frequency of the electronic device is controlled not to exceed the target operating frequency during operation of the electronic device.

[0051] The electronic device may include a central processing unit, a graphics processing unit, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices in a server, without limitation herein.

[0052] The first configuration interface can 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 restrictions on this. The first configuration interface can be a display interface (also called an interactive interface) of the baseboard management controller as a controller of the server.

[0053] There are many possibilities for the timing of displaying the first configuration interface, which may be, but not limited to, one of the following possibilities: when the server is first installed or after a major hardware upgrade, the controller automatically loads and presents the first configuration interface, allowing the user to configure the target operating frequency of the electronic device according to the intended use of the server, such as high-performance computing, data center energy-saving operation, or balanced mode. During normal operation of the server, when the user needs to adjust the performance or power consumption of the electronic device, the target operating frequency of the electronic device can be accessed and adjusted by re-entering the first configuration interface of the server controller, but is not limited to. The server controller may also, but is not limited to, automatically pop up the first configuration interface when the user requests performance optimization or energy-saving policy changes, guiding the user to confirm or adjust the target operating frequency of the electronic device to ensure the best balance between the performance and efficiency of the electronic device.

[0054] The first configuration interface may display, but is not limited to, configuration controls, or may also display an application guide for the configuration controls. The application guide is used to indicate the correspondence between the status level and the operating frequency.

[0055] Enhanced Intel Speed ​​Step Technology (EIST) can be used to automatically adjust the voltage and frequency based on the load of the electronic device to reduce power consumption and heat generation. For example, when the electronic device is under heavy load and performing AI model training tasks, the operating frequency of the electronic device can be automatically adjusted to the maximum supported operating frequency. When the electronic device is idle, the operating frequency can be automatically adjusted to a lower operating frequency.

[0056] The operating frequency can be adjusted by adjusting the state level that characterizes the performance state (P-state) of the electronic device. For example, a mapping relationship between the state level and the operating frequency is established, and the operating frequency is dynamically adjusted according to the load of the electronic device and the mapping relationship. For example, when the electronic device is in an active state, the operating frequency can be increased to a frequency that matches the active state level, and when the electronic device is in an inactive state, the operating frequency can be decreased to a frequency that matches the inactive state level. Generally, P0 is the highest performance level, and the levels of P1, ..., Pn decrease in sequence. Correspondingly, the operating frequency that matches the state level also decreases in sequence. The lower the operating frequency of the processor, the lower the power consumption.

[0057] Optionally, the target state level representing the performance state of the electronic device can be adjusted by operating the configuration control set on the first configuration interface, thereby determining the highest supportable operating frequency.

[0058] In response to a confirmation instruction regarding the configuration information, a target operating frequency of the electronic device corresponding to the configuration information can be determined. This allows the operation of the electronic device to be controlled based on the target operating frequency during operation. For example, if the electronic device is under heavy load, the maximum supported operating frequency of the electronic device can be increased to the target operating frequency, enabling flexible adaptation to the electronic device.

[0059] For example, for AI training tasks, the target state level representing the performance state of an electronic device can be configured as P1, and the highest operating frequency that the electronic device can support during operation is the target operating frequency that matches P1.

[0060] For example, for an idle state retrieval task, the target state level representing the performance state of the electronic device can be configured as P3, and the highest operating frequency that the electronic device can support during operation is the target operating frequency matching P3.

[0061] According to an embodiment of the present application, a configuration control can be set on the first configuration interface so that the target state level representing the performance state of the electronic device can be flexibly configured by using the configuration control in an interactive manner, and then based on the configuration information, the target operating frequency of the electronic device can be determined, thereby using the target operating frequency to control the operation of the electronic device, so that the capped maximum operating frequency can be flexibly adjusted based on the configured target operating frequency, thereby reducing energy consumption.

[0062] Optionally, the first configuration interface may be an interactive interface of a controller of an electronic device. The controller of an electronic device may be, but is not limited to, a control device that can be used for management and monitoring of the electronic device. Similarly, the controller may be, but is not limited to, an out-of-band system. Specifically, the controller may be, but is not limited to, a BMC or a complex programmable logic device (CPLD). The BMC hardware may be implemented as an independent board installed on the motherboard, or it may be integrated on the motherboard. 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 on and off, extract device-related information, etc.

[0063] According to the system configuration, the highest performance state level of the electronic device is P0, and the target operating frequency corresponding to P0 is W0. After configuration through the first configuration interface, the highest performance state level of the electronic device is P1, and the target operating frequency corresponding to P1 is W1. P1 is smaller than P0, and W1 is smaller than W0.

[0064] The BIOS system can send a request to a controller, such as a BMC, to obtain the current load of the electronic device. The BMC sends the current load of the electronic device to the BIOS, which then determines the current performance level of the electronic device based on the current load. The BIOS sends the current performance level to an operating system, such as an OS, so that the OS can adjust the operating frequency of the electronic device to an operating frequency that is compatible with the current performance level.

[0065] Optionally, when the BIOS determines that the current state level P' is the target state level P1, the operating frequency of the electronic device can be adjusted to the target operating frequency W1 using the OS. When the BIOS determines that the current state level P' is greater than the target state level P1, the operating frequency of the electronic device can still be adjusted to the target operating frequency W1 using the OS.

[0066] In this way, the target operating frequency of the electronic device can be flexibly configured through the first configuration interface, thereby improving the flexibility of adjusting the target operating frequency and reducing energy consumption.

[0067] According to relevant examples of the present application, intelligent frequency reduction technology can be used to adjust the frequency of each electronic device according to a fixed operating frequency as the maximum operating frequency.

[0068] However, a fixed operating frequency is difficult to adapt to electronic devices of different models and manufacturers, and it is very likely that the electronic devices will operate under conditions exceeding the maximum supported operating frequency, thereby causing aging or damage to the electronic devices.

[0069] According to another related example of the present application, intelligent frequency reduction technology can be used to adjust the operating frequency of each electronic device according to the operating frequency corresponding to P0 as the maximum operating frequency.

[0070] Using the operating frequency corresponding to P0 as the maximum operating frequency may be able to adapt to the frequency requirements of executing tasks such as AI training. However, for retrieval requirements with a small number of requests, if the operating frequency corresponding to P0 is still used as the maximum operating frequency for adjustment, it will cause energy waste.

[0071] According to the embodiments of the present application, configuration controls can be set on the first configuration interface, and the target state level representing the performance state of the electronic device can be reasonably configured through interaction, and the target operating frequency matching the target state level can be used as the maximum supported operating frequency, thereby improving the adaptability of the target operating frequency to the electronic device and the adaptability of the target operating frequency to the task to be performed by the electronic device, thereby avoiding waste of resources and energy consumption.

[0072] The above is through Figure 2 The illustrated embodiment provides an overall description of how to set the target operating frequency of the electronic device. The configuration controls of the first configuration interface will be described in detail below.

[0073] According to the embodiments of the present application, Figure 2 Operation S210 shown, displaying the first configuration interface, may include: displaying the configuration control in the first configuration interface using at least one of the following display forms: slider, list, drop-down menu, input box, label, scroll, and disk pointer.

[0074] Figure 3 A schematic diagram of a configuration control according to an embodiment of the present application is shown.

[0075] like Figure 3 As shown, the types of configuration controls may include option type or random type. Option type may include slider type 310, list type 320, drop-down menu type 330, tab type 340, scroll type 350 or circular pointer type 360.

[0076] Optionally, the option type provides multiple options, and the configuration information can be determined by clicking any option, thereby simplifying the configuration operation.

[0077] Alternatively, the random type may include an input box type 370 , which can determine corresponding configuration information by randomly inputting option values, thereby improving configuration flexibility.

[0078] According to an optional embodiment of the present application, a slider-style display is used on the first configuration interface to display configuration controls, which may include: a track-style component for displaying the configuration controls, and a selector capable of sliding on the track-style component. Multiple marking points, also referred to as nodes, are provided on the track-style component, and multiple identifiers corresponding to the multiple marking points are displayed on the first configuration interface, with the multiple identifiers representing different levels of status.

[0079] Figure 4A A schematic diagram of the display of a slider-type configuration control according to an embodiment of the present application is shown.

[0080] like Figure 4AAs shown, a plurality of marking points 420 may be provided on the track-type component 410 of the configuration control 400. The marking points may be provided in a square or circular shape. Alternatively, in order to clearly distinguish the marking points from the square selector 430, the marking points may be provided in a circular shape.

[0081] like Figure 4A As shown, identifiers 440, such as P0, ..., and P15, can be set around the periphery of marker point 420, for example, above or below it, to represent the performance state level (P-state) of the electronic device. P15 is the lowest P-state currently supported by the electronic device, with the lowest target operating frequency. P0 is the highest P-state currently supported, with the highest target operating frequency. As P1, P2, ..., and P15 progress, the maximum operating frequency of the electronic device decreases, and power consumption and performance also decrease accordingly.

[0082] According to the embodiment of the present application, a slider-type configuration control is used, which can display all optional items on the first configuration interface through identifiers, thereby improving the readability of the information. In addition, the operation is performed by sliding the selector, thereby improving the operability of the configuration control.

[0083] According to the embodiments of the present application, Figure 2 Operation S220, shown as responding to a state level configuration operation for a configuration control, displaying configuration information matching the state level configuration operation on a first configuration interface, may include: in response to a sliding operation of a control selector on a track component, determining a target mark point designated by the selector on the track component; updating the color of a portion of the track component based on the motion trajectory of the selector, and displaying an identifier corresponding to the target mark point in a pop-up window as the configuration information.

[0084] The user can click the selector with the mouse and drag it to control the sliding operation of the selector on the track component. However, it is not limited to this. The selector can also be controlled to slide on the track component by touch screen operation.

[0085] Due to human intervention, the selector may not necessarily be fixed to a position that completely matches the marked point. Alternatively, the selector may be positioned close to the marked point or within a preset range of the marked point and remain stationary for a predetermined period of time, thereby determining that the selector has designated the marked point. This marked point may be used as the target marked point.

[0086] Based on the target marker, the color of a portion of the track component can be updated to distinguish between the target marker and unspecified markers. However, this is not limited to this. The color of a portion of the track component can also be updated along with the selector's movement trajectory, allowing the user to determine whether the operation intention is met based on the displayed content.

[0087] In addition, the identifier corresponding to the target mark point is displayed in the form of a pop-up window to further prompt the user's configuration information, so that the user can clearly understand whether the operation intention is met, thereby improving the interactive experience.

[0088] Figure 4B A schematic diagram of the operation of a slider-type configuration control according to another embodiment of the present application is shown.

[0089] like Figure 4B As shown, in response to the user controlling selector 430 to slide to the third marker point on track assembly 410, corresponding to P2, this marker point P2 is set as the target marker point. The area on track assembly 410 where selector 430 has slid over is marked with a blue slash, while the area not slid over is marked with a light gray. The identifier P2 corresponding to the target marker point is displayed in a pop-up window 450.

[0090] The above describes how to operate the configuration controls. The following describes how to display the mark points of the configuration controls.

[0091] According to the embodiment of the present application, when executing Figure 2 Before operation S210, the control method of the electronic device may further include: determining the number of initial state levels that the electronic device can support based on the device attributes of the electronic device. If the number of initial state levels of the electronic device is less than or equal to the predetermined number of state levels, the initial state level number is used as the number of state levels. If the number of initial state levels of the electronic device is greater than the predetermined number of state levels, the predetermined number of state levels is used as the number of state levels.

[0092] Optionally, the predetermined number of status levels may include 16, which is set according to the Advanced Configuration and Power Management Interface (ACPI) specification.

[0093] If the number of initial state levels of each electronic device is greater than 16, the updated number is 16, so that the number of P-state levels does not exceed 16. This improves the validity and compatibility of the identifier of the configuration control on the first configuration interface with the specification, and avoids the problem of invalid configuration caused by configuration not meeting the standard.

[0094] According to an embodiment of the present application, a track-type component for displaying a configuration control may include: displaying a plurality of marking points on the track-type component that match the number of status levels of the electronic device.

[0095] In another optional embodiment, the track component for displaying the configuration control may further include: updating the display state of the adjustable area on the track component to a state indicating that the selector is slidable. The adjustable area includes an area where multiple marking points are located that matches the number of state levels.

[0096] Optionally, the status level of the optional P-state displayed in the first configuration interface changes dynamically with the number of status levels supported by different electronic devices. The number of status levels of the electronic device is determined according to the device attributes of the electronic device.

[0097] Optionally, the device attributes of the electronic device may include but are not limited to information such as model, manufacturer, maximum supported operating frequency, and maximum supported status level.

[0098] See for example Figure 4A and Figure 4B As shown, a plurality of marking points matching the number of state levels can be displayed on the track component, and each marking point is a selected state, for example, a state in which a selector can slide on the track component corresponding to the marking point.

[0099] You can also display extra markers for the number of states you want to select, but these markers are displayed differently from the markers in the adjustable area. Extra markers correspond to the area of ​​the track component where the selector cannot slide, while the markers in the adjustable area are the area where the selector can slide and position the selection.

[0100] The adjustable range of the status level representing the performance status is flexibly adjusted according to the device attributes of the electronic device, thereby improving the flexibility of the status level configuration while ensuring the effectiveness of the adjustment from the perspective of optional options.

[0101] According to the embodiment of the present application, when executing Figure 2 Before the operation S230 shown, the control method of the electronic device further includes: in response to a confirmation control on the first configuration interface being triggered, determining that a confirmation instruction for the configuration information is received, wherein the confirmation control is used to indicate that the configuration is completed.

[0102] In response to the waiting time being longer than a preset time, it is determined that a confirmation instruction for the configuration information is received, wherein the waiting time includes the time between the current moment and the operation moment of the status level configuration operation.

[0103] In one embodiment of the present application, in response to a click operation on a confirmation control of the first configuration interface, it can be determined that a confirmation control is triggered. In response to the confirmation control being triggered, it is determined that a confirmation instruction for the configuration information is received, and the first configuration information is saved.

[0104] Figure 4CA schematic diagram of the operation of a confirmation control according to an embodiment of the present application is shown.

[0105] like Figure 4C As shown, the confirmation control 460 may include a button with a "save" mark. By clicking the confirmation control 460, it can be determined that a confirmation instruction for the configuration information has been received.

[0106] In another embodiment of the present application, the confirmation instruction may also include, but is not limited to, a series of instructions executed by an automated script; it may be, but is not limited to, pre-setting conditions (such as the continuous waiting time reaches a preset time) through the automated script, and the automated script automatically executes the confirmation instruction generation.

[0107] Optionally, after saving the configuration information configured on the first configuration interface, the server may be restarted immediately, or the server may be shut down and the server may be started up normally next time.

[0108] According to an embodiment of the present application, in response to a confirmation control being triggered, it is determined that a confirmation instruction for the configuration information has been received, or in response to a waiting time exceeding a preset time, it is determined that a confirmation instruction has been received. This can avoid the problem of configuration information being configured due to user misoperation and improve the effectiveness of the configuration information.

[0109] The previous section describes how configuration controls appear. However, they aren't always available for configuration; they must be active. The following section explains how to activate them.

[0110] According to the embodiment of the present application, when executing Figure 2 In operation S220, the electronic device control method further includes: in response to a status level configuration operation for the configuration control, determining whether the configuration control is in an active state. In response to the configuration control being in an inactive state, refreshing the first configuration interface to display the configuration control that is in an inactive state.

[0111] Optionally, a tab indicating whether the configuration control is in an active state may be configured on the first configuration interface. Whether the configuration control is in an active state is indicated by the option value of the tab. For example, an option value of 1 indicates an active state, and an option value of 0 indicates an inactive state.

[0112] When it is determined that the configuration control is in an inactive state, the first configuration interface is refreshed to display the configuration control indicating that it is in an inactive state, for example, the configuration control is grayed out, the selector cannot be slid, or the selector automatically resets immediately after being slid.

[0113] According to an embodiment of the present application, an activation state can be set for the configuration control, so that the configuration control can be freely operated only when it is in the activated state, thereby avoiding the problem of misoperation of the configuration control and further improving the effectiveness of the configuration information configuration.

[0114] Alternatively, before each BIOS boot process ends, information indicating whether the current configuration control is active can be sent to the BMC in a predetermined format via the Redfish channel. The BMC will then store this information in a second storage unit within the BMC chip. The BMC can then search this information to determine whether the configuration control is active.

[0115] In another optional example, a tab indicating whether the configuration control is in an active state may be configured on the second configuration interface, and whether the configuration control is in an active state is indicated by the option value of the tab.

[0116] Optionally, the second configuration interface may be the configuration interface of the server's control system. The control system may be, but is not limited to, a comprehensive management platform integrating software and hardware functions. It is responsible for monitoring and managing the server's operating status, including hardware initialization, configuration, performance adjustment, and fault diagnosis. Specifically, the server's control system may be, but is not limited to, an out-of-band system. An out-of-band system may refer to a system outside the server's in-band system, independent of the operating system, and capable of providing the lowest-level, direct hardware management and control for the device. The server's control system may be, but is not limited to, the BIOS. The BIOS may be, but is not limited to, a ROM chip embedded on the server's motherboard and a set of programs running on it. This set of programs includes the computer's most important basic input and output programs, system settings, post-boot self-test programs, and system startup programs. The BIOS provides the lowest-level, direct hardware configuration and control for the device. Currently, the BIOS's functions are primarily used for device power-on self-test, hardware initialization, driver loading, and system boot. It typically automatically exits after the device enters the system.

[0117] According to an embodiment of the present application, when it is determined that the configuration control is in an inactive state, the configuration control can be updated to an active state by controlling the second configuration interface of the system configuration. Specifically, the control method of the electronic device further includes: adjusting the configuration control to an active state on the second configuration interface.

[0118] Specifically, the parameter item of the activation control is adjusted on the second configuration interface until the parameter item indicates that the configuration control is in the activation state. The first configuration interface is refreshed to display the configuration control indicating that it is in the activation state.

[0119] Optionally, the user may, but is not limited to, enter the second configuration interface through the first configuration interface to activate the configuration control.

[0120] As a result, the control mode of the electronic device is set to the "EIST, intelligent frequency reduction technology" mode, thereby activating the configuration control on the first configuration interface.

[0121] By adjusting the configuration controls in the above manner, the flexibility of the configuration can be improved while being combined with the existing second configuration interface so that the existing controls on the second configuration interface can be utilized.

[0122] According to an optional embodiment of the present application, the activation control includes a first activation control and a second activation control. The first activation control is used to activate the dynamic frequency adjustment function of the electronic device. The second activation control is used to activate the general frequency adjustment function of the electronic device.

[0123] Optionally, the first activated control may be a control representing a frequency dynamic adjustment function, such as any one of “EIST Support,” “EIST,” and “Speed ​​Step.” The second activated control may be a control representing a frequency general adjustment function, such as “Hardware P-State.”

[0124] Adjusting the parameter item of the activated control on the second configuration interface to a parameter item indicating that the configuration control is in an activated state includes: adjusting the parameter item of the first activated control on the second configuration interface to an enabled item, such as "Enabled." Adjusting the parameter item of the second activated control on the second configuration interface to a disabled item, such as "Disabled."

[0125] Figure 5A A schematic diagram of activation controls of a second configuration interface according to an embodiment of the present application is shown.

[0126] like Figure 5A As shown, the first active control and the second active control displayed on the second configuration interface are both in the form of drop-down menus. The parameter items in the drop-down menus include "Enabled" and "Disabled". By selecting a parameter item, you can determine whether it is an available item.

[0127] According to the embodiment of the present application, two activation controls are used to work together, which can improve the fine granularity of activation state operations and avoid the problem of false activation.

[0128] According to another embodiment of the present application, the method for controlling an electronic device may further include: generating an option configuration command for activating the option configuration control in response to an option configuration operation on the option configuration control displayed on the first configuration interface; and sending the option configuration command to a control system to activate the configuration control via the control system.

[0129] The option configuration control is used to control the generation of an option configuration command to activate the configuration control. Option configuration operations can be used to trigger the generation of an option configuration command to activate the configuration control. Option configuration controls can be optional, for example, including option parameters that activate or deactivate the configuration control. Option configuration operations are performed on the option parameters to generate option configuration commands.

[0130] Figure 5B A block diagram of configuration information activation according to an embodiment of the present application is shown.

[0131] like Figure 5B As shown, an option configuration command may be sent to the control system 520 via the first configuration interface 511 of the controller 510 to activate the configuration control via the control system 520 .

[0132] For example, this can be achieved by the control system 520 automatically adjusting the parameter item of the first activated control to an available item and adjusting the parameter item of the second activated control to an unavailable item on the second configuration interface 521 .

[0133] In this way, the second configuration interface can be opened without manual operation. The option configuration operation of the first configuration interface can be used to automatically jump to the second configuration interface and activate the configuration control, thereby making the back-end processing imperceptible to the front-end and improving the user experience.

[0134] Alternatively, as Figure 5B As shown, after the configuration control is in the activated configuration state, the electronic device 530 can be restarted to activate the configuration control to be in the configurable state, thereby improving the accuracy and stability of the target operating frequency configuration of the electronic device 530.

[0135] According to the embodiment of the present application, when executing Figure 2 After the operation S230 shown, the method for controlling the electronic device may further include: writing configuration information into a target register configured by the electronic device.

[0136] like Figure 5B As shown, configuration information can be written to the target register 531 of the electronic device 530 via the controller 510. During operation, the operating system OS532 running on the electronic device 530 can send a request to the controller 510 through the control system 520 to obtain the current load of the electronic device 530 and the target operating frequency that matches the target state level. The controller 510 sends the current load of the electronic device 530 to the control system 520 and the configuration information read from the target register 531, such as the target state level, to the control system 520. The control system 520 determines the current state level of the performance state of the electronic device 530 based on the current load of the electronic device 530 and the target state level. The operating frequency that matches the current state level is sent to the operating system OS532, so that the operating system OS532 can adjust the operating frequency of the electronic device 530 to an operating frequency that is compatible with the current state level.

[0137] Optionally, when the control system 520 determines that the current state level P' is the target state level P1, the operating system OS532 may be used to adjust the operating frequency of the electronic device 530 to the target operating frequency W1. When the control system 520 determines that the current state level P' is greater than the target state level P1, the operating system OS532 is still used to adjust the operating frequency of the electronic device 530 to the target operating frequency W1.

[0138] Optionally, the target register may include a first register and a second register, wherein the target state level stored in the first register is used to control the execution of a thread executed by the electronic device, and the target state level stored in the second register is used to control the execution of a process executed by the electronic device.

[0139] Both registers are used as target registers to control the operation of different tasks performed by the electronic device, thereby improving flexible configuration while improving subsequent operation capabilities combined with actual hardware, thereby improving the power consumption regulation performance of the electronic device.

[0140] According to the embodiment of the present application, when executing Figure 2 After operation S230, the electronic device control method may further include: generating a target data packet based on the target state level of the electronic device and a check sequence; transmitting the target data packet to the electronic device so that the electronic device decompresses the target data packet and verifies the target data packet using the check sequence; and receiving feedback information from the electronic device. If the feedback information indicates that the target data packet has passed verification, determining that the target state level has been stored in a target register of the electronic device, so that the operating system controls the operation of the electronic device based on the target state level stored in the target register.

[0141] When the target state level is written into a data packet, an Assured Write Frame Check Sequence (AWFCS) byte is included. For example, the target data packet can be sent to an electronic device for decompression. If the AWFCS does not match the target check sequence, the electronic device aborts storing the target state level into the target register and displays feedback indicating a check failure on the first configuration interface, allowing the target data packet to be regenerated and sent.

[0142] If the AWFCS matches the target verification sequence, the electronic device stores the target state level in the target register and displays feedback information indicating that the verification has passed on the first configuration interface. This allows the operating system to control the operation of the electronic device based on the target state level stored in the target register and using the target operating frequency that matches the target state level.

[0143] This improves the security and effectiveness of the target status level in the configuration information and avoids configuration failures due to storage failures.

[0144] Alternatively, one can use Figure 2 The target state level of the electronic device can be configured by performing the configuration operations shown. However, this is not limited to this. Alternatively, after starting the operating system of the electronic device, a state identifier representing the performance state level can be manually written into the target register configured for the electronic device. The state identifier can be different from the performance state level represented by the configuration information displayed on the first configuration interface.

[0145] In order to avoid arbitrary tampering, the following method can be used to perform stability verification.

[0146] According to an embodiment of the present application, the control method of the electronic device may further include: reading a current state level stored in a target register of the electronic device according to a predetermined period. If the current state level does not match the target state level, determining that the target register is abnormal. If the target register is abnormal, sending configuration information to the electronic device so that the electronic device updates the data stored in the target register.

[0147] The current state level stored in the target register of the electronic device is read at a predetermined interval, such as once every hour or every 30 minutes. The BIOS notifies the operating system of a configurable operating frequency based on the current load state of the electronic device and the target state level stored in the target register. The operating system then controls the operation of the electronic device according to the current configurable operating frequency.

[0148] The data in the target register is verified by using the embodiment of the present application, thereby improving the correctness of the data in the target register and preventing the problem of conflict caused by mismatch between the data written to the target register and the configured data after selecting a certain P target state level.

[0149] According to an embodiment of the present application, the target register includes a first register and a second register, wherein the target state level stored in the first register is used to control the execution of a thread executed by the electronic device, and the target state level stored in the second register is used to control the execution of a process executed by the electronic device.

[0150] When the current state level does not match the target state level, determining that the target register is abnormal can specifically include: when any one of the current state level stored in the first register and the current state level stored in the second register does not match the target state level, determining that the target register is abnormal.

[0151] The first register type can be 0x199, and the second register type can be 0x64C. Both the first register and the second register can be used to write the target state level, but are not limited to this. The target operating frequency can also be written. When these two registers are set and take effect simultaneously, the different scopes of the two registers are utilized to improve the accuracy and effectiveness of the target operating frequency configuration for each scope.

[0152] The above describes the configuration control. The following describes how to determine the target operating frequency based on the configuration information.

[0153] According to the embodiments of the present application, Figure 2 Operation S230 shown, determining a target operating frequency of the electronic device corresponding to the configuration information, may include: determining the target operating frequency corresponding to the configuration information from a plurality of operating frequencies based on a level mapping relationship.

[0154] The level mapping relationship represents the correspondence between the state level and the operating frequency of the electronic device. For example, the level mapping relationship may include the correspondence between state level P0 and operating frequency W0, the correspondence between state level P1 and operating frequency W1, ..., and the correspondence between state level Pn and operating frequency Wn.

[0155] The target operating frequency may be determined to be W1 based on an identifier indicated in the user configuration information, for example, P1.

[0156] According to the embodiments of the present application, the target operating frequency is determined by using a mapping relationship, which can improve processing efficiency and simplify the determination operation.

[0157] According to an embodiment of the present application, the level mapping relationship can be determined by the following operations: obtaining a frequency threshold of the electronic device from a register of the electronic device, determining the operating frequency corresponding to each state level based on the frequency threshold and the number of state levels of the electronic device, and generating the level mapping relationship.

[0158] Frequency thresholds include the maximum frequency value and minimum frequency The maximum frequency value can be set based on the number of state levels N. and minimum frequency difference Divide into N equal parts, then the quantity interval includes , which is N-1.

[0159] The operating frequency corresponding to each state level can be determined by referring to the following formula (1).

[0160] ;Formula (1)

[0161] Where i is 0 to N-1, Indicates the operating frequency corresponding to the i-th P-state level.

[0162] By using the above method to determine the level mapping relationship, the operating frequency corresponding to the performance status level P0 can be maximized, and the operating frequency corresponding to P(N-1) can be minimized. By using the above mapping method, it can correspond to the identifier of the configuration control displayed on the first configuration interface, adapt to the user's general knowledge, reduce the user's understanding difficulty, and improve the user's configuration efficiency.

[0163] According to a preferred embodiment of the present application, determining the operating frequency corresponding to each state level based on the frequency threshold and the number of state levels of the electronic device may further include: determining the initial operating frequency corresponding to each state level from the frequency threshold in an equal division manner. If the initial operating frequency is a decimal, fine-tuning the initial operating frequency to determine the operating frequency corresponding to the state level so that the level mapping relationship has a quasi-linear distribution.

[0164] Fine-tuning the initial operating frequency may include rounding the offset. For example, the operating frequency corresponding to each state level may be determined by referring to the following formula (2).

[0165] ;Formula (2)

[0166] in, Used for offset rounding to ensure a more even distribution among multiple operating frequencies.

[0167] According to an embodiment of the present application, the number of state levels may change with different electronic devices, so the optional state levels displayed on the first configuration interface dynamically change with the number of state levels supported by different electronic devices. During the startup process, the BIOS obtains the maximum frequency value and the minimum frequency value of the current electronic device by reading the register. If Turbo Mode is turned on, the frequency corresponding to P0 can be set to the maximum Turbo frequency value. If Turbo Mode is turned off, the P0 frequency is set to the maximum Non-Turbo frequency value. After determining the number of state levels, the operating frequency corresponding to each level state is calculated, and an approximate linear distribution can be achieved using (i * RatioRange + M) / NumGaps. M is used for offset rounding to ensure a more uniform distribution.

[0168] Whether the user-configured configuration information is suitable for the task to be performed and other hardware can be further confirmed in the following ways.

[0169] According to an optional embodiment of the present application, for example Figure 2After operation S230, the method for controlling the electronic device may further include: in response to a task configuration operation for a task control displayed in the first configuration interface, displaying task information matching the task configuration operation on the first configuration interface, and displaying prompt information indicating whether the configuration information is qualified on the first configuration interface.

[0170] The task information is used to indicate the task to be performed by the electronic device. The prompt information is determined by verifying the target operating frequency corresponding to the configuration information based on the frequency reference information, and the frequency reference information is determined by the task information.

[0171] Figure 6A A schematic diagram of a task configuration operation according to an embodiment of the present application is shown.

[0172] The task control can be displayed in the first configuration interface. The task control can be in any of the following types: slider, list, drop-down menu, and input box. Figure 6A As shown, the task control 611 may be in the form of a drop-down menu, thereby avoiding the need for the user to type, and further improving the ability of a controller such as a BMC to recognize task information.

[0173] like Figure 6A As shown, in response to a selection operation on multiple candidate task information in the drop-down menu 612, task information 613 is determined, such as task n displayed in the display box. In response to a confirmation operation on task information 613, such as a click operation on the "Confirm" indicator control 614, it is determined that the task configuration operation of the user selecting task information 613 is completed.

[0174] Based on the frequency reference information and the target frequency information configured by the user, the prompt information indicating whether the configuration information is qualified is determined. Figure 6A As shown, prompt information is displayed on the first configuration interface, for example, prompt information 615 is displayed in the form of a pop-up window.

[0175] Optionally, if the target frequency information is less than the frequency reference information, the configuration information may be determined to be unqualified, and prompt information indicating the unqualified may be fed back. If the target frequency information is greater than or equal to the frequency reference information, the configuration information may be determined to be qualified, and prompt information indicating the qualified may be fed back.

[0176] According to an embodiment of the present application, when the user has configured the target frequency information, the task control can be used to determine the task to be executed, so as to judge whether the configuration information is compatible with the task to be executed, thereby improving the validity and eligibility of the configuration information, avoiding waste of resources or low task execution efficiency due to the maximum supported operating frequency being too low, thereby affecting user experience.

[0177] The above describes how to verify the configuration information's eligibility by using the frequency reference information that matches the task information. The following describes how to obtain the frequency reference information.

[0178] According to an optional embodiment of the present application, frequency reference information may be determined from a plurality of candidate frequency reference information based on task information and a task mapping relationship. The task mapping relationship represents a correspondence between task information and candidate frequency reference information.

[0179] According to the embodiments of the present application, the frequency reference information can be accurately and quickly determined by utilizing the task mapping relationship, thereby improving processing efficiency.

[0180] According to another optional embodiment of the present application, the frequency reference information may also be determined by a deep learning method. For example, the task features of the task information are input into a first deep learning model to obtain the frequency reference information.

[0181] A feature extraction network can be used to extract features from task information to obtain task features. The network structure of the feature extraction network is not limited. For example, it can include at least one of a convolutional neural network, an encoder-decoder, or a long short-term memory network.

[0182] The first deep learning model may include at least one of a codec, a fully connected layer, a graph neural network, and an XGboost network.

[0183] According to the embodiments of the present application, a deep learning model is used to determine frequency reference information, which can serve as a technical remedy when task information does not exist in the task mapping relationship, thereby improving the breadth and versatility of frequency reference information determination and avoiding technical gaps.

[0184] According to an optional embodiment of the present application, for example Figure 2 After operation S230, the electronic device control method may further include: displaying multiple evaluation items on the first configuration interface in response to a triggering operation on a health evaluation control displayed on the first configuration interface. In response to receiving an evaluation instruction, displaying a target evaluation item indicated by the evaluation instruction on the first configuration interface. In response to receiving an evaluation confirmation instruction for the target evaluation item, displaying evaluation information on the first configuration interface. The evaluation information represents the impact of the target operating frequency on the hardware matching the target evaluation item.

[0185] Figure 6B A schematic diagram of a health assessment operation according to an embodiment of the present application is shown.

[0186] The health assessment control can be displayed in the first configuration interface. The health assessment control can be in any of the following types: slider, list, drop-down menu, and input box. Figure 6BAs shown, the health assessment control 621 may be in the form of a drop-down menu, thereby avoiding user typing and improving the controller, such as the BMC, ability to identify assessment items.

[0187] like Figure 6B As shown, the multiple evaluation items in drop-down menu 622 may include the impact on heat dissipation components, the impact on memory, the impact on electronic device wear, etc. In response to a user selecting any of the multiple evaluation items, such as clicking on the evaluation item, a target evaluation item 623 is determined and an evaluation instruction is generated. In response to receiving an evaluation confirmation instruction for the target evaluation item, for example, by clicking a triggering operation such as a "Confirm" indicator control 624, it is determined that the evaluation confirmation instruction has been received.

[0188] Evaluation information is displayed on the first configuration interface, wherein the evaluation information represents the impact of the target operating frequency on the hardware matching the target evaluation item.

[0189] like Figure 6B As shown, evaluation information 625 is displayed on the first configuration interface. For example, evaluation information 625 is displayed in a pop-up window. The evaluation information may indicate that there is no impact on the heat dissipation component, or that the setting of the target operating frequency will accelerate the aging of the electronic device.

[0190] According to an embodiment of the present application, when the user configures the target frequency information, the evaluation control can be used to determine the impact of the target operating frequency on the server's hardware, so as to determine whether the configuration information will have an adverse impact on the hardware, thereby improving the validity and security of the configuration information and verifying the service life and safety of the server.

[0191] According to another optional embodiment of the present application, the evaluation information may also be determined using a deep learning method. For example, the evaluation item features of the target evaluation item and the frequency features of the target operating frequency are input into a second deep learning model to obtain the evaluation information.

[0192] A feature extraction network can be used to extract features from the target evaluation item to obtain evaluation item features. The network structure of the feature extraction network is not limited. For example, it can include at least one of a convolutional neural network, an encoder-decoder, or a long short-term memory network.

[0193] The second deep learning model may include at least one of an encoder-decoder, a fully connected layer, a graph neural network, and an XGBoost (eXtreme Gradient Boosting, an optimized distributed gradient boosting library) network, or a combination thereof.

[0194] According to an optional embodiment of the present application, for example Figure 2After operation S230, the electronic device control method may further include: displaying multiple optimization items on the first configuration interface in response to a trigger operation on an optimization control displayed on the first configuration interface; displaying a target optimization item indicated by the optimization instruction on the first configuration interface in response to receiving an optimization instruction; and displaying optimization information matching the target optimization item on the first configuration interface in response to receiving an optimization confirmation instruction for the target optimization item.

[0195] Figure 6C A schematic diagram of level state optimization according to an embodiment of the present application is shown.

[0196] The optimization control can be displayed in the first configuration interface. The optimization control can be in the form of a slider, a list, a drop-down menu, or an input box. Figure 6C As shown, the optimization control 631 may be in the form of a drop-down menu, thereby avoiding user typing and improving the ability of a controller such as a BMC to identify target optimization items.

[0197] like Figure 6C As shown, the multiple optimization items in drop-down menu 632 may include optimization of heat dissipation components, optimization of memory, optimization of the status level of the electronic device, etc. In response to a user selecting any of the multiple optimization items, such as clicking on the optimization item, a target optimization item 633 is determined and an optimization instruction is generated. In response to receiving an optimization confirmation instruction for the target optimization item, such as by clicking on a triggering operation of a "Confirm" indicator control 634, receipt of the optimization confirmation instruction is confirmed.

[0198] The optimization information is displayed on the first configuration interface. The optimization information represents the optimization information that matches the target optimization item.

[0199] like Figure 6C As shown, the optimization information 635 is displayed on the first configuration interface. For example, the optimization information is displayed in the form of a pop-up window. The optimization information may indicate: reducing the heat dissipation operating frequency of the heat dissipation component or lowering the target state level of the electronic device to reduce energy consumption.

[0200] Optionally, the target optimization item can be determined based on the evaluation information. For example, if the evaluation information determines that the target operating frequency affects the operation of target hardware, such as a power supply, the target optimization item can be determined to be an optimization related to the target hardware based on the hardware indicated by the evaluation information. This combines the evaluation information with the optimization information, improving the pertinence and accuracy of the optimization information.

[0201] According to an embodiment of the present application, when the user configures the target frequency information, the optimization control can be used to determine the target optimization items, so as to perform further optimization configuration, thereby improving the operating performance of the server, improving the stability and security of the server, and reducing the energy consumption of the server.

[0202] According to another optional embodiment of the present application, the optimization information may also be determined using a deep learning method. For example, the optimization item characteristics of the target optimization item and the frequency characteristics of the target operating frequency are input into a third deep learning model to obtain the optimization information.

[0203] A feature extraction network can be used to extract features from the target optimization item to obtain optimization item features. The network structure of the feature extraction network is not limited. For example, it can include at least one of a convolutional neural network, an encoder-decoder, or a long short-term memory network.

[0204] The third deep learning model may include at least one of a codec, a fully connected layer, a graph neural network, an XGboost network, or a combination thereof.

[0205] Optionally, the first deep learning model, the second deep learning model, and the third deep learning model can adopt the same model structure and be trained using different training samples. However, this is not limited to this. Different model structures and different training samples can also be used.

[0206] A deep learning model combining the same main network structure and multiple expert networks can be constructed to adapt to different processing tasks, such as an expert network for generating frequency reference information, an expert network for generating optimization information, and an expert network for generating evaluation information.

[0207] Another optional example is to use the graph features of heterogeneous graphs as input data to perform the tasks to be processed described above. Figure 7 The heterogeneous maps provided in the examples of this application are described.

[0208] Figure 7 A schematic diagram of a heterogeneous map according to an embodiment of the present application is shown.

[0209] like Figure 7 As shown, heterogeneous graph 700 may include different types of first nodes 710 represented by squares, second nodes 720 represented by triangles, and third nodes 730 represented by circles, as well as different types of first edges 740 and second edges 750. First node 710 represents a task, second node 720 represents hardware, and third node 730 represents a state level. First edge 740 with an arrow connects two nodes with a causal relationship, while second edge 750 without an arrow connects two nodes with a correlation. First node 710, second node 720, and third node 730 each have their own node attributes.

[0210] Optionally, the first node 710 may specifically represent, for example, a query service or an AI training service, but is not limited thereto and may also represent an AI reasoning task, etc. Node attributes corresponding to the first node 710 may include: service type, processing time, type of data to be processed, etc.

[0211] Optionally, the second node 720 may specifically represent server components such as the CPU, GPU, memory, and power supply. The node attributes corresponding to the second node 720 may include dynamic attributes such as temperature (°C), operating frequency (GHz), power consumption (W), load rate (%), and cumulative operating time (hours), as well as static attributes such as model, process technology (nm), power consumption (W), and identifier.

[0212] Optionally, the third node 730 may specifically represent, for example, a capping state level (P0-P7). Node attributes corresponding to the third node 730 may include: scope of effectiveness (e.g., single node, rack, cluster), trigger conditions (e.g., "temperature ≥ 85°C"), and associated actions (e.g., synchronously adjusting fan speed to 80%).

[0213] The first edge 740 is used to connect two nodes with a causal relationship, for example, there is a causal relationship between the second node 720 representing the hardware and the third node 730 representing the state level. Specifically, it can be represented by a directed edge with an arrow. For example, "CPU temperature rises" → "trigger P state capping", the edge attribute can be the impact of the temperature change rate on the state level. For another example, there is a causal relationship between the third node 730 representing the state level and the first node 710 representing the business. Specifically, "maximum P state is set to P2" → "response time for business A is extended by 10%", the edge attribute can be the historical average impact value.

[0214] The second edge 750 is used to connect two nodes that have a correlation. Correlation can include, but is not limited to, an association between two nodes and can also include mutual dependence between two nodes. It can be represented by an undirected edge. For example, the second node 720 representing hardware and the first node 710 representing the business have a correlation, specifically, such as "AI training task" ↔ "GPU memory bandwidth demand is high". The edge attribute can include a resource usage threshold.

[0215] The heterogeneous graph provided in this application can encompass various types of information such as hardware, business, and status levels, enrich the data to be analyzed, and expand the scope of application.

[0216] According to an embodiment of the present application, the following operations may be performed to process a heterogeneous spectrum and obtain a spectrum feature: performing spectrum isomorphism characterization on the heterogeneous spectrum to obtain a first spectrum feature; performing spectrum heterogeneity characterization on the heterogeneous spectrum to obtain a second spectrum feature; and fusing the first spectrum feature and the second spectrum feature to obtain a spectrum feature.

[0217] Alternatively, graph convolutional neural networks (GCNs) can be used to perform global graph representation on heterogeneous graphs. For example, for each node, the features of its neighboring nodes and the weights of the relationship edges are aggregated, so that the first graph feature represents the relationship characteristics between each node and its neighboring nodes and edges.

[0218] Optionally, we can also use Graph Attention Networks (GAT) to calculate the attention coefficients between nodes and highlight key relationship features.

[0219] The graph convolution operation in GCN can aggregate the features of neighboring nodes in heterogeneous graphs, solving the problem of representing graph-structured data. However, it has difficulty handling the differential representation of different types of nodes and multi-dimensional relationships in heterogeneous graphs. GAT, however, introduces an attention mechanism that can effectively improve the representation of different types of nodes and edges in heterogeneous graphs by adaptively learning the associations between nodes and assigning different attention weights. Therefore, the combination of GCN and GAT can comprehensively represent both homogeneous and heterogeneous graphs, resulting in rich and complete graph features.

[0220] Frequency reference information can be obtained by combining the acquired graph features of the heterogeneous graph and the task features of the task information. For example, the task features of the task information and the graph features of the heterogeneous graph are input into the first target model to obtain frequency reference information.

[0221] You can also use Figure 8 The deep learning model shown processes task information and heterogeneous graphs to obtain frequency reference information.

[0222] Figure 8 A schematic diagram of a deep learning model according to an embodiment of the present application is shown.

[0223] like Figure 8 As shown, the deep learning model may include GCN M810, GAT M820, feature extraction layer M830, and expert network set M840.

[0224] like Figure 8As shown, the heterogeneous graph 810 can be input into GCN M810 and GAT M820 respectively to obtain a first spectrum feature 820 and a second spectrum feature 830. The first spectrum feature 820 and the second spectrum feature 830 are fused to obtain a spectrum feature 840.

[0225] like Figure 8 As shown, the task information 850 can be input into the feature extraction layer M830 to obtain the task feature 860.

[0226] like Figure 8 As shown, a target expert network matching the task feature 860 is determined from the expert network set M840. The task feature 860 and the graph feature 840 are input into the target expert network to obtain frequency reference information 870.

[0227] By utilizing the deep learning model provided in this application, we can adapt to different tasks to be processed by constructing multiple expert networks, thereby improving the breadth of application.

[0228] For example, Figure 8 As shown, the target evaluation item can also be input into the feature extraction layer M830 to obtain the evaluation feature of the target evaluation item. The target operating frequency is input into the feature extraction layer M830 to obtain the frequency feature. The evaluation feature of the target evaluation item, the frequency feature of the target operating frequency, and the spectrum feature of the heterogeneous spectrum are input into the second target network to obtain the evaluation information, see Figure 8 Dotted content.

[0229] Optionally, the second target network is determined from a set of expert networks based on the evaluation features and the frequency features.

[0230] The evaluation information determination method provided in the embodiments of this application enables hardware health assessment, improving configuration flexibility while enabling comprehensive analysis, thereby ensuring that configuration information is compatible with hardware health. Furthermore, the combination of frequency features, evaluation features, and heterogeneous graphs ensures comprehensive and effective consideration of information. Furthermore, the second target network matching the evaluation task is determined from a set of expert networks, providing strong specialization.

[0231] For example, the target optimization item can be input into the feature extraction layer to obtain the optimization feature. The optimization feature of the target optimization item, the frequency feature of the target operating frequency, and the spectrum feature of the heterogeneous spectrum are input into the third target model to obtain optimization information.

[0232] Optionally, the third target network is determined from a set of expert networks based on the optimization feature and the frequency feature.

[0233] The optimization information determination method provided in the embodiments of this application enables analysis from an optimization perspective, improving configuration flexibility while achieving optimization capabilities for information such as hardware and status levels, thereby ensuring the optimization capabilities of configuration information. Furthermore, by combining frequency features, optimization features, and heterogeneous graphs, the information to be considered is comprehensive and effective. Furthermore, determining a second target network that matches the optimization task from a set of expert networks is highly specialized, and the resulting optimization information is comprehensive and effective.

[0234] According to an embodiment of the present application, the manners of determining the first target network, the second target network, and the third target network from the expert network set may be the same or similar.

[0235] Optionally, intention information may be determined based on the task information. Based on the intention information, a first target network is determined from a plurality of expert networks.

[0236] However, this is not a limitation. Task features can also be input into a gating layer, and based on the classification results output by the gating layer, a first target network is determined from multiple expert networks. The gating layer can include a fully connected layer and an activation function.

[0237] Optionally, the frequency features and the evaluation features may be input into the gating layer, and based on the classification results output by the gating layer, a second target network may be determined from the multiple expert networks.

[0238] Optionally, the frequency features and the optimization features may be input into a gating layer, and a third target network may be determined from the plurality of expert networks based on the classification results output by the gating layer.

[0239] Based on the above electronic device control method, the present application also provides an electronic device control device. Figure 9 The device is described in detail.

[0240] Figure 9 A structural block diagram of a control device of an electronic device according to an embodiment of the present application is shown.

[0241] like Figure 9 As shown, the control device 900 of the electronic device of this embodiment includes an interface display module 910 , a level configuration module 920 and an information determination module 930 .

[0242] The interface display module 910 is configured to display a first configuration interface, wherein the first configuration interface displays configuration controls for adjusting the target operating frequency of the electronic device, where the target operating frequency indicates the maximum operating frequency supported by the electronic device. In one embodiment, the interface display module 910 can be configured to perform operation S210 described above, which will not be further described here.

[0243] Level configuration module 920 is configured to, in response to a status level configuration operation on a configuration control, display configuration information matching the status level configuration operation on the first configuration interface, wherein the configuration information represents a target status level for the electronic device's performance state, and a mapping relationship exists between the target status level and the target operating frequency. In one embodiment, level configuration module 920 can be configured to perform operation S220 described above, and will not be further described here.

[0244] The information determination module 930 is configured to, in response to receiving a confirmation instruction regarding the configuration information, determine a target operating frequency of the electronic device corresponding to the configuration information, so as to control the operating frequency of the electronic device to not exceed the target operating frequency during operation of the electronic device. In one embodiment, the information determination module 930 may be configured to perform operation S230 described above, which will not be further described herein.

[0245] According to an embodiment of the present application, the interface display module includes: an interface display submodule.

[0246] The interface display submodule is used to display the configuration controls in the first configuration interface using at least one of the following display forms: slider, list, drop-down menu, input box, label, scroll, and disk pointer.

[0247] According to an embodiment of the present application, the interface display submodule includes: an interface display unit.

[0248] An interface display unit is used to display a track-type component for configuring controls and a selector that can slide on the track-type component, wherein a plurality of marking points are set on the track-type component, and a plurality of identifiers corresponding one-to-one to the plurality of marking points are displayed on the first configuration interface, and the plurality of identifiers represent different status levels.

[0249] According to an embodiment of the present application, the level configuration module includes: a sliding submodule and an updating submodule.

[0250] The sliding submodule is used to determine the target marking point designated by the selector on the track component in response to the sliding operation of the control selector on the track component.

[0251] The update submodule is used to update the color of part of the track component based on the motion trajectory of the selector, and display the identifier corresponding to the target marker in the form of a pop-up window as configuration information.

[0252] According to an embodiment of the present application, the interface display unit includes: a first marking point display subunit or a second marking point display subunit.

[0253] The first marking point display subunit is used to display a plurality of marking points on the track-type component, the number of which matches the status level of the electronic device.

[0254] The second marking point display subunit is used to update the display state of the adjustable area on the track-type component to a state indicating that the selector is slidable, wherein the adjustable area includes an area where multiple marking points are located that match the number of state levels.

[0255] The number of status levels of the electronic device is determined according to the device attributes of the electronic device.

[0256] According to an embodiment of the present application, the control device of the electronic device further includes: a first-level quantity determination module, a second-level quantity determination module, and a third-level quantity determination module.

[0257] The first level quantity determination module is configured to determine the number of initial state levels that the electronic device can support based on device attributes of the electronic device.

[0258] The second level number determining module is configured to use the initial state level number as the state level number when the initial state level number of the electronic device is less than or equal to the predetermined state level number.

[0259] The third level number determining module is configured to use the predetermined state level number as the state level number when the initial state level number of the electronic device is greater than the predetermined state level number.

[0260] According to an embodiment of the present application, the control device of the electronic device further includes: an activation determination module and a first refresh module.

[0261] The activation determination module is configured to determine whether the configuration control is in an activation state in response to a state level configuration operation on the configuration control.

[0262] The first refresh module is configured to refresh the first configuration interface in response to the configuration control being in an inactive state, so as to display the configuration control indicating that it is in an inactive state.

[0263] According to an embodiment of the present application, the control device of the electronic device further includes: an activation module and a second refresh module.

[0264] The activation module is used to adjust the parameter item of the activation control on the second configuration interface until the parameter item indicates that the configuration control is in an activated state.

[0265] The second refresh module is used to refresh the first configuration interface to display the configuration controls that are in an activated state.

[0266] According to an embodiment of the present application, the activation control includes a first activation control and a second activation control, wherein the first activation control is used to activate the frequency dynamic adjustment function of the electronic device, and the second activation control is used to activate the frequency universal adjustment function of the electronic device.

[0267] According to an embodiment of the present application, the activation module includes: a first activation submodule and a second activation submodule.

[0268] The first activation submodule is used to adjust the parameter item of the first activation control to an available item on the second configuration interface.

[0269] The second activation submodule is used to adjust the parameter item of the second activation control to a non-use item on the second configuration interface.

[0270] According to an embodiment of the present application, the control device of the electronic device further includes: an option configuration module and a command sending module.

[0271] The option configuration module is configured to generate an option configuration command for activating the configuration control in response to an option configuration operation on the option configuration control displayed on the first configuration interface.

[0272] The command sending module is used to send option configuration commands to the control system to activate configuration controls through the control system.

[0273] According to an embodiment of the present application, the control device of the electronic device further includes: a restart module.

[0274] The restart module is used to restart the electronic device to activate the configuration control.

[0275] According to an embodiment of the present application, the control device of the electronic device further includes: a first confirmation instruction determination module or a second confirmation instruction determination module.

[0276] The first confirmation instruction determining module is configured to determine, in response to a confirmation control on the first configuration interface being triggered, that a confirmation instruction for the configuration information has been received, wherein the confirmation control is used to indicate that the configuration has been completed.

[0277] The second confirmation instruction determination module is used to determine that a confirmation instruction for the configuration information is received in response to a waiting time exceeding a preset time, wherein the waiting time includes a time between a current moment and an operation moment of the status level configuration operation.

[0278] According to an embodiment of the present application, the information determination module includes: an information determination submodule.

[0279] The information determination submodule is used to determine a target operating frequency corresponding to the configuration information from a plurality of operating frequencies based on a level mapping relationship, wherein the level mapping relationship represents a correspondence between a state level and an operating frequency of the electronic device.

[0280] According to an embodiment of the present application, the level mapping relationship is determined by performing operations by the following modules.

[0281] The threshold value obtaining unit is used to obtain the frequency threshold value of the electronic device from a register of the electronic device, wherein the frequency threshold value includes a maximum frequency value and a minimum frequency value.

[0282] The level mapping unit is used to determine the operating frequency corresponding to each status level based on the frequency threshold and the number of status levels of the electronic device, and generate a level mapping relationship.

[0283] According to an embodiment of the present application, the level mapping unit includes: an equalization subunit and a fine-tuning subunit.

[0284] The equal subunit is used to determine the initial operating frequency corresponding to each state level from the frequency threshold in an equal division manner.

[0285] The fine-tuning subunit is used to fine-tune the initial operating frequency when the initial operating frequency is a decimal, and determine the operating frequency corresponding to the state level so that the level mapping relationship is quasi-linearly distributed.

[0286] According to an embodiment of the present application, the control device of the electronic device further includes: a configuration information writing module.

[0287] The configuration information writing module is used to write configuration information into the target register configured by the electronic device.

[0288] According to an embodiment of the present application, the control device of the electronic device further includes: a manual modification module.

[0289] A manual modification module is used to manually write a status identifier representing a performance status level into a target register configured by the electronic device after starting the operating system of the electronic device;

[0290] The configuration information displayed on the first configuration interface is different from the status identifier.

[0291] According to an embodiment of the present application, the target register includes a first register and a second register. The target state level stored in the first register is used to control the operation of the thread executed by the electronic device; the target state level stored in the second register is used to control the operation of the process executed by the electronic device.

[0292] According to an embodiment of the present application, the configuration information writing module includes: a first data packet generating submodule, a checking submodule, a feedback submodule, and a storage submodule.

[0293] The first data packet generating submodule is configured to generate a target data packet based on a target state level of the electronic device and a check sequence.

[0294] The check submodule is used to send the target data packet to the electronic device so that the electronic device can decompress the target data packet and check the target data packet using the check sequence.

[0295] The feedback submodule is used to receive feedback information from the electronic device.

[0296] The storage submodule is used to determine that the target state level has been stored in the target register of the electronic device when the feedback information indicates that the target data packet has passed the verification, so that the operating system controls the operation of the electronic device based on the target state level stored in the target register.

[0297] According to an embodiment of the present application, the configuration information writing module further includes: a second data packet generating submodule.

[0298] The second data packet generation submodule is configured to display feedback information on the first configuration interface when the feedback information indicates that the target data packet has failed verification, so as to regenerate and send the target data packet.

[0299] According to an embodiment of the present application, the control device of the electronic device further includes: a reading module, a matching module, and an abnormality determination module.

[0300] The reading module is used to read the current state level stored in the target register of the electronic device according to a predetermined period.

[0301] The matching module is used to determine that the target register is abnormal when the current state level does not match the target state level.

[0302] The first abnormality determination module is configured to send configuration information to the electronic device when the target register is abnormal, so that the electronic device updates the data stored in the target register.

[0303] According to an embodiment of the present application, the target register includes a first register and a second register. The target state level stored in the first register is used to control the operation of the thread executed by the electronic device; the target state level stored in the second register is used to control the operation of the process executed by the electronic device.

[0304] According to an embodiment of the present application, the control device of the electronic device further includes: a second abnormality determination module.

[0305] The second abnormality determination module is configured to determine that the target register is abnormal if either the current state level stored in the first register or the current state level stored in the second register does not match the target state level.

[0306] According to an embodiment of the present application, the control device of the electronic device further includes: a task configuration module and a prompt module.

[0307] The task configuration module is used to respond to the task configuration operation on the task control displayed in the first configuration interface and display task information matching the task configuration operation on the first configuration interface, wherein the task information is used to indicate the task performed using the electronic device.

[0308] The prompt module is used to display prompt information indicating whether the configuration information is qualified on the first configuration interface.

[0309] The prompt information verifies and determines the target operating frequency corresponding to the configuration information based on the frequency reference information, and the frequency reference information is determined by the task information.

[0310] According to an embodiment of the present application, the control device of the electronic device further includes: a health assessment module, an assessment determination module, and an assessment display module.

[0311] The health assessment module is configured to display a plurality of assessment items on the first configuration interface in response to a triggering operation on a health assessment control displayed on the first configuration interface.

[0312] The evaluation determination module is configured to, in response to receiving an evaluation instruction, display the target evaluation item indicated by the evaluation instruction on the first configuration interface.

[0313] The evaluation display module is configured to display evaluation information on the first configuration interface in response to receiving an evaluation confirmation instruction for a target evaluation item.

[0314] The evaluation information represents the impact of the target operating frequency on the hardware matching the target evaluation item.

[0315] According to an embodiment of the present application, the control device of the electronic device further includes: an optimized control display module, an optimized determination module, and an optimized display module.

[0316] The optimization control display module is used to display multiple optimization items on the first configuration interface in response to a trigger operation on the optimization control displayed in the first configuration interface.

[0317] The optimization determination module is configured to, in response to receiving an optimization instruction, display a target optimization item indicated by the optimization instruction on the first configuration interface.

[0318] The optimization display module is configured to display optimization information matching the target optimization item on the first configuration interface in response to receiving an optimization confirmation instruction for the target optimization item.

[0319] According to an embodiment of the present application, the control device of the electronic device further includes: a first reference information determination module.

[0320] The first reference information determining module is configured to determine frequency reference information from a plurality of candidate frequency reference information based on task information and a task mapping relationship, wherein the task mapping relationship represents a correspondence between the task information and the candidate frequency reference information.

[0321] According to an embodiment of the present application, the control device of the electronic device further includes: a second reference information determination module.

[0322] The second reference information determination module is used to input the task characteristics of the task information and the graph characteristics of the heterogeneous graph into the first target network to obtain frequency reference information.

[0323] Among them, the heterogeneous graph includes different types of first nodes, second nodes and third nodes, as well as different types of first edges and second edges. The first node represents the task, the second node represents the hardware, and the third node represents the state level. The first edge is used to connect two nodes with a causal relationship, and the second edge is used to connect two nodes with a correlation. The first node, the second node and the third node all have their own node attributes.

[0324] According to an embodiment of the present application, the control device of the electronic device further includes: an evaluation information determination module.

[0325] The evaluation information determination module is used to input the evaluation characteristics of the target evaluation item, the frequency characteristics of the target operating frequency, and the spectrum characteristics of the heterogeneous spectrum into the second target network to obtain evaluation information.

[0326] According to an embodiment of the present application, the control device of the electronic device further includes: an optimization information determination module.

[0327] The optimization information determination module is used to input the optimization characteristics of the target optimization item, the frequency characteristics of the target operating frequency, and the graph characteristics of the heterogeneous graph into the third target network to obtain optimization information.

[0328] According to an embodiment of the present application, the control device of the electronic device further includes: a homogeneous characterization module, a heterogeneous characterization module, and a fusion module.

[0329] The isomorphic characterization module is used to perform isomorphic characterization on heterogeneous graphs to obtain the first graph feature.

[0330] The heterogeneous characterization module is used to perform heterogeneous characterization on the heterogeneous spectrum to obtain the second spectrum feature.

[0331] The fusion module is used to fuse the first graph feature and the second graph feature to obtain a graph feature.

[0332] According to an embodiment of the present application, the control device of the electronic device further includes: an intention determination module and a network determination module.

[0333] The intention determination module is used to determine the intention information based on the task information.

[0334] The network determination module is used to determine a first target network from multiple expert networks based on the intention information.

[0335] According to embodiments of the present application, any multiple modules among the interface display module 910, the level configuration module 920, and the information determination module 930 can be combined into a single module, or any one of them can be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules can be combined with at least part of the functionality of other modules and implemented in a single module. According to embodiments of the present application, at least one of the interface display module 910, the level configuration module 920, and the information determination module 930 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented in hardware or firmware through any other reasonable means of circuit integration or packaging, or can be implemented in any one of the three implementation methods of software, hardware, and firmware, or any appropriate combination of any of these. Alternatively, at least one of the interface display module 910, the level configuration module 920, and the information determination module 930 can be at least partially implemented as a computer program module that, when executed, can perform the corresponding function.

[0336] This application also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the control method according to the embodiments of this application is implemented.

[0337] According to embodiments of the present application, a computer-readable storage medium may be a non-volatile computer-readable storage medium, and may include, for example, but not limited to, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of the present application, a computer-readable storage medium may include the ROM and / or RAM described above, and / or one or more memories other than ROM and RAM.

[0338] The embodiments of the present application also include a computer program product, which includes a computer program containing program code for executing the control method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the control method of the electronic device provided in the embodiments of the present application.

[0339] When the computer program is executed by the processor, the above functions defined in the system / device of the embodiment of the present application are performed. According to the embodiment of the present application, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0340] According to an embodiment of the present application, the program code for executing the computer program provided by the embodiment of the present application can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).

[0341] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0342] Those skilled in the art will appreciate that the features described in the various embodiments of this application may be combined and / or coupled in various ways, even if such combinations or couplings are not explicitly described in this application. In particular, the features described in the various embodiments of this application may be combined and / or coupled in various ways without departing from the spirit and teachings of this application. All such combinations and / or couplings fall within the scope of this application.

[0343] The embodiments of the present application have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present application. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be advantageously used in combination. Without departing from the scope of the present application, those skilled in the art may make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present application.

Claims

1. A method for controlling an electronic device, characterized in that: The control method includes: Displaying a first configuration interface, wherein the first configuration interface displays a configuration control, the configuration control being used to adjust a target operating frequency of the electronic device, the target operating frequency indicating a maximum operating frequency that the electronic device can support; In response to a status level configuration operation on the configuration control, displaying configuration information matching the status level configuration operation on the first configuration interface, wherein the configuration information represents a target status level of the electronic device performance state, and a mapping relationship exists between the target status level and the target operating frequency; and In response to receiving a confirmation instruction for the configuration information, a target operating frequency of the electronic device corresponding to the configuration information is determined, so that during operation of the electronic device, the operating frequency of the electronic device is controlled not to exceed the target operating frequency.

2. The control method according to claim 1, characterized in that: The displaying of the first configuration interface includes: The configuration control is displayed in the first configuration interface using at least one of the following display forms: Slider type, list type, drop-down menu type, input box type, label type, scroll type, disk pointer type.

3. The control method according to claim 2, characterized in that: The first configuration interface uses a slider display format to display the configuration controls, including: A track-type component that displays the configuration control and a selector that can slide on the track-type component, wherein a plurality of marking points are set on the track-type component, and a plurality of identifiers corresponding to the plurality of marking points are displayed on the first configuration interface, and the plurality of identifiers represent different status levels.

4. The control method according to claim 3, characterized in that: In response to the status level configuration operation on the configuration control, displaying configuration information matching the status level configuration operation on the first configuration interface includes: In response to controlling the sliding operation of the selector on the track assembly, determining a target marking point designated by the selector on the track assembly; and Based on the motion trajectory of the selector, the color of the partial area of ​​the track-type component is updated, and the identifier corresponding to the target marking point is displayed in the form of a pop-up window as the configuration information.

5. The control method according to claim 3, characterized in that: A track component that displays the configuration controls, including: Displaying a plurality of marking points on the track-type component that matches the number of status levels of the electronic device; or Updating the display state of the adjustable area on the track assembly to a state indicating that the selector is slidable, wherein the adjustable area includes an area where a plurality of marking points matching the number of the state levels are located; The number of status levels of the electronic device is determined according to the device attributes of the electronic device.

6. The control method according to claim 5, characterized in that: The control method further includes: Determining the number of initial state levels that the electronic device can support based on device attributes of the electronic device; In a case where the initial state level number of the electronic device is less than or equal to a predetermined state level number, using the initial state level number as the state level number; and In a case where the initial state level number of the electronic device is greater than the predetermined state level number, the predetermined state level number is used as the state level number.

7. The control method according to claim 1, characterized in that: The control method further includes: In response to a status level configuration operation for the configuration control, determining whether the configuration control is in an active state; and In response to the configuration control being in an inactive state, the first configuration interface is refreshed to display the configuration control indicating that it is in an inactive state.

8. The control method according to claim 7, characterized in that: The control method further includes: Adjusting a parameter item of the activation control on the second configuration interface until the parameter item indicates that the configuration control is in an activated state; and Refresh the first configuration interface to display the configuration control that is in an activated state.

9. The control method according to claim 8, characterized in that: The activation control includes a first activation control and a second activation control, wherein the first activation control is used to activate the dynamic frequency adjustment function of the electronic device, and the second activation control is used to activate the universal frequency adjustment function of the electronic device; The step of adjusting the parameter item of the activation control on the second configuration interface until the parameter item indicates that the configuration control is in the activated state includes: Adjusting the parameter item of the first activation control to an available item on the second configuration interface; and Adjust the parameter item of the second activation control to a non-use item on the second configuration interface.

10. The control method according to claim 7, characterized in that: The control method further includes: In response to an option configuration operation on an option configuration control displayed on the first configuration interface, generating an option configuration command for activating the configuration control; and The option configuration command is sent to a control system to activate the configuration control via the control system.

11. The control method according to claim 8 or 10, characterized in that: The control method further includes: Restarting the electronic device to activate the configuration control.

12. The control method according to claim 1, characterized in that: The control method further includes: In response to a confirmation control on the first configuration interface being triggered, determining that a confirmation instruction for the configuration information has been received, wherein the confirmation control is used to indicate that the configuration has been completed; or In response to the waiting time being longer than a preset time, it is determined that a confirmation instruction for the configuration information is received, wherein the waiting time includes the time between the current moment and the operation moment of the status level configuration operation.

13. The control method according to any one of claims 1 to 10, characterized in that: The control method further includes: The configuration information is written into a target register configured by the electronic device.

14. The control method according to any one of claims 1 to 10, characterized in that: The control method further includes: After starting the operating system of the electronic device, manually writing a status identifier representing a performance status level into a target register configured for the electronic device; The configuration information displayed on the first configuration interface is different from the status identifier.

15. The control method according to claim 13, characterized in that: The target register includes a first register and a second register. The target state level stored in the first register is used to control the operation of the thread executed by the electronic device; the target state level stored in the second register is used to control the operation of the process executed by the electronic device.

16. The control method according to claim 13, characterized in that: Writing the configuration information into a target register configured in the electronic device includes: generating a target data packet based on the target state level of the electronic device and a check sequence; sending the target data packet to the electronic device so that the electronic device decompresses the target data packet and verifies the target data packet using the verification sequence; receiving feedback information from the electronic device; When the feedback information indicates that the target data packet has passed verification, it is determined that the target state level has been stored in the target register of the electronic device, so that the operating system controls the operation of the electronic device based on the target operating frequency stored in the target register that matches the target state level.

17. The control method according to claim 16, characterized in that: Writing the configuration information into the target register configured for the electronic device further comprises: In a case where the feedback information indicates that the target data packet fails verification, the feedback information is displayed on the first configuration interface so as to regenerate and send the target data packet.

18. The control method according to any one of claims 1 to 10, characterized in that: The control method further includes: Reading the current status level stored in the target register of the electronic device according to a predetermined period; If the current state level does not match the target state level, determining that the target register is abnormal; and In the case that the target register is abnormal, the configuration information is sent to the electronic device so that the electronic device updates the data stored in the target register.

19. The control method according to claim 18, characterized in that: The target register includes a first register and a second register, the target state level stored in the first register is used to control the execution of the thread executed by the electronic device; the target state level stored in the second register is used to control the execution of the process executed by the electronic device; The control method further includes: In a case where either the current state level stored in the first register or the current state level stored in the second register does not match the target state level, it is determined that the target register is abnormal.

20. The control method according to any one of claims 1 to 10, characterized in that: The determining a target operating frequency of the electronic device corresponding to the configuration information includes: The target operating frequency corresponding to the configuration information is determined from a plurality of operating frequencies based on a level mapping relationship, wherein the level mapping relationship represents a correspondence between status levels and operating frequencies of the electronic device.

21. The control method according to claim 20, characterized in that: The level mapping relationship is determined by the following operations: Acquire a frequency threshold of the electronic device from a register of the electronic device, wherein the frequency threshold includes a maximum frequency value and a minimum frequency value; and Based on the frequency threshold and the number of status levels of the electronic device, the operating frequency corresponding to each status level is determined, and the level mapping relationship is generated.

22. The control method according to claim 21, characterized in that: The determining, based on the frequency threshold and the number of status levels of the electronic device, the operating frequency corresponding to each status level includes: determining, in an equally divided manner, an initial operating frequency corresponding to each of the state levels from the frequency threshold; In the case that the initial operating frequency is a decimal, the initial operating frequency is fine-tuned to determine the operating frequency corresponding to the state level, so that the level mapping relationship presents a quasi-linear distribution.

23. The control method according to any one of claims 1 to 10, characterized in that: The control method further includes: In response to a task configuration operation on a task control displayed in the first configuration interface, displaying task information matching the task configuration operation on the first configuration interface, wherein the task information is used to indicate a task to be performed using the electronic device; Displaying prompt information indicating whether the configuration information is qualified on the first configuration interface; The prompt information verifies and determines the target operating frequency corresponding to the configuration information based on frequency reference information, and the frequency reference information is determined by the task information.

24. The control method according to claim 23, characterized in that: The control method further includes: In response to a triggering operation on a health assessment control displayed in the first configuration interface, displaying a plurality of assessment items on the first configuration interface; In response to receiving the evaluation instruction, displaying the target evaluation item indicated by the evaluation instruction on the first configuration interface; and In response to receiving an evaluation confirmation instruction for the target evaluation item, displaying evaluation information on the first configuration interface; The evaluation information represents the impact of the target operating frequency on hardware matching the target evaluation item.

25. The control method according to claim 24, characterized in that: The control method further includes: In response to a triggering operation on the optimization control displayed in the first configuration interface, displaying a plurality of optimization items in the first configuration interface; In response to receiving the optimization instruction, displaying the target optimization item indicated by the optimization instruction on the first configuration interface; and In response to receiving an optimization confirmation instruction for the target optimization item, optimization information matching the target optimization item is displayed on the first configuration interface.

26. The control method according to claim 23, characterized in that: The control method further includes: The frequency reference information is determined from a plurality of candidate frequency reference information based on the task information and a task mapping relationship, wherein the task mapping relationship represents a correspondence between the task information and the candidate frequency reference information.

27. The control method according to claim 25, characterized in that: The control method further includes: Inputting the task features of the task information and the graph features of the heterogeneous graph into the first target network to obtain the frequency reference information; In which, the heterogeneous graph includes different types of first nodes, second nodes and third nodes, as well as different types of first edges and second edges, the first node represents the task, the second node represents the hardware, the third node represents the state level, the first edge is used to connect two nodes with a causal relationship, and the second edge is used to connect two nodes with a correlation, and the first node, the second node and the third node all have their own node attributes.

28. The control method according to claim 27, characterized in that: The control method further includes: The evaluation characteristics of the target evaluation item, the frequency characteristics of the target operating frequency, and the graph characteristics of the heterogeneous graph are input into the second target network to obtain the evaluation information.

29. The control method according to claim 28, characterized in that: The control method further includes: The optimization characteristics of the target optimization item, the frequency characteristics of the target operating frequency, and the graph characteristics of the heterogeneous graph are input into a third target network to obtain the optimization information.

30. The control method according to claim 29, characterized in that: The control method further includes: Performing isomorphic characterization on the heterogeneous spectrum to obtain a first spectrum feature; Performing spectrum isomerization characterization on the isomerized spectrum to obtain a second spectrum feature; and The first graph feature and the second graph feature are fused to obtain the graph feature.

31. The control method according to claim 27, characterized in that: The control method further includes: determining intention information based on the task information; and Based on the intention information, the first target network is determined from a plurality of expert networks.

32. A control device for an electronic device, characterized in that: The control device comprises: an interface display module, configured to display a first configuration interface, wherein the first configuration interface displays a configuration control, the configuration control being configured to adjust a target operating frequency of the electronic device, the target operating frequency indicating a maximum operating frequency supported by the electronic device; a level configuration module, configured to, in response to a state level configuration operation on the configuration control, display configuration information matching the state level configuration operation on the first configuration interface, wherein the configuration information represents a target state level of the electronic device performance state, and a mapping relationship exists between the target state level and the target operating frequency; and The information determination module is used to determine the target operating frequency of the electronic device corresponding to the configuration information in response to receiving a confirmation instruction for the configuration information, so as to control the operating frequency of the electronic device not to exceed the target operating frequency during the operation of the electronic device.

33. A server comprising: one or more controllers; a memory for storing one or more computer programs, It is characterized in that the one or more controllers execute the one or more computer programs to implement the steps of the control method according to any one of claims 1 to 31.

34. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instructions are executed by a processor, the steps of the control method according to any one of claims 1 to 31 are implemented.

35. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the control method according to any one of claims 1 to 31.

Citation Information

Patent Citations

  • Processor operation frequency control method and system

    CN103455382A

  • Control method and electronic equipment

    CN103677995A

  • Processor frequency control method and electronic equipment

    CN104346226A

  • Parameter setting method and device, terminal and storage medium

    CN109271208A

  • Resource management method and device and electronic equipment

    CN117149431A