Power consumption control methods and devices, storage media, electronic devices
By establishing a communication connection between the memory slot and the processor signal and setting control options to control the clock enable signal level, the problem of complex and ineffective memory power consumption control is solved, and flexible power consumption management is achieved.
Patent Information
- Application Number
- CN202311734351.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-15
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-12-15
AI Technical Summary
Existing technologies have complex and ineffective memory power consumption control processes, making it difficult for data centers to effectively manage the power consumption of excess memory when business needs change.
By establishing a communication connection between the clock enable signal corresponding to the memory slot and the processor's input/output signals, control options are set for the clock enable signal, and the level state of the clock enable signal is controlled through these control options, thus enabling flexible management of memory power consumption.
It enables flexible control of memory power consumption, optimizes memory power consumption management, reduces manpower costs and time consumption, and adapts to changes in business needs.
Smart Images

Figure CN117724601B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and more specifically, to a power consumption control method and apparatus, a storage medium, and an electronic device. Background Technology
[0002] Memory is a temporary storage device used to store running programs and data so that the Central Processing Unit (CPU) can quickly access and process them. Memory typically consists of many storage units, each with a unique address. When a computer needs to read or write data, it uses these addresses to locate the storage unit and either read the data from memory into the CPU or write data from the CPU into memory. Memory installation and usage are essential components in any server architecture. In traditional servers, a single processor chip can support a maximum of 16 memory slots, while dual-processor or quad-processor servers can support 32 or 64 memory slots. However, for practical use, we currently default to a maximum support of 32 memory slots.
[0003] Generally speaking, memory power consumption is strongly correlated with memory frequency and capacity. A single memory module typically consumes between 5 and 10 watts, while a server with 32 memory modules fully installed consumes between 160 and 320 watts. A server running for a full day would consume 3.2 kilowatt-hours. Servers are usually configured with their full memory capacity. Some big data centers may deploy 300,000 servers. If a customer's business needs change and they no longer need all the memory, controlling memory power consumption requires physically removing, software isolating, or reducing the capacity of excess memory. Physically removing excess memory from tens of thousands of servers in a big data center would be extremely time-consuming and labor-intensive. Furthermore, software isolation cannot completely solve the power consumption problem caused by excess memory.
[0004] There is currently no effective solution to the problem that the control process for memory power consumption is complex and the control effect is poor in related technologies. Summary of the Invention
[0005] This application provides a power consumption control method and apparatus, storage medium, and electronic device to at least solve the problems of complex control processes and poor control effects in memory power consumption control in related technologies.
[0006] According to one embodiment of this application, a power consumption control method is provided, comprising: establishing a communication connection between a clock enable signal corresponding to a memory slot and an input / output signal of a processor; when the communication connection has been successfully established, setting control options for the clock enable signal, wherein different options correspond to different level states of the clock enable signal; and controlling the level state of the clock enable signal through the control options to control the power consumption of the memory.
[0007] Optionally, after setting control options for the clock enable signal, and before controlling the level state of the clock enable signal through the control options, the method further includes: confirming the current option content of the control options;
[0008] The level state of the input / output signal is determined according to the current option content, so as to control the level state of the clock enable signal according to the level state of the input / output signal.
[0009] Optionally, the level of the clock enable signal can be controlled via the control option, including: reading the option content corresponding to the control option; when the option content corresponding to the control option is enabled, controlling the level of the clock enable signal to be high; when the option content corresponding to the control option is disabled, controlling the level of the clock enable signal to be low.
[0010] Optionally, if the connection has been successfully established, setting control options for the clock enable signal includes: receiving a first control instruction and jumping to the first interface according to the indication information of the first interface indicated in the first control instruction; if the user has jumped to the first interface, receiving a second control instruction and determining the setting information corresponding to the clock enable signal in the first interface according to the second control instruction, wherein the setting information includes: indication information of the setting options for the clock enable signal; enabling the setting options for the clock enable signal according to the setting information; setting the name of the control option and the option content of the control option for the clock enable signal according to a preset rule in the setting options; if the control option has been successfully set, receiving a third control instruction and returning to the initial interface corresponding to the first interface according to the third control instruction, so that the control option takes effect.
[0011] Optionally, the power consumption of the memory can be controlled by controlling the level of the clock enable signal through the control options, including: when the level of the clock enable signal is high, instructing the memory corresponding to the clock enable signal to perform data storage and conversion to increase the power consumption of the memory; when the level of the clock enable signal is low, instructing the memory corresponding to the clock enable signal to stop the data storage and conversion to reduce the power consumption of the memory.
[0012] Optionally, after controlling the power consumption of the memory, the method further includes: receiving a fourth control instruction, jumping to a power management interface according to the fourth control instruction; querying the management options of the memory in the power management interface, and enabling the power management function of the memory in the management options, so as to obtain the power consumption of the memory at different time periods through the power management function.
[0013] Optionally, establishing a communication connection between the clock enable signal corresponding to the memory slot and the input / output signal of the processor includes: obtaining the pin definitions of the memory slot and the processor, and determining the target connection method according to the pin definitions; and establishing a connection between the clock enable signal corresponding to the memory slot and the input / output signal of the processor according to the target connection method.
[0014] According to another embodiment of this application, a power consumption control device is provided, comprising: an establishment module for establishing a communication connection between a clock enable signal corresponding to a memory slot and an input / output signal of a processor; a setting module for setting control options for the clock enable signal when the communication connection has been successfully established, wherein different options correspond to different level states of the clock enable signal; and a control module for controlling the level state of the clock enable signal through the control options to control the power consumption of the memory.
[0015] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, and the computer program is configured to perform the steps in any of the above method embodiments when it is run.
[0016] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0017] This application establishes a communication connection between the clock enable signal corresponding to the memory slot and the processor's input / output signals, and sets control options for the clock enable signal. By controlling the level state of the clock enable signal through these options, the power consumption of the memory can be controlled. This solves the problems of complex control processes and poor control effects in existing technologies, achieving flexible control of memory power consumption. Furthermore, directly controlling the power supply of the clock enable signal through level states optimizes the memory power consumption control effect. Attached Figure Description
[0018] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0019] Figure 1 This is a hardware structure block diagram of a power consumption control method according to an embodiment of this application;
[0020] Figure 2 This is a flowchart of a power consumption control method according to an embodiment of this application;
[0021] Figure 3 This is a schematic diagram of a physical memory connection method according to an embodiment of this application;
[0022] Figure 4 This is a schematic diagram of the physical connection of a memory slot clock enable signal according to an embodiment of this application;
[0023] Figure 5 This is a flowchart illustrating the implementation of a memory power consumption control method according to an embodiment of this application.
[0024] Figure 6 This is a swimlane diagram of a memory control method according to an embodiment of this application;
[0025] Figure 7 This is a structural block diagram of a memory control device according to an embodiment of this application. Detailed Implementation
[0026] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0028] The methods and embodiments provided in this application can be executed on a server device or a similar computing device. Taking running on a server device as an example, Figure 1This is a hardware structure block diagram of a server device for a memory control method according to an embodiment of this application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The server device may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the server equipment described above. For example, the server equipment may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0029] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the power consumption control method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the aforementioned method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to server devices via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0030] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the server device. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0031] This embodiment provides a power consumption control method. Figure 2 This is a flowchart of a power consumption control method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps S202-S206:
[0032] Step S202: Establish communication connections between the clock enable signal corresponding to the memory slot and the processor's input / output signals;
[0033] As an optional embodiment, the execution subject of this application embodiment can be a Basic Input Output System (BIOS).
[0034] It's important to note that the clock enable signal (CKE) corresponding to the memory slot is used to control the clock circuit's on / off state. When the clock enable signal is high, the clock circuit starts working; when the clock enable signal is low, the clock circuit stops working. The clock enable signal is typically used to control the transmission and synchronization of clock signals, ensuring that each circuit operates at the correct time.
[0035] It should be noted that when establishing connections between the clock enable signal of a memory slot and the processor's input / output signals, connections must be established between the clock enable signal of each memory slot of the Central Processing Unit (CPU) and the CPU's input / output signals. Specifically, the connections between the clock enable signal and the input / output signals mainly involve connections to the CPU's general-purpose input / output (GPIO) interfaces.
[0036] In an exemplary embodiment, step S202 described above can be implemented via steps S11-S12:
[0037] Step S11: Obtain the memory slot and the pin definition of the processor, and determine the target connection method based on the pin definition;
[0038] Step S12: Establish a connection between the clock enable signal corresponding to the memory slot and the input / output signal of the processor according to the target connection method.
[0039] It should be noted that pin definitions refer to the function and purpose of pins on electronic components or devices. Pin definitions include pin number, electrical characteristics, connection method, and the function or signal connected to the pin. Pin definitions are determined by the processor manufacturer and are detailed in the processor's datasheet. After determining the definition of the corresponding pin, the target connection method is further determined.
[0040] As an optional embodiment, the target connection method includes, but is not limited to, direct connection using cables or connection circuit design.
[0041] As an optional implementation, when the number of GPIOs built into the CPU is sufficient to establish all connections, the connection with the CKE signal can be established directly using the pins of the GPIOs. When the number of GPIOs built into the CPU is insufficient, an input / output (IO) expansion chip can be selected to expand the number of IOs.
[0042] Through the above steps S11-S12, the connection between the clock enable signal and the input / output signal can be established, so as to control the level state of the clock enable signal.
[0043] Step S204: If the communication connection has been successfully established, set control options for the clock enable signal, wherein different options of the control options correspond to different level states of the clock enable signal;
[0044] As an optional embodiment, the control options include enabling and disabling. The target object can flexibly set the control options according to its needs, and the embodiments of this application do not further limit this.
[0045] It should be noted that when the control option is enabled, the corresponding clock enable signal level is high, and when the control option is disabled, the corresponding clock enable signal level is low.
[0046] In an exemplary embodiment, step S204 can be implemented by the following steps S21-S25:
[0047] Step S21: Receive the first control command and jump to the first interface according to the instruction information of the first interface indicated in the first control command;
[0048] It should be noted that the first interface is the BIOS system settings interface. The first control command is usually a specific key pressed by the target on an input device (including but not limited to the keyboard), typically F2, F10, F12, ESC, or DEL.
[0049] Step S22: When the user has been redirected to the first interface, a second control instruction is received, and the setting information corresponding to the clock enable signal is determined in the first interface according to the second control instruction. The setting information includes: indication information of the setting options for the clock enable signal.
[0050] Step S23: Enable the setting option of the clock enable signal according to the setting information;
[0051] It should be noted that after entering the BIOS setup interface, you need to manually enable the clock enable signal setting option first, as some system architectures do not allow setting the clock enable signal by default.
[0052] Step S24: In the setting options, set the name of the control option and the option content of the control option for the clock enable signal according to the preset rules;
[0053] As an optional embodiment, the option name for the control option can be clock enable signal 1, clock enable signal 2.
[0054] As an optional embodiment, the options for the control options include, but are not limited to, enabling and disabling.
[0055] As an optional implementation, the preset rules include, but are not limited to, setting the number of control options, the format specifications of the control options, and the word limit for the option content. It is ensured that newly added control options are clearly displayed and operable in the BIOS setup interface so that the target user can easily configure them; and that the BIOS provides relevant documentation and instructions for the newly added control options so that users can understand the function and usage of the option.
[0056] Step S25: If the control option has been successfully set, receive a third control command and return to the initial interface corresponding to the first interface according to the third control command, so that the control option takes effect.
[0057] As an optional implementation, after setting the control options, in addition to returning to the initial BIOS interface (i.e., the initial interface corresponding to the first interface mentioned above), you can also make the control options take effect by restarting.
[0058] As an optional implementation, before setting control options for the clock enable signal, the relevant data of the existing control options in the BIOS system can be backed up to avoid affecting other control options if there is a problem with the control options set for the clock enable signal.
[0059] Through the above steps S21-S25, control options can be set for the clock enable signal in the BIOS, so as to control the level state of the clock enable signal according to the content of the control options.
[0060] Step S206: Control the level of the clock enable signal through the control options to control the power consumption of the memory.
[0061] As an optional implementation, the power consumption of the memory mainly occurs during the data storage and conversion operations performed when the clock corresponding to the memory's clock enable signal is running. The clock enable signal is used to synchronize various operations within the memory module, including reading and writing data, to ensure data accuracy and stability. When the clock enable signal is high, the data transfer speed of the memory module is faster. The higher the clock frequency, the more power the memory requires, resulting in higher power consumption. If the memory has no clock frequency, its power consumption is zero regardless of whether it is physically powered. Therefore, the power consumption of the memory can be controlled by adjusting the level of the clock enable signal.
[0062] In an exemplary embodiment, controlling the level state of the clock enable signal via the control options can be achieved through the following steps S31-S33:
[0063] Step S31: Read the option content corresponding to the control option;
[0064] As an optional embodiment, the options include, but are not limited to, enabling and disabling. The options can be flexibly set by the target object, and this embodiment does not further limit this.
[0065] Step S32: When the option content corresponding to the control option is enabled, control the level of the clock enable signal to be high.
[0066] It should be noted that when the control option is enabled, the level of the input and output signals is first set to high. Furthermore, since the input and output signals are connected to the clock enable signal, when the level of the input and output signals is high, the high level will be sent to the clock enable signal through the connection, indicating that the clock enable signal is also high.
[0067] Step S33: When the option content corresponding to the control option is off, control the level of the clock enable signal to be low.
[0068] It should be noted that when the control option is turned off, the corresponding control input and output signal level is low. Furthermore, since the input and output signals are connected to the clock enable signal, when the input and output signal level is low, the low level will be sent to the clock enable signal through the connection, indicating that the clock enable signal is also low.
[0069] Through the above steps S31-S33, the level of the enable signal can be directly controlled according to the option content. At the same time, the state of the clock enable signal can be flexibly adjusted by adjusting the option content to control the power consumption of the memory corresponding to the clock enable signal.
[0070] In an exemplary embodiment, step S204 above can be implemented by the following steps S41-S42:
[0071] Step S41: When the clock enable signal is at a high level, instruct the memory corresponding to the clock enable signal to perform data storage and conversion, thereby increasing the power consumption of the memory;
[0072] It should be noted that when the control option is enabled, the corresponding input / output signal is high. By connecting the input / output signal and the clock enable signal, the level of the clock enable signal is also controlled to be high. That is, the clock enable signal controls the memory to perform data reading and writing operations. When the target object needs more memory for data storage and conversion, the level of the clock enable signal can be controlled to be high through the control option, thereby increasing the power consumption of the memory.
[0073] Step S42: When the clock enable signal is at a low level, instruct the memory corresponding to the clock enable signal to stop the data storage and conversion, so as to reduce the power consumption of the memory.
[0074] It should be noted that when the clock enable signal is at a low level, the memory clock frequency is 0, and the memory's data storage and conversion functions cannot be used, thus reducing the memory's power consumption.
[0075] In other words, when the target object does not require all memory to store and convert data, the power consumption can be reduced by changing the level of the clock enable signal to instruct part of the memory to stop data conversion and storage.
[0076] By adjusting the level of the clock enable signal through the above steps S41-S42, the working state of the memory can be changed, thereby controlling the power consumption of the memory. In projects that require the memory to perform a large amount of data storage and conversion, increasing power consumption allows more memory to perform data storage and conversion, thus improving data processing efficiency.
[0077] Through steps S202-S206 above, a communication connection is established between the clock enable signal corresponding to the memory slot and the processor's input / output signals. Control options are set for the clock enable signal, and its level is controlled via these options, thereby controlling the memory's power consumption. This solves the problem of complex memory power consumption control processes and poor control effects in existing technologies, achieving flexible control of memory power consumption. Furthermore, directly controlling the power supply to the clock enable signal through its level optimizes the memory power consumption control effect.
[0078] As an optional embodiment, the execution subject of this application embodiment can also be a Complex Programmable Logic Device (CPLD). By updating the firmware version information of the CPLD, the CKE signal of a specific memory can be enabled or disabled. Each time the state of the memory slot clock enable signal changes, the CPLD can be reset.
[0079] In an exemplary embodiment, after setting a control option for the clock enable signal, and before controlling the level state of the clock enable signal through the control option, the following steps S51-S52 are further included:
[0080] Step S51: Confirm the current option content of the control options;
[0081] Step S52: Determine the level state of the input / output signal according to the current option content, so as to control the level state of the clock enable signal according to the level state of the input / output signal.
[0082] It should be noted that each time the server is started, it is necessary to enter the BIOS interface to check the memory usage status and see if the current options need to be adjusted.
[0083] As an optional implementation, assume the current options are: Clock enable signal 1 "Enabled", Clock enable signal 2 "Enabled". After entering the BIOS interface, the target object determines that the memory corresponding to clock enable signal 1 and the memory corresponding to clock enable signal 2 do not need to be in the "Enabled" state during this boot, and then adjusts the current option state according to the target task.
[0084] As an optional embodiment, the target object can set the control options corresponding to the clock enable signal to be uniformly set to "off" after each server power-down, and reset the options each time the server is started.
[0085] By using the steps S51-S52 above, all memory can be prevented from entering a working state every time the server is started, further enhancing the control of memory power consumption. Each time the server is used, the appropriate amount of memory is determined according to the target task, further reducing memory power consumption.
[0086] In an exemplary embodiment, after controlling the power consumption of the memory, the following steps S61-S62 are further included:
[0087] Step S61: Receive the fourth control command, and jump to the power management interface according to the fourth control command;
[0088] Step S62: Query the memory management options on the power management interface, and enable the power management function of the memory in the management options to obtain the power consumption of the memory at different times through the power management function.
[0089] It should be noted that the power management interface includes power management for multiple components, including but not limited to power status display, memory power consumption monitoring, and power alarm information.
[0090] It should be noted that the memory power management function needs to be manually enabled by the target object.
[0091] As an optional implementation, the target object can add interactive options to the power management interface, such as displaying alarm and abnormal information when the power consumption of memory exceeds the standard.
[0092] As an optional implementation, after obtaining the power consumption of the memory at different times, it is possible to further determine the power consumption distribution, power consumption trend and other data, which can help the target object understand the power consumption of the memory, and at the same time optimize and manage the power consumption.
[0093] Through the above steps S61-S62, memory power consumption can be displayed in a more intuitive way, so as to better control memory power consumption in a targeted manner.
[0094] Obviously, the embodiments described above are merely some embodiments of the present invention, and not all embodiments. To better understand the above method, the following description, in conjunction with embodiments, illustrates the process, but is not intended to limit the technical solutions of the embodiments of the present invention. Specifically:
[0095] The power consumption of memory mainly occurs during the data storage and conversion processes performed by the memory clock. The higher the memory's operating frequency, the greater its power consumption. If the memory has no clock frequency, its power consumption is zero regardless of whether it is physically powered. When the memory clock frequency is zero, the memory's read and write functions are unusable, hence its power consumption is also zero. Therefore, this application uses the BIOS option function to control the memory clock CKE signal (corresponding to the clock enable signal in the above embodiment) of the memory slot to control the power consumption of specific memory modules. The specific implementation process is as follows:
[0096] The specific implementation process is as follows:
[0097] (1) Physically, the CKE signal of each memory slot of the CPU needs to be physically linked to the extended GPIO (corresponding to the input / output signals in the above embodiment) on the CPU side. If the number of GPIOs on the CPU is sufficient and meets the BIOS or CPLD settings, then it is not necessary to use an IO expansion chip to physically expand the number of IOs; the GPIO pins on the CPU side can be used directly. Figure 3 The diagram shown is a schematic representation of a physical memory connection according to an embodiment of this application. Figure 4 This is a schematic diagram of the physical connection of a memory slot clock enable signal according to an embodiment of this application.
[0098] (2) The BIOS adds a memory CKE control signal to each memory slot on the motherboard. The option value includes enable or disable, which correspond to the high and low level settings of the CKE signal, respectively.
[0099] (3) When the server starts up, before memory initialization, the BIOS confirms the CKE signal setting status by reading the CKE signal setting value of each memory slot;
[0100] (4) After the BIOS confirms the status value, it will set the corresponding IO status of the IO expansion chip connected to the memory slot CKE signal according to the CKE signal value.
[0101] (5) When the CKE signal is high, it means that the memory in the corresponding memory slot is in the working state. When the CKE signal is low, it means that the memory in the corresponding memory slot is in the closed state, i.e., not in use.
[0102] (6) After the BIOS has finished setting the IO status value of the IO expansion chip, the memory usage status is set according to the customer's actual needs, and the system continues to start normally and enter the operating system.
[0103] As an optional embodiment, steps 2-6 can replace the BIOS part with CPLD control. The difference from adding option control to the BIOS is that after the IO function of the new IO extension product is linked with the memory CKE, it needs to be physically linked with the GPIO signal of the CPLD. The CKE signal of a specific memory is enabled or disabled by updating the firmware version information of the CPLD. If the enable status of the memory slot is changed each time, the CPLD needs to be updated and set each time.
[0104] Combining the above steps, Figure 5A flowchart illustrating the implementation of a memory power consumption control method is provided. In short, this application leverages the physical enable or disable capability of the memory slot's CKE signal. Utilizing the CPU's built-in GPIO pins, or when the number of GPIO pins on the CPU is insufficient, by physically adding GPIO expansion chips, the GPIO signals are connected to the CKE signals of the motherboard's memory slots. Simultaneously, CPLD firmware is used to set specific high and low status values for specific GPIOs, or BIOS options are added. By reading the BIOS settings for the CKE signals of each memory slot, before memory initialization during server startup, the BIOS uses the I2C protocol to set the status of the GPIOs on the CPU or the GPIO expansion chips as needed. Similarly, a specific CPLD version can be used to set the high and low status values of the aforementioned GPIOs, thereby controlling the enable or disable of the CKE signals of the motherboard's memory slots. This achieves the function of turning the motherboard's memory on and off, enabling control of the server's overall memory power consumption without physically modifying the memory insertion method.
[0105] Figure 7 This is a structural block diagram of a memory control device according to an embodiment of this application. This application adopts the control of the CKE signal of the motherboard memory slot through GPIO control signal to control the high and low level states, so as to enable or disable the corresponding physical memory when the server system starts up, thereby controlling the memory power consumption of the server and reducing the power consumption of the server. This not only improves the service life and service life of the memory, but also eliminates the need for manual physical disassembly of unused memory.
[0106] Furthermore, the CKE signal control of physical memory can be achieved either by adding BIOS options for selection and setting, or by updating the CPLD firmware to control the CKE signal of the motherboard hardware memory. Regardless of the method used, it is possible to enable or disable the server's physical memory, thus meeting the needs of Internet customers deploying hundreds of thousands of servers in their data centers for effective control over memory quantity and server power consumption.
[0107] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0108] This embodiment also provides a power consumption control device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0109] Figure 7 This is a structural block diagram of a power consumption control device according to an embodiment of this application, such as... Figure 7 As shown, the device includes:
[0110] Establish module 72, which is used to establish communication connections between the clock enable signal corresponding to the memory slot and the input / output signals of the processor;
[0111] Setting module 74 is used to set control options for the clock enable signal when the communication connection has been successfully established, wherein different options of the control options correspond to different level states of the clock enable signal;
[0112] The control module 76 is used to control the level state of the clock enable signal through the control options, so as to control the power consumption of the memory.
[0113] The aforementioned device establishes a communication connection between the clock enable signal corresponding to the memory slot and the processor's input / output signals. Control options are set for the clock enable signal, and its level is controlled through these options, thereby controlling the memory's power consumption. This solves the problems of complex control processes and poor control effects in existing technologies, achieving flexible control of memory power consumption. Furthermore, directly controlling the power supply to the clock enable signal through its level optimizes the memory power consumption control effect.
[0114] In an exemplary embodiment, the apparatus further includes: a first processing module, configured to, after setting a control option for the clock enable signal and before controlling the level state of the clock enable signal through the control option, confirm the current option content of the control option; determine the level state of the input / output signal according to the current option content, so as to control the level state of the clock enable signal according to the level state of the input / output signal.
[0115] In an exemplary embodiment, the control module 76 is further configured to read the option content corresponding to the control option; when the option content corresponding to the control option is enabled, control the level of the clock enable signal to be high; when the option content corresponding to the control option is disabled, control the level of the clock enable signal to be low.
[0116] In an exemplary embodiment, the setting module 74 is further configured to receive a first control instruction and jump to the first interface according to the instruction's indication information; if the user has already jumped to the first interface, receive a second control instruction and determine the setting information corresponding to the clock enable signal in the first interface according to the second control instruction, wherein the setting information includes: indication information of the clock enable signal's setting options; enable the clock enable signal's setting options according to the setting information; set the name and content of the control option for the clock enable signal according to a preset rule in the setting options; if the control option has been successfully set, receive a third control instruction and return to the initial interface corresponding to the first interface according to the third control instruction, so that the control option takes effect.
[0117] In an exemplary embodiment, the control module 76 is further configured to, when the clock enable signal is at a high level, instruct the memory corresponding to the clock enable signal to perform data storage and conversion to increase the power consumption of the memory; and when the clock enable signal is at a low level, instruct the memory corresponding to the clock enable signal to stop the data storage and conversion to reduce the power consumption of the memory.
[0118] In an exemplary embodiment, the device further includes: a second processing module, configured to receive a fourth control instruction, jump to a power management interface according to the fourth control instruction; query the management options of the memory in the power management interface, and enable the power management function of the memory in the management options, so as to obtain the power consumption of the memory at different time periods through the power management function.
[0119] In an exemplary embodiment, the setup module 72 is further configured to acquire the memory slot and the processor pin definitions, and determine the target connection method based on the pin definitions; and establish a connection between the clock enable signal corresponding to the memory slot and the input / output signal of the processor according to the target connection method.
[0120] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0121] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.
[0122] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0123] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0124] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0125] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0126] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0127] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A power consumption control method, characterized in that, include: Establish communication connections between the clock enable signal corresponding to the memory slot and the processor's input / output signals; Once the communication connection has been successfully established, control options are set for the clock enable signal, wherein different options correspond to different level states of the clock enable signal; The power consumption of the memory can be controlled by controlling the level of the clock enable signal through the control options. In this process, when the user has been redirected to the first interface, a second control command is received, and the setting information corresponding to the clock enable signal is determined in the first interface according to the second control command. The setting information includes: indication information of the setting options for the clock enable signal; wherein, the first interface is the setting interface of the BIOS system, and the first control command is a specific key pressed by the target object on the input device, the input device including: a keyboard; the specific key is F2, F10, F12, ESC or DEL key; Enable the clock enable signal setting option according to the setting information; In the settings options, the name of the control option and the option content of the control option are set for the clock enable signal according to preset rules.
2. The method according to claim 1, characterized in that, After setting control options for the clock enable signal, and before controlling the level state of the clock enable signal through the control options, the method further includes: Confirm the current option content of the control options; The level state of the input / output signal is determined according to the current option content, so as to control the level state of the clock enable signal according to the level state of the input / output signal.
3. The method according to claim 1, characterized in that, Controlling the level state of the clock enable signal through the control options includes: Read the option content corresponding to the control option; When the option corresponding to the control option is enabled, the level of the clock enable signal is set to high. When the option corresponding to the control option is turned off, the level of the clock enable signal is low.
4. The method according to claim 1, characterized in that, If the connection has been successfully established, set control options for the clock enable signal, including: Receive a first control command and jump to the first interface according to the instruction information of the first interface indicated in the first control command; When the user has been redirected to the first interface, a second control instruction is received, and the setting information corresponding to the clock enable signal is determined in the first interface according to the second control instruction. The setting information includes: indication information of the setting options for the clock enable signal. Enable the clock enable signal setting option according to the setting information; In the settings options, the name of the control option and the option content of the control option are set for the clock enable signal according to preset rules; If the control option has been successfully set, a third control command is received, and the user returns to the initial interface corresponding to the first interface according to the third control command, so that the control option takes effect.
5. The method according to claim 1, characterized in that, Controlling the level of the clock enable signal through the control options to control the power consumption of the memory includes: When the clock enable signal is at a high level, the memory corresponding to the clock enable signal is instructed to perform data storage and conversion, thereby increasing the power consumption of the memory. When the clock enable signal is at a low level, the memory corresponding to the clock enable signal is instructed to stop data storage and conversion, so as to reduce the power consumption of the memory.
6. The method according to claim 1, characterized in that, After controlling the power consumption of the memory, the method further includes: Receive the fourth control command and jump to the power management interface according to the fourth control command; In the power management interface, query the memory management options and enable the power management function of the memory to obtain the power consumption of the memory at different times.
7. The method according to claim 1, characterized in that, Establish communication connections between the clock enable signal corresponding to the memory slot and the processor's input / output signals, including: Obtain the memory slot and the pin definitions of the processor, and determine the target connection method based on the pin definitions; Establish a connection between the clock enable signal corresponding to the memory slot and the input / output signal of the processor according to the target connection method.
8. A power consumption control device, characterized in that, include: Establish a module to establish communication connections between the clock enable signal corresponding to the memory slot and the input / output signals of the processor; The setting module is used to set control options for the clock enable signal when the communication connection has been successfully established, wherein different options of the control options correspond to different level states of the clock enable signal; A control module is used to control the level state of the clock enable signal through the control options, so as to control the power consumption of the memory; In this process, when the user has been redirected to the first interface, a second control command is received, and the setting information corresponding to the clock enable signal is determined in the first interface according to the second control command. The setting information includes: indication information of the setting options for the clock enable signal; wherein, the first interface is the setting interface of the BIOS system, and the first control command is a specific key pressed by the target object on the input device, the input device including: a keyboard; the specific key is F2, F10, F12, ESC or DEL key; Enable the clock enable signal setting option according to the setting information; In the settings options, the name of the control option and the option content of the control option are set for the clock enable signal according to preset rules.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Server power consumption limiting method, system and device and medium
CN111352497A
A method and a apparatus of saving operating powerconsumption on sdram for processor
KR1020060042807A
