CN103246479A - Memory management method and electronic device implementing same - Google Patents

Memory management method and electronic device implementing same Download PDF

Info

Publication number
CN103246479A
CN103246479A CN 201210030975 CN201210030975A CN103246479A CN 103246479 A CN103246479 A CN 103246479A CN 201210030975 CN201210030975 CN 201210030975 CN 201210030975 A CN201210030975 A CN 201210030975A CN 103246479 A CN103246479 A CN 103246479A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
memory
data
module
blocks
electronic device
Prior art date
Application number
CN 201210030975
Other languages
Chinese (zh)
Inventor
蔡锦和
许银雄
Original Assignee
宏碁股份有限公司
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

Links

Abstract

Disclosed are a memory management method and an electronic device implementing the same. The memory management method is implemented by the electronic device, the electronic device comprises at least one memory module, and the memory modules form a plurality of memory blocks. The memory management method includes steps of receiving an execution instruction; rearranging at least one datum stored in each memory module according to the execution instruction so as to store the datum in a single memory block or multiple continuous memory blocks in a centralized manner; and stopping powering other unused memory blocks among the multiple memory blocks. The invention further provides the electronic device implementing the memory management method. The memory management method and the electronic device have the advantages that when the electronic device is in an idle state or a sleep state, the data stored in the memory modules can be rearranged and concentrated in the partial memory blocks, and the other unused memory blocks of the memory modules are powered off, so that an effect of saving energy is realized, and redundant power consumption is reduced.

Description

记忆体管理方法及应用该方法的电子装置 The electronic device and a memory management method of application of the method

技术领域 FIELD

[0001] 本发明涉及一种记忆体管理方法,特别涉及一种可关闭记忆体模块的未使用部分以达到省电效果的记忆体管理方法。 [0001] The present invention relates to a memory management method, particularly to a memory module may be shut down unused portions of the memory management method to achieve the power saving effect.

背景技术 Background technique

[0002] 现今许多电子装置为了达到省电效果,在装置本身处于闲置状态或休眠模式下,装置的部分组件会被关闭或停止供电,以减少多余的电量消耗,例如显示屏幕、硬盘、处理器等。 [0002] Many electronic devices of today in order to achieve the power saving effect, the device itself is in the idle state or sleep mode, some components of the device are powered off or stopped to reduce redundant power consumption, such as a display screen, a hard disk, processors Wait. 然而就记忆体来说,一旦将其停止供电,记忆体内部暂存的动态数据将会遗失,将使装置系统发生错误;因此若需要关闭记忆体,必须先将原先储存于记忆体内部的数据写入硬盘,待记忆体恢复供电后,再将数据自硬盘重新写入记忆体。 However, on the memory, it once stops its power, internal memory temporarily stored dynamic data will be lost, the device will cause a system error; therefore need to be closed if the memory, the data must first be previously stored in the internal memory written to disk, memory until power is restored, then the data from the hard disk memory is rewritten.

[0003] 现有技术如中国台湾专利第1343519号公告,其针对记忆体中的已存数据进行压缩,以便缩减记忆体所使用空间,并将未使用的部分记忆体模块予以断电,藉此达到减少装置耗电量的效果。 [0003] prior art, such as China Taiwan Patent No. 1343519 bulletin, which was for the memory of the saved data compression to reduce the memory space used, and will be off unused portions of memory modules, thereby to achieve the effect of reducing the power consumption of the device. 然而此设计必须针对记忆体中的数据进行压缩及解压缩,如此将增加额外的系统运算处理及耗电量,反而可能会增加系统负荷而无法达到预期的节能省电效果。 However, this must be designed for the data memory compression and decompression, so the additional operation processor and power consumption, but may increase system load and can not achieve the desired energy saving effect.

发明内容 SUMMARY

[0004] 有鉴于此,本发明的主要目的是提供一种可关闭记忆体模块的未使用部分以达到省电效果的记忆体管理方法及应用该方法的电子装置,以解决现有技术存在的电子装置必须于中断录像操作后,才能针对已录制的影片部分进行影片编辑的技术问题。 [0004] In view of this, the main object of the present invention is to provide a memory management method of closing the unused portion to achieve the power saving effect of the memory module and an electronic device applying the method to solve the prior art present electronic devices must be to interrupt the recording, you can perform technical issues for video editing video section has been recorded.

[0005] 为达到上述的目的,本发明的采用如下的技术方案: [0005] To achieve the above object, the present invention adopts the following technical solution:

[0006] 一种记忆体管理方法是应用于电子装置,电子装置包括形成多个记忆体区块的至少一记忆体模块、控制模块及电源模块。 [0006] A memory management method is applied to at least one of the memory modules of the electronic device, the electronic device comprising forming a plurality of memory blocks, the control module and power modules. 该方法包括以下步骤: The method comprises the steps of:

[0007] 通过控制模块接收一执行指令; [0007] receiving an execution instruction by the control module;

[0008] 依据执行指令重新排列储存于记忆体模块中的至少一数据,以将至少一数据集中储存于单一记忆体区块或多个连续记忆体区块中;以及 [0008] at least one of the execution instruction based on the data stored in the rearrangement memory module, at least one data set is stored in a single memory block or a plurality of consecutive blocks of memory; and

[0009] 通知电源模块停止供电给多个记忆体区块中未使用的其他记忆体区块。 [0009] The notification module stops power supply to other blocks of memory in the plurality of memory blocks unused.

[0010] 本发明还提供一种应用前述记忆体管理方法的电子装置,其包括: [0010] The present invention also provides an electronic device using the aforementioned memory management method, comprising:

[0011] 至少一记忆体模块,包括多个记忆体区块,用以储存至少一数据,各数据是以多个数据区块形式储存于多个记忆体区块中; [0011] at least one memory module comprising a plurality of blocks of memory for storing at least one data, the plurality of data blocks of each data is stored in the form of a plurality of memory blocks;

[0012] 一控制模块,用以接收一执行指令以重新排列储存于该至少一记忆体模块中的该至少一数据,以将该至少一数据集中储存于单一该记忆体区块或多个连续的该记忆体区块; [0012] a control module for receiving an execution instruction to rearrange the data stored in at least one of the at least one memory module, the at least one data set that is stored in a single block or a plurality of consecutive memory the blocks of memory;

[0013] 一电源模块,用以供电给该多个记忆体区块;以及 [0013] a power module, the plurality of memory blocks for powering; and

[0014] 一处理模块,用以发出该执行指令,并于该控制模块完成该至少一数据的重新排列后,通知该电源模块停止供电给该多个记忆体区块中未使用的其他该记忆体区块。 After [0014] a processing module for sending the execution instruction, and the control module to complete the rearrangement of the at least one data, notifies the power supply stops supplying power to other modules of the memory of the plurality of memory blocks unused body block.

[0015] 由于采用以上技术特征,使得本发明相比现有技术,具有如下的优点和积极性效果: [0015] As a result of the above technical features, such that the present invention compared to the prior art, has the following advantages and active effects:

[0016] 通过本发明的设计,在电子装置处于闲置或休眠状态下,可针对记忆体模块所储存的数据重新排列并集中于部分记忆体区块内,以将记忆体模块中未使用的其他记忆体区块进行断电,达到节能省电的效果,以减少多余的电量消耗。 [0016] By design of the present invention, in the electronic device is idle or dormant state, can be rearranged and concentrated in some memory blocks of memory modules for data stored to the memory modules are not used in other power down the memory blocks, to achieve energy saving effect to reduce extra power consumption.

[0017] 以下结合附图和具体实施例对本发明进行详细描述,但不作为对本发明的限定。 [0017] The following embodiments in conjunction with accompanying drawings and specific embodiments of the present invention will be described in detail, but do not limit the present invention.

附图说明 BRIEF DESCRIPTION

[0018] 图1是本发明的电子装置的第一实施例的系统方框图; [0018] FIG. 1 is a system block diagram showing a first embodiment of an electronic device of the present invention;

[0019] 图2 (a)是本发明的电子装置的第一实施例的记忆体模块进行数据重新排列前的示意图; [0019] FIG. 2 (a) is a diagram showing data rearrangement before the memory module of the first embodiment of the electronic device of the present invention;

[0020] 图2(b)是本发明的电子装置的第一实施例的记忆体模块进行数据重新排列后的示意图; [0020] FIG. 2 (b) is a schematic view of the data rearrangement memory module of the first embodiment according to the present embodiment of the electronic device of the invention;

[0021] 图3是本发明的电子装置的第二实施例的系统方框图; [0021] FIG. 3 is a system block diagram showing a second embodiment of the electronic apparatus of the present invention;

[0022] 图4是本发明的记忆体管理方法的一实施例的流程图; [0022] FIG. 4 is a flowchart of an embodiment of a memory management method of the present invention;

[0023] 图5是本发明的记忆体管理方法的另一实施例的流程图。 [0023] FIG. 5 is a flowchart of another method for managing memory of the present embodiment of the invention. 具体实施方式 detailed description

[0024] 为能更了解本发明的技术内容,特举出较佳实施例说明如下。 [0024] The art can better understand the present invention, particularly preferred embodiments include embodiments described below.

[0025] 请参考图1是本发明的电子装置I的第一实施例的示意图。 [0025] Please refer to FIG. 1 is a schematic view of a first embodiment of the electronic device I of the present invention. 在本发明的各实施例中,电子装置是为便携计算机或台式计算机等计算机装置,但依据应用类型不同,电子装置也可为其他可供设置记忆体模块的电子装置,不以本实施例为限。 In various embodiments of the present invention, the electronic device is a portable computer or desktop computer, computer device, but different types depending on the application, the electronic device may also be provided for the other memory modules of the electronic device is not limited to this embodiment limit.

[0026] 如图1所示,本发明的电子装置I包括至少一记忆体模块10、控制模块20、处理模块30及电源模块40,处理模块30是与各模块彼此电性连接,且通过电源模块40供应各模块所需电源。 [0026], the electronic device according to the present invention, FIG. 1 I comprises at least one memory module 10, control module 20, processing module 30 and power module 40, processing module 30 are electrically connected to each module, and the power by power supply module 40 required for each module. 在本实施例中,至少一记忆体模块10是为单一记忆体模块,其包括多个记忆体区块11至18,用以储存至少一数据,任一数据是以多个数据区块所构成。 In the present embodiment, at least one memory module 10 is a single memory module, comprising a plurality of memory blocks 11 to 18, for storing at least one data, any data is composed of a plurality of data blocks . 此处记忆体模块10可视为一记忆体装置,而各个记忆体区块11至18则为记忆体装置上的各个记忆体芯片,但记忆体装置上所设置的记忆体区块数量与划分方式不以本实施例为限。 Here memory modules 10 can be regarded as a memory device, and each of the memory blocks 11 to 18, compared with each of the memory chips on the memory device, the number of blocks of memory on a memory device provided with partitioning in the present embodiment mode is not limited thereto. 例如可将相邻的连续多个记忆体芯片视为同一个记忆体区块,或于记忆体装置上设置容量及体积更小的记忆体芯片,以增加记忆体区块的数量等,端视设计需求不同而改变。 For example, a plurality of successive adjacent memory chips as the same memory block or set of smaller capacity and memory chips on the memory device, to increase the number of memory blocks and the like, and it depends different design requirements change.

[0027] 控制模块20用以接收执行指令以针对至少一记忆体模块10内所储存的至少一数据进行数据搬移,在本发明的各实施例中,控制模块20可为在操作系统下执行的应用程序,或是储存有该应用程序的硬件组件,例如基本输入输出系统芯片(BIOS)或只读存储器(ROM)等,但不以本实施例为限。 [0027] The control module 20 is used for receiving an instruction to execute at least one of the at least one data memory modules 10 move data stored in each of the embodiments of the present invention, the control module 20 can be executed in the operating system application, or stored hardware components of the application, for example, a basic input output system chip (BIOS) or read only memory (ROM) and the like, but not limited to the present embodiment.

[0028] 处理模块30用以发出执行指令至控制模块20,并通知电源模块40是否对至少一记忆体模块10的记忆体区块11至18正常供电。 [0028] The processing module 30 is configured to issue an instruction execution control module 20, and notifies the power module 40 is a memory block of the memory module 10 at least 11 to 18 normal power supply pair. 在本实施例中,处理模块30可包括中央处理器及/或储存于硬盘等储存装置内的操作系统;中央处理器可先加载操作系统,而当操作系统检测到已闲置一定时间或切换至休眠状态后,即可发出前述的执行指令通知控制模块20,以令控制模块20对应执行至少一记忆体模块10的数据重新排列的动作。 In the present embodiment, the processing module 30 may include a central processor and an operating system / or stored in the hard disk storage device; a central processor to load the operating system, and when the operating system has detected a specified period, or switch to hibernation, the execution instruction to issue a notification control module 20, in order to make the control module 20 performs at least data corresponding to a memory module 10 is rearranged operation.

[0029] 而电源供应模块40用以供应各模块所需的电源,且通过各开关51至58来控制对应至少一记忆体模块10的各记忆体区块11至18的供电。 [0029] and the power supply module 40 for supplying power required for each module, and controls the power supply to at least one of the memory modules corresponding to each of the memory blocks 11 to 10 through the switches 18, 51-58. 当储存于至少一记忆体模块10中的所有数据在完成重新排列后,控制模块20即可通知处理模块30,以命令电源供应模块40对于未使用的记忆体区块执行停止供电。 When all the data stored in at least one memory module 10 after completion of the rearrangement, the control module 20 to processing module 30 notifies, to command the power supply module 40 for the memory block performing an unused power supply is stopped.

[0030] 为了确保记忆体模块10内所储存数据可被正确读取,系统会于记忆体模块10内产生一对应数据(mapping table),此对应数据用以记录任一数据的各数据区块所对应的虚拟记忆体地址及实际储存于对应记忆体区块11至18内的物理记忆体地址。 [0030] In order to ensure that the memory modules 10 stored in the data can be read correctly, the system generates a corresponding data (mapping table) in the memory module 10, for recording data corresponding thereto for each data block according to any one of the data the corresponding virtual memory addresses and real memory is stored in the corresponding blocks of physical memory addresses in the 11 to 18. 因此,通过此对应数据,可供控制模块20辨识出目前使用中的记忆体区块,并于各数据区块产生搬动后,系统会修改以更新对应数据,以避免产生数据读取错误的情况。 Accordingly, this corresponding data, the control module 20 for identifying the blocks of memory currently in use, and generates the moving, the system will be changed to update the data corresponding to each data block to avoid data read error Happening.

[0031] 请一并参考图2(a)、图2(b)。 [0031] Please refer to FIG. 2 (a), FIG. 2 (b). 图2 (a)是本发明的电子装置I的第一实施例的记忆体模块10进行数据重新排列前的示意图;图2(b)是本发明的电子装置I的第一实施例的记忆体模块10进行数据重新排列后的示意图。 FIG 2 (a) is a diagram showing data rearrangement before the electronic device I of the present invention the memory modules 10 of the first embodiment; FIG. 2 (b) is the memory of the first embodiment of the electronic device I of the present invention. schematic view of the data rearrangement block 10.

[0032] 如图2(a)所示,在一般情况下,当任一数据的多个数据区块储存于多个记忆体区块11至18中时,为了提高数据访问速度,装置系统会将该数据的多个数据区块分散储存于各个记忆体区块11至18。 [0032] FIG. 2 (a), in general, when any data of a plurality of data blocks stored in the plurality of memory blocks 11 to 18, in order to improve the speed of data access, the system means the dispersion of the plurality of data blocks stored in the respective data memory blocks 11 to 18. 在本实施例中,假设该数据为I个二进制的字节,其是由「01100111」等8个位所组成,各个位可视为一数据区块。 In the present embodiment, it is assumed that the binary data bytes I, which is composed of eight bits "01100111", etc. composed of individual bits can be regarded as a data block. 因此,该字节被储存于记忆体模块10时,会将该字节的各个位分别储存于各个记忆体区块11至18中。 Thus, the byte is stored in the memory module 10, the individual bits will be stored in each byte of memory blocks each of 11 to 18.

[0033] 如图1及图2 (b)所示,当控制模块20接受到前述执行指令时,即依据执行指令重新排列储存于记忆体模块10中的该字节数据,以针对该数据进行其数据区块于不同记忆体区块11至18间的搬移。 The byte data [0033] As shown in FIG. 1 and FIG. 2 (b), when the control module 20 receives the execution instruction, i.e. according to the execution instruction rearrangement stored in the memory module 10 to perform on the data which data blocks to different memory blocks moving between 11 to 18. 在本实施例中,控制模块20是将原本分散储存于各记忆体区块11至18的各个位,经数据重新排列后,将原本储存于记忆体区块15至18的位集中储存于多个连续的记忆体区块11至14中,如图2(b)所示;控制模块20也同时针对前述对应数据进行更新,以反映出目前各数据区块所对应的实际储存位置。 In the present embodiment, the control module 20 is originally stored in the respective dispersed bit memory blocks each of 11 to 18, after the data rearrangement, the bit originally stored in the memory blocks 15 to 18 is stored in the multi-focus the control module 20 also updated for the corresponding data, the current position to reflect the actual storage of each data block corresponds; contiguous memory blocks 11 to 14, 2 (b) shown in FIG. 藉此,使得前述记忆体区块15至18所储存数据已被清空,而处于未被使用的状态,也即于多个记忆体区块11至18中形成未使用的其他记忆体区块15至18。 Thereby, so that the memory blocks 15 to 18 stored data has been emptied, is in a state not used, i.e. in the plurality of memory blocks 11 to 18 formed in the other memory blocks unused 15 18.

[0034] 前述控制模块20针对有关连续记忆体区块的判断,可通过读取一记忆体链接信息而得知,此记忆体链接信息可定义各记忆体区块11至18的间的实体连接关系,以供判断哪些记忆体区块彼此为相邻的连续记忆体区块。 [0034] The control module 20 for determination about the continuous blocks of memory, and can be learned by reading a memory link information, the entity link between this memory information may define each of the memory blocks 11 to 18 are connected relation, which is determined for the memory block adjacent to each other in continuous blocks of memory. 而此记忆体链接信息可储存于不会因断电而导致数据消失的硬件装置内,例如BIOS、ROM或硬盘装置内,但不以本实施例为限。 And this information is stored in a memory link power failure will not cause data loss within a hardware device, such as the BIOS, ROM, or hard disk device, but the embodiment is not limited to the present embodiment.

[0035] 控制模块20在完成前述数据重新排列,空出了未被使用的记忆体区块15至18后,即可通知处理模块30,而处理模块30将命令电源模块40对于这些未被使用的记忆体区块15至18执行停止供电的动作,因此电源模块40会对应关闭开关55至58,以中断对记忆体区块15至18的供电。 [0035] The control module 20 in the data rearrangement is completed, an empty memory block is not used after 15 to 18, 30 to inform the processing module, the processing module 30 commands the power module 40 is not used for these the memory blocks 15 and 18 perform the operation to stop power supply, so the power module 40 turns off the switch corresponding to 55 to 58 to interrupt power to the memory blocks 15 to 18. 藉此设计可达到针对记忆体模块10执行部分供电部分断电的效果,以节省不必要的电量消耗。 Whereby the design effect can be achieved for the module memory section 10 performs the power supply part is switched off to save unnecessary power consumption.

[0036] 请参考图3是本发明的电子装置Ia的第二实施例的示意图。 [0036] Please refer to FIG. 3 is a schematic view of a second embodiment of the electronic apparatus Ia according to the invention. 如图3所示,在本实施例中,本发明的电子装置10包括二个记忆体模块10a、10b,每一个记忆体模块10a、IOb可为一记忆体装置,且各个记忆体装置整体可视为单一记忆体区块Ila或Ilb,使得二个记忆体模块10a、IOb形成分别不同的二个记忆体区块I la、I lb,但记忆体模块10a、IOb所设置数量与其包括的记忆体区块IlaUlb的数量不以本实施例为限。 3, in the present embodiment, the electronic device 10 of the present invention comprises two memory modules 10a, 10b, each of the memory modules 10a, IOb may be a memory device, and each of the memory devices may be integrally as a single memory block Ila or Ilb, such that two memory modules 10a, IOb are formed of two different memory blocks I la, I lb, but the memory modules 10a, IOb the amount of memory provided thereto comprising IlaUlb body block number is not limited to the present embodiment. 例如电子装置Ia可增设更多的记忆体装置,或是将各个记忆体装置划分为二个以上的记忆体区块等,端视设计需求不同而改变。 Ia, for example, the electronic device can be added more memory devices, each memory device or to be divided into two or more blocks of memory, etc., different and depends on design requirements vary.

[0037] 如图3所示,在本实施例中,在电子装置Ia设置有多个记忆体模块10a、IOb的情况下,当任一数据的多个数据区块欲储存于记忆体模块10a、10b中时,为了提高数据访问速度,装置系统会将该数据的多个数据区块分散为二部分,分别储存于各个记忆体区块IlaUlb 中。 [0037] 3, in the present embodiment, the electronic device Ia is provided with a plurality of memory modules 10a, IOb the case, when any one of the plurality of data blocks to be stored in the data memory modules 10a when 10b in order to increase the speed of data access, the system means the plurality of data blocks of data are dispersed into two portions, they are stored in the respective memory blocks in IlaUlb.

[0038] 而当控制模块20接受到前述执行指令时,即依据执行指令重新排列储存于记忆体模块10a、10b中的该数据,将原本储存于记忆体区块Ilb的数据区块集中储存于单一记忆体区块Ila中;控制模块20也同时针对前述对应数据进行更新,以反映出目前各数据区块所对应的实际储存位置。 [0038] When the control module 20 receives the execution instruction, i.e. rearrange stored in the execution instruction based on the memory modules 10a, 10b in the data, the original data block stored in the block memory is stored centrally on Ilb Ila single blocks of memory; and the control module 20 is also updated for the corresponding data, the current position to reflect the actual storage of each data block corresponds. 藉此,使得前述记忆体区块Ilb所储存数据已被清空,也即记忆体模块IOb本身处于未被使用的状态。 Thereby, so that the memory block Ilb stored data has been emptied, i.e., memory modules IOb itself in a state of not being used.

[0039] 在空出了未被使用的记忆体区块Ilb后,控制模块20即可通知处理模块30,以命令电源模块40对应关闭开关50b,以中断对记忆体区块Ilb的供电。 [0039] After an empty memory blocks unused Ilb, notifies the control module 20 to processing module 30, power module 40 corresponds to a command to close switch 50b, in order to interrupt the power supply to the memory block Ilb. 藉此设计可达到针对不同记忆体模块10执行部分供电部分断电的效果,以节省不必要的电量消耗。 Whereby the design can be achieved for different memory modules off power supply portion 10 operative effect to save unnecessary power consumption.

[0040] 请参考图4是本发明的记忆体管理方法的一实施例的流程图。 [0040] Please refer to FIG. 4 is a flowchart of an embodiment of a memory management method of the present invention. 须注意的是,以下虽以图1所示的电子装置I为例说明本发明的记忆体管理方法,但本发明并不以适用于电子装置I为限,如前述电子装置Ia或任何其他具类似架构的电子装置也可适用本发明的方法。 It should be noted that, although the electronic device I shown in FIG. 1 as an example memory management method of the present invention, but the present invention is not to be suitable for electronic device I is limited, as described above, or any other electronic device having Ia the electronic device of similar architecture is applicable method of the present invention. 如图4所示,本发明的记忆体管理方法包括步骤S401至步骤S404。 4, the memory management method of the present invention comprises a step S401 to step S404. 以下将详细说明该方法的各个步骤。 The various steps of the method described in detail below.

[0041] 步骤S401:接收执行指令。 [0041] Step S401: receiving the execution instruction.

[0042] 电子装置I的处理模块30在加载操作系统后,当系统经闲置一定时间或切换至休眠状态后,处理模块30即会发出执行指令通知控制模块20,而控制模块20于接收执行指令后即准备进行针对记忆体模块10的节能省电操作。 [0042] The electronic device I processing module 30 after loading the operating system, when the system is idle for a certain time or a sleep state, the processing module 30 will issue execution instruction notifies the control module 20, the control module 20 executes instructions to receive for energy saving and prepares operations for memory modules 10.

[0043] 步骤S402:依据·执行指令重新排列储存于至少一记忆体模块10中的至少一数据,以将至少一数据集中储存于单一记忆体区块或多个连续记忆体区块中。 [0043] Step S402: rearranging the data stored in at least one of the at least one memory module 10 according to the instruction-execution, at least one data set is stored in a single memory block or a plurality of consecutive memory blocks.

[0044] 在控制模块20接收到执行指令后,即可依据执行指令于至少一记忆体模块的各记忆体区块间重新排列所储存中的至少一数据,以将该数据经搬移后集中某些记忆体区块内,例如前述第一实施例中将数据集中于同一记忆体模块10的连续记忆体区块中(如连续的记忆体区块11至14),或如前述第二实施例中将数据集中于多个记忆体模块10a、10b的其中至少一者(如记忆体区块11a),使得这些记忆体模块得以空出其他未使用的记忆体区块。 [0044] After the control module 20 receives the execution instruction, the execution instruction according to at least one of the data rearrangement is stored in the memory blocks among the at least one memory module to the data after moving a focus these blocks of memory within, for example, the first embodiment will be focused on the embodiment of the continuous data of the same memory blocks of memory module 10 (e.g., contiguous memory blocks 11 to 14), or the second embodiment as described above wherein at least one of a plurality of data set in the memory modules 10a, 10b (e.g., the memory block 11a), such that the memory modules to other memory blocks empty unused. 需注意的是,在进行数据重新排列的同时,控制模块20也会同步更新储存于至少一记忆体模块中的对应数据,以确保数据经搬移后所储存的物理记忆体地址与虚拟记忆体地址的相关对应,避免数据存取时产生错误。 It is noted that, while performing the data rearrangement, the data corresponding to the control module 20 is also stored in the at least one synchronization update memory modules in order to ensure that the physical memory address of data stored by the move of the virtual memory address related correspondence, to avoid data access errors.

[0045] 步骤S403:停止供电给多个记忆体区块中未使用的其他记忆体区块。 [0045] Step S403: stopping supplying power to a plurality of other memory blocks of memory blocks unused.

[0046] 在完成至少一记忆体模块的数据重新排列,并空出未被使用的记忆体区块后,控制模块20即可通知处理模块30,以命令电源模块40停止供电给这些未被使用的记忆体区块;因此电源模块40会关闭对应这些记忆体区块的供电开关,以针对不同记忆体区块或记忆体模块达到不同的供电效果。 [0046] After completion of the data of at least one of the memory modules are rearranged, and an empty memory block is not used, the control module 20 to processing module 30 notifies, to command the power module 40 stops supplying power to these unused the blocks of memory; therefore the power module 40 corresponding to these memory blocks off the power switch, the power supply to achieve different effects for different memory blocks or memory modules.

[0047] 此外,于步骤S402前还可包括步骤S404:清除至少一记忆体模块中的所有快取数据(cache)。 [0047] Further, at step S402 may further comprise before step S404: clear all data cache (Cache) memory of at least one module. [0048] 在控制模块20针对至少一记忆体模块10进行数据重新排列前,可先通知处理模块30执行至少一记忆体模块中的所有快取数据的清除动作,以减少后续需要搬移排列的数据量。 [0048] Before the control module 20 for at least a data rearrangement memory modules 10, 30 may first notify the processing operation executing module clears all cached data to the at least one memory module, to reduce the need to move data arranged subsequent the amount. 由于电子装置I在系统执行过程中,会运用记忆体模块暂存大量的快取数据,这些快取数据通常都是可被删除省略的,因此通过处理模块30先针对至少一记忆体模块10进行快取数据的清除动作,有助于提升后续数据重新排列的处理速度及减少资源消耗。 Since the electronic device I during execution system, memory modules will use a large amount of temporary data cache, cache data which may be deleted are often omitted, thus performed for at least a first memory module 10 by the processing module 30 cache data cleanup actions, help to improve the processing speed of the subsequent data rearrangement and reduce resource consumption.

[0049] 而在系统自闲置或休眠状态回复为一般状态时,处理模块30会通知电源模块40,开启对应开关以重新恢复对记忆体模块10未使用的记忆体区块的供电,让各记忆体模块10回复初始状态以供系统使用。 [0049] In the system from the idle or dormant state reverts to state general, the processing module 30 notifies the power supply module 40, a corresponding switch is turned on again to restore power to the memory block 10 are not used in memory modules, so that each of the memory the module body 10 for return to the initial state of the system.

[0050] 请参考图5是本发明的记忆体管理方法的另一实施例的流程图。 [0050] Please refer to FIG. 5 is a flowchart of another method for managing memory of the present embodiment of the invention. 如图5所示,在本实施例中,本发明的记忆体管理方法包括步骤S501至步骤S506,其中步骤S501至S502与前述步骤S401至S402内容相同,在此不多加赘述。 5, in the present embodiment, the memory management method of the present invention comprises a step S501 to step S506, the steps S501 to S502 in which steps S401 to S402 with the same content, and are not narrated herein. 以下将详细说明该方法中的步骤S503至S506。 Described in detail below in the method steps S503 to S506.

[0051] 步骤S503:接收中断指令。 [0051] Step S503: receiving an interrupt instruction.

[0052] 于执行步骤S502的过程中,若系统已跳离闲置或休眠状态,表示用户可能需要立即使用电子装置I,此时处理模块30会发出中断指令至控制模块20。 [0052] The process performed in step S502, if the system is idle or dormant state to jump off, indicating that the user may require immediate use of electronic devices I, this time the processing module 30 will issue an interrupt instruction to the control module 20.

[0053] 步骤S504:判断目前搬移中的数据的目标数据区块是否已移入目标记忆体区块并已更新对应数据。 [0053] Step S504: the target current determination data block in the data has been moved into the target memory block and corresponding to the updated data.

[0054] 在数据搬移过程中,该数据的多个数据区块会依照所设定的不同搬移规则而逐一进行搬移。 [0054] In the process of moving the data, the plurality of data blocks of the data will be moved one by one according to different rules set moving. 当控制模块20接收中断指令后,随即判断目前于至少一记忆体模块中正在搬移的数据的一目标数据区块,是否已经依照原本重新排列的规划而移入一目标记忆体区块中,并且检查所储存的对应数据是否已因应此目标数据区块的搬移而更新。 When the control module 20 receives an interrupt instruction, then determines a target current data block to at least one memory module data is being moved, whether in accordance with the original plan and rearranged into a certain memory block, and checks whether the corresponding data has been stored in response to this moving target data block is updated. 若前述二个条件均已被满足,则续行步骤S506 ;若前述二个条件有任一个未被满足,则续行步骤S505。 If the two conditions have been met, then the continuation lines step S506; if any one of the two conditions is not satisfied, then the line continuation step S505.

[0055] 步骤S505:等待目标数据区块移入及对应数据更新完成。 [0055] Step S505: waiting for the target data block and the corresponding shifted data update is complete.

[0056] 经前述步骤S504判断前述任一个条件未被满足时,控制模块20会继续执行目前目标数据区块的移入操作及相关对应数据的更新操作。 [0056] When the determination in step S504 by any one of the condition is not satisfied, the control module 20 continues performing the current update operation target data block into the corresponding data and associated operations. 而在目标数据区块移入及对应数据更新均完成后,再续行步骤S506。 After the data block into the target and corresponding data updates are completed, the line adjourned step S506.

[0057] 步骤S506:中断至少一数据的重新排列。 [0057] Step S506: interrupting at least one rearranged data.

[0058] 当前述目标数据区块移入及对应数据更新均完成后,控制模块20判断目前的数据重新排列操作可暂且告一段落,因此可因应前述中断指令,中断至少一数据的重新排列,并把对至少一记忆体模块的控制权限交还给处理模块30。 [0058] After the aforementioned target data block and the corresponding shifted data updates are completed, the control module 20 determines that the current data rearrangement can temporarily come to an end, it is possible in response to the interrupt instruction, a break of at least rearranging the data, and the control right of the at least one memory module 30 back to the processing module. 藉此,在用户接续操作电子装置而进行相关数据存取时,数据不会发生存取错误等问题。 Whereby, when the user performs the connection operation of the electronic device related data access, data access error or the like problem does not occur.

[0059] 通过本发明的设计,在系统闲置或休眠等状态下,可将记忆体模块所储存的数据集中于部份记忆体区块内,并针对未被使用的其他记忆体区块执行断电,以节省该些记忆体区块不必要的电量消耗,相较于前案无需额外进行数据压缩与解压缩的程序,更能加快执行效率并达到有效节能。 [0059] By design of the present invention, in the idle or sleep state and other systems, the memory modules may be stored in data set in the memory portion of the block, and perform off against other unused blocks of memory electricity, in order to save some of the memory block unnecessary power consumption, compared to the previous case, no additional data compression and decompression procedures, speed up the efficiency and achieve more effective energy conservation.

[0060]当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 [0060] Of course, the present invention may have a variety of other embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding modifications and variations according to the present invention, but these corresponding changes and variations should fall within the scope of the appended claims.

Claims (10)

  1. 1.一种记忆体管理方法,是应用于一电子装置,该电子装置包括形成多个记忆体区块的至少一记忆体模块,其特征在于,该方法包括以下步骤: 接收一执行指令; 依据该执行指令重新排列储存于该至少一记忆体模块中的至少一数据,以将该至少一数据集中储存于单一该记忆体区块或多个连续的该记忆体区块;以及停止供电给该多个记忆体区块中未使用的其他该记忆体区块。 A memory management method is applied to an electronic device, the electronic device comprising a plurality of memory blocks forming the at least one memory module, wherein, the method comprising the steps of: receiving an execution instruction; basis at least one of the execution instruction data stored in the rearrangement of at least one memory module, the at least one data set stored in the single memory block or a plurality of consecutive blocks of the memory; and stopping supplying power to the other memory blocks of the plurality of memory blocks unused.
  2. 2.如权利要求1所述的记忆体管理方法,其特征在于,还包括以下步骤: 于重新排列储存于该至少一记忆体模块中的该至少一数据前,清除该至少一记忆体模块中的所有快取数据。 2. The memory management method according to claim 1, characterized in that, further comprising the step of: prior to the at least one data rearrangement is stored in the at least one memory module, remove the at least one memory module, All cached data.
  3. 3.如权利要求1所述的记忆体管理方法,其特征在于,其中于重新排列该至少一数据时,同步更新储存于该至少一记忆体模块内的一对应数据,该对应数据为记录该至少一数据的各数据区块所对应的一虚拟记忆体地址及储存于该多个记忆体区块内的一物理记忆体地址。 3. The memory management method according to claim 1, wherein, when the rearrangement wherein at least one of data, a synchronization update corresponding data stored within the at least one memory module, the data corresponding to the record at least one data block of each data corresponding to a virtual memory address and is stored in a physical memory address in the plurality of memory blocks.
  4. 4.如权利要求1所述的记忆体管理方法,其特征在于,还包括以下步骤: 接收一中断指令; 判断目前所搬移该数据的一目标数据区块是否已移入一目标记忆体区块并已更新该对应数据;以及当目前所搬移的该数据的任一该目标数据区块已移入该目标记忆体区块并已对应更新该对应数据后,中断该至少一数据的重新排列。 4. The memory management method according to claim 1, characterized by further comprising the steps of: receiving an interrupt instruction; determining whether an object is currently moving data block of the data has been moved into a certain memory block, and the corresponding data has been updated; and when any of the data currently moving after a block has been moved into the target data of the target block and has a corresponding memory corresponding to the updated data, a rearrangement of at least interrupt the data.
  5. 5.如权利要求4所述的记忆体管理方法,其特征在于,其中该至少一记忆体模块为一单一记忆体模块,且该单一记忆体模块包括该多个记忆体区块。 5. The memory management method according to claim 4, wherein, wherein the at least one memory module is a single memory module, and the module comprises a single memory of the plurality of memory blocks.
  6. 6.一种电子装置,其特征在于,包括: 至少一记忆体模块,包括多个记忆体区块,用以储存至少一数据,各该数据是以多个数据区块形式储存于该多个记忆体区块中; 一控制模块,用以接收一执行指令以重新排列储存于该至少一记忆体模块中的该至少一数据,以将该至少一数据集中储存于单一该记忆体区块或多个连续的该记忆体区块; 一电源模块,用以供电给该多个记忆体区块;以及一处理模块,用以发出该执行指令,并于该控制模块完成该至少一数据的重新排列后,通知该电源模块停止供电给该多个记忆体区块中未使用的其他该记忆体区块。 An electronic device, comprising: at least one memory module comprising a plurality of blocks of memory for storing at least one data, each of the plurality of data is stored in the data blocks in the form of a plurality of memory block; a control module for receiving an execution instruction to rearrange the at least one stored in memory modules of the at least one data, the at least one data set stored in the memory block or a single the plurality of consecutive blocks of memory; a power module for powering the plurality of blocks of memory; and a processing module for sending the execution instruction, and the at least one complete data to the control module again after alignment, the notification of the power module stops supplying power to the other memory block of the plurality of memory blocks unused.
  7. 7.如权利要求6所述的电子装置,其特征在于,其中于该控制模块重新排列储存于该至少一记忆体模块中的该至少一数据前,该处理模块清除该至少一记忆体模块中的所有快取数据。 The electronic device according to claim 6, wherein, wherein the control module to rearrange the at least one prior data is stored in the at least one memory module, the processing module to clear the at least one memory module, All cached data.
  8. 8.如权利要求6所述的电子装置,其特征在于,其中于重新排列该至少一数据时,该控制模块同步更新储存于该至少一记忆体模块内的一对应数据,该对应数据为记录该至少一数据的各数据区块所对应的一虚拟记忆体地址及储存于该多个记忆体区块内的一物理记忆体地址。 The electronic device according to claim 6, wherein, wherein at least one of the reordered data, the control module a synchronization update corresponding data stored within the at least one memory module, the corresponding data is recorded each data block of the at least one data corresponding to a virtual memory address and is stored in a physical memory address in the plurality of memory blocks.
  9. 9.如权利要求8所述的电子装置,其特征在于,其中当该控制模块于重新排列该至少一数据的过程中接收一中断指令时,若该控制模块判断目前所搬移该数据的任一目标数据区块已移入一目标记忆体区块并已更新该对应数据,则中断该至少一数据的重新排列。 The electronic device according to claim 8, characterized in that, when the process wherein the rearrangement control module to the at least one data receiving an interrupt instruction, the control module determines if the current data according to any one of the moving target data block has been moved into a certain memory block and corresponding to the updated data, which is interrupted at least a rearrangement of data.
  10. 10.如权利要求6所述的电子装置,其特征在于,其中该至少一记忆体模块为一单一记忆体模块,且该单一记忆体模块包括该多个记忆体区块。 The electronic device according to claim 6, wherein, wherein the at least one memory module is a single memory module, and the module comprises a single memory of the plurality of memory blocks.
CN 201210030975 2012-02-06 2012-02-06 Memory management method and electronic device implementing same CN103246479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210030975 CN103246479A (en) 2012-02-06 2012-02-06 Memory management method and electronic device implementing same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210030975 CN103246479A (en) 2012-02-06 2012-02-06 Memory management method and electronic device implementing same

Publications (1)

Publication Number Publication Date
CN103246479A true true CN103246479A (en) 2013-08-14

Family

ID=48926018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210030975 CN103246479A (en) 2012-02-06 2012-02-06 Memory management method and electronic device implementing same

Country Status (1)

Country Link
CN (1) CN103246479A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6766420B2 (en) * 2001-09-27 2004-07-20 International Business Machines Corporation Selectively powering portions of system memory in a network server to conserve energy
CN101086680A (en) * 2006-06-08 2007-12-12 英特尔公司 Increasing the battery life of a mobile computing system in reduced power state through memory compression
CN101369219A (en) * 2007-08-14 2009-02-18 戴尔产品有限公司 System and method for managing storage device capacity usage
US20090327785A1 (en) * 2008-06-30 2009-12-31 Acer Incorporated Power management device and method thereof for managing power consumption of electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6766420B2 (en) * 2001-09-27 2004-07-20 International Business Machines Corporation Selectively powering portions of system memory in a network server to conserve energy
CN101086680A (en) * 2006-06-08 2007-12-12 英特尔公司 Increasing the battery life of a mobile computing system in reduced power state through memory compression
CN101369219A (en) * 2007-08-14 2009-02-18 戴尔产品有限公司 System and method for managing storage device capacity usage
US20090327785A1 (en) * 2008-06-30 2009-12-31 Acer Incorporated Power management device and method thereof for managing power consumption of electronic device

Similar Documents

Publication Publication Date Title
US7620784B2 (en) High speed nonvolatile memory device using parallel writing among a plurality of interfaces
US20070079065A1 (en) Advanced dynamic disk memory module
US20080120518A1 (en) Replacing system hardware
US20070005998A1 (en) Various apparatuses and methods for reduced power states in system memory
US20050144486A1 (en) Dynamic power management
US20110252180A1 (en) Memory controller mapping on-the-fly
US20080082743A1 (en) Method and apparatus for caching memory content on a computing system to facilitate instant-on resuming from a hibernation state
US7218566B1 (en) Power management of memory via wake/sleep cycles
US20060075185A1 (en) Method for caching data and power conservation in an information handling system
US20100313044A1 (en) Storage array power management through i/o redirection
US20050210191A1 (en) Storage control system and control method for storage control system
US20040250148A1 (en) Tiered secondary memory architecture to reduce power consumption in a portable computer system
US20080086585A1 (en) Storage apparatus, controller and control method
US20090327780A1 (en) Systems, Methods and Media for Reducing Power Consumption in Multiple Controller Information Handling Systems
US20130031298A1 (en) Including performance-related hints in requests to composite memory
US7856526B2 (en) Storage apparatus and power-saving control method of storage apparatus
US20030163742A1 (en) Power conservation techniques for a digital computer
US20130007488A1 (en) Power management of a storage device including multiple processing cores
US20050185496A1 (en) Intelligent solid state disk
US20110047316A1 (en) Solid state memory device power optimization
CN101620539A (en) Method for start-up and shutdown and computer
JP2002099502A (en) Computer system and control method for data transfer
US20120284475A1 (en) Memory On-Demand, Managing Power In Memory
JP2002351737A (en) Semiconductor storage device
US20130198434A1 (en) Apparatus and Method to Provide Cache Move With Non-Volatile Mass Memory System

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)