Dynamic adjustment method and device for power consumption of memory, server and storage medium

By dynamically adjusting the power consumption level of the memory, and increasing or reducing power consumption step by step according to the needs of read and write instructions, the problem of excessive power consumption in non-read and write-intensive scenarios is solved, and more efficient energy management is achieved.

CN119882979APending Publication Date: 2025-04-25YEESTOR MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411986526.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

Traditional memory power consumption management relies on static configuration, resulting in excessive power consumption in non-read-write-intensive scenarios, resulting in energy waste and heating problems.

Method used

By generating a set of power consumption levels of the memory, and increasing the power consumption of the memory step by step when receiving read and write instructions, and executing read and write instructions; when detecting that the memory is in an idle state, the power consumption of the memory is gradually reduced.

Benefits of technology

It realizes flexible control of power consumption levels based on actual reading and writing needs, effectively reducing non-essential energy consumption, and avoiding energy waste and heating problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119882979A_ABST
    Figure CN119882979A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of semiconductors, and discloses a dynamic adjustment method and device for power consumption of a memory, a server and a storage medium. The method comprises the steps of generating a power consumption level set corresponding to a memory; when a read-write instruction is received, increasing the power consumption of the memory step by step according to the power consumption level set, and executing the read-write instruction; and when detecting that the memory is in an idle state, reducing the power consumption of the memory step by step according to the power consumption level set. When it is detected that the memory processes the read-write instruction, the power consumption of the memory is increased step by step according to the preset power consumption level set, when it is detected that the memory is in the idle state, namely no read-write instruction is executed, the power consumption of the memory is reduced step by step according to the same power consumption level set, and unnecessary energy consumption is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of semiconductor technology, and in particular to a method, device, server and storage medium for dynamically adjusting memory power consumption. Background Art

[0002] In embedded memory device applications, power consumption management is critical. In most scenarios, read and write operations are intermittent and small in number, and maximum performance is not required. Excessive power consumption leads to energy waste and heat generation problems.

[0003] Traditional power management relies on static configuration, which will lead to excessive power consumption in non-read-write intensive scenarios. A new technical means is needed to solve the above technical problems. Summary of the invention

[0004] The main purpose of the present invention is to solve the technical problem that traditional power consumption management relies on static configuration, which leads to excessive power consumption in non-read-write intensive scenarios.

[0005] A first aspect of the present invention provides a method for dynamically adjusting memory power consumption, the method comprising:

[0006] Generate a power consumption level set corresponding to the memory;

[0007] When receiving a read / write instruction, the power consumption of the memory is gradually increased according to the power consumption level set, and the read / write instruction is executed;

[0008] When it is detected that the memory is in an idle state, the power consumption of the memory is reduced step by step according to the power consumption level set.

[0009] Optionally, in a first implementation of the first aspect of the present invention, when receiving the read / write instruction, the step of gradually increasing the power consumption of the memory according to the power consumption level set includes:

[0010] After receiving the read / write instruction, determining whether the current power consumption of the memory meets the execution requirement of the read / write instruction;

[0011] If the current power consumption does not meet the execution requirement, the power consumption of the memory is gradually increased according to the power consumption level set.

[0012] Optionally, in a second implementation manner of the first aspect of the present invention, when detecting that the memory is in an idle state, the step of gradually reducing the power consumption of the memory according to the power consumption level set includes:

[0013] When the memory is detected to be in an idle state, determining whether the idle time exceeds a preset time threshold;

[0014] If the idle time exceeds the duration threshold, the power consumption of the memory is gradually reduced from a current power consumption level to a next power consumption level according to the power consumption level set.

[0015] Optionally, in a third implementation manner of the first aspect of the present invention, the step of generating a power consumption level set corresponding to the memory includes:

[0016] According to the parameter information of the memory, a plurality of power consumption levels are set to obtain the power consumption level set.

[0017] Optionally, in a fourth implementation manner of the first aspect of the present invention, the step of setting a plurality of power consumption levels according to the parameter information of the memory includes:

[0018] Periodically collecting the parameter information of the memory, the parameter information including memory type, memory capacity, memory operating frequency, and expected service life;

[0019] generating a power consumption interval according to the parameter information;

[0020] A plurality of the power consumption levels are selected in the power consumption interval.

[0021] Optionally, in a fifth implementation manner of the first aspect of the present invention, the step of generating a power consumption interval according to the parameter information includes:

[0022] The parameter information is input into a pre-trained neural network model to obtain the minimum possible power consumption and the maximum possible power consumption output by the neural network model to obtain the power consumption range.

[0023] Optionally, in a sixth implementation manner of the first aspect of the present invention, after the step of executing the read-write instruction, the method further includes:

[0024] monitoring the temperature of the storage device in real time;

[0025] If the temperature exceeds a preset safety threshold, the power consumption of the memory is reduced according to the power consumption level set.

[0026] Optionally, in a seventh implementation manner of the first aspect of the present invention, when the read / write instruction is received, the step of gradually increasing the power consumption of the memory according to the power consumption level set includes:

[0027] When receiving a read / write instruction, evaluating the data processing scale of the read / write instruction;

[0028] Determining, according to the data processing scale, a starting power consumption level corresponding to the read / write instruction in the power consumption level set;

[0029] The power consumption of the memory is increased step by step according to the starting power consumption level and the power consumption level set.

[0030] In a second aspect, an embodiment of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned method for dynamically adjusting the memory power consumption when executing the computer program.

[0031] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for dynamically adjusting the power consumption of the memory are implemented.

[0032] In a fourth aspect, an embodiment of the present invention provides a computer program product. When the computer program product is executed on a terminal device, the terminal device executes the above-mentioned method for dynamically adjusting memory power consumption.

[0033] The beneficial effects of the embodiments of the present invention compared with the prior art are: generating a power consumption level set corresponding to the memory; when receiving a read / write instruction, the power consumption of the memory is gradually increased according to the power consumption level set, and the read / write instruction is executed; when the memory is detected to be in an idle state, the power consumption of the memory is gradually reduced according to the power consumption level set. By dynamically adjusting the power consumption mechanism of the memory, a mechanism for flexibly controlling the power consumption level according to actual read / write requirements is implemented. Specifically, when it is detected that the memory is processing a read / write instruction, the power consumption of the memory will be gradually increased according to a pre-set power consumption level set. When it is detected that the memory is in an idle state, that is, no read / write instruction is executed, the power consumption of the memory will be gradually reduced according to the same power consumption level set, effectively reducing unnecessary energy consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0035] Figure 1 A schematic diagram of an embodiment of a method for dynamically adjusting memory power consumption in an embodiment of the present invention;

[0036] Figure 2 A schematic diagram of a specific embodiment of step S101 of the method for dynamically adjusting memory power consumption in an embodiment of the present invention;

[0037] Figure 3A schematic diagram of a specific embodiment of step S101 of the method for dynamically adjusting memory power consumption in an embodiment of the present invention;

[0038] Figure 4 A schematic diagram of a specific embodiment of step S1011 of the method for dynamically adjusting memory power consumption in an embodiment of the present invention;

[0039] Figure 5 The figure is a schematic diagram of an embodiment of a terminal device in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are protected by the present invention.

[0041] It should be noted that the terms "include", "comprises" and "have" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, terminal, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. In the claims, specifications and drawings of the present invention, relational terms such as "first" and "second" are merely used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such real-time relationship or order between these entities / operations / objects.

[0042] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0043] In embedded memory device applications, power consumption management is critical. In most scenarios, read and write operations are intermittent and small in number, and maximum performance is not required. Excessive power consumption leads to energy waste and heat generation problems.

[0044] Traditional power management relies on static configuration, which will lead to excessive power consumption in non-read-write intensive scenarios. A new technical means is needed to solve the above technical problems.

[0045] In view of this, an embodiment of the present invention provides a method for dynamically adjusting memory power consumption, a terminal device, and a storage medium. By dynamically adjusting the power consumption mechanism of the memory, a mechanism for flexibly controlling the power consumption level according to actual read and write requirements is implemented. Specifically, when it is detected that the memory processes a read or write instruction, the power consumption of the memory is gradually increased according to a pre-set power consumption level set. When it is detected that the memory is in an idle state, that is, no read or write instruction is executed, the power consumption of the memory is gradually reduced according to the same power consumption level set, effectively reducing unnecessary energy consumption.

[0046] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.

[0047] The professional terms involved in the embodiments of the present invention include but are not limited to:

[0048] Power consumption level set: refers to a set of preset power consumption levels used as reference or target values ​​when dynamically adjusting memory power consumption.

[0049] Read and write instructions: instructions for reading or writing to memory. Usually issued by a processor or other device to access or modify data in memory.

[0050] Idle state: refers to the state in which the memory is not currently executing any read or write instructions or data processing tasks.

[0051] Parameter information: refers to information describing the characteristics of the memory, such as type, capacity, operating frequency, expected service life, etc. It is usually used to determine the power consumption level or adjustment strategy of the memory.

[0052] Power consumption range: refers to the range of power consumption that the memory may consume, which is determined by the minimum possible power consumption and the maximum possible power consumption. It is used to determine the appropriate power consumption level when dynamically adjusting power consumption.

[0053] Neural network model: an algorithm model based on artificial intelligence that can identify and process complex data relationships through learning and training. In the present invention, the neural network model is used to predict the power consumption range of the memory based on its parameter information.

[0054] Safety threshold: refers to the maximum allowable value of the memory temperature or other key parameters. If the temperature exceeds this threshold, it will have an adverse effect on the reliability of the memory.

[0055] Data processing scale: refers to the amount of data or the complexity of the processing task involved in the read and write instructions. It can be used to determine the power consumption level required when executing read and write instructions.

[0056] Figure 1The present invention provides a schematic diagram of a method for dynamically adjusting memory power consumption, which can be applied to a terminal device, such as a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, etc.

[0057] Specifically, the above-mentioned method for dynamically adjusting memory power consumption may include the following steps S101 to S103.

[0058] Step S101, generating a power consumption level set corresponding to the memory;

[0059] In an embodiment of the present invention, when the system configuration is changed, detailed information of the memory is collected.

[0060] Based on the collected data, a predefined algorithm is applied to generate multiple power consumption levels. The algorithm can comprehensively consider factors such as the hardware specifications, performance requirements, thermal conditions, and expected service life of the memory to determine the appropriate number of power consumption levels (set to n levels) and specific parameters of each level (such as voltage, current, power consumption, etc.).

[0061] Optionally, collect detailed usage data of the storage (such as the number of read and write times, data volume, and operation type). Record the temperature and humidity of the storage operating environment. Input the specific specifications of the storage. Extract key features from the collected data (such as read and write frequency, high-temperature operation frequency, etc.). Use machine learning methods to build a life prediction model, using feature data as input to predict the remaining life of the storage. Receive the latest data in real time and evaluate the current remaining life of the storage through the trained model.

[0062] Optionally, multiple power consumption levels are periodically set according to the parameter information of the memory. By periodically setting multiple power consumption levels according to the parameter information of the memory, it is possible to dynamically adapt to changes in memory performance and usage environment. As the memory ages or the working conditions change, its power consumption requirements will also change accordingly. Regularly updating the power consumption level set can ensure that the power consumption adjustment strategy is always consistent with the actual state of the memory.

[0063] According to the output results of the algorithm, specific parameter values ​​are set for each power consumption level, and these parameter values ​​are stored in the system configuration file.

[0064] Periodically check the status and performance indicators of the memory, including temperature, read / write speed, error rate, etc. Based on the latest status information and performance indicators, evaluate whether the power consumption level set needs to be adjusted. If adjustment is required, reapply the algorithm to generate a new power consumption level set based on the current hardware status, performance requirements, and heat dissipation conditions, and update the parameter values ​​in the system configuration file.

[0065] Step S102: when a read / write instruction is received, the power consumption of the memory is gradually increased according to the power consumption level set, and the read / write instruction is executed;

[0066] In an embodiment of the present invention, after receiving a read or write instruction, the content of the instruction and the target memory are parsed to determine the type of operation to be performed and the amount of data involved. Based on the parsed instruction information and the power consumption level of the current memory, it is evaluated whether the current power consumption is sufficient to support the execution of the instruction. The evaluation can be based on the type of instruction (such as read, write, erase, etc.), the amount of data, and the current state of the memory (such as temperature, remaining life, etc.).

[0067] If the current power consumption level is not enough to meet the needs of the instruction, the power consumption is gradually increased according to the preset power consumption level set, which means increasing the parameter values ​​such as voltage or current to improve the performance and response speed of the memory.

[0068] Starting from the current power consumption level, the system gradually increases to the next higher power consumption level until the requirements of the instructions are met. During the increase process, the memory status and performance indicators are continuously monitored to ensure that the adjusted power consumption level meets the requirements of the instructions without causing damage to the memory.

[0069] After the power consumption adjustment is completed, the power consumption and performance of the memory are continuously monitored to ensure that the instructions can be executed smoothly. If the power consumption or performance fluctuates abnormally, real-time adjustments are made.

[0070] After the power consumption is adjusted to an appropriate level, the read and write operations begin. During the execution, the memory status and performance indicators are continuously monitored to ensure that the operation can proceed smoothly.

[0071] Step S103: When it is detected that the memory is in an idle state, the power consumption of the memory is reduced step by step according to the power consumption level set.

[0072] In an embodiment of the present invention, when no read or write instructions are executed, the idle state of the memory is periodically detected. This can be achieved by monitoring the read or write request queue or access frequency of the memory. If no read or write request is received for a period of time or the access frequency is extremely low, the memory is considered to be in an idle state.

[0073] Optionally, the time during which the memory is in an idle state is recorded and compared with a preset time threshold. If the idle time exceeds the threshold (eg, 5 minutes), the power consumption reduction process is entered.

[0074] Starting from the current power consumption level, the power consumption is gradually reduced according to the power consumption level set. This means reducing the parameter values ​​such as voltage or current to reduce the power consumption and heat generation of the memory.

[0075] In the process of reducing power consumption, ensure that the memory can still maintain a certain performance and response speed. When the power consumption is reduced to the lowest power consumption level or a suitable low power consumption state, stop further reducing the power consumption.

[0076] The beneficial effects of the embodiments of the present invention compared with the prior art are: generating a power consumption level set corresponding to the memory; when receiving a read / write instruction, the power consumption of the memory is gradually increased according to the power consumption level set, and the read / write instruction is executed; when the memory is detected to be in an idle state, the power consumption of the memory is gradually reduced according to the power consumption level set. By dynamically adjusting the power consumption mechanism of the memory, a mechanism for flexibly controlling the power consumption level according to actual read / write requirements is implemented. Specifically, when it is detected that the memory is processing a read / write instruction, the power consumption of the memory will be gradually increased according to a pre-set power consumption level set. When it is detected that the memory is in an idle state, that is, no read / write instruction is executed, the power consumption of the memory will be gradually reduced according to the same power consumption level set, effectively reducing unnecessary energy consumption.

[0077] Traditional power management mainly relies on static configuration, which may lead to excessive power consumption in non-read-write intensive scenarios. Excessive power consumption not only wastes energy, but may also cause overheating of memory and other system components, thereby affecting their performance and life. Based on this, the present invention proposes an optional embodiment.

[0078] Reference Figure 2 , Figure 2 This is a schematic diagram of a specific embodiment of step S101 of the method for dynamically adjusting memory power consumption in an embodiment of the present invention. Step S102 also includes the following specific implementation methods:

[0079] Step S1021: after receiving the read / write instruction, determine whether the current power consumption of the memory meets the execution requirement of the read / write instruction;

[0080] In an embodiment of the present invention, when a read or write instruction for a memory is received, the power consumption state of the current memory is detected to determine whether it meets the power consumption requirement of the read or write instruction to be executed. This can be achieved by reading the power consumption register or state information of the memory and comparing it with the preset power consumption requirement.

[0081] If the current power consumption does not meet the execution requirements of the read and write instructions, power consumption adjustment is performed.

[0082] Otherwise, the read and write instructions are executed directly without further adjustment.

[0083] Step S1022: If the current power consumption does not meet the execution requirement, the power consumption of the memory is increased step by step according to the power consumption level set.

[0084] In an embodiment of the present invention, the power consumption of the memory is gradually increased from the current power consumption level according to the power consumption level set. The power consumption level adjustment can be achieved by adjusting the power management settings, clock frequency or other related parameters of the memory.

[0085] In the embodiment of the present invention, by determining whether the current power consumption meets the demand before increasing the power consumption, it is possible to avoid unnecessary power consumption increase when it is already sufficient, thereby saving energy and reducing heat. Power consumption adjustment can enable the memory to operate at an optimal power consumption level during read and write operations. Gradually adjusting the power consumption can reduce the risk of instability caused by sudden changes in power consumption.

[0086] In non-read-write intensive scenarios, the memory is in a high power consumption state for a long time, resulting in energy waste and heating problems. This not only increases the operating cost of the system, but also affects the performance and life of the memory. Based on this, the present invention proposes an optional embodiment.

[0087] Reference Figure 3 , Figure 3 This is a schematic diagram of a specific embodiment of step S101 of the method for dynamically adjusting memory power consumption in an embodiment of the present invention. Step S103 also includes the following specific implementation methods:

[0088] Step S1031: when the memory is detected to be in an idle state, determine whether the idle time exceeds a preset time threshold;

[0089] In an embodiment of the present invention, the state of the memory is monitored, including the frequency and duration of the read and write operations. When it is detected that the memory has not received any read and write instructions for a period of time, it is determined that the memory enters an idle state.

[0090] The time when the memory enters the idle state is recorded and kept counted. For example, a time threshold is preset internally to determine whether the memory idle time is long enough to trigger the power consumption reduction operation.

[0091] Step S1032: If the idle time exceeds the duration threshold, the power of the memory is gradually reduced from the current power consumption level to the next power consumption level according to the power consumption level set.

[0092] In an embodiment of the present invention, when the idle time exceeds a preset time threshold, the next lower power consumption level is selected from the power consumption level set according to the current power consumption level of the memory.

[0093] After the power consumption adjustment is completed, the power consumption level state of the memory is updated, and the state of the memory continues to be monitored to prepare for the next power consumption adjustment.

[0094] In the embodiment of the present invention, by introducing the idle time judgment and the mechanism of gradually reducing power consumption, when the memory is in an idle state, the power consumption is gradually reduced, thereby reducing unnecessary energy waste. Reducing power consumption helps to reduce the heat generated by the memory, extend the service life of the memory, and reduce the overall heat dissipation requirements of the system.

[0095] Traditional memory power consumption management methods often adopt a static approach, that is, simple switch control is performed according to a preset power consumption threshold. Lack of flexibility, unable to dynamically adjust power consumption according to the actual usage of the memory. Without full consideration of memory parameter information, the set power consumption level may be unreasonable, resulting in a balance between performance and power consumption being broken. For example, a power consumption level that is too high may lead to increased energy consumption, while a power consumption level that is too low may affect the performance of the memory. Based on this, the present invention proposes an optional embodiment.

[0096] Step S101 also includes the following specific implementations:

[0097] Step S1011, setting multiple power consumption levels according to parameter information of the memory to obtain a power consumption level set.

[0098] In an embodiment of the present invention, multiple power consumption levels are set based on the collected parameter information. The levels cover the power consumption requirements of the memory under different workloads, while considering the balance between energy efficiency and performance. The set multiple power consumption levels are integrated into a power consumption level set for subsequent dynamic adjustment of power consumption. The memory types include but are not limited to DDR4, SSD, HDD, and the operating frequency includes but is not limited to read and write speed, clock frequency, etc.

[0099] In the embodiment of the present invention, the power consumption level is set according to the actual parameter information of the memory, so that the memory can reduce the power consumption as much as possible while meeting the performance requirements, thereby improving the overall energy efficiency. In addition, the setting of the power consumption level set has a certain flexibility and can be dynamically adjusted according to the dynamically changing memory parameter information, thereby further improving the stability of the memory operation.

[0100] Based on the problems existing in the above-mentioned optional embodiment, the present invention also proposes an optional embodiment.

[0101] Reference Figure 4 , Figure 4 Schematic diagram of a specific embodiment of step S1011 of the method for dynamically adjusting memory power consumption in an embodiment of the present invention. Step S1011 also includes the following specific implementation methods:

[0102] Step S10111, periodically collecting parameter information of the memory, the parameter information including memory type, memory capacity, memory operating frequency, and expected service life;

[0103] In an embodiment of the present invention, key parameter information of the memory is collected periodically (e.g., at regular intervals). The parameters may include the type of memory (e.g., DDR4, LPDDR5, etc.), capacity (e.g., 8GB, 16GB, etc.), operating frequency (e.g., 2400MHz, 3200MHz, etc.), and expected service life.

[0104] Step S10112, generating a power consumption interval according to the parameter information;

[0105] After the parameter information is collected, a power consumption interval is generated based on the parameter information.

[0106] Optionally, the parameter information is input into a pre-trained neural network model to obtain the minimum possible power consumption and the maximum possible power consumption output by the neural network model to obtain the power consumption range.

[0107] Specifically, key parameter information of the memory is collected, including but not limited to memory type (such as DDR4, LPDDR5, etc.), memory capacity (such as 8GB, 16GB, etc.), memory operating frequency (such as 2400MHz, 3200MHz, etc.) and expected service life, etc. These parameter information will be used as input for the neural network model.

[0108] A neural network model is pre-trained, and the neural network model has learned how to predict the minimum possible power consumption and the maximum possible power consumption of the memory according to the parameter information of the memory. The neural network model can be a multi-layer perceptron (MLP), a convolutional neural network (CNN), or other types of neural networks, which are not limited here.

[0109] The collected memory parameter information is passed as input to a pre-trained neural network model, which performs forward propagation calculations based on the input parameters to predict the minimum and maximum possible power consumption of the memory.

[0110] Among them, using a pre-trained neural network model to predict the minimum and maximum possible power consumption of the memory can improve the accuracy of the prediction. Compared with the traditional rule-based prediction method, the neural network model can learn more complex nonlinear relationships, thereby predicting power consumption more accurately. In addition, the neural network model can also adapt to different types of memory and different parameter combinations, with high flexibility.

[0111] Step S10113: Select multiple power consumption levels in the power consumption range.

[0112] After determining the power consumption range, multiple power consumption levels can be selected within this range. The power consumption level can cover the power consumption requirements of the memory under different workloads, while providing enough flexibility to adapt to different performance requirements. When selecting the power consumption level, factors such as the energy efficiency, performance, and thermal management of the memory can be considered.

[0113] In an embodiment of the present invention, multiple power consumption levels are set based on the collected parameter information. The levels cover the power consumption requirements of the memory under different workloads, while considering the balance between energy efficiency and performance. The set multiple power consumption levels are integrated into a power consumption level set for subsequent dynamic adjustment of power consumption. The memory types include but are not limited to DDR4, SSD, HDD, and the operating frequency includes but is not limited to read and write speed, clock frequency, etc.

[0114] In the embodiment of the present invention, by dynamically setting the power consumption level according to the actual parameter information of the memory, the memory can reduce the power consumption as much as possible while meeting the performance requirements, thereby improving energy efficiency. In addition, the setting of the power consumption level can be adjusted according to the different characteristics of the memory, providing a more flexible and personalized power consumption management method.

[0115] Traditional power consumption management mainly relies on static configuration and cannot dynamically adjust power consumption according to the actual usage of the memory or environmental conditions. This leads to excessive power consumption in non-read-write intensive scenarios, energy waste and overheating risks. Based on this, the present invention proposes an optional embodiment.

[0116] Step S103 and the following specific implementations are also included:

[0117] Step S201, real-time monitoring of the temperature of the memory;

[0118] Step S202: If the temperature exceeds a preset safety threshold, the power consumption of the memory is reduced according to the power consumption level set.

[0119] Specifically, the temperature sensor collects the temperature data of the memory periodically or continuously and sends it to the monitoring module or processor of the system. After receiving the temperature data, the monitoring module or processor compares it with the preset safety threshold. The safety threshold can be pre-set according to factors such as the specifications of the memory, the working environment and the heat dissipation conditions.

[0120] If the temperature exceeds the safety threshold, the power consumption of the memory is reduced. Based on the previously generated power consumption level set, the next lower power consumption level is selected and the power consumption of the memory is gradually reduced to this level.

[0121] In the embodiment of the present invention, the temperature of the memory is monitored in real time and the power consumption is adjusted when necessary, so as to prevent the system crash or data loss caused by overheating.

[0122] Traditional power management methods are usually configured according to the maximum power consumption requirement of the memory. Since the power consumption cannot be adjusted according to actual requirements, the traditional methods often lead to excessive power consumption in non-read-write intensive scenarios, resulting in energy waste. Based on this, the present invention proposes an optional embodiment.

[0123] Step S103 and the following specific implementations are also included:

[0124] Step S201: upon receiving a read / write instruction, evaluating the data processing scale of the read / write instruction;

[0125] Specifically, after receiving a read or write instruction, the data processing scale of the instruction is evaluated, which can be achieved by analyzing parameters such as the data size specified in the instruction, the complexity of the read or write operation, or the expected data throughput.

[0126] Step S202: Determine the starting power consumption level corresponding to the read and write instructions in the power consumption level set according to the data processing scale;

[0127] Specifically, according to the data processing scale obtained through evaluation, a suitable starting power consumption level is selected from a predefined power consumption level set.

[0128] Step S203: increasing the power consumption of the memory step by step according to the initial power consumption level and the power consumption level set.

[0129] Specifically, starting from the selected starting power consumption level, the power consumption of the memory is gradually increased until the minimum power consumption level required for executing the read and write instructions is reached.

[0130] In the embodiment of the present invention, the power consumption is dynamically adjusted according to the data processing scale of the read and write instructions, thereby avoiding unnecessary power consumption waste and improving the overall energy efficiency.

[0131] like Figure 5 As shown, it is a schematic diagram of a terminal device provided by an embodiment of the present invention. The terminal device 5 may include: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501, such as a dynamic adjustment program for memory power consumption. When the processor 501 executes the computer program 503, the steps in the above-mentioned embodiments of dynamic adjustment of memory power consumption are implemented.

[0132] The computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 502 and executed by the processor 501 to complete the present invention. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.

[0133] The terminal device may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 It is only an example of a terminal device and does not constitute a limitation of the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0134] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0135] The memory 502 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory 502 may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Further, the memory 502 may also include both an internal storage unit of the terminal device and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the terminal device. The memory 502 may also be used to temporarily store data that has been output or is to be output.

[0136] It should be noted that, for the convenience and brevity of description, the structure of the above-mentioned terminal device can also refer to the specific description of the structure in the method embodiment, which will not be repeated here.

[0137] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method for dynamically adjusting memory power consumption can be implemented.

[0138] An embodiment of the present invention provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method for dynamically adjusting memory power consumption when executing the computer program product.

[0139] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0140] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0141] In the embodiments provided by the present invention, it should be understood that the disclosed terminal devices and methods can be implemented in other ways. For example, the terminal device embodiments described above are only exemplary. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0142] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0143] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0144] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0145] The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above-described embodiments, a person skilled in the art should understand that the technical solutions described in the above-described embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A method for dynamically adjusting memory power consumption, characterized in that: The method for dynamically adjusting memory power consumption includes: Generate a power consumption level set corresponding to the memory; When receiving a read / write instruction, the power consumption of the memory is gradually increased according to the power consumption level set, and the read / write instruction is executed; When it is detected that the memory is in an idle state, the power consumption of the memory is reduced step by step according to the power consumption level set.

2. The method for dynamically adjusting memory power consumption according to claim 1, characterized in that: When the read / write instruction is received, the step of gradually increasing the power consumption of the memory according to the power consumption level set includes: After receiving the read / write instruction, determining whether the current power consumption of the memory meets the execution requirement of the read / write instruction; If the current power consumption does not meet the execution requirement, the power consumption of the memory is gradually increased according to the power consumption level set.

3. The method for dynamically adjusting memory power consumption according to claim 1, characterized in that: When the memory is detected to be in an idle state, the step of gradually reducing the power consumption of the memory according to the power consumption level set comprises: When the memory is detected to be in an idle state, determining whether the idle time exceeds a preset time threshold; If the idle time exceeds the duration threshold, the power consumption of the memory is gradually reduced from a current power consumption level to a next power consumption level according to the power consumption level set.

4. The method for dynamically adjusting memory power consumption according to claim 1, characterized in that: The step of generating a power consumption level set corresponding to the memory comprises: According to the parameter information of the memory, a plurality of power consumption levels are set to obtain the power consumption level set.

5. The method for dynamically adjusting memory power consumption according to claim 4, characterized in that: The step of setting a plurality of power consumption levels according to the parameter information of the memory includes: Periodically collecting the parameter information of the memory, the parameter information including memory type, memory capacity, memory operating frequency, and expected service life; generating a power consumption interval according to the parameter information; A plurality of the power consumption levels are selected in the power consumption interval.

6. The method for dynamically adjusting memory power consumption according to claim 5, characterized in that: The step of generating a power consumption interval according to the parameter information includes: The parameter information is input into a pre-trained neural network model to obtain the minimum possible power consumption and the maximum possible power consumption output by the neural network model to obtain the power consumption range.

7. The method for dynamically adjusting memory power consumption according to claim 1, characterized in that: After the step of executing the read and write instructions, the method further includes: monitoring the temperature of the storage device in real time; If the temperature exceeds a preset safety threshold, the power consumption of the memory is reduced according to the power consumption level set.

8. The method for dynamically adjusting memory power consumption according to claim 1, characterized in that: When the read / write instruction is received, the step of gradually increasing the power consumption of the memory according to the power consumption level set includes: When receiving a read / write instruction, evaluating the data processing scale of the read / write instruction; Determining, according to the data processing scale, a starting power consumption level corresponding to the read / write instruction in the power consumption level set; The power consumption of the memory is increased step by step according to the starting power consumption level and the power consumption level set.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for dynamically adjusting memory power consumption as claimed in any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for dynamically adjusting memory power consumption as claimed in any one of claims 1 to 8 are implemented.