[go: up one dir, main page]

CN106814969A - Data buffer adjusting device and method thereof - Google Patents

Data buffer adjusting device and method thereof Download PDF

Info

Publication number
CN106814969A
CN106814969A CN201510873559.XA CN201510873559A CN106814969A CN 106814969 A CN106814969 A CN 106814969A CN 201510873559 A CN201510873559 A CN 201510873559A CN 106814969 A CN106814969 A CN 106814969A
Authority
CN
China
Prior art keywords
source module
power source
access
data
unit
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
CN201510873559.XA
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.)
Apacer Technology Inc
Original Assignee
Apacer Technology Inc
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 Apacer Technology Inc filed Critical Apacer Technology Inc
Priority to CN201510873559.XA priority Critical patent/CN106814969A/en
Publication of CN106814969A publication Critical patent/CN106814969A/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/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0685Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Read Only Memory (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a data buffer adjustment device and a method thereof, which are applicable to a solid state disk, wherein the solid state disk comprises a power supply unit, a monitoring unit, a control unit, a quick access unit and a storage unit, the power supply unit provides access power from a first power source module or a second power source module, the access power provides the whole storage device when the power is off and the access data is written into the storage unit from the quick access unit, and the data buffer adjustment method comprises the following steps. And monitoring the magnitude of the charge capacity of the second power source module by using the monitoring unit. The size of the temporary storage space of the quick access unit is dynamically adjusted according to the size of the storage capacity. The data size of the access data is determined according to the size of the temporary storage space. By monitoring the electric quantity of the second power source module in real time, the control unit can adjust the size of the temporary storage space in the quick access unit along with the electric quantity, and the situation that data cannot be written back to the NAND flash memory from a quick access area due to insufficient electric power can be avoided.

Description

数据缓冲调整装置及其方法Data buffer adjustment device and method thereof

技术领域technical field

本发明涉及一种数据缓冲调整装置,特别涉及一种可避免因为电力不足,而导致数据无法从快取区域写回至NAND闪存的数据缓冲调整装置以及使用此技术特征的调整方法。The present invention relates to a data buffer adjustment device, in particular to a data buffer adjustment device which can prevent data from being unable to be written back from a cache area to a NAND flash memory due to insufficient power, and an adjustment method using this technical feature.

背景技术Background technique

固态硬盘(SSD,Solid-State Drive)是最近几年来兴起的储存装置,其性能方面大大的超越传统硬盘。因SSD内部是由许多Flash Memory所组成,故传输速度方面比起机械装置的传统硬盘来的优秀许多。在固态硬盘内的许多电子组件中有两样是组成的关键。第一是负责存放数据的NAND闪存,第二则是控制固态硬盘的控制器。这两种组件关系紧密相关,负责整个固态硬盘的储存、传输、运作…等。Solid-state drive (SSD, Solid-State Drive) is a storage device that has emerged in recent years, and its performance greatly surpasses that of traditional hard drives. Because the interior of SSD is composed of many Flash memories, the transmission speed is much better than the traditional hard disk with mechanical devices. Among the many electronic components inside an SSD are two that are key to its composition. The first is the NAND flash memory responsible for storing data, and the second is the controller that controls the solid-state drive. These two components are closely related and are responsible for the storage, transmission, and operation of the entire SSD.

此外,在固态硬盘中,亦可以包含一动态随机存取内存以作为快取使用,在将数据写入至NAND闪存之前,控制器可以先把此数据置入动态随机存取内存所规划的快取区域以增加一计算机主机存取此固态硬盘的访问速度,待一定时间之后,再将此数据写回至NAND闪存以保持数据一致性。In addition, in the solid-state hard disk, a dynamic random access memory can also be included as a cache. Before writing data into the NAND flash memory, the controller can first put the data into the fast memory planned by the dynamic random access memory. The access area is used to increase the access speed of a computer host to access the solid-state hard disk, and after a certain period of time, the data is written back to the NAND flash memory to maintain data consistency.

为了解决无法预期断电所造成NAND Flash写入数据错误,一般而言,在固态硬盘中将会置入一备用电源装置(如:锂电池),当此固态硬盘遭遇不正常断电的情形时,便由此备用电源装置供应电力至控制器,确保控制器可将快取区域内的数据完整地写入至NAND闪存内。然而在上述的架构中可能存在以下问题。In order to solve the NAND Flash write data error caused by unexpected power outages, generally speaking, a backup power supply device (such as: lithium battery) will be placed in the solid-state hard drive. When the solid-state hard drive encounters abnormal power outages , so that the backup power supply device supplies power to the controller, ensuring that the controller can completely write the data in the cache area into the NAND flash memory. However, the following problems may exist in the above architecture.

(1)当备用电源装置的蓄电量随其的剩余使用寿命成一正比的关系,以锂电池为例,若是此锂电池的剩余使用寿命即将终止时,其低电量将导致控制器无法完整地将快取区域内的数据写回至NAND闪存中。(1) When the storage capacity of the backup power supply device is proportional to its remaining service life, taking a lithium battery as an example, if the remaining service life of the lithium battery is about to end, its low power will cause the controller to fail to completely The data in the cache area is written back to the NAND flash memory.

(2)若此固态硬盘以锂电池作为备用电源装置且此固态硬盘遭遇不正常断电的频率过高时,此锂电池将反复进行充电及放电的行为,并可能因为充电不及而导致其蓄电量过低,使得控制器无法完整地将快取区域内的数据写回至NAND闪存中。(2) If the solid-state hard disk uses a lithium battery as a backup power supply device and the frequency of abnormal power outages of the solid-state hard disk is too high, the lithium battery will be charged and discharged repeatedly, and its storage capacity may be damaged due to insufficient charging. The power is too low, so that the controller cannot completely write back the data in the cache area to the NAND flash memory.

综观前所述,本发明的发明人思索并设计一种数据缓冲调整装置及其方法,以期针对现有技术的缺失加以改善,进而增进产业上的实施利用。In view of the foregoing, the inventor of the present invention conceived and designed a data buffer adjustment device and method thereof, in order to improve the deficiencies of the prior art, and further enhance industrial implementation and utilization.

发明内容Contents of the invention

本发明的目的在于提供一种数据缓冲调整装置及其方法,以解决现有技术所存在的因为充电不及而导致其蓄电量过低,使得控制器无法完整地将快取区域内的数据写回至NAND闪存中的问题。The purpose of the present invention is to provide a data buffer adjustment device and its method to solve the problem in the prior art that the storage capacity is too low due to insufficient charging, so that the controller cannot completely write back the data in the cache area to problems in NAND flash memory.

本发明提供一种数据缓冲调整方法,其适用于一固态硬盘,此固态硬盘包含一电力供应单元、一监控单元、一控制单元、一快取单元以及一储存单元,电力供应单元由一第一电力来源模块或一第二电力来源模块提供一存取电力,存取电力提供将一存取数据从快取单元写入至储存单元的所需电力,此数据缓冲调整方法包含下列步骤。利用监控单元监控第二电力来源模块的蓄电量大小。根据蓄电量的大小以动态调整快取单元的暂存空间的大小。根据暂存空间的大小以决定存取数据的数据量。The present invention provides a data buffer adjustment method, which is suitable for a solid-state hard disk. The solid-state hard disk includes a power supply unit, a monitoring unit, a control unit, a cache unit, and a storage unit. The power supply unit consists of a first The power source module or a second power source module provides access power, and the access power provides the required power for writing an access data from the cache unit to the storage unit. The data buffer adjustment method includes the following steps. The storage capacity of the second power source module is monitored by the monitoring unit. The size of the temporary storage space of the cache unit is dynamically adjusted according to the storage capacity. The amount of data to be accessed is determined according to the size of the temporary storage space.

优选地,本发明的数据缓冲调整方法还包含由电力供应单元对第二电力来源模块进行充电。Preferably, the data buffer adjustment method of the present invention further includes charging the second power source module by the power supply unit.

优选地,本发明的数据缓冲调整方法还包含当第一电力来源模块停止提供存取电力时,由第二电力来源模块提供存取电力。Preferably, the data buffer adjustment method of the present invention further includes providing access power by the second power source module when the first power source module stops providing access power.

优选地,第一电力来源模块可为一电源供应器,第二电力来源模块可为一锂电池、一电容或是一储能电池。Preferably, the first power source module can be a power supply, and the second power source module can be a lithium battery, a capacitor or an energy storage battery.

优选地,监控单元可为一电池容量计算芯片。Preferably, the monitoring unit can be a battery capacity calculation chip.

优选地,快取单元可为一动态随机存取内存,储存单元可为一NAND闪存。Preferably, the cache unit can be a dynamic random access memory, and the storage unit can be a NAND flash memory.

基于上述目的,本发明再提供一种数据缓冲调整装置,其包含一储存单元、一快取单元、一控制单元、一电力供应单元以及一监控单元。储存单元可用以储存一存取数据。快取单元可包含暂存空间以暂存一存取数据。控制单元可将存取数据从快取单元写入至储存单元,或是将存取数据从储存单元写入至快取单元。电力供应单元提供控制单元作动时所需的一存取电力,存取电力由第一电力来源模块或第二电力来源模块所提供。监控单元监控第二电力来源模块的一蓄电量并传送此蓄电量的大小至控制单元。控制单元根据此蓄电量的大小以动态调整暂存空间的大小,并根据暂存空间的大小以调整写入存取数据的数据量。Based on the above purpose, the present invention further provides a data buffer adjustment device, which includes a storage unit, a cache unit, a control unit, a power supply unit and a monitoring unit. The storage unit can be used to store an access data. The cache unit may include a temporary storage space for temporarily storing an access data. The control unit can write access data from the cache unit to the storage unit, or write access data from the storage unit to the cache unit. The power supply unit provides access power required for the control unit to operate, and the access power is provided by the first power source module or the second power source module. The monitoring unit monitors a storage capacity of the second power source module and transmits the storage capacity to the control unit. The control unit dynamically adjusts the size of the temporary storage space according to the storage capacity, and adjusts the data volume for writing and accessing data according to the size of the temporary storage space.

优选地,第一电力来源模块可为一电源供应器,第二电力来源模块可为一锂电池、一电容或是一储能电池。Preferably, the first power source module can be a power supply, and the second power source module can be a lithium battery, a capacitor or an energy storage battery.

优选地,监控单元可为一电池容量计算芯片。Preferably, the monitoring unit can be a battery capacity calculation chip.

优选地,快取单元可为一动态随机存取内存,储存单元可为一NAND闪存。Preferably, the cache unit can be a dynamic random access memory, and the storage unit can be a NAND flash memory.

优选地,当第一电力来源模块停止提供存取电力时,存取电力由第二电力来源模块提供。Preferably, when the first power source module stops providing access power, the access power is provided by the second power source module.

承上所述,依据本发明的数据缓冲调整装置及其方法,可具有下述优点:Based on the above, the data buffer adjustment device and method thereof according to the present invention can have the following advantages:

通过实时监控第二电力来源模块的电量,控制单元可以随着此电量而调整快取单元内的暂存空间的大小,如此一来,无论存取电力是由第一电力来源模块或是由第二电力来源模块提供,控制器均可以将快取单元内的存取数据写入至储存单元。也就是说,控制器在任何情形下均可以将快取内所储存的存取数据写回至NAND闪存,以确保达到数据一致性。By monitoring the power of the second power source module in real time, the control unit can adjust the size of the temporary storage space in the cache unit according to the power. In this way, no matter whether the power is accessed by the first power source module or the second power source module Provided by the two power source modules, the controller can write the access data in the cache unit to the storage unit. That is to say, the controller can write back the access data stored in the cache to the NAND flash memory under any circumstances to ensure data consistency.

附图说明Description of drawings

图1为本发明的数据缓冲调整装置的方块图。FIG. 1 is a block diagram of a data buffer adjustment device of the present invention.

图2A为本发明的数据缓冲调整装置的第一实施例的第一示意图。FIG. 2A is a first schematic diagram of the first embodiment of the data buffer adjustment device of the present invention.

图2B为本发明的数据缓冲调整装置的第一实施例的第二示意图。FIG. 2B is a second schematic diagram of the first embodiment of the data buffer adjustment device of the present invention.

图3为本发明的数据缓冲调整方法的步骤流程图。FIG. 3 is a flow chart of the steps of the data buffer adjustment method of the present invention.

具体实施方式detailed description

为便于了解本发明的技术特征、内容与优点及其所能实现的功效,将本发明配合附图,并以实施例的表达形式详细说明如下,而其中所使用的附图,其主旨仅为示意及辅助说明书之用,未必为本发明实施后的真实比例与精准配置,故不应就所附的附图的比例与配置关系解读、局限本发明于实际实施上的权利范围,合先叙明。In order to facilitate the understanding of the technical features, content and advantages of the present invention and the effects that can be realized, the present invention is combined with the accompanying drawings, and is described in detail in the form of embodiments as follows, and the accompanying drawings used herein are only intended to The purpose of illustration and auxiliary instructions is not necessarily the true proportion and precise configuration of the present invention after implementation, so the scale and configuration relationship of the attached drawings should not be interpreted or limited to the scope of rights of the present invention in actual implementation. Bright.

请参阅图1,为本发明的数据缓冲调整装置的方块图。如图所示,数据缓冲调整装置100可包含一储存单元10、一快取单元20、一控制单元30、一电力供应单元40以及一监控单元50。此储存单元10可以为多个NAND闪存,快取单元20可以为一动态随机存取内存内所划分出来的一快取,监控单元50可为一电池容量计算芯片,控制单元30可以为一控制器,且此控制单元30电性连接至储存单元10、快取单元20、电力供应单元40以及监控单元50。Please refer to FIG. 1 , which is a block diagram of the data buffer adjustment device of the present invention. As shown in the figure, the data buffer adjustment device 100 may include a storage unit 10 , a cache unit 20 , a control unit 30 , a power supply unit 40 and a monitoring unit 50 . The storage unit 10 can be a plurality of NAND flash memories, the fast access unit 20 can be a quick access divided in a dynamic random access memory, the monitoring unit 50 can be a battery capacity calculation chip, and the control unit 30 can be a control device, and the control unit 30 is electrically connected to the storage unit 10 , the cache unit 20 , the power supply unit 40 and the monitoring unit 50 .

较佳的情况是,此数据缓冲调整装置100可以以一固态硬盘来举例实施,其可以通过一数据传输线以连接至一计算机主机,并由计算机主机传送并写入一存取数据11至此数据缓冲调整装置100。Preferably, the data buffer adjustment device 100 can be implemented as an example of a solid-state hard disk, which can be connected to a computer host through a data transmission line, and the computer host sends and writes an access data 11 to the data buffer Adjustment device 100 .

详细地说,快取单元20可包含一暂存空间21以暂时储存此存取数据11,当经过一般时间之后,控制单元30可将存取数据11从快取单元20写入至储存单元10,并由此储存单元10储存此存取数据11。或者,另一方面,此控制单元30也可将存取数据11从储存单元10写入至快取单元20,使得计算机主机可直接对此快取单元20上的存取数据11进行存取。In detail, the cache unit 20 may include a temporary storage space 21 to temporarily store the access data 11, and after a normal time, the control unit 30 may write the access data 11 from the cache unit 20 to the storage unit 10 , and thus the storage unit 10 stores the access data 11 . Or, on the other hand, the control unit 30 can also write the access data 11 from the storage unit 10 to the cache unit 20 , so that the host computer can directly access the access data 11 on the cache unit 20 .

电力供应单元40提供控制单元30作动时所需的一存取电力41,此作动包含整个数据缓冲调整装置100的储存、传输、运作等,举例来说,控制单元30控制存取数据11在储存单元10及快取单元20之间的搬移作动,而存取电力41则用以确保控制单元30完成每一次存取数据11的搬移作动。此外,此存取电力41由第一电力来源模块42或第二电力来源模块43所提供,其中此第一电力来源模块42可为计算机主机上的一电源供应器,第二电力来源模块43可为一备用电源,例如一锂电池、一电容或是一储能电池。The power supply unit 40 provides an access power 41 required for the operation of the control unit 30. This operation includes the storage, transmission, operation, etc. of the entire data buffer adjustment device 100. For example, the control unit 30 controls the access data 11 In the transfer operation between the storage unit 10 and the cache unit 20 , the access power 41 is used to ensure that the control unit 30 completes each transfer operation of the access data 11 . In addition, the access power 41 is provided by the first power source module 42 or the second power source module 43, wherein the first power source module 42 can be a power supply on the computer host, and the second power source module 43 can be It is a backup power source, such as a lithium battery, a capacitor or an energy storage battery.

详细地说,此第一电力来源模块42及第二电力来源模块43分别为此数据缓冲调整装置100的主要供电来源以及次要供电来源。在正常情形下,第一电力来源模块42提供存取电力41给控制单元30,同时亦提供一电力给第二电力来源模块43以进行充电。而当第一电力来源模块42停止提供存取电力41时,存取电力41便由第二电力来源模块43提供。In detail, the first power source module 42 and the second power source module 43 are respectively the main power source and the secondary power source of the data buffer adjustment device 100 . Under normal circumstances, the first power source module 42 provides access power 41 to the control unit 30 and also provides power to the second power source module 43 for charging. And when the first power source module 42 stops providing the access power 41 , the access power 41 is provided by the second power source module 43 .

监控单元50定时监控此第二电力来源模块43的一蓄电量51的大小,并传送此蓄电量51的信息至控制单元30。控制单元30可根据此蓄电量51的数值以动态调整快取单元20的暂存空间21的大小,并根据暂存空间21的大小以调整写入存取数据11的数据量。The monitoring unit 50 regularly monitors a storage capacity 51 of the second power source module 43 , and transmits information of the storage capacity 51 to the control unit 30 . The control unit 30 can dynamically adjust the size of the temporary storage space 21 of the cache unit 20 according to the value of the storage amount 51 , and adjust the amount of data written into the access data 11 according to the size of the temporary storage space 21 .

请参阅图2A及图2B,其为本发明的数据缓冲调整装置的第一实施例的第一示意图及第二示意图,同时请参阅图1的文字及符号说明。在本实施例中,数据缓冲调整装置100以一固态硬盘101来举例实施,在此固态硬盘101的储存单元10、快取单元20、控制单元30以及监控单元50分别以NAND闪存、动态随机存取内存、控制器及电池容量计算芯片来举例实施,其中此控制单元30电性连接至储存单元10、快取单元20、监控单元50以及电力提供单元40。此外,在此实施例中,数据缓冲调整装置100也包含一锂电池431以作为第二电力来源模块43,同时也包含一充放电控制单元61以控制第二电力来源模块43与电力提供单元40之间的充电及放电管理机制。Please refer to FIG. 2A and FIG. 2B , which are the first schematic diagram and the second schematic diagram of the first embodiment of the data buffer adjustment device of the present invention, and please refer to the text and symbol description in FIG. 1 . In this embodiment, the data buffer adjustment device 100 is implemented by taking a solid-state hard disk 101 as an example. The memory, the controller and the battery capacity calculation chip are taken as examples, wherein the control unit 30 is electrically connected to the storage unit 10 , the cache unit 20 , the monitoring unit 50 and the power supply unit 40 . In addition, in this embodiment, the data buffer adjustment device 100 also includes a lithium battery 431 as the second power source module 43, and also includes a charging and discharging control unit 61 to control the second power source module 43 and the power supply unit 40 Between the charge and discharge management mechanism.

当此固态硬盘101电性连接至一计算机主机时,电力提供单元40的电力来源由第一电力来源模块42所提供,在本实施例中以计算机主机的电源供应器来举例实施,且此电力来源通过一电源扁平电缆421以传送到电力供应单元40。控制单元30可利用此电力来源以进行数据的储存、传输以及运作等,在此同时,电力供应单元40亦可通过充放电控制单元61来对锂电池431进行充电。When the solid state disk 101 is electrically connected to a computer host, the power source of the power supply unit 40 is provided by the first power source module 42. In this embodiment, the power supply of the computer host is used as an example, and the power The source is transmitted to the power supply unit 40 through a power flat cable 421 . The control unit 30 can use the power source for data storage, transmission, and operation. At the same time, the power supply unit 40 can also charge the lithium battery 431 through the charge and discharge control unit 61 .

在本实施例中,监控单元50将定时地监测锂电池431的蓄电量51,值得一提的是,此锂电池431的蓄电量51可能因为寿命或是遭受到反复充放电而导致其有不同的蓄电量百分比,而监控单元50可回报或通知此蓄电量百分比给控制单元30,再由控制单元30依据此蓄电量百分比调整快取单元20的暂存空间21大小。In this embodiment, the monitoring unit 50 will regularly monitor the storage capacity 51 of the lithium battery 431. It is worth mentioning that the storage capacity 51 of the lithium battery 431 may be different due to its service life or repeated charging and discharging. The storage capacity percentage, and the monitoring unit 50 can report or notify the storage capacity percentage to the control unit 30, and then the control unit 30 adjusts the size of the temporary storage space 21 of the cache unit 20 according to the storage capacity percentage.

举例来说,此固态硬盘101可默认快取单元20的暂存空间21的大小为16MB,控制单元30可以依据一比例以调整暂存空间21的大小。如图2B所示,当监控单元50监测此蓄电量51为80%时,则控制单元30可将暂存空间21更改为8MB,而当此蓄电量51为40%时,此暂存空间21可被更改为2MB,上述的比例仅为举例实施,并不以此为限,只要此蓄电量51足够使控制单元30将存放在暂存空间21内的存取数据11完整地搬移至储存单元10内即可。For example, the default size of the temporary storage space 21 of the cache unit 20 in the solid state disk 101 is 16MB, and the control unit 30 can adjust the size of the temporary storage space 21 according to a ratio. As shown in Figure 2B, when the monitoring unit 50 monitors that the storage capacity 51 is 80%, the control unit 30 can change the temporary storage space 21 to 8MB, and when the storage capacity 51 is 40%, the temporary storage space 21 It can be changed to 2MB. The above-mentioned ratio is only an example and is not limited thereto, as long as the storage capacity 51 is enough for the control unit 30 to completely move the access data 11 stored in the temporary storage space 21 to the storage unit within 10.

详细地说明,控制单元30调整暂存空间21的大小以及搬移存取数据11的作动可由控制单元30上的一固件负责,同时,此固件也包含有效率地让NAND闪存上的页(Page)平均地被写入,以防此同一个页被频繁地读写而导致固态硬盘的寿命缩减。在此,固件的实作方式可因不同厂商而有所不同,且固件的技术亦为计算机软件领域中技术人员所熟知的现有技艺,故在此不进行赘述。Explain in detail, the control unit 30 adjusts the size of the temporary storage space 21 and the actions of moving and accessing the data 11 can be taken care of by a firmware on the control unit 30. Meanwhile, this firmware also includes efficiently allowing the page (Page ) are written evenly to prevent the same page from being frequently read and written and shorten the lifespan of the SSD. Here, the implementation of the firmware may be different due to different manufacturers, and the technology of the firmware is also an existing technology well known to those skilled in the field of computer software, so it will not be repeated here.

请参阅图3,其为本发明的数据缓冲调整方法的步骤流程图。此数据缓冲调整方法适用于一固态硬盘,其中此固态硬盘包含一电力供应单元、一监控单元、一控制单元、一快取单元以及一储存单元,此控制单元电性连接此电力供应单元、监控单元、快取单元以及储存单元,此电力供应单元由一第一电力来源模块或一第二电力来源模块提供一存取电力,控制单元可将一存取数据从快取单元写入至储存单元,而存取电力可提供控制单元作动时所需要的一电力,此数据缓冲调整方法包含以下步骤。Please refer to FIG. 3 , which is a flow chart of the steps of the data buffer adjustment method of the present invention. This data buffer adjustment method is suitable for a solid state hard disk, wherein the solid state hard disk includes a power supply unit, a monitoring unit, a control unit, a cache unit and a storage unit, and the control unit is electrically connected to the power supply unit, the monitoring unit Unit, cache unit and storage unit, the power supply unit is provided with access power by a first power source module or a second power source module, and the control unit can write an access data from the cache unit to the storage unit , and the access power can provide a power required for the control unit to operate. The data buffer adjustment method includes the following steps.

步骤S11利用监控单元监控一第二电力来源模块的一蓄电量。Step S11 utilizes the monitoring unit to monitor a storage capacity of a second power source module.

步骤S12根据蓄电量的大小以动态调整快取单元的一暂存空间的大小。Step S12 dynamically adjusts the size of a temporary storage space of the cache unit according to the storage capacity.

步骤S13根据暂存空间的大小以决定存取数据的数据量。Step S13 determines the amount of data to be accessed according to the size of the temporary storage space.

在本实施例的数据缓冲调整方法,还包含由电力供应单元来对第二电力来源模块进行充电,当第一电力来源模块停止提供存取电力时,由第二电力来源模块提供存取电力,其中此第一电力来源模块可为一电源供应器,第二电力来源模块可为一锂电池、一电容或是一储能电池。而由于暂存空间的大小根据蓄电量的大小而进行调整,因此由第二电力来源模块所提供的存取电力可以确保控制单元将快取单元上的存取数据写回至储存单元。The data buffer adjustment method in this embodiment further includes charging the second power source module by the power supply unit, and when the first power source module stops providing access power, the second power source module provides access power, The first power source module can be a power supply, and the second power source module can be a lithium battery, a capacitor or an energy storage battery. Since the size of the temporary storage space is adjusted according to the storage capacity, the access power provided by the second power source module can ensure that the control unit writes back the access data on the cache unit to the storage unit.

较佳的情况是,监控单元可为一电池容量计算芯片。快取单元可为一动态随机存取内存,储存单元可为一NAND闪存。Preferably, the monitoring unit can be a battery capacity calculation chip. The cache unit can be a dynamic random access memory, and the storage unit can be a NAND flash memory.

由以上可以得知,本发明的数据缓冲调整装置及其方法可以根据第二电力来源模块的一蓄电量以调整快取单元内暂存空间的大小,以确保控制单元在足够的电力下能把暂存空间内的存取数据写回至储存单元内,可有效地防止在储存单元上的存取数据出现不一致的情形。It can be known from the above that the data buffer adjustment device and method thereof of the present invention can adjust the size of the temporary storage space in the cache unit according to a storage capacity of the second power source module, so as to ensure that the control unit can The access data in the temporary storage space is written back to the storage unit, which can effectively prevent the inconsistency of the access data on the storage unit.

以上所述仅为举例性,而非为限制性者。任何未脱离本发明的精神与范畴,而对其进行的等效修改或变更,均应包含于所附的权利要求书中。The above descriptions are illustrative only, not restrictive. Any equivalent modifications or changes made without departing from the spirit and scope of the present invention shall be included in the appended claims.

Claims (11)

1. a kind of data buffering method of adjustment, suitable for solid state hard disc, the solid state hard disc includes electric power supply unit, monitoring unit, control unit, cache and storage element, wherein described electric power supply unit provides access electric power by the first power source module or the second power source module, the access electric power provides and access data is write to the required electric power of the storage element from the cache, characterized in that, comprising:
The charge capacity of the second power source module is monitored using the monitoring unit;
Size according to the charge capacity is with the size of the temporarily providing room of the dynamic adjustment cache;And
Size according to the temporarily providing room is determining the data volume of the access data.
2. data buffering method of adjustment as claimed in claim 1, it is characterised in that also comprising being charged to the second power source module by the electric power supply unit.
3. data buffering method of adjustment as claimed in claim 1, it is characterised in that also comprising when the first power source module stops providing the access electric power, the access electric power is provided by the second power source module.
4. data buffering method of adjustment as claimed in claim 1, it is characterised in that the first power source module is power supply unit, and the second power source module is lithium battery, electric capacity or energy-storage battery.
5. data buffering method of adjustment as claimed in claim 1, it is characterised in that the monitoring unit is that battery capacity calculates chip.
6. data buffering method of adjustment as claimed in claim 1, it is characterised in that the cache is DRAM, the storage element is nand flash memory.
7. a kind of data buffering adjusting apparatus, it is characterised in that include:
Storage element, is used to store access data;
Cache, comprising temporarily providing room with the temporary access data;
Control unit, the access data are write to the storage element from the cache, or the access data are write to the cache from storage element;
Electric power supply unit, there is provided the access electric power needed for described control unit start, wherein the access electric power is provided by the first power source module or the second power source module;And
Monitoring unit, monitors the charge capacity of the second power source module and transmits the big as low as described control unit of the charge capacity;
Wherein described control unit adjusts the size of the temporarily providing room according to the size of the charge capacity with dynamic, and writes the data volume of the access data to adjust according to the size of the temporarily providing room.
8. data buffering adjusting apparatus as claimed in claim 7, it is characterised in that the first power source module is power supply unit, and the second power source module is lithium battery, electric capacity or energy-storage battery.
9. data buffering adjusting apparatus as claimed in claim 7, it is characterised in that the monitoring unit is that battery capacity calculates chip.
10. data buffering adjusting apparatus as claimed in claim 7, it is characterised in that the cache is DRAM, the storage element is nand flash memory.
11. data buffering adjusting apparatus as claimed in claim 7, it is characterised in that when the first power source module stops providing the access electric power, the access electric power is provided by the second power source module.
CN201510873559.XA 2015-12-02 2015-12-02 Data buffer adjusting device and method thereof Pending CN106814969A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510873559.XA CN106814969A (en) 2015-12-02 2015-12-02 Data buffer adjusting device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510873559.XA CN106814969A (en) 2015-12-02 2015-12-02 Data buffer adjusting device and method thereof

Publications (1)

Publication Number Publication Date
CN106814969A true CN106814969A (en) 2017-06-09

Family

ID=59105710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510873559.XA Pending CN106814969A (en) 2015-12-02 2015-12-02 Data buffer adjusting device and method thereof

Country Status (1)

Country Link
CN (1) CN106814969A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309084A (en) * 2019-07-01 2019-10-08 浙江大华技术股份有限公司 A kind of power-off protection method and equipment of solid state hard disk data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241477A (en) * 2007-02-07 2008-08-13 株式会社日立制作所 Storage control device and data management method
CN101499313A (en) * 2009-01-06 2009-08-05 成都市华为赛门铁克科技有限公司 Method, equipment and memory system for guaranteeing data security
CN102004707A (en) * 2010-11-15 2011-04-06 记忆科技(深圳)有限公司 Power-fail protection method and device for solid state disk
CN102110034A (en) * 2009-12-28 2011-06-29 北京安码科技有限公司 Hard disk storage method and device integrated with battery and DRAM
US20110208998A1 (en) * 2010-02-19 2011-08-25 Hitachi, Ltd. Disk array device and its control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241477A (en) * 2007-02-07 2008-08-13 株式会社日立制作所 Storage control device and data management method
CN101499313A (en) * 2009-01-06 2009-08-05 成都市华为赛门铁克科技有限公司 Method, equipment and memory system for guaranteeing data security
CN102110034A (en) * 2009-12-28 2011-06-29 北京安码科技有限公司 Hard disk storage method and device integrated with battery and DRAM
US20110208998A1 (en) * 2010-02-19 2011-08-25 Hitachi, Ltd. Disk array device and its control method
CN102004707A (en) * 2010-11-15 2011-04-06 记忆科技(深圳)有限公司 Power-fail protection method and device for solid state disk

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309084A (en) * 2019-07-01 2019-10-08 浙江大华技术股份有限公司 A kind of power-off protection method and equipment of solid state hard disk data
CN110309084B (en) * 2019-07-01 2021-08-03 浙江大华存储科技有限公司 Power failure protection method and device for solid state disk data

Similar Documents

Publication Publication Date Title
US9842059B2 (en) Wear leveling in storage devices
US9645769B2 (en) Performance acceleration during shutdown of a data storage device
US10289314B2 (en) Multi-tier scheme for logical storage management
CN105556416B (en) Power outage protection and recovery utilizing low power states in data storage devices/systems
US8468370B2 (en) Systems, methods and devices for control of the operation of data storage devices using solid-state memory and monitoring energy used therein
US10289408B2 (en) Managing wear of system areas of storage devices
US9075733B1 (en) Selective storage of address mapping metadata in a system having multiple memories
JP2017079050A (en) Storing parity data separate from protected data
US9582192B2 (en) Geometry aware block reclamation
US20160291887A1 (en) Solid-state drive with non-volatile random access memory
US10254985B2 (en) Power management of storage devices
US20170206170A1 (en) Reducing a size of a logical to physical data address translation table
US9508399B1 (en) Residual capacitance performance booster
CN105683926A (en) On-demand block management
WO2017114236A1 (en) Charging method and device, and solid state disk
WO2023080928A1 (en) Dynamic controller buffer management and configuration
US10283170B2 (en) Failure safe power source for solid state disk drives
CN110781029A (en) Power-off protection method and system
US10489227B2 (en) Memory system
US11500447B2 (en) Power allocation management for external storage
US20120215969A1 (en) Storage device and control method thereof
TW201401285A (en) Method for controlling data write operation of a mass storage device
US11755459B2 (en) Management of a debug buffer based on priority information
CN106814969A (en) Data buffer adjusting device and method thereof
TWI564717B (en) Data buffer adjusting device and method thereof

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170609

WD01 Invention patent application deemed withdrawn after publication