[go: up one dir, main page]

CN116679877A - Memory, power consumption management method, electronic device and readable storage medium - Google Patents

Memory, power consumption management method, electronic device and readable storage medium Download PDF

Info

Publication number
CN116679877A
CN116679877A CN202310640628.7A CN202310640628A CN116679877A CN 116679877 A CN116679877 A CN 116679877A CN 202310640628 A CN202310640628 A CN 202310640628A CN 116679877 A CN116679877 A CN 116679877A
Authority
CN
China
Prior art keywords
storage
module
particles
memory
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310640628.7A
Other languages
Chinese (zh)
Inventor
张劭东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310640628.7A priority Critical patent/CN116679877A/en
Publication of CN116679877A publication Critical patent/CN116679877A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0625Power saving in storage systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3275Power saving in memory, e.g. RAM, cache
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3296Power saving characterised by the action undertaken by lowering the supply or operating voltage
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0634Configuration or reconfiguration of storage systems by changing the state or mode of one or more devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本申请公开了一种存储器、功耗管理方法、电子设备及可读存储介质,属于存储器领域。该存储器包括电源模块、N个数据通道、存储模块和开关模块;数据通道和处理模块连接以传输数据,存储模块中包括与N个数据通道一一对应的N个存储单元,存储单元中包括至少一个存储颗粒,存储颗粒的数据端口与对应的数据通道连接;存储颗粒的电源端口通过开关模块与电源模块连接,开关模块用于控制存储模块中的存储颗粒的工作状态。

The application discloses a memory, a power consumption management method, an electronic device and a readable storage medium, which belong to the field of memory. The memory includes a power supply module, N data channels, a storage module and a switch module; the data channel and the processing module are connected to transmit data, and the storage module includes N storage units corresponding to the N data channels one by one, and the storage unit includes at least A storage particle, the data port of the storage particle is connected to the corresponding data channel; the power port of the storage particle is connected to the power module through a switch module, and the switch module is used to control the working state of the storage particle in the storage module.

Description

存储器、功耗管理方法、电子设备及可读存储介质Memory, power consumption management method, electronic device and readable storage medium

技术领域technical field

本申请属于存储器技术领域,具体涉及一种存储器、功耗管理方法、电子设备及可读存储介质。The present application belongs to the technical field of memory, and in particular relates to a memory, a method for managing power consumption, electronic equipment, and a readable storage medium.

背景技术Background technique

目前,电子设备所使用的运行存储器通常设置有多个数据通道,电子设备的应用处理器可以通过多个数据通道同时访问运行存储器,访问带宽大,还可以对多位数据同时进行读取和写入。在运行存储器处于工作状态的情况下,运行存储器内部的所有存储颗粒均处于工作状态,以使运行存储器持续处于最高性能状态,然而,运行存储器内部的所有存储颗粒均工作,会导致运行存储器的功耗量较大,影响电子设备的续航时长。At present, the operating memory used by electronic devices is usually provided with multiple data channels. The application processor of the electronic device can simultaneously access the operating memory through multiple data channels. The access bandwidth is large, and it can also read and write multiple bits of data at the same time. enter. When the running memory is in the working state, all the storage particles inside the running memory are in the working state, so that the running memory can continue to be in the highest performance state. However, all the storage particles inside the running memory are working, which will lead to High power consumption affects the battery life of electronic devices.

发明内容Contents of the invention

本申请实施例的目的是提供一种存储器、功耗管理方法、电子设备及可读存储介质,能够解决现有存储器在工作状态下功耗量较大,影响电子设备的续航时长的问题。The purpose of the embodiments of the present application is to provide a memory, a power consumption management method, an electronic device, and a readable storage medium, which can solve the problem that the existing memory consumes a large amount of power in a working state and affects the battery life of the electronic device.

第一方面,本申请实施例提供了一种存储器,该存储器包括:In a first aspect, an embodiment of the present application provides a memory, which includes:

电源模块;power module;

N个数据通道,所述数据通道和处理模块连接以传输数据,其中,N为正整数,且N≥2;N data channels, the data channels are connected to the processing module to transmit data, where N is a positive integer, and N≥2;

存储模块,所述存储模块中包括与N个所述数据通道一一对应的N个存储单元,所述存储单元中包括至少一个存储颗粒,所述存储颗粒的数据端口与对应的所述数据通道连接;以及,A storage module, the storage module includes N storage units corresponding to the N data channels one by one, the storage unit includes at least one storage particle, and the data port of the storage particle corresponds to the corresponding data channel connection; and,

开关模块,所述存储颗粒的电源端口通过所述开关模块与所述电源模块连接,所述开关模块用于控制所述存储模块中的存储颗粒的工作状态。A switch module, through which the power port of the storage particle is connected to the power module, and the switch module is used to control the working state of the storage particle in the storage module.

第二方面,本申请实施例提供了一种功耗管理方法,该方法包括:获取所述存储器的所述存储模块的内存占用量;In a second aspect, an embodiment of the present application provides a power consumption management method, the method comprising: acquiring the memory usage of the storage module of the memory;

根据所述内存占用量确定是否需要将所述存储器切换为低功耗模式;determining whether the memory needs to be switched to a low power consumption mode according to the memory usage;

在需要将所述存储器切换为低功耗模式的情况下,控制所述开关模块断开所述存储模块中的目标存储颗粒与所述电源模块的连接。When the memory needs to be switched to a low power consumption mode, the switch module is controlled to disconnect the target memory particles in the memory module from the power supply module.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第二方面所述的方法的步骤。In the third aspect, the embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and the programs or instructions are processed by the implement the steps of the method as described in the second aspect when the controller is executed.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第二方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the second aspect are implemented .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第二方面所述的方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the second aspect the method described.

第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第二方面所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the second aspect.

在本申请实施例中,存储器包括电源模块、N个数据通道、存储模块和开关模块,存储模块包括与N个数据通道一一对应的N个存储单元,且每个存储单元中包括至少一个存储颗粒,存储颗粒的数据端口通过对应的数据通道与处理模块连接,存储颗粒的电源端口通过开关模块与电源模块连接;其中,开关模块用于控制存储模块中的存储颗粒工作状态,在存储器的内存占用量小于预设内存占用量的情况下,可以通过开关模块控制电源模块停止给存储模块中的部分存储颗粒停止供电,使部分存储颗粒关闭,存储器进入低功耗模式,有效减少了存储器的功耗量,延长了电子设备的续航时长。In the embodiment of the present application, the memory includes a power supply module, N data channels, a storage module and a switch module, the storage module includes N storage units corresponding to the N data channels one-to-one, and each storage unit includes at least one storage unit Particles, the data port of the storage particle is connected to the processing module through the corresponding data channel, and the power port of the storage particle is connected to the power module through the switch module; wherein, the switch module is used to control the working state of the storage particle in the storage module. When the occupied amount is less than the preset memory occupied amount, the power supply module can be controlled by the switch module to stop supplying power to some storage particles in the storage module, so that some storage particles are turned off, and the memory enters a low power consumption mode, which effectively reduces the power consumption of the memory. Power consumption prolongs the battery life of electronic devices.

附图说明Description of drawings

图1是本申请实施例提供的存储器的电路框图;FIG. 1 is a circuit block diagram of a memory provided by an embodiment of the present application;

图2是本申请实施例提供的第一种存储器的电路框图;FIG. 2 is a circuit block diagram of the first type of memory provided in the embodiment of the present application;

图3是本申请实施例提供的第二种存储器的电路框图;FIG. 3 is a circuit block diagram of a second type of memory provided in an embodiment of the present application;

图4是本申请实施例提供的功耗管理方法的流程示意图;FIG. 4 is a schematic flowchart of a power consumption management method provided in an embodiment of the present application;

图5为实现本申请实施例的电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein and that references to "first", "second", etc. to distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的存储器进行详细地说明。The memory provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.

本发明实施例提供一种存储器,应用于电子设备中,其中,该电子设备包括但不限于手机、平板等具有拍照和/或摄像功能的移动终端或者其它便携式电子设备。An embodiment of the present invention provides a memory, which is applied to an electronic device, wherein the electronic device includes but is not limited to a mobile terminal such as a mobile phone and a tablet having a camera and/or camera function, or other portable electronic devices.

请参见图1,本申请实施例公开了一种存储器的电路框图,该存储器包括电源模块101、数据通道102、存储模块103和开关模块104。Referring to FIG. 1 , an embodiment of the present application discloses a circuit block diagram of a memory, which includes a power supply module 101 , a data channel 102 , a storage module 103 and a switch module 104 .

所述数据通道102和处理模块105连接以传输数据,数据通道102的数量为N个,其中,N为正整数,且N≥2。The data channel 102 is connected to the processing module 105 to transmit data, and the number of the data channel 102 is N, where N is a positive integer, and N≧2.

存储模块103中包括与N个所述数据通道102一一对应的N个存储单元1031,所述存储单元1031中包括至少一个存储颗粒10311,所述存储颗粒10311的数据端口与对应的所述数据通道102连接。The storage module 103 includes N storage units 1031 corresponding to the N data channels 102 one-to-one, and the storage unit 1031 includes at least one storage particle 10311, and the data port of the storage particle 10311 corresponds to the corresponding data Channel 102 connects.

开关模块104,所述存储颗粒10311的电源端口通过所述开关模块104与所述电源模块101连接,所述开关模块104用于控制所述存储模块103中的存储颗粒10311的工作状态。A switch module 104 , the power port of the storage particle 10311 is connected to the power module 101 through the switch module 104 , and the switch module 104 is used to control the working state of the storage particle 10311 in the storage module 103 .

其中,电源模块101用于给存储模块103提供三组电压,三组电压分别为VDD1、VDD2和VDDQ,其中,VDD2又分为VDD2H和VDD2L;每个存储颗粒10311均通过对应的开关模块104与电源模块101连接,电源模块101能够给每个存储颗粒10311分别提供三组电压,以实现对存储颗粒10311进行供电。Wherein, the power supply module 101 is used to provide three sets of voltages to the storage module 103, and the three sets of voltages are VDD1, VDD2 and VDDQ, wherein, VDD2 is further divided into VDD2H and VDD2L; each storage particle 10311 is connected to The power module 101 is connected, and the power module 101 can respectively provide three sets of voltages to each storage particle 10311, so as to implement power supply to the storage particle 10311.

其中,存储颗粒10311(Die)是指芯片未封装前的晶粒,存储颗粒10311是从硅晶元用激光切割而成的小片,每一个存储颗粒10311就是一个独立的存储芯片。Wherein, the storage particle 10311 (Die) refers to the die before the chip is packaged, and the storage particle 10311 is a small piece cut from a silicon wafer by laser, and each storage particle 10311 is an independent memory chip.

其中,开关模块104包括至少一个MOS管,MOS管可以为NMOS管,也可以为PMOS管,本实施例对比不作具体限定。Wherein, the switch module 104 includes at least one MOS transistor, and the MOS transistor may be an NMOS transistor or a PMOS transistor, which is not specifically limited in this embodiment.

其中,处理模块105例如可以是应用处理器。Wherein, the processing module 105 may be, for example, an application processor.

在本实施例中,需要说明的是,存储模块103包括N个存储单元1031,N个存储单元1031与N个数据通道102一一对应,每个存储单元1031通过其对应的数据通道102与处理模块105连接;每个存储单元1031中包括至少一个存储颗粒10311,存储模块103中存储颗粒10311的总数量由电子设备的运行内存的容量和每个存储颗粒10311的内存容量所决定,每个存储单元1031中存储颗粒10311的数量由存储颗粒10311的总数量和数据通道102的数量所决定。In this embodiment, it should be noted that the storage module 103 includes N storage units 1031, and the N storage units 1031 are in one-to-one correspondence with the N data channels 102, and each storage unit 1031 communicates with the processing unit through its corresponding data channel 102 The modules 105 are connected; each storage unit 1031 includes at least one storage particle 10311, and the total number of storage particles 10311 in the storage module 103 is determined by the capacity of the operating memory of the electronic device and the memory capacity of each storage particle 10311, and each storage The number of storage particles 10311 in a unit 1031 is determined by the total number of storage particles 10311 and the number of data channels 102 .

例如,在电子设备的运行内存为8G,每个存储颗粒10311的内存容量为1G的情况下,电子设备所需要的存储颗粒10311的总数量为八个,在数据通道102的数量为四个的情况下,每个存储单元1031中存储颗粒10311的数量为两个。For example, when the operating memory of the electronic device is 8G and the memory capacity of each storage particle 10311 is 1G, the total number of storage particles 10311 required by the electronic device is eight, and the number of data channels 102 is four In this case, the number of storage particles 10311 in each storage unit 1031 is two.

又例如,在电子设备的运行内存为16G,每个存储颗粒10311的内存容量为1G的情况下,电子设备所需要的存储颗粒10311的总数量为16个,在数据通道102的数量为四个的情况下,每个存储单元1031中存储颗粒10311的数量为四个。For another example, when the operating memory of the electronic device is 16G, and the memory capacity of each storage particle 10311 is 1G, the total number of storage particles 10311 required by the electronic device is 16, and the number of data channels 102 is four In the case of , the number of storage particles 10311 in each storage unit 1031 is four.

在本实施例中,存储颗粒10311具有一个数据端口和一个电源端口,存储颗粒10311的数据端口通过存储颗粒10311对应的数据通道102与处理模块105连接,以使处理模块105能够通过数据通道102将数据写入存储颗粒10311,且处理模块105还能够通过数据通道102读取存储在存储颗粒10311中的数据;存储颗粒10311的电源端口通过开关模块104与电源模块101连接,通过控制开关模块104的导通和断开,控制电源模块101是否给存储颗粒10311供电,进而控制存储颗粒10311是否工作。In this embodiment, the storage particle 10311 has a data port and a power port, and the data port of the storage particle 10311 is connected to the processing module 105 through the data channel 102 corresponding to the storage particle 10311, so that the processing module 105 can use the data channel 102 to Data is written into the storage particle 10311, and the processing module 105 can also read the data stored in the storage particle 10311 through the data channel 102; the power port of the storage particle 10311 is connected to the power supply module 101 through the switch module 104, and the On and off, to control whether the power supply module 101 supplies power to the storage particle 10311, and then control whether the storage particle 10311 works.

在一个实施例中,所述存储单元1031包括M个存储颗粒10311,M为正整数,且M≥2;所述存储模块103中的所述存储颗粒10311被设置成M个存储颗粒组,其中,N个存储单元1031中的第m个存储颗粒10311组成第m个存储颗粒组,1≤m≤M;所述开关模块104用于按照所述存储颗粒组对所述存储模块103中的存储颗粒10311的工作状态进行分组控制。In one embodiment, the storage unit 1031 includes M storage granules 10311, M is a positive integer, and M≥2; the storage granules 10311 in the storage module 103 are set into M storage granule groups, where , the mth storage granule 10311 in the N storage units 1031 forms the mth storage granule group, 1≤m≤M; the switch module 104 is used to store in the storage module 103 according to the storage granule group The working status of particles 10311 is group controlled.

其中,存储颗粒组(rank)指的是连接到同一个cs(Chip Select,片选)的所有存储颗粒10311(Die),该存储器能够对同一个存储颗粒组(rank)的所有存储颗粒10311同时进行读写操作,而在同一个存储颗粒组(rank)的存储颗粒10311也分享同样的控制信号,Wherein, the storage particle group (rank) refers to all storage particles 10311 (Die) connected to the same cs (Chip Select, chip selection), and the memory can simultaneously perform all storage particles 10311 of the same storage particle group (rank). Read and write operations, and the storage particles 10311 in the same storage particle group (rank) also share the same control signal,

实际使用过程中,存储颗粒组(rank)的位宽为64bit,每个存储颗粒组(rank)中存储颗粒10311的数量由存储颗粒10311的位宽所决定;在存储颗粒10311的位宽为8bit的情况下,八个存储颗粒10311并联组成一个存储颗粒组(rank);在存储颗粒10311的位宽为16bit的情况下,四个存储颗粒10311并联组成一个存储颗粒组(rank)。In actual use, the bit width of the storage particle group (rank) is 64bit, and the number of storage particles 10311 in each storage particle group (rank) is determined by the bit width of the storage particle 10311; the bit width of the storage particle 10311 is 8bit In the case of a storage particle 10311, eight storage particles 10311 are connected in parallel to form a storage particle group (rank); when the bit width of the storage particle 10311 is 16 bits, four storage particles 10311 are connected in parallel to form a storage particle group (rank).

在本实施例中,需要说明的是,数据通道102对应的存储单元1031中的M个存储颗粒10311是通过片选分时选通的,所以存储单元1031中的M个存储颗粒10311分别属于M个存储颗粒组(rank),M个存储颗粒10311与M个存储颗粒组(rank)一一对应,存储模块103中所有存储单元1031中的第m个存储颗粒10311组成第m个存储颗粒组(rank)。In this embodiment, it should be noted that the M storage cells 10311 in the storage unit 1031 corresponding to the data channel 102 are time-selected through chip selection, so the M storage cells 10311 in the storage unit 1031 belong to M storage particle groups (rank), M storage particles 10311 correspond to M storage particle groups (rank), and the m storage particles 10311 in all storage units 1031 in the storage module 103 form the m storage particle group ( rank).

例如,如图2所示,存储模块103包括八个存储颗粒10311和四个数据通道102,八个存储颗粒10311分别为Die1、Die2、Die3、Die4、Die5、Die6、Die7和Die8,四个数据通道102分别为通道A、通道B、通道C和通道D,由于存储单元1031的数量与数据通道102的数量相等,则八个存储颗粒被划分为四个存储单元1031,每个存储单元1031包括两个存储颗粒10311;其中,四个存储单元1031分别为第一存储单元、第二存储单元、第三存储单元和第四存储单元,第一存储单元包括Die1和Die2,第二存储单元包括Die3和Die4,第三存储单元包括Die5和Die6,第四存储单元包括Die7和Die8;由于每个存储单元1031中包括两个存储颗粒10311,则存储模块103中的所有存储颗粒10311被设置成两个存储颗粒组(rank),且每个存储单元1031中的两个存储颗粒10311属于不同的存储颗粒组(rank);其中,两个存储颗粒组(rank)分别为rank0和rank1,rank0包括Die1、Die3、Die5和Die7,rank1包括Die2、Die4、Die6和Die8。For example, as shown in Figure 2, the storage module 103 includes eight storage particles 10311 and four data channels 102, the eight storage particles 10311 are respectively Die1, Die2, Die3, Die4, Die5, Die6, Die7 and Die8, and the four data The channels 102 are respectively channel A, channel B, channel C and channel D. Since the number of storage units 1031 is equal to the number of data channels 102, eight storage particles are divided into four storage units 1031, and each storage unit 1031 includes Two storage particles 10311; among them, the four storage units 1031 are respectively the first storage unit, the second storage unit, the third storage unit and the fourth storage unit, the first storage unit includes Die1 and Die2, and the second storage unit includes Die3 and Die4, the third storage unit includes Die5 and Die6, and the fourth storage unit includes Die7 and Die8; since each storage unit 1031 includes two storage particles 10311, all storage particles 10311 in the storage module 103 are set to two A storage particle group (rank), and two storage particles 10311 in each storage unit 1031 belong to different storage particle groups (rank); wherein, the two storage particle groups (rank) are rank0 and rank1 respectively, and rank0 includes Diel, Die3, Die5 and Die7, rank1 includes Die2, Die4, Die6 and Die8.

在一个实施例中,开关模块104用于按照存储颗粒组(rank)对存储模块103中的存储颗粒10311的工作状态进行分组控制,即开关模块104可以按照存储颗粒组(rank)断开存储模块103中部分存储颗粒10311与电源模块101的连接,以关闭部分存储颗粒组(rank)对应的存储颗粒10311,即关闭部分存储颗粒组(rank)。In one embodiment, the switch module 104 is used to group control the working states of the storage particles 10311 in the storage module 103 according to the storage particle group (rank), that is, the switch module 104 can disconnect the storage module according to the storage particle group (rank). Part of the storage particle 10311 in 103 is connected to the power module 101 to close the storage particle 10311 corresponding to the part of the storage particle group (rank), that is, to close the part of the storage particle group (rank).

例如,开关模块104可以断开rank0所包括的Die1、Die3、Die5和Die7与电源模块101的连接,关闭Die1、Die3、Die5和Die7,即关闭rank0。For example, the switch module 104 can disconnect Die1, Die3, Die5 and Die7 included in rank0 from the power module 101, and turn off Die1, Die3, Die5 and Die7, that is, turn off rank0.

在另一个实施例中,开关模块104用于按照数据通道102对存储模块103中的存储颗粒10311的工作状态进行分通道控制。In another embodiment, the switch module 104 is configured to perform channel-by-channel control on the working state of the storage particles 10311 in the storage module 103 according to the data channel 102 .

在本实施例中,开关模块104可以按照数据通道102断开存储模块103中部分存储颗粒10311与电源模块101的连接,关闭部分数据通道对应的存储颗粒10311,即关闭部分数据通道102对应的存储单元1031。In this embodiment, the switch module 104 can disconnect some storage particles 10311 in the storage module 103 from the power supply module 101 according to the data channel 102, and close the storage particles 10311 corresponding to some data channels, that is, close the storage cells corresponding to some data channels 102. Unit 1031.

例如,如图2所示,开关模块104可以断开通道A对应的Die1和Die2,以及断开通道B对应的Die3和Die4,关闭Die1、Die2、Die3和Die4,即关闭通道A对应的第一存储单元和通道B对应的第二存储单元。For example, as shown in FIG. 2, the switch module 104 can disconnect Die1 and Die2 corresponding to channel A, and disconnect Die3 and Die4 corresponding to channel B, and close Die1, Die2, Die3 and Die4, that is, close the first channel corresponding to channel A. The second storage unit corresponding to the storage unit and channel B.

在一个实施例中,开关模块104可以包括与N×M个存储颗粒10311一一对应的N×M个MOS管,其中,每个存储颗粒10311的电源端口通过其对应的MOS管与电源模块101连接。In one embodiment, the switch module 104 may include N×M MOS transistors corresponding to N×M storage particles 10311 one-to-one, wherein the power port of each storage particle 10311 is connected to the power supply module 101 through its corresponding MOS transistor. connect.

例如,在存储模块包括八个存储颗粒10311的情况下,开关模块104也可以包括八个MOS管,八个MOS管与八个存储颗粒10311一一对应,每个存储颗粒10311的电源端口分别通过其对应的MOS管与电源模块101连接。For example, in the case that the storage module includes eight storage particles 10311, the switch module 104 may also include eight MOS transistors, and the eight MOS transistors correspond to the eight storage particles 10311 one-to-one, and the power ports of each storage particle 10311 respectively pass through The corresponding MOS transistors are connected to the power module 101 .

在另一个实施例中,开关模块104也可以包括Q个MOS管,Q为正整数,且In another embodiment, the switch module 104 may also include Q MOS transistors, where Q is a positive integer, and .

其中,任意两个数据通道102中的第m个存储颗粒10311的电源端口通过同一MOS管与电源模块101连接。Wherein, the power port of the mth storage particle 10311 in any two data channels 102 is connected to the power module 101 through the same MOS transistor.

例如,如图2所示,在存储模块包括八个存储颗粒10311的情况下,开关模块104包括四个MOS管,四个MOS管分别为第一MOS管、第二MOS管、第三MOS管和第四MOS管,Die1的电源端口和Die5的电源端口分别通过第一MOS管与电源模块101连接,Die2的电源端口和Die6的电源端口分别通过第二MOS管与电源模块101连接,Die3的电源端口和Die7的电源端口分别通过第三MOS管与电源模块101连接,Die4的电源端口和Die8的电源端口分别通过第四MOS管与电源模块101连接,便于按照所述存储颗粒组对所述存储模块中的存储颗粒的工作状态进行分组控制,其中,在需要关闭rank0的情况下,可以直接断开第一MOS管和第三MOS管。For example, as shown in FIG. 2, in the case that the storage module includes eight storage particles 10311, the switch module 104 includes four MOS transistors, and the four MOS transistors are respectively the first MOS transistor, the second MOS transistor, and the third MOS transistor. and the fourth MOS tube, the power port of Die1 and the power port of Die5 are respectively connected to the power module 101 through the first MOS tube, the power port of Die2 and the power port of Die6 are respectively connected to the power module 101 through the second MOS tube, and the power port of Die3 is connected to the power module 101 through the second MOS tube. The power port and the power port of Die7 are respectively connected to the power module 101 through the third MOS tube, and the power port of Die4 and the power port of Die8 are respectively connected to the power module 101 through the fourth MOS tube, so as to facilitate the pairing of the power supply module according to the storage particle group. The working states of the memory particles in the memory module are controlled in groups. In the case that rank0 needs to be turned off, the first MOS transistor and the third MOS transistor can be directly disconnected.

其中,如图3所示,同一数据通道102中的M个存储颗粒的电源端口通过同一MOS管与电源模块101连接。Wherein, as shown in FIG. 3 , the power ports of M storage particles in the same data channel 102 are connected to the power module 101 through the same MOS transistor.

例如,如图3所示,在存储模块包括八个存储颗粒10311的情况下,开关模块104包括四个MOS管,四个MOS管分别为第一MOS管、第二MOS管、第三MOS管和第四MOS管,Die1的电源端口和Die2的电源端口分别通过第一MOS管与电源模块101连接,Die3的电源端口和Die4的电源端口分别通过第二MOS管与电源模块101连接,Die5的电源端口和Die6的电源端口分别通过第三MOS管与电源模块101连接,Die7的电源端口和Die8的电源端口分别通过第四MOS管与电源模块101连接,便于按照所述数据通道对所述存储模块中的存储颗粒的工作状态进行分通道控制,其中,在需要关闭通道A和通道B的情况下,可以直接断开第一MOS管和第二MOS管。For example, as shown in FIG. 3, in the case that the storage module includes eight storage particles 10311, the switch module 104 includes four MOS transistors, and the four MOS transistors are respectively the first MOS transistor, the second MOS transistor, and the third MOS transistor. and the fourth MOS tube, the power port of Die1 and the power port of Die2 are respectively connected to the power module 101 through the first MOS tube, the power port of Die3 and the power port of Die4 are respectively connected to the power module 101 through the second MOS tube, and the power port of Die5 is connected to the power module 101 through the second MOS tube. The power port and the power port of Die6 are respectively connected to the power module 101 through the third MOS tube, and the power port of Die7 and the power port of Die8 are respectively connected to the power module 101 through the fourth MOS tube, so as to facilitate the storage according to the data channel. The working state of the storage particles in the module is controlled by channels, wherein, in the case that channel A and channel B need to be closed, the first MOS tube and the second MOS tube can be directly disconnected.

在本实施例中,需要说明的是,开关模块104中MOS管的数量,以及MOS管与存储颗粒的连接方式可以根据开关模块104对存储颗粒10311的控制类型进行自主选择,本实施例对此不做具体限定。In this embodiment, it should be noted that the number of MOS transistors in the switch module 104 and the connection mode between the MOS transistors and the storage particles can be independently selected according to the control type of the storage particles 10311 by the switch module 104. Not specifically limited.

在本申请实施例中,存储器包括电源模块、N个数据通道、存储模块和开关模块,存储模块包括与N个数据通道一一对应的N个存储单元,且每个存储单元中包括至少一个存储颗粒,存储颗粒的数据端口通过对应的数据通道与处理模块连接,存储颗粒的电源端口通过开关模块与电源模块连接;其中,开关模块用于控制存储模块中的存储颗粒工作状态,在存储器的内存占用量小于预设内存占用量的情况下,可以通过开关模块控制电源模块停止给存储模块中的部分存储颗粒停止供电,使部分存储颗粒关闭,存储器进入低功耗模式,有效减少了存储器的功耗量,延长了电子设备的续航时长。In the embodiment of the present application, the memory includes a power supply module, N data channels, a storage module and a switch module, the storage module includes N storage units corresponding to the N data channels one-to-one, and each storage unit includes at least one storage unit Particles, the data port of the storage particle is connected to the processing module through the corresponding data channel, and the power port of the storage particle is connected to the power module through the switch module; wherein, the switch module is used to control the working state of the storage particle in the storage module. When the occupied amount is less than the preset memory occupied amount, the power supply module can be controlled by the switch module to stop supplying power to some storage particles in the storage module, so that some storage particles are turned off, and the memory enters a low power consumption mode, which effectively reduces the power consumption of the memory. Power consumption prolongs the battery life of electronic devices.

图4是本申请实施例的功耗管理方法的流程示意图。本申请实施例的功耗管理方法例如可以由处理模块执行,也可以由该存储器中的控制器执行,应用处理器和控制器可以设置于电子设备中。其中,该处理模块例如可以是应用处理器。FIG. 4 is a schematic flowchart of a method for managing power consumption according to an embodiment of the present application. The power consumption management method in the embodiment of the present application may be executed, for example, by a processing module, or may be executed by a controller in the memory, and the application processor and the controller may be set in the electronic device. Wherein, the processing module may be, for example, an application processor.

如图4所示,本实施例的功耗管理方法可以包括如下步骤401~步骤403:As shown in FIG. 4, the power consumption management method of this embodiment may include the following steps 401 to 403:

步骤401、获取所述存储模块的内存占用量。Step 401. Obtain the memory usage of the storage module.

在本实施例中,当用户在使用电子设备中的应用程序时,在应用程序的使用过程中会占用电子设备的存储模块的内存,通过处理模块可以监控电子设备中当前运行的应用程序,并根据当前运行的应用程序即可确定存储模块的内存占用量。In this embodiment, when the user is using the application program in the electronic device, the memory of the storage module of the electronic device will be occupied during the use of the application program, and the application program currently running in the electronic device can be monitored through the processing module, and The memory usage of the storage module can be determined according to the currently running applications.

其中,每个应用程序运行过程中的内存占用量是预先设定的。Wherein, the amount of memory occupied by each application program during running is preset.

例如,当用户仅在使用电子设备中的应用程序A,应用程序A的内存占用量为A1时,则处理模块获取到存储器的所述存储模块的内存占用量为A1。For example, when the user is only using the application program A in the electronic device, and the memory usage of the application program A is A1, the memory usage of the storage module acquired by the processing module is A1.

又例如,当用户在使用电子设备中的应用程序A和应用程序B,应用程序A的内存占用量为A1,应用程序B的内存占用量为B1,则处理模块获取到存储器的所述存储模块的内存占用量为A1+B1。For another example, when the user is using application program A and application program B in the electronic device, the memory usage of application program A is A1, and the memory usage of application program B is B1, then the processing module obtains the storage module of the memory The memory footprint of is A1+B1.

步骤402、根据所述内存占用量确定所述存储模块的工作模式,其中,在所述内存占用量小于预设内存占用量的情况下,所述存储模块的工作模式为低功耗模式。Step 402. Determine the working mode of the storage module according to the memory usage, wherein, when the memory usage is less than a preset memory usage, the working mode of the storage module is a low power consumption mode.

其中,在存储模块的内存占用量小于预设内存占用量的情况下,处理模块确定将存储模块切换为低功耗模式;在存储模块的内存占用量大于或等于预设内存占用量的情况下,存储模块保持正常工作模式,无需将存储模块切换为低功耗模式。Wherein, when the memory usage of the storage module is less than the preset memory usage, the processing module determines to switch the storage module to a low power consumption mode; when the memory usage of the storage module is greater than or equal to the preset memory usage , the storage module remains in the normal working mode, and there is no need to switch the storage module to the low power consumption mode.

其中,预设内存占用量可以由电子设备开发者自行设定,本实施例对此不做具体限定。例如,预设内存占用量可以为30%。Wherein, the preset memory usage can be set by the developer of the electronic device, which is not specifically limited in this embodiment. For example, the preset memory usage may be 30%.

在本实施例中,需要说明的是,存储模块的默认工作模式为正常工作模式;其中,在正常工作模式下,存储模块中的所有存储颗粒均处于打开状态。In this embodiment, it should be noted that the default working mode of the storage module is the normal working mode; wherein, in the normal working mode, all storage particles in the storage module are in an open state.

在本实施例中,在低功耗模式下,存储模块中的部分存储颗粒处于打开状态,剩余部分存储颗粒处于关闭状态,在低功耗模式下,能够减少运行存储模块的功耗量,延长电子设备的续航时长。In this embodiment, in the low power consumption mode, some storage particles in the storage module are in the open state, and the rest of the storage particles are in the closed state. In the low power consumption mode, the power consumption of running the storage module can be reduced, extending the The battery life of electronic devices.

在本实施例中,在存储模块处于低功耗模式的情况下,若存储模块的内存占用量大于或等于预设内存占用量,则将存储模块切换为正常工作模式,控制开关模块导通,使所有存储单元中的所有存储颗粒均与电源模块连接。In this embodiment, when the storage module is in the low power consumption mode, if the memory usage of the storage module is greater than or equal to the preset memory usage, the storage module is switched to the normal working mode, the control switch module is turned on, All storage particles in all storage units are connected to the power module.

步骤403、在所述存储模块的工作模式为低功耗模式的情况下,控制所述开关模块断开所述存储模块中的目标存储颗粒与所述电源模块的连接。Step 403 , when the working mode of the storage module is a low power consumption mode, control the switch module to disconnect the target storage particle in the storage module from the power supply module.

在本实施例中,步骤403的执行主体可以是处理模块,也可以是存储器中的控制器。In this embodiment, the execution subject of step 403 may be a processing module, or may be a controller in a memory.

在一个实施例中,本实施例的功耗管理方法可以包括如下步骤501:In one embodiment, the power consumption management method of this embodiment may include the following step 501:

步骤501、在所述存储模块的工作模式为正常工作模式的情况下,控制所述开关模块导通所述存储模块中的每个所述存储颗粒与所述电源模块的连接;其中,在所述内存占用量大于或等于预设内存占用量的情况下,所述存储模块的工作模式为正常工作模式。也就是说,在正常工作模式下,存储模块中的所有存储颗粒均处于打开状态。Step 501. When the working mode of the storage module is the normal working mode, control the switch module to conduct the connection between each storage particle in the storage module and the power supply module; When the memory usage is greater than or equal to the preset memory usage, the working mode of the storage module is the normal working mode. That is to say, in a normal working mode, all storage particles in the storage module are in an open state.

在一个实施例中,步骤403具体包括步骤4031~步骤4033。In one embodiment, step 403 specifically includes steps 4031 to 4033 .

步骤4031、在所述存储模块的工作模式为低功耗模式的情况下,将K个所述存储颗粒组中的所述存储颗粒确定为目标存储颗粒,K<M。Step 4031 , when the working mode of the storage module is the low power consumption mode, determine the storage particles in the K storage particle groups as target storage particles, K<M.

步骤4032、读取目标存储颗粒中的数据,将读取到的所述数据存储到与目标存储颗粒对应的备份存储颗粒中,其中,目标存储颗粒及其对应的备份存储颗粒是对应于同一个所述数据通道的存储颗粒,备份存储颗粒是非目标存储颗粒。Step 4032, read the data in the target storage granule, and store the read data in the backup storage granule corresponding to the target storage granule, wherein the target storage granule and its corresponding backup storage granule correspond to the same The storage particle of the data channel, the backup storage particle is a non-target storage particle.

步骤4033、控制所述开关模块断开所述K个所述存储颗粒组中的所述存储颗粒与所述电源模块的连接。Step 4033: Control the switch module to disconnect the storage particles in the K storage particle groups from the power supply module.

其中,可以通过处理模块直接读取目标存储颗粒中的数据,并将读取到的数据存储到与目标存储颗粒对应的备份存储颗粒中,以及通过处理模块直接控制开关模块断开K个存储颗粒组中的存储颗粒与电源模块的连接;还可以通过处理模块向存储器中的控制器发送数据迁移备份指令,在存储器中的控制器接收到处理模块发送的数据迁移备份指令后,通过存储器中的控制器读取目标存储颗粒的存储颗粒中的数据,并将读取到的数据迁移备份到与目标存储颗粒对应的备份存储颗粒中,在目标存储颗粒中的数据迁移备份完成后,处理模块向存储器中的控制器发送与目标存储颗粒对应的开关关闭指令,在存储器中的控制器接收到处理模块发送的开关关闭指令后,存储器中的控制器控制开关模块中与目标存储颗粒对应的MOS关断开,以断开目标存储颗粒与电源模块的连接。Wherein, the data in the target storage granule can be directly read through the processing module, and the read data can be stored in the backup storage granule corresponding to the target storage granule, and the K storage granules can be disconnected by directly controlling the switch module through the processing module The connection between the storage particles in the group and the power module; the processing module can also send the data migration and backup instruction to the controller in the storage, and after the controller in the storage receives the data migration and backup instruction sent by the processing module, the The controller reads the data in the storage granule of the target storage granule, and migrates and backs up the read data to the backup storage granule corresponding to the target storage granule. After the data migration and backup in the target storage granule is completed, the processing module sends The controller in the memory sends a switch closing instruction corresponding to the target memory particle, and after the controller in the memory receives the switch closing instruction sent by the processing module, the controller in the memory controls the MOS switch corresponding to the target memory particle in the switch module to turn off. Disconnect to disconnect the target memory particle from the power module.

在一个实施例中,在步骤4031中,在存储颗粒组的数量为两个,且存储模块的内存占用量小于预设内存占用量的情况下,处理模块确定将存储模块切换为低功耗模式,两个存储颗粒组分别为第一存储颗粒组和第二存储颗粒组,处理模块将第一存储颗粒组确定为需要关闭的存储颗粒组,则第一存储颗粒组中的所有存储颗粒均被确定为目标存储颗粒,其中,第一存储颗粒组的内存占用量小于第二存储颗粒组。In one embodiment, in step 4031, when the number of storage particle groups is two, and the memory usage of the storage module is less than the preset memory usage, the processing module determines to switch the storage module to a low power consumption mode , the two storage particle groups are the first storage particle group and the second storage particle group, and the processing module determines the first storage particle group as the storage particle group that needs to be closed, then all the storage particles in the first storage particle group are closed It is determined as the target storage particle, wherein the memory usage of the first storage particle group is smaller than that of the second storage particle group.

在一个实施例中,在步骤4032中,在将第一存储颗粒组的所有存储颗粒确定为目标存储颗粒的情况下,读取所有目标存储颗粒中的数据,针对每个目标存储颗粒,将目标存储颗粒中的数据迁移备份至其对应的备份存储颗粒中,实现对目标存储颗粒中的数据的迁移和备份;其中,备份存储颗粒为同一个存储单元中除目标存储颗粒之外的剩余的存储颗粒,也就是非目标存储颗粒。In one embodiment, in step 4032, when all the storage particles of the first storage particle group are determined as the target storage particles, the data in all the target storage particles is read, and for each target storage particle, the target The data in the storage granule is migrated and backed up to its corresponding backup storage granule to realize the migration and backup of the data in the target storage granule; where, the backup storage granule is the remaining storage in the same storage unit except the target storage granule Particles, that is, non-target storage particles.

在一个实施例中,在步骤4033中,在将所有目标存储颗粒的数据均迁移备份至对应的备份存储颗粒中之后,控制开关模块中目标存储颗粒对应的MOS管断开,以断开目标存储颗粒与电源模块的连接,从而关闭目标存储颗粒,使存储模块进入低功耗模式。In one embodiment, in step 4033, after the data of all target storage particles are migrated and backed up to the corresponding backup storage particles, the MOS transistors corresponding to the target storage particles in the control switch module are turned off to disconnect the target storage particles. The particle is connected to the power module, thereby turning off the target storage particle and making the storage module enter a low power consumption mode.

在本实施例中,由于第一存储颗粒组的内存占用量小于第二存储颗粒组的内存占用量,因此将第一存储颗粒组中的所有存储颗粒确定为目标存储颗粒,便于快速、方便的将目标存储颗粒迁移备份至备份存储颗粒中,数据量小,能够进一步降低存储模块的能耗。In this embodiment, since the memory usage of the first storage particle group is smaller than the memory usage of the second storage particle group, all storage particles in the first storage particle group are determined as target storage particles, which facilitates fast and convenient By migrating and backing up the target storage granule to the backup storage granule, the amount of data is small, which can further reduce the energy consumption of the storage module.

例如,如图2所示,两个存储颗粒组(rank)分别为rank0和rank1,rank0包括Die1、Die3、Die5和Die7,rank1包括Die2、Die4、Die6和Die8;在存储模块的内存占用量为20%,且rank0的内存占用量小于rank1的内存占用量的情况下,将rank0中的Die1、Die3、Die5和Die7均确定为目标存储颗粒,则Die2、Die4、Die6和Die8均为备份存储颗粒,读取Die1、Die3、Die5和Die7中的数据,并将Die1中的数据迁移备份至Die2中,将Die3中的数据迁移备份至Die4中,将Die5中的数据迁移备份至Die6中,将Die7中的数据迁移备份至Die8中,实现对Die1、Die3、Die5和Die7中数据的迁移备份,在Die1、Die3、Die5和Die7中的数据迁移备份完成后(即rank0的内存占用量为0),控制开关模块中的第一MOS管和第三MOS管断开,以断开Die1、Die3、Die5、Die7与电源模块101的连接,关闭Die1、Die3、Die5和Die7,即关闭rank0,仅使rank1工作,进入低功耗模式。For example, as shown in Figure 2, two storage particle groups (rank) are rank0 and rank1 respectively, and rank0 includes Die1, Die3, Die5 and Die7, and rank1 includes Die2, Die4, Die6 and Die8; 20%, and the memory usage of rank0 is less than that of rank1, and Die1, Die3, Die5 and Die7 in rank0 are all determined as the target storage particles, then Die2, Die4, Die6 and Die8 are all backup storage particles , read the data in Die1, Die3, Die5 and Die7, migrate and backup the data in Die1 to Die2, migrate and backup the data in Die3 to Die4, migrate and backup the data in Die5 to Die6, and transfer the data in Die7 to Die7 The data in Die1, Die3, Die5, and Die7 are migrated and backed up to Die8, and the data in Die1, Die3, Die5, and Die7 is migrated and backed up (that is, the memory usage of rank0 is 0), The first MOS tube and the third MOS tube in the control switch module are disconnected to disconnect Die1, Die3, Die5, and Die7 from the power module 101, and turn off Die1, Die3, Die5, and Die7, that is, turn off rank0, and only rank1 work and enter low power consumption mode.

在另一个实施例中,在存储颗粒组的数量为多个的情况下,根据存储颗粒组的数量,预先设置多个内存占用量范围,其中,内存占用量范围的数量与存储颗粒组的数量相等且一一对应,多个内存占用量范围连续且不重合。In another embodiment, when there are multiple storage particle groups, a plurality of memory footprint ranges are preset according to the number of storage particle groups, wherein the number of memory footprint ranges is related to the number of storage particle groups Equal and one-to-one correspondence, multiple memory footprint ranges are continuous and do not overlap.

在另一个实施例中,在存储颗粒组的数量为多个的情况下,存储模块的内存占用量所在的内存占用量范围的边界值越小,需要关闭的存储颗粒组的数量则越多。In another embodiment, when there are multiple storage particle groups, the smaller the boundary value of the memory footprint range where the memory footprint of the storage module is, the more storage particle groups need to be closed.

在另一个实施例中,读取需要关闭的存储颗粒组的数据之后,可以将需要关闭的存储颗粒组的数据迁移备份至任一备份存储颗粒组。In another embodiment, after reading the data of the storage particle group that needs to be closed, the data of the storage particle group that needs to be closed can be migrated and backed up to any backup storage particle group.

例如,在存储器中的存储颗粒组(rank)的数量为三个,三个存储颗粒组(rank)分别为rank2、rank3和rank4,内存占用量范围为0%~30%,30%~50%和50%~100%的情况下,若存储模块的内存占用量为0%~30%,且rank3的内存占用量最大,则将rank2中的所有存储颗粒和rank4中的所有存储颗粒的数据迁移备份至rank3中的所有存储颗粒中,并控制开关模块中rank2中的所有存储颗粒分别对应的MOS管和rank4中的所有存储颗粒分别对应的MOS管关闭;若存储模块的内存占用量为30%~50%,且rank2的内存占用量最小,则将rank2中的所有存储颗粒的数据迁移备份至rank3和rank4中的所有存储颗粒中,并控制开关模块中rank2中的所有存储颗粒分别对应的MOS管关闭;若存储模块的内存占用量为50%~100%,则存储模块工作在正常工作模式,rank2、rank3和rank4均正常工作。For example, there are three storage particle groups (ranks) in the memory, the three storage particle groups (ranks) are rank2, rank3 and rank4 respectively, and the memory usage ranges from 0% to 30%, and from 30% to 50%. In the case of 50% to 100%, if the memory usage of the storage module is 0% to 30%, and the memory usage of rank3 is the largest, the data of all storage particles in rank2 and all storage particles in rank4 will be migrated Back up to all storage particles in rank3, and control the MOS transistors corresponding to all storage particles in rank2 and all storage particles in rank4 in the switch module to turn off; if the memory usage of the storage module is 30% ~50%, and the memory usage of rank2 is the smallest, migrate and back up the data of all storage particles in rank2 to all storage particles in rank3 and rank4, and control the MOS corresponding to all storage particles in rank2 in the switch module The tube is closed; if the memory usage of the storage module is 50%-100%, the storage module works in the normal working mode, and rank2, rank3 and rank4 all work normally.

在本申请实施例中,通过控制开关模块中的部分MOS管断开M个存储颗粒组中部分存储颗粒组的存储颗粒与电源模块的连接,使存储器进入单存储颗粒组低功耗模式或者部分存储颗粒组的较低功耗模式,存储器的可用容量减少,同时,由于部分存储颗粒组的存储颗粒处于关闭状态,减少了电源模块的耗电,延长了电子设备的续航时长,且在存储器内存占用量较少的情况下,并不会影响电子设备的性能。In this embodiment of the present application, by controlling some of the MOS transistors in the switch module to disconnect the storage particles of some of the M storage particle groups from the power module, the memory enters the low power consumption mode of a single storage particle group or part of the The lower power consumption mode of the storage particle group reduces the available capacity of the memory. At the same time, because the storage particles of some storage particle groups are turned off, the power consumption of the power module is reduced, and the battery life of the electronic device is extended. In the case of less occupation, it will not affect the performance of electronic equipment.

在另一个实施例中,步骤403可以通过对所述存储模块中的存储颗粒的工作状态进行分通道区分性控制实现。也就是说,在所述存储模块的工作模式为所述低功耗模式的情况下,控制开关模块按照数据通道对所述存储模块中的存储颗粒的工作状态进行分通道控制,让部分数据通道对应的存储颗粒关闭,部分数据通道对应的存储颗粒打开,从而起到降低功耗的作用。In another embodiment, step 403 may be implemented by channel-by-channel differentiated control over the working states of the storage particles in the storage module. That is to say, when the working mode of the storage module is the low power consumption mode, the control switch module performs channel-by-channel control on the working states of the storage particles in the storage module according to the data channel, so that part of the data channels The corresponding storage particles are turned off, and the storage particles corresponding to some data channels are turned on, thereby reducing power consumption.

在另一个实施例中,步骤403具体包括步骤4034~步骤4036。In another embodiment, step 403 specifically includes steps 4034 to 4036 .

步骤4034、在所述存储模块的工作模式为低功耗模式的情况下,将L个所述数据通道对应的所述存储颗粒确定为目标存储颗粒,L<N。Step 4034: When the working mode of the storage module is the low power consumption mode, determine the storage particles corresponding to the L data channels as target storage particles, where L<N.

步骤4035、读取目标存储颗粒中的数据,将读取到的所述数据存储到与目标存储颗粒对应的备份存储颗粒中,其中,目标存储颗粒及其对应的备份存储颗粒是同一个所述存储颗粒组中的存储颗粒,备份存储颗粒是非目标存储颗粒。Step 4035, read the data in the target storage granule, and store the read data in the backup storage granule corresponding to the target storage granule, wherein the target storage granule and its corresponding backup storage granule are the same A storage granule in a storage granule group, and a backup storage granule is a non-target storage granule.

步骤4036、控制所述开关模块断开所述L个所述数据通道对应的所述存储颗粒与所述电源模块的连接。Step 4036: Control the switch module to disconnect the storage particles corresponding to the L data channels from the power module.

其中,可以通过处理模块直接读取目标存储颗粒中的数据,并将读取到的数据存储到与目标存储颗粒对应的备份存储颗粒中,以及通过处理模块直接控制开关模块断开L个数据通道对应的存储颗粒与电源模块的连接;还可以通过处理模块向存储器中的控制器发送数据迁移备份指令,在存储器中的控制器接收到处理模块发送的数据迁移备份指令后,通过存储器中的控制器读取目标存储颗粒中的数据,并将读取到的数据迁移备份到与目标存储颗粒对应的备份存储颗粒中,在目标存储颗粒中的数据迁移备份完成后,处理模块向存储器中的控制器发送与目标存储颗粒对应的开关关闭指令,在存储器中的控制器接收到处理模块发送的开关关闭指令后,存储器中的控制器控制开关模块中与目标存储颗粒对应的MOS关断开,以断开目标存储颗粒与电源模块的连接。Wherein, the data in the target storage granule can be directly read through the processing module, and the read data can be stored in the backup storage granule corresponding to the target storage granule, and the L data channels can be disconnected by directly controlling the switch module through the processing module The connection between the corresponding storage particles and the power module; it is also possible to send a data migration and backup instruction to the controller in the memory through the processing module, and after the controller in the memory receives the data migration and backup instruction sent by the processing module, The device reads the data in the target storage granule, and migrates and backs up the read data to the backup storage granule corresponding to the target storage granule. After the data migration and backup in the target storage granule is completed, the processing module transfers the After the controller in the memory receives the switch closing instruction sent by the processing module, the controller in the memory controls the switching off of the MOS corresponding to the target memory particle in the switch module, so as to Disconnect the target storage particle from the power module.

在本实施例中,在存储模块包括N个数据通道,且存储模块的内存占用量小于预设内存占用量的情况下,首先,将N个数据通道中的两个数据通道对应的存储单元视为备份存储单元,N个数据通道中的剩余数据通道对应的存储单元均视为需要关闭的存储单元,备份存储单元中的所有存储颗粒均为备份存储颗粒,需要关闭的存储单元中的所有存储颗粒均为目标存储颗粒;其次,读取所有目标存储颗粒中的数据,针对每个目标存储颗粒,将目标存储颗粒中的数据迁移备份至其对应的备份存储颗粒中,实现对目标存储颗粒中的数据的迁移和备份;其中,备份存储颗粒为同一存储颗粒组中除目标存储颗粒之外的剩余的存储颗粒,也就是非目标存储颗粒;最后,在将所有目标存储颗粒的数据均迁移备份至对应的备份存储颗粒中之后,控制开关模块中目标存储颗粒对应的MOS管断开,以断开目标存储颗粒与电源模块的连接,从而关闭目标存储颗粒,使存储模块进入低功耗模式。In this embodiment, when the storage module includes N data channels, and the memory usage of the storage module is less than the preset memory usage, first, the storage units corresponding to two data channels in the N data channels are regarded as As a backup storage unit, the storage units corresponding to the remaining data channels in the N data channels are regarded as storage units that need to be closed. All storage particles in the backup storage unit are backup storage particles. All storage units in the storage unit that need to be closed The granules are all target storage granules; secondly, read the data in all target storage granules, and for each target storage granule, migrate and back up the data in the target storage granule to its corresponding backup storage granule, so as to realize the data migration and backup; wherein, the backup storage particle is the remaining storage particle in the same storage particle group except the target storage particle, that is, the non-target storage particle; finally, after all the data of the target storage particle is migrated and backed up After entering the corresponding backup storage particle, the MOS transistor corresponding to the target storage particle in the control switch module is disconnected to disconnect the target storage particle from the power module, thereby turning off the target storage particle and making the storage module enter a low power consumption mode.

在本申请实施例中,通过控制开关模块中的部分MOS管断开N个存储单元中部分存储单元的存储颗粒与电源模块的连接,使存储器进入双通道低功耗模式,存储器的可用容量减少,同时,由于部分存储单元的存储颗粒处于关闭状态,减少了电源模块的耗电,延长了电子设备的续航时长,且在存储器内存占用量较少的情况下,并不会影响电子设备的性能。In the embodiment of the present application, by controlling part of the MOS transistors in the switch module to disconnect the storage particles of some of the N storage units from the power supply module, the memory enters a dual-channel low-power consumption mode, and the available capacity of the memory is reduced. At the same time, since the storage particles of some storage units are in the off state, the power consumption of the power module is reduced, the battery life of the electronic device is extended, and the performance of the electronic device is not affected when the memory usage of the memory is small. .

本申请实施例中的存储器可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The memory in this embodiment of the present application may be a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or other devices other than the terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR ) devices, robots, wearable devices, ultra-mobile personal computers (ultra-mobile personal computer, UMPC), netbooks or personal digital assistants (personal digital assistant, PDA), etc., can also serve as servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., which are not specifically limited in this embodiment of the present application.

本申请实施例提供的存储器能够实现图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。The memory provided by the embodiment of the present application can realize various processes realized by the method embodiment in FIG. 4 , and details are not repeated here to avoid repetition.

图5为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、以及处理器510等部件。The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510, etc. part.

本领域技术人员可以理解,电子设备500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 500 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 510 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 5 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .

其中,处理器510用于获取所述存储模块的内存占用量;根据所述内存占用量确定所述存储模块的工作模式,其中,在所述内存占用量小于预设内存占用量的情况下,所述存储模块的工作模式为低功耗模式;在所述存储模块的工作模式为所述低功耗模式的情况下,控制所述开关模块断开所述存储模块中的目标存储颗粒与所述电源模块的连接。Wherein, the processor 510 is configured to acquire the memory usage of the storage module; determine the working mode of the storage module according to the memory usage, wherein, when the memory usage is less than a preset memory usage, The working mode of the storage module is a low power consumption mode; when the working mode of the storage module is the low power consumption mode, control the switch module to disconnect the target storage particles in the storage module from the Connect the power module described above.

可选地,处理器510用于在所述存储模块的工作模式为正常工作模式的情况下,控制所述开关模块导通所述存储模块中的每个所述存储颗粒与所述电源模块的连接;其中,在所述内存占用量大于或等于预设内存占用量的情况下,所述存储模块的工作模式为正常工作模式。Optionally, the processor 510 is configured to control the switch module to connect each of the storage particles in the storage module with the power supply module when the working mode of the storage module is a normal working mode. connection; wherein, when the memory usage is greater than or equal to the preset memory usage, the working mode of the storage module is a normal working mode.

可选地,处理器510具体用于在所述存储模块的工作模式为所述低功耗模式的情况下,将K个所述存储颗粒组中的所述存储颗粒确定为所述目标存储颗粒,K<M;控制所述开关模块断开所述K个所述存储颗粒组中的所述存储颗粒与所述电源模块的连接。Optionally, the processor 510 is specifically configured to determine the storage granules in the K storage granule groups as the target storage granules when the working mode of the storage module is the low power consumption mode , K<M; controlling the switch module to disconnect the storage particles in the K storage particle groups from the power supply module.

可选地,处理器510还用于在控制所述开关模块断开所述存储模块中的目标存储颗粒与所述电源模块的连接之前,读取所述目标存储颗粒中的数据,将读取到的所述数据存储到与所述目标存储颗粒对应的备份存储颗粒中,其中,所述目标存储颗粒及其对应的备份存储颗粒是对应于同一个所述数据通道的存储颗粒,所述备份存储颗粒是非目标存储颗粒。Optionally, the processor 510 is further configured to read the data in the target storage particle before controlling the switch module to disconnect the target storage particle in the storage module from the power supply module, and read The received data is stored in the backup storage granule corresponding to the target storage granule, wherein the target storage granule and its corresponding backup storage granule are storage granules corresponding to the same data channel, and the backup storage granule A storage particle is a non-target storage particle.

可选地,处理器510具体用于在所述存储模块的工作模式为所述低功耗模式的情况下,控制所述开关模块按照所述数据通道对所述存储模块中的存储颗粒的工作状态进行分通道控制。Optionally, the processor 510 is specifically configured to control the switch module to work on the storage particles in the storage module according to the data channel when the working mode of the storage module is the low power consumption mode. The status is controlled by channel.

可选地,处理器510具体用于在所述存储模块的工作模式为所述低功耗模式的情况下,将L个所述数据通道对应的所述存储颗粒确定为所述目标存储颗粒,L<N;控制所述开关模块断开所述L个所述数据通道对应的所述存储颗粒与所述电源模块的连接。Optionally, the processor 510 is specifically configured to determine the storage granules corresponding to the L data channels as the target storage granules when the working mode of the storage module is the low power consumption mode, L<N; controlling the switch module to disconnect the storage particles corresponding to the L data channels from the power module.

可选地,处理器510还用于在控制所述开关模块断开所述存储模块中的目标存储颗粒与所述电源模块的连接之前,读取所述目标存储颗粒中的数据,将读取到的所述数据存储到与所述目标存储颗粒对应的备份存储颗粒中,其中,所述目标存储颗粒及其对应的备份存储颗粒是同一个所述存储颗粒组中的存储颗粒,所述备份存储颗粒是非目标存储颗粒。Optionally, the processor 510 is further configured to read the data in the target storage particle before controlling the switch module to disconnect the target storage particle in the storage module from the power supply module, and read The received data is stored in the backup storage granule corresponding to the target storage granule, wherein the target storage granule and its corresponding backup storage granule are storage granules in the same storage granule group, and the backup storage granule A storage particle is a non-target storage particle.

应理解的是,本申请实施例中,输入单元504可以包括图形处理器(GraphicsProcessing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元506可包括显示面板5061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板5061。用户输入单元507包括触控面板5071以及其他输入设备5072中的至少一种。触控面板5071,也称为触摸屏。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in the embodiment of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 is compatible with the image capture device (such as Camera) to process the image data of still pictures or videos. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072 . The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts, a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器509可以包括易失性存储器或非易失性存储器,或者,存储器509可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器509包括但不限于这些和任意其它适合类型的存储器。The memory 509 can be used to store software programs as well as various data. The memory 509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc. Furthermore, memory 509 may include volatile memory or nonvolatile memory, or, memory 509 may include both volatile and nonvolatile memory. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM). The memory 509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

处理器510可包括一个或多个处理单元;可选的,处理器510集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 510 .

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述功耗管理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by the processor, each process of the above power consumption management method embodiment is implemented, and can achieve The same technical effects are not repeated here to avoid repetition.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述功耗管理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above embodiment of the power consumption management method Each process, and can achieve the same technical effect, in order to avoid repetition, will not repeat them here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述功耗管理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above embodiments of the power consumption management method, and can achieve the same technology Effect, in order to avoid repetition, will not repeat them here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (11)

1. A memory, comprising:
a power module;
the data channels are connected with the processing module to transmit data, wherein N is a positive integer, and N is more than or equal to 2;
the storage module comprises N storage units which are in one-to-one correspondence with the N data channels, wherein the storage units comprise at least one storage particle, and the data ports of the storage particles are connected with the corresponding data channels; the method comprises the steps of,
the switch module is connected with the power supply module through the power supply port of the storage particles and is used for controlling the working state of the storage particles in the storage module.
2. The memory of claim 1, wherein the memory cell comprises M memory particles, M is a positive integer, and M is greater than or equal to 2;
the storage particles in the storage module are arranged into M storage particle groups, wherein the mth storage particle in the N storage units forms the mth storage particle group, and M is more than or equal to 1 and less than or equal to M;
the switch module is used for controlling the working states of the storage particles in the storage module in a grouping mode according to the storage particle group.
3. A power consumption management method applied to the memory of claim 1 or 2, characterized in that the method comprises:
acquiring the memory occupation amount of the storage module;
determining a working mode of the storage module according to the memory occupation amount, wherein the working mode of the storage module is a low-power consumption mode under the condition that the memory occupation amount is smaller than a preset memory occupation amount;
and under the condition that the working mode of the storage module is the low-power consumption mode, controlling the switch module to disconnect the target storage particles in the storage module from the power supply module.
4. A method according to claim 3, characterized in that the method further comprises:
under the condition that the working mode of the storage module is a normal working mode, the switch module is controlled to conduct the connection between each storage particle in the storage module and the power supply module;
and when the memory occupation amount is larger than or equal to the preset memory occupation amount, the working mode of the memory module is a normal working mode.
5. A method according to claim 3, wherein, in the case where the operation mode of the storage module is the low power consumption mode, controlling the switching module to disconnect the target storage particles in the storage module from the power supply module comprises:
Under the condition that the working mode of the storage module is the low-power consumption mode, determining the storage particles in K storage particle groups as the target storage particles, wherein K is smaller than M;
and controlling the switch module to disconnect the storage particles in the K storage particle groups from the power supply module.
6. The method of claim 5, wherein prior to controlling the switching module to disconnect the target storage particles in the storage module from the power module, the method further comprises:
and reading the data in the target storage grain, and storing the read data into a backup storage grain corresponding to the target storage grain, wherein the target storage grain and the backup storage grain corresponding to the target storage grain are storage grains corresponding to the same data channel, and the backup storage grain is a non-target storage grain.
7. A method according to claim 3, wherein, in the case where the operation mode of the storage module is the low power consumption mode, controlling the switching module to disconnect the target storage particles in the storage module from the power supply module comprises:
And under the condition that the working mode of the storage module is the low-power consumption mode, controlling the switch module to carry out channel separation control on the working state of the storage particles in the storage module according to the data channel.
8. A method according to claim 3, wherein, in the case where the operation mode of the storage module is the low power consumption mode, controlling the switching module to disconnect the target storage particles in the storage module from the power supply module comprises:
under the condition that the working mode of the storage module is the low-power consumption mode, determining the storage particles corresponding to L data channels as the target storage particles, wherein L is smaller than N;
and controlling the switch module to disconnect the storage particles corresponding to the L data channels from the power supply module.
9. The method of claim 8, wherein prior to controlling the switching module to disconnect the target storage particles in the storage module from the power module, the method further comprises:
and reading the data in the target storage particles, and storing the read data into backup storage particles corresponding to the target storage particles, wherein the target storage particles and the backup storage particles corresponding to the target storage particles are storage particles in the same storage particle group, and the backup storage particles are non-target storage particles.
10. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the power consumption management method of any of claims 3-9.
11. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the power consumption management method according to any of claims 3-9.
CN202310640628.7A 2023-05-31 2023-05-31 Memory, power consumption management method, electronic device and readable storage medium Pending CN116679877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310640628.7A CN116679877A (en) 2023-05-31 2023-05-31 Memory, power consumption management method, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310640628.7A CN116679877A (en) 2023-05-31 2023-05-31 Memory, power consumption management method, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN116679877A true CN116679877A (en) 2023-09-01

Family

ID=87783048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310640628.7A Pending CN116679877A (en) 2023-05-31 2023-05-31 Memory, power consumption management method, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN116679877A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118444843A (en) * 2023-11-13 2024-08-06 荣耀终端有限公司 Memory management method, electronic device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118444843A (en) * 2023-11-13 2024-08-06 荣耀终端有限公司 Memory management method, electronic device and storage medium
CN118444843B (en) * 2023-11-13 2025-02-18 荣耀终端有限公司 Memory management method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN105786403B (en) Storage device including buffer and main memory, and user device
CN108694019B (en) Selective noise tolerant mode of operation in memory
US20190034106A1 (en) Power down mode for universal flash storage (ufs)
US10032494B2 (en) Data processing systems and a plurality of memory modules
US8364856B2 (en) Memory module with configurable input/output ports
WO2012115975A1 (en) Variable impedance control for memory devices
US20190122729A1 (en) Selective performance level modes of operation in a non-volatile memory
US20250156121A1 (en) Background operations in memory
US8046618B2 (en) Semiconductor chip operating with minimal power consumption
US20240393860A1 (en) Power management in memory
CN116679877A (en) Memory, power consumption management method, electronic device and readable storage medium
US11609867B2 (en) Isolation component
US9304577B2 (en) Reducing power consumption and wakeup latency in SSD controllers by not resetting flash devices
CN115657937A (en) Memory chip, control method and electronic device
US20130132738A1 (en) Externally Powered System Access
US9350395B2 (en) Transmitting circuit and transceiver system including the same
US10852807B2 (en) Hybrid powering off of storage component memory cells
CN117370267B (en) System-on-chip, voltage control method of system-on-chip and terminal
US12452182B2 (en) Method and device for performing dynamic traffic shaping
US20250383981A1 (en) Apparatus configured to regulate the intake of read and write commands
CN116631465A (en) Power supply method, device, electronic device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination