[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2017114236A1 - Charging method and device, and solid state disk - Google Patents

Charging method and device, and solid state disk Download PDF

Info

Publication number
WO2017114236A1
WO2017114236A1 PCT/CN2016/111090 CN2016111090W WO2017114236A1 WO 2017114236 A1 WO2017114236 A1 WO 2017114236A1 CN 2016111090 W CN2016111090 W CN 2016111090W WO 2017114236 A1 WO2017114236 A1 WO 2017114236A1
Authority
WO
WIPO (PCT)
Prior art keywords
volatile memory
data storage
interval
charging
capacitor
Prior art date
Application number
PCT/CN2016/111090
Other languages
French (fr)
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017114236A1 publication Critical patent/WO2017114236A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/062Securing storage systems
    • G06F3/0622Securing storage systems in relation to access
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2015Redundant power supplies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0673Single storage device
    • G06F3/068Hybrid storage device

Definitions

  • the present invention relates to the field of computers, and in particular, to a charging method, device, and solid state hard disk.
  • SSDs Solid State Drives
  • NAND Flash main storage medium. They are mainly composed of controllers, Dynamic Random Access Memory (DRAM) and NAND Flash is composed.
  • DRAM Dynamic Random Access Memory
  • NAND Flash is composed.
  • the control chip of the SSD first caches the data to be written in the DRAM with higher read/write speed, and then writes the data buffered in the DRAM to the NAND Flash with slower read and write speed. In order to improve the overall data writing speed of the SSD.
  • a backup power supply is usually also provided in the SSD.
  • the SSD structure with backup power can be set as shown in Figure 1. After the SSD is powered on, the external power supply can supply power to the SSD controller through the power interface, and can also charge the backup power supply through the power interface. When the SSD is powered off abnormally, the SSD controller can be powered by the backup power supply to maintain the SSD, so that the data cached in the DRAM can be written into the NAND Flash in the SSD, thereby avoiding data loss caused by abnormal powering down of the SSD.
  • the capacitor has the characteristics of simple structure and large reserve power. Therefore, in the prior art, a capacitor is generally used as a backup power source to reserve power for the SSD. When the capacitor is used for SSD power supply, the capacitor needs to be derated.
  • the derating design can make the working stress of the capacitor under working properly lower than the rated value of the capacitor, thereby reducing the basic failure rate of the capacitor and improving the reliability when the capacitor is used for SSD backup. Since the difference in capacitance failure rate is compared under different voltage deratings, and the higher the voltage derating, the lower the basic failure rate of the capacitor, In order to improve the reliability of using S capacitors for backup, it is usually necessary to greatly degrade the capacitance.
  • the failure rate when the operating voltage is reduced to 90% of the rated voltage, the failure rate is about 2fit; when the operating voltage is reduced to 70% of the rated voltage, the failure rate is reduced to 0.19fit, which is satisfied for the SSD.
  • the basic failure rate requirement for electricity is that in practical use it is usually necessary to reduce the operating voltage of the tantalum capacitor to 70% of the rated voltage.
  • a single capacitor can save power, in order to meet the power requirement of writing data in DRAM into NAND Flash, it is necessary to increase the amount of capacitor required for standby power supply of SSD, resulting in an increase in the number of capacitors used in SSD. .
  • the embodiments of the present invention provide a charging method, a device, and a solid state hard disk, so as to solve the problem that the capacitor is used for the SSD backup in the prior art, and the capacitor needs to be greatly derated, resulting in a large amount of capacitance in the SSD.
  • an embodiment of the present invention provides a charging method, the method comprising: detecting the volatile memory data storage amount, where the data storage amount of the volatile memory is pre-divided into a plurality of intervals, each The interval corresponds to a charging voltage; the interval in which the detected volatile memory data storage amount is determined is determined; and the charging capacitor corresponding to the interval in which the volatile memory data storage amount is located is used to charge the standby capacitor. Because the amount of the volatile memory data storage is positively related to the actual backup power requirement of the SSD, the method provided by the present invention dynamically adjusts the power of the capacitor backup according to the actual backup power requirement of the SSD, and can ensure the basic capacitance. In the case of failure rate, the magnitude of the capacitance derating is greatly reduced, and the amount of power required for the single capacitor is increased, thereby reducing the amount of capacitance required in the SSD.
  • the detecting the volatile memory data storage quantity comprises: detecting power consumption of the volatile memory; or detecting the volatile The amount of data that is cached by the memory. Using this implementation, The amount of volatile memory data storage can be easily determined.
  • the volatile memory when the backup capacitor is a tantalum capacitor with a rated voltage of 25V, the volatile memory The data storage amount is divided into three intervals in advance, the first interval is smaller than the first threshold, the second interval is greater than the first threshold, less than the second threshold, and the third interval is greater than the second threshold, the first The charging voltage corresponding to the interval is 22.5 V, the charging voltage corresponding to the second interval is 22.5 V or 17.5 V, and the charging voltage corresponding to the third interval is 17.5 V.
  • an embodiment of the present invention provides a charging apparatus including means for performing the method steps of the first aspect or the first aspect of the first aspect.
  • an embodiment of the present invention further provides an SSD, including a charging control module, a backup capacitor, and a volatile memory, wherein the backup capacitor is a backup power source of the SSD; a control module, configured to detect the volatile memory data storage amount, where the data storage amount of the volatile memory is pre-divided into a plurality of intervals, each interval corresponding to one charging voltage; determining the detected volatile The interval in which the amount of memory data storage is located; charging the backup capacitor by using a charging voltage corresponding to the interval in which the volatile memory data storage amount is located.
  • the SSD can dynamically adjust the power of the capacitor backup according to the actual backup power requirement, and can greatly reduce the magnitude of the capacitor derating and improve the power of the single capacitor backup, thereby reducing the SSD in the case of ensuring the basic failure rate of the capacitor.
  • FIG. 2 is a schematic structural diagram of an embodiment of an SSD according to the present invention.
  • FIG. 3 is a schematic flow chart of an embodiment of a charging method of the present invention.
  • FIG. 4 is a schematic structural view of an embodiment of a charging device of the present invention.
  • the backup energy requirement of the backup capacitor is positively correlated with the amount of data to be written buffered in the volatile memory. For example, in the case of maximum write performance, that is, when the data to be written is occupied by the storage space of the volatile memory, the power consumption of the SSD can reach 11 W. Accordingly, the backup capacitor requires 200 mJ of backup energy to enable the volatile memory. The data in the data is transferred to NAND Flash; in the case of normal application performance, the power consumption of the SSD is only 9W. Correspondingly, the backup capacitor only needs 120mJ of backup energy to transfer the data in the volatile memory. To NAND Flash.
  • the structure of the SSD of the present invention is as shown in FIG. 2, wherein the backup power source is a backup capacitor 201; the SSD controller may include a charging control module 202, and the charging control module 202 can detect the write performance of the SSD, and The charging voltage of the backup capacitor 201 is controlled according to the write performance of the SSD, so that the charging voltage of the backup capacitor 201 can be dynamically adjusted according to the change of the amount of volatile memory data storage, which can reduce the backup while satisfying the backup power requirement.
  • the backup capacitor 201 can be a backup capacitor with a rated voltage of 25V.
  • FIG. 3 is a flow chart of an embodiment of a charging method of the present invention, the method comprising the following steps:
  • Step 301 After the SSD is powered on, the predetermined charging voltage is used to charge the backup capacitor.
  • the charging control module in the SSD may first charge the backup capacitor with a predetermined charging voltage, wherein the backup capacitor is used to reserve power for the SSD.
  • the predetermined charging voltage may be set according to the difference in the backup capacitance. Generally, the predetermined charging voltage may be 70% of the rated voltage of the backup capacitor.
  • Step 302 detecting the amount of volatile memory data storage.
  • Volatile memory data storage determines the SSD will be volatile when it is powered off abnormally.
  • the amount of data cached in the memory is written to the NAND Flash. Therefore, after the SSD is powered on, the charge control module can continuously detect the amount of volatile memory data storage.
  • the data cached in the volatile memory can be detected by the charging control module through the firmware of the SSD.
  • Volatile memory data storage can be expressed in terms of power consumption, in addition to the amount of data that can be cached by volatile memory.
  • the amount of data storage in a volatile memory can generally be expressed as the power consumption of volatile memory.
  • the higher the power consumption of the volatile memory the more frequent the write operation of the volatile memory, thus indicating the higher the amount of data storage of the volatile memory.
  • the lower the power consumption of the volatile memory the lower the amount of volatile memory data storage; and the power consumption of the volatile memory can be detected by the charging control module through the power consumption detection module in the SSD.
  • the amount of data storage of the volatile memory can also be expressed as the power consumption of the NAND Flash. Since the power consumption of NAND Flash in data erasing operation is greater than that in data reading, the NAND Flash data erasing operation is positively correlated with the power consumption of NAND Flash, and the more erasing operations are the NAND Flash functions. The greater the consumption. The higher the power consumption of NAND Flash, the more frequent the data erasing operation of NAND Flash, and the higher the data storage capacity of volatile memory. Correspondingly, the lower the power consumption of NAND Flash, the lower the amount of volatile memory data storage.
  • the power consumption of the NAND Flash can be detected by the charging control module through the power consumption detecting module in the SSD, and the data buffered in the volatile memory can be detected by the charging control module through the firmware of the SSD.
  • the power consumption of the volatile memory and the power consumption of the NAND Flash are both positively related to the amount of volatile memory data storage, and the power consumption of other devices in the SSD is relatively stable, the power consumption of the SSD is also related to the loss.
  • the amount of memory data storage is positively correlated. Therefore, the amount of volatile memory data storage can be expressed as the power consumption of the volatile memory, the power consumption of the NAND Flash, or the power consumption of the SSD.
  • Step 303 Determine an interval in which the detected volatile memory data storage amount is located.
  • the data storage amount of the volatile memory may be divided into at least two data storage interval intervals, wherein each data storage interval is between Do not overlap each other and set at least one charging voltage for each interval.
  • the charging control module may determine the interval in which the detected volatile memory data storage amount is located.
  • Step 304 Charging the backup capacitor with a charging voltage corresponding to the volatile memory data storage amount.
  • the charging control module may charge the backup capacitor by using a charging voltage corresponding to the interval in which the volatile memory data storage amount is located.
  • the data storage amount of the volatile memory is divided into three intervals in advance, the first interval is smaller than the first threshold, the second interval is greater than the first threshold, less than the second threshold, and the third interval is greater than a second threshold, if the charge control module detects that the volatile memory data storage amount is lower than the first threshold, then the first charging voltage may be used to charge the backup capacitor; if the charging control module detects the When the amount of volatile memory data storage is higher than the second threshold, the second charging voltage is used to charge the backup capacitor, wherein the first threshold is lower than the second threshold, and the first charging voltage is lower than the first Two charging voltages.
  • the first charging voltage may be the same as the preset charging voltage. When the first charging voltage is 70% of the rated voltage of the backup capacitor, the second charging voltage may be the 90% of the rated voltage of the backup capacitor.
  • the representation of the thresholds may also vary.
  • the first threshold when the amount of data of the cached data of the volatile memory is used to represent the volatile memory data storage amount, the first threshold may be a first preset data amount, and the second threshold may be Two preset data amounts.
  • the charging control module may charge the backup capacitor by using a predetermined charging voltage.
  • the second charging voltage may be used to charge the standby capacitor.
  • the first threshold when the power consumption of the volatile memory is used to represent the volatile memory data storage amount, the first threshold may be a first preset power consumption, and the second threshold may be a second pre- Set the power consumption.
  • the charging control module can charge the backup capacitor with a predetermined charging voltage.
  • the second charging voltage When the power consumption of the volatile memory is greater than the second preset power consumption, the second charging voltage may be used to charge the standby capacitor.
  • the charging control module may charge the standby capacitor with a predetermined charging voltage after the volatile memory data storage amount is lower than the first threshold and continues for more than a predetermined period of time; similarly, the charging control module The secondary charging voltage may also be charged with the second charging voltage after the volatile memory data storage amount is higher than the first threshold and continues for more than a predetermined period of time. If the charging control module detects that the volatile memory data storage amount is between the first threshold and the second threshold, the charging voltage for charging the backup capacitor may not be adjusted, or according to the volatile The trend of the amount of storage of the memory data is adjusted to the charging voltage for charging the backup capacitor.
  • Adjusting the charging voltage for charging the backup capacitor according to the change trend of the volatile memory data storage amount includes: when the volatile memory data storage amount is changed from being less than the first threshold to being located at the first threshold and the second threshold When the time is between, the second charging voltage is used to charge the backup capacitor; when the volatile memory data storage amount is changed from greater than the first threshold to between the first threshold and the second threshold, the reservation is adopted.
  • the charging voltage charges the backup capacitor.
  • the charging capacity of the backup capacitor can be adjusted, and further ensuring that the amount of power in the backup capacitor is sufficient to maintain the volatile memory Data is written into NAND Flash and the basic failure rate of the backup capacitor is further reduced.
  • the predetermined charging voltage can be 17.5V
  • the second charging voltage can be 22.5V.
  • the charging control module can charge the tantalum capacitor with a predetermined charging voltage of 17.5V, and then start detecting the power consumption of the SSD or the amount of data of the data buffered by the volatile memory.
  • the charging control module may charge the standby capacitor by using a voltage of 17.5V.
  • the charging control module detects that the volatile memory consumes more than 11W, or The data volume of the cache data is greater than 11 Mbit, and the charging control module can charge the backup capacitor with a voltage of 22.5V.
  • the charging control module may continue to adopt 17.5V or The 22.5V voltage is used to charge the backup capacitor.
  • the charging capacitor can be charged from a voltage of 17.5V, and the standby capacitor can be charged by using a voltage of 22.5V; or when the charging control module detects the power consumption of the volatile memory from 11W or more changes to between 9W and 11W, or when the amount of data of the cached data changes from more than 10Mbit to between 6Mbit and 10Mbit, the backup capacitor can be charged from a voltage of 22.5V.
  • the backup capacitor is charged with a voltage of 17.5V.
  • the charging control module can continuously detect the amount of volatile memory data storage, and charge the backup capacitor with a charging voltage corresponding to the volatile memory data storage amount, that is, after step 301. Step 302 to step 303 are repeated until the SSD is powered off.
  • the amount of volatile memory data storage of the solid state hard disk is detected; and the charging voltage corresponding to the volatile memory data storage amount is used to charge the backup capacitor. Since the amount of volatile memory data storage is positively related to the actual backup power requirement of the SSD, the method provided by the present invention dynamically adjusts the power of the backup capacitor according to the actual backup power requirement of the SSD, and can ensure the backup capacitor. In the case of a basic failure rate, the magnitude of the backup capacitor derating is greatly reduced, the amount of power for a single backup capacitor is increased, and the amount of backup capacitor required for the SSD backup is reduced.
  • FIG. 4 is a schematic structural view of an embodiment of a charging device of the present invention.
  • the charging device described in this embodiment may be disposed in the SSD for performing the charging method corresponding to FIG. 2, Controls the charging voltage of the backup power supply in the SSD.
  • the apparatus may include a detecting unit 401, a determining unit 402, and a charging unit 403.
  • the detecting unit 401 is configured to detect the volatile memory data storage amount, where the data storage amount of the volatile memory is divided into a plurality of intervals, each interval corresponding to one charging voltage; the determining unit 402, And determining a section in which the detected volatile memory data storage amount is located; charging unit 403, configured to charge a capacitor by using a charging voltage corresponding to a write performance of the SSD, wherein the capacitor is the SSD Backup power.
  • the volatile memory performance is pre-divided into three intervals, the first interval is smaller than the first threshold, and the second interval is greater than the first threshold.
  • the second interval is greater than the second threshold, the charging voltage corresponding to the first interval is 22.5V, and the charging voltage corresponding to the second interval is 22.5V or 17.5V, and the third interval corresponds to The charging voltage is 17.5V.
  • the detecting unit 401 is specifically configured to detect power consumption of the volatile memory, or detect a data amount of data cached by the volatile memory.
  • the detecting unit 401 is specifically configured to detect power consumption of the volatile memory; or detect a data amount of data cached by the volatile memory in the SSD.
  • the charging unit 403 is specifically configured to: when the power consumption of the volatile memory is less than the first preset power consumption, or when the data volume of the cache data is less than the first preset data amount, The predetermined charging voltage charges the backup capacitor.
  • the charging unit 403 is configured to: when the power consumption of the volatile memory is greater than the second preset power consumption, or when the data volume of the cache data is greater than the second preset data amount, The second charging voltage charges the backup capacitor.
  • the backup capacitor when the backup capacitor is a backup capacitor having a rated voltage of 25V, the predetermined charging voltage is 22.5V, and the second charging voltage is 17.5V.
  • the present invention also provides an SSD.
  • the SSD includes a backup capacitor 201 and a charging control module 202 .
  • the backup capacitor 201 is the SSD backup power source, and may be a backup capacitor with a rated voltage of 25V.
  • the charging control module 202 is configured to detect the volatile memory data storage amount, and charge the standby power capacitor by using a charging voltage corresponding to the interval in which the volatile memory data storage amount is located. Specifically, the charging control module 202 may detect the volatile memory data storage amount, where the data storage amount of the volatile memory is divided into a plurality of intervals, each interval corresponding to one charging voltage; And detecting the interval in which the volatile memory data storage amount is located; charging the standby power capacitor by using a charging voltage corresponding to the interval in which the volatile memory data storage amount is located.
  • the charging control module 202 may charge the backup capacitor 201 with a predetermined charging voltage; or, in the volatile memory data storage When the amount is higher than the second threshold, the charging control module 202 may charge the backup capacitor 201 by using a second charging voltage; wherein the first threshold is lower than a second threshold, and the predetermined charging voltage is lower than the second Two charging voltages.
  • the backup capacitor 201 is a backup capacitor having a rated voltage of 25V
  • the predetermined charging voltage is 22.5V
  • the second charging voltage is 17.5V.
  • the charging control module 202 can include a power consumption detecting module.
  • the power consumption detection module may be an application specific integrated circuit (ASIC) or firmware for detecting power consumption of the volatile memory; or for detecting a volatile memory in the SSD.
  • ASIC application specific integrated circuit
  • the charging control module 202 may adopt a predetermined charging voltage as the The backup capacitor 201 is charged.
  • the charging control module 202 may adopt the second charging voltage as the The backup capacitor 201 is charged.
  • the computer software product may be stored in a storage medium, such as a Read Only Memory (ROM)/Ramdom Access Memory (RAM), a magnetic disk, an optical disk, etc., and includes a plurality of instructions for making one
  • ROM Read Only Memory
  • RAM Random Access Memory
  • a computer device which may be a personal computer, server, or network device, etc. performs the methods described in various embodiments of the present invention or in some portions of the embodiments.

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)
  • Quality & Reliability (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

A charging method, a charging device, and an SSD. The charging method is applied to the solid state disk. The solid state disk comprises a standby-electricity capacitor (201) and a volatile memory. The charging method comprises: detecting the data storage capacity of a volatile memory (302), the data storage capacity of the volatile memory being divided into multiple sections in advance, and each section corresponding to a charging voltage; determining a section where the detected data storage capacity of the volatile memory exists (303); and charging the standby-electricity capacitor by using a charging voltage corresponding to the data storage capacity of the volatile memory (303).In the method, the standby-electricity quantity of the standby-electricity capacitor is dynamically adjusted according to the actual standby-electricity demand of the SSD; under the condition that the basic failure rate of the standby-electricity capacitor is ensured, the derating amplitude of the standby-electricity capacitor is greatly reduced, the standby-electricity quantity of a single standby-electricity capacitor is increased, and the number of the standby-electricity capacitors for the standby-electricity requirement of the SSD is reduced.

Description

充电方法、装置及固态硬盘Charging method, device and solid state hard disk 技术领域Technical field
本发明涉及计算机领域,尤其涉及充电方法、装置及固态硬盘。The present invention relates to the field of computers, and in particular, to a charging method, device, and solid state hard disk.
背景技术Background technique
固态硬盘(Solid State Drives,简称SSD)是以与非存储器(NAND Flash)为主要存储介质的一种硬盘驱动器,其主要由控制器、动态随机存取存储器(Dynamic Random Access Memory,简称DRAM)和NAND Flash构成。在有待写入数据需要写入SSD时,SSD的控制芯片首先将待写入数据缓存在读写速度较高的DRAM中,然后将缓存在DRAM中的数据写入读写速度较慢的NAND Flash中,从而提高SSD整体的数据写入速度。Solid State Drives (SSDs) are hard disk drives that use NAND Flash as the main storage medium. They are mainly composed of controllers, Dynamic Random Access Memory (DRAM) and NAND Flash is composed. When the data to be written needs to be written into the SSD, the control chip of the SSD first caches the data to be written in the DRAM with higher read/write speed, and then writes the data buffered in the DRAM to the NAND Flash with slower read and write speed. In order to improve the overall data writing speed of the SSD.
由于DRAM为易失性存储器,一旦因电源故障而导致SSD下电,DRAM中保存的数据就会丢失。为避免SSD异常下电造成DRAM中数据丢失,SSD中通常还设置有备份电源。设置有备份电源的SSD结构可以如图1所示。在SSD上电后,外部电源除通过电源接口为SSD控制器供电之外,还可以通过电源接口为备份电源充电。当SSD异常下电时,可以由备份电源为SSD控制器等供电以维持SSD工作,以便于在SSD将DRAM中缓存的数据写入NAND Flash中,从而避免SSD异常下电造成的数据丢失。Since DRAM is a volatile memory, once the SSD is powered down due to a power failure, the data stored in the DRAM is lost. In order to avoid data loss in the DRAM caused by abnormal power failure of the SSD, a backup power supply is usually also provided in the SSD. The SSD structure with backup power can be set as shown in Figure 1. After the SSD is powered on, the external power supply can supply power to the SSD controller through the power interface, and can also charge the backup power supply through the power interface. When the SSD is powered off abnormally, the SSD controller can be powered by the backup power supply to maintain the SSD, so that the data cached in the DRAM can be written into the NAND Flash in the SSD, thereby avoiding data loss caused by abnormal powering down of the SSD.
有电容具有结构简单,备电量大等特点,因此现有技术中通常使用电容作为备份电源为SSD备电。在采用电容为SSD备电时,通过需要对电容进行降额设计。通过降额设计可以使电容在工作时承受的工作应力适当低于电容的额定值,从而降低电容的基本失效率,提高采用电容为SSD备电时的可靠性。由于在不同电压降额下,电容失效率差异比较,并且电压降额越高,则电容的基本失效率越低,因此 为提高采用电容为SSD备电的可靠性,通常需要对电容大幅度降额。以钽电容为例,在工作电压降低到额定电压的90%时,失效率在2fit左右;而当工作电压降低到额定电压的70%时,失效率则降为0.19fit,为满足为SSD备电时的基本失效率要求,在实际采用中通常需要将钽电容的工作电压降低到额定电压的70%。The capacitor has the characteristics of simple structure and large reserve power. Therefore, in the prior art, a capacitor is generally used as a backup power source to reserve power for the SSD. When the capacitor is used for SSD power supply, the capacitor needs to be derated. The derating design can make the working stress of the capacitor under working properly lower than the rated value of the capacitor, thereby reducing the basic failure rate of the capacitor and improving the reliability when the capacitor is used for SSD backup. Since the difference in capacitance failure rate is compared under different voltage deratings, and the higher the voltage derating, the lower the basic failure rate of the capacitor, In order to improve the reliability of using S capacitors for backup, it is usually necessary to greatly degrade the capacitance. Taking tantalum capacitor as an example, when the operating voltage is reduced to 90% of the rated voltage, the failure rate is about 2fit; when the operating voltage is reduced to 70% of the rated voltage, the failure rate is reduced to 0.19fit, which is satisfied for the SSD. The basic failure rate requirement for electricity is that in practical use it is usually necessary to reduce the operating voltage of the tantalum capacitor to 70% of the rated voltage.
对电容进行大幅度降额,虽然能够满足对电容可靠性的要求,但同时也会大大降低单个电容所能保存的电量。在单个电容所能保存电量降低的情况下,为满足将DRAM中的数据写入NAND Flash中的电量需求,就需要增加为SSD备电所需电容的数量,从而导致SSD中电容采用数量的增加。A large derating of the capacitors, while meeting the reliability requirements of the capacitors, also greatly reduces the amount of power that can be saved by a single capacitor. In the case that a single capacitor can save power, in order to meet the power requirement of writing data in DRAM into NAND Flash, it is necessary to increase the amount of capacitor required for standby power supply of SSD, resulting in an increase in the number of capacitors used in SSD. .
发明内容Summary of the invention
本发明实施例提供了充电方法、装置及固态硬盘,以解决现有技术中采用电容为SSD备电,电容需要进行大幅度降额,导致SSD中电容使用量较多的问题。The embodiments of the present invention provide a charging method, a device, and a solid state hard disk, so as to solve the problem that the capacitor is used for the SSD backup in the prior art, and the capacitor needs to be greatly derated, resulting in a large amount of capacitance in the SSD.
第一方面,本发明实施例提供了一种充电方法,该方法包括:检测所述易失性存储器数据存储量,所述易失性存储器的数据存储量被预先划分为多个区间,每个区间对应一个充电电压;确定所检测的所述易失性存储器数据存储量所在的区间;采用所述易失性存储器数据存储量所在的区间对应的充电电压为所述备电电容充电。由于所述易失性存储器数据存储量与SSD实际的备电需求正相关,因此采用本发明所提供的方法装置,根据SSD实际的备电需求动态调整电容备电的电量,可以在保证电容基本失效率的情况下,大大降低电容降额的幅度,提升单个电容备电的电量,从而减小SSD中所需电容的数量。In a first aspect, an embodiment of the present invention provides a charging method, the method comprising: detecting the volatile memory data storage amount, where the data storage amount of the volatile memory is pre-divided into a plurality of intervals, each The interval corresponds to a charging voltage; the interval in which the detected volatile memory data storage amount is determined is determined; and the charging capacitor corresponding to the interval in which the volatile memory data storage amount is located is used to charge the standby capacitor. Because the amount of the volatile memory data storage is positively related to the actual backup power requirement of the SSD, the method provided by the present invention dynamically adjusts the power of the capacitor backup according to the actual backup power requirement of the SSD, and can ensure the basic capacitance. In the case of failure rate, the magnitude of the capacitance derating is greatly reduced, and the amount of power required for the single capacitor is increased, thereby reducing the amount of capacitance required in the SSD.
结合第一方面,在第一方面第一种可能的实现方式中,所述检测所述易失性存储器数据存储量包括:检测所述易失性存储器的功耗;或者,检测所述易失性存储器所缓存数据的数据量。采用本实现方式, 可以很容易确定所述易失性存储器数据存储量。With reference to the first aspect, in a first possible implementation manner of the first aspect, the detecting the volatile memory data storage quantity comprises: detecting power consumption of the volatile memory; or detecting the volatile The amount of data that is cached by the memory. Using this implementation, The amount of volatile memory data storage can be easily determined.
结合第一方面或第一方面第一种可能的实现方式,在第一方面第二种可能的实现方式中,当所述备电电容为额定电压25V的钽电容时,所述易失性存储器的数据存储量被预先划分为三个区间,第一区间为小于第一阈值,第二区间为大于所述第一阈值,小于第二阈值,第三区间为大于第二阈值,所述第一区间对应的充电电压为22.5V,所述第二区间对应的充电电压为22.5V或者17.5V,所述第三区间对应的充电电压为17.5V。With reference to the first aspect or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, when the backup capacitor is a tantalum capacitor with a rated voltage of 25V, the volatile memory The data storage amount is divided into three intervals in advance, the first interval is smaller than the first threshold, the second interval is greater than the first threshold, less than the second threshold, and the third interval is greater than the second threshold, the first The charging voltage corresponding to the interval is 22.5 V, the charging voltage corresponding to the second interval is 22.5 V or 17.5 V, and the charging voltage corresponding to the third interval is 17.5 V.
第二方面,本发明实施例提供了一种充电装置,该装置包括用于执行第一方面或第一方面各实施方式中方法步骤的单元。In a second aspect, an embodiment of the present invention provides a charging apparatus including means for performing the method steps of the first aspect or the first aspect of the first aspect.
第三方面,本发明实施例还提供了一种SSD,其特征在于包括充电控制模块、备电电容及易失性存储器,其中,所述备电电容为所述SSD的备用电源;所述充电控制模块,用于检测所述易失性存储器数据存储量,所述易失性存储器的数据存储量被预先划分为多个区间,每个区间对应一个充电电压;确定所检测的所述易失性存储器数据存储量所在的区间;采用所述易失性存储器数据存储量所在的区间对应的充电电压为所述备电电容充电。所述SSD可以根据实际的备电需求动态调整电容备电的电量,可以在保证电容基本失效率的情况下,大大降低电容降额的幅度,提升单个电容备电的电量,从而减小SSD中所需电容的数量。In a third aspect, an embodiment of the present invention further provides an SSD, including a charging control module, a backup capacitor, and a volatile memory, wherein the backup capacitor is a backup power source of the SSD; a control module, configured to detect the volatile memory data storage amount, where the data storage amount of the volatile memory is pre-divided into a plurality of intervals, each interval corresponding to one charging voltage; determining the detected volatile The interval in which the amount of memory data storage is located; charging the backup capacitor by using a charging voltage corresponding to the interval in which the volatile memory data storage amount is located. The SSD can dynamically adjust the power of the capacitor backup according to the actual backup power requirement, and can greatly reduce the magnitude of the capacitor derating and improve the power of the single capacitor backup, thereby reducing the SSD in the case of ensuring the basic failure rate of the capacitor. The amount of capacitance required.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要采用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below, and it will be apparent to those skilled in the art that In other words, other drawings can be obtained based on these drawings without paying for creative labor.
图1为现有技术中SSD的结构示意图; 1 is a schematic structural view of an SSD in the prior art;
图2为本发明SSD一个实施例的结构示意图;2 is a schematic structural diagram of an embodiment of an SSD according to the present invention;
图3为本发明充电方法一个实施例的流程示意图;3 is a schematic flow chart of an embodiment of a charging method of the present invention;
图4为本发明充电装置一个实施例的结构示意图。4 is a schematic structural view of an embodiment of a charging device of the present invention.
具体实施方式detailed description
由于备电电容的备电能量需求跟易失性存储器中缓存的待写入数据量正相关在通。比如在最大写性能情况下,即待写入数据占满易失性存储器的存储空间时,SSD的功耗可以达到11W,相应的,备电电容需要200mJ的备电能量才能将易失性存储器中的数据转存至NAND Flash中;而在通常应用性能情况下,SSD的功耗只有9W,相应的,备电电容只需要120mJ的备电能量就能将易失性存储器中的数据转存至NAND Flash中。Since the backup energy requirement of the backup capacitor is positively correlated with the amount of data to be written buffered in the volatile memory. For example, in the case of maximum write performance, that is, when the data to be written is occupied by the storage space of the volatile memory, the power consumption of the SSD can reach 11 W. Accordingly, the backup capacitor requires 200 mJ of backup energy to enable the volatile memory. The data in the data is transferred to NAND Flash; in the case of normal application performance, the power consumption of the SSD is only 9W. Correspondingly, the backup capacitor only needs 120mJ of backup energy to transfer the data in the volatile memory. To NAND Flash.
本发明SSD的结构如图2所示,其中,所述备份电源为备电电容201;所述SSD控制器中可以包括充电控制模块202,所述充电控制模块202可以检测SSD的写性能,并根据SSD的写性能控制所述备电电容201的充电电压,从而可以根据易失性存储器数据存储量的变化动态调整备电电容201的充电电压,可以在满足备电需求的同时,降低对备电电容数量的需求。其中,所述备电电容201可以为额定电压25V的钽备电电容。The structure of the SSD of the present invention is as shown in FIG. 2, wherein the backup power source is a backup capacitor 201; the SSD controller may include a charging control module 202, and the charging control module 202 can detect the write performance of the SSD, and The charging voltage of the backup capacitor 201 is controlled according to the write performance of the SSD, so that the charging voltage of the backup capacitor 201 can be dynamically adjusted according to the change of the amount of volatile memory data storage, which can reduce the backup while satisfying the backup power requirement. The demand for the number of electrical capacitors. The backup capacitor 201 can be a backup capacitor with a rated voltage of 25V.
参见图3,为本发明充电方法一个实施例的流程图,该方法包括如下步骤:3 is a flow chart of an embodiment of a charging method of the present invention, the method comprising the following steps:
步骤301,在SSD上电之后,采用预定充电电压为备电电容充电。Step 301: After the SSD is powered on, the predetermined charging voltage is used to charge the backup capacitor.
在SSD上电后,SSD中的充电控制模块可以首先采用预定充电电压为所述备电电容充电,其中,所述备电电容用于为所述SSD备电。所述预定充电电压可以根据所述备电电容的不同进行设置。通常情况下,所述预定充电电压可以为所述备电电容额定电压的70%。After the SSD is powered on, the charging control module in the SSD may first charge the backup capacitor with a predetermined charging voltage, wherein the backup capacitor is used to reserve power for the SSD. The predetermined charging voltage may be set according to the difference in the backup capacitance. Generally, the predetermined charging voltage may be 70% of the rated voltage of the backup capacitor.
步骤302,检测易失性存储器数据存储量。 Step 302, detecting the amount of volatile memory data storage.
易失性存储器数据存储量决定了SSD异常下电时,将易失性存 储器中缓存的数据写入NAND Flash所需的电量。因此在SSD上电之后,充电控制模块可以持续检测易失性存储器数据存储量。其中,易失性存储器中缓存的数据则可以由充电控制模块通过SSD的固件(Firmware)检测。Volatile memory data storage determines the SSD will be volatile when it is powered off abnormally. The amount of data cached in the memory is written to the NAND Flash. Therefore, after the SSD is powered on, the charge control module can continuously detect the amount of volatile memory data storage. The data cached in the volatile memory can be detected by the charging control module through the firmware of the SSD.
易失性存储器数据存储量除可以通过易失性存储器所缓存数据的数据量表示之外,还可以以功耗的形式表示。Volatile memory data storage can be expressed in terms of power consumption, in addition to the amount of data that can be cached by volatile memory.
例如,易失性存储器的数据存储量通常可以表现为易失性存储器的功耗。易失性存储器的功耗越高,则说明易失性存储器的写操作越频繁,从而说明易失性存储器的数据存储量越高。相应的,易失性存储器的功耗越低,说明易失性存储器数据存储量越低;而易失性存储器的功耗可以由充电控制模块通过SSD中的功耗检测模块检测。For example, the amount of data storage in a volatile memory can generally be expressed as the power consumption of volatile memory. The higher the power consumption of the volatile memory, the more frequent the write operation of the volatile memory, thus indicating the higher the amount of data storage of the volatile memory. Correspondingly, the lower the power consumption of the volatile memory, the lower the amount of volatile memory data storage; and the power consumption of the volatile memory can be detected by the charging control module through the power consumption detection module in the SSD.
又如,易失性存储器的数据存储量的也可以表现为NAND Flash的功耗。由于NAND Flash在进行数据擦写操作时的功耗要大于在数据读取时的功耗,与NAND Flash数据擦写操作与NAND Flash的功耗正相关,并且擦写操作越多NAND Flash的功耗越大。NAND Flash的功耗越高,说明NAND Flash的数据擦写操作越频繁,进而说明易失性存储器的数据存储量越高。相应的,NAND Flash的功耗越低,说明易失性存储器数据存储量越低。而NAND Flash的功耗可以由充电控制模块通过SSD中的功耗检测模块检测,易失性存储器中缓存的数据则可以由充电控制模块通过SSD的固件检测。For another example, the amount of data storage of the volatile memory can also be expressed as the power consumption of the NAND Flash. Since the power consumption of NAND Flash in data erasing operation is greater than that in data reading, the NAND Flash data erasing operation is positively correlated with the power consumption of NAND Flash, and the more erasing operations are the NAND Flash functions. The greater the consumption. The higher the power consumption of NAND Flash, the more frequent the data erasing operation of NAND Flash, and the higher the data storage capacity of volatile memory. Correspondingly, the lower the power consumption of NAND Flash, the lower the amount of volatile memory data storage. The power consumption of the NAND Flash can be detected by the charging control module through the power consumption detecting module in the SSD, and the data buffered in the volatile memory can be detected by the charging control module through the firmware of the SSD.
由于易失性存储器的功耗与NAND Flash的功耗均与所述易失性存储器数据存储量正相关,而SSD中其他器件的功耗较为稳定,因此SSD的功耗也与所述易失性存储器数据存储量正相关。因此易失性存储器数据存储量的可以表现为易失性存储器的功耗、NAND Flash的功耗或SSD的功耗。Since the power consumption of the volatile memory and the power consumption of the NAND Flash are both positively related to the amount of volatile memory data storage, and the power consumption of other devices in the SSD is relatively stable, the power consumption of the SSD is also related to the loss. The amount of memory data storage is positively correlated. Therefore, the amount of volatile memory data storage can be expressed as the power consumption of the volatile memory, the power consumption of the NAND Flash, or the power consumption of the SSD.
步骤303,确定所检测的所述易失性存储器数据存储量所在的区间。Step 303: Determine an interval in which the detected volatile memory data storage amount is located.
在对所述备电电容进行充电之前,可以将易失性存储器的数据存储量划分为至少两个数据存储量区间,其中各个数据存储器区间之间 互不重叠,并为每个区间设置至少一个充电电压。充电控制模块在检测到所述易失性存储器数据存储量后,可以确定所检测的所述易失性存储器数据存储量所在的区间。Before charging the backup capacitor, the data storage amount of the volatile memory may be divided into at least two data storage interval intervals, wherein each data storage interval is between Do not overlap each other and set at least one charging voltage for each interval. After detecting the volatile memory data storage amount, the charging control module may determine the interval in which the detected volatile memory data storage amount is located.
步骤304,采用与所述易失性存储器数据存储量相对应的充电电压为备电电容充电。Step 304: Charging the backup capacitor with a charging voltage corresponding to the volatile memory data storage amount.
确定所检测的所述易失性存储器数据存储量所在的区间之后,所述充电控制模块可以采用所述易失性存储器数据存储量所在的区间对应的充电电压为所述备电电容充电。After determining the interval in which the detected volatile memory data storage amount is located, the charging control module may charge the backup capacitor by using a charging voltage corresponding to the interval in which the volatile memory data storage amount is located.
例如,所述易失性存储器的数据存储量被预先划分为三个区间,第一区间为小于第一阈值,第二区间为大于所述第一阈值,小于第二阈值,第三区间为大于第二阈值,如果充电控制模块检测到所述易失性存储器数据存储量低于第一阈值时,那么可以采用第一充电电压为所述备电电容充电;如果所述充电控制模块检测到所述易失性存储器数据存储量高于第二阈值时,采用第二充电电压为所述备电电容充电,其中,所述第一阈值低于第二阈值,所述第一充电电压低于第二充电电压。其中,所述第一充电电压可以于与所述预设充电电压相同,当所述第一充电电压为所述备电电容额定的电压的70%时,所述第二充电电压可以为所述备电电容额定电压的90%。For example, the data storage amount of the volatile memory is divided into three intervals in advance, the first interval is smaller than the first threshold, the second interval is greater than the first threshold, less than the second threshold, and the third interval is greater than a second threshold, if the charge control module detects that the volatile memory data storage amount is lower than the first threshold, then the first charging voltage may be used to charge the backup capacitor; if the charging control module detects the When the amount of volatile memory data storage is higher than the second threshold, the second charging voltage is used to charge the backup capacitor, wherein the first threshold is lower than the second threshold, and the first charging voltage is lower than the first Two charging voltages. The first charging voltage may be the same as the preset charging voltage. When the first charging voltage is 70% of the rated voltage of the backup capacitor, the second charging voltage may be the 90% of the rated voltage of the backup capacitor.
根据易失性存储器数据存储量表现形式不同,所述阈值的表现形式也可以各不相同。Depending on the representation of the volatile memory data storage, the representation of the thresholds may also vary.
例如,当采用所述易失性存储器所缓存数据的数据量表示所述易失性存储器数据存储量时,所述第一阈值可以为第一预设数据量,所述第二阈值可以为第二预设数据量。具体来说,当所述缓存数据的数据量小于第一预设数据量时,充电控制模块可以采用预定充电电压为所述备电电容充电。而当所述缓存数据的数据量大于第二预设数据量时,则可以采用第二充电电压为所述备电电容充电。For example, when the amount of data of the cached data of the volatile memory is used to represent the volatile memory data storage amount, the first threshold may be a first preset data amount, and the second threshold may be Two preset data amounts. Specifically, when the data amount of the cache data is less than the first preset data amount, the charging control module may charge the backup capacitor by using a predetermined charging voltage. When the amount of data of the buffered data is greater than the second predetermined amount of data, the second charging voltage may be used to charge the standby capacitor.
又如,当采用所述易失性存储器的功耗表示所述易失性存储器数据存储量时,所述第一阈值可以为第一预设功耗,所述第二阈值可以为第二预设功耗。具体来说,当所述易失性存储器的功耗小于第一预 设功耗时,充电控制模块可以采用预定充电电压为所述备电电容充电。而当所述易失性存储器的功耗大于第二预设功耗时,则可以采用第二充电电压为所述备电电容充电。For example, when the power consumption of the volatile memory is used to represent the volatile memory data storage amount, the first threshold may be a first preset power consumption, and the second threshold may be a second pre- Set the power consumption. Specifically, when the volatile memory consumes less power than the first pre- When power consumption is set, the charging control module can charge the backup capacitor with a predetermined charging voltage. When the power consumption of the volatile memory is greater than the second preset power consumption, the second charging voltage may be used to charge the standby capacitor.
为避免频繁切换充电电压,充电控制模块可以在易失性存储器数据存储量低于第一阈值并且持续超过预定时长后,再采用预定充电电压为所述备电电容充电;同样的,充电控制模块也可以在易失性存储器数据存储量高于第一阈值并且持续超过预定时长后,再采用第二充电电压为所述备电电容充电。如果所述充电控制模块检测到所述易失性存储器数据存储量位于第一阈值与第二阈值之间,则可以不调整为所述备电电容进行充电的充电电压,或者根据所述易失性存储器数据存储量变化趋势调整为所述备电电容进行充电的充电电压。In order to avoid frequent switching of the charging voltage, the charging control module may charge the standby capacitor with a predetermined charging voltage after the volatile memory data storage amount is lower than the first threshold and continues for more than a predetermined period of time; similarly, the charging control module The secondary charging voltage may also be charged with the second charging voltage after the volatile memory data storage amount is higher than the first threshold and continues for more than a predetermined period of time. If the charging control module detects that the volatile memory data storage amount is between the first threshold and the second threshold, the charging voltage for charging the backup capacitor may not be adjusted, or according to the volatile The trend of the amount of storage of the memory data is adjusted to the charging voltage for charging the backup capacitor.
根据所述易失性存储器数据存储量变化趋势调整所述备电电容进行充电的充电电压包括:当所述易失性存储器数据存储量由小于第一阈值变为位于第一阈值与第二阈值之间时,则采用第二充电电压为所述备电电容充电;当所述易失性存储器数据存储量由大于第一阈值变为位于第一阈值与第二阈值之间时,则采用预定充电电压为所述备电电容充电。Adjusting the charging voltage for charging the backup capacitor according to the change trend of the volatile memory data storage amount includes: when the volatile memory data storage amount is changed from being less than the first threshold to being located at the first threshold and the second threshold When the time is between, the second charging voltage is used to charge the backup capacitor; when the volatile memory data storage amount is changed from greater than the first threshold to between the first threshold and the second threshold, the reservation is adopted. The charging voltage charges the backup capacitor.
根据所述易失性存储器数据存储量变化趋势调整所述备电电容进行充电的充电电压,可以调整备电电容的充电量,进一步确保备电电容中的电量足够维持将易失性存储器中的数据写入到NAND Flash中,并且进一步降低备电电容的基本失效率。Adjusting the charging voltage of the backup capacitor according to the change trend of the volatile memory data storage amount, the charging capacity of the backup capacitor can be adjusted, and further ensuring that the amount of power in the backup capacitor is sufficient to maintain the volatile memory Data is written into NAND Flash and the basic failure rate of the backup capacitor is further reduced.
以额定电压为25V的钽电容为例,预定充电电压可以为17.5V,第二充电电压可以为22.5V。在所述SSD上电之后,充电控制模块可以采用17.5V的预定充电电压为钽电容充电,然后开始检测SSD的功耗或所述易失性存储器所缓存数据的数据量。Taking a tantalum capacitor with a rated voltage of 25V as an example, the predetermined charging voltage can be 17.5V, and the second charging voltage can be 22.5V. After the SSD is powered up, the charging control module can charge the tantalum capacitor with a predetermined charging voltage of 17.5V, and then start detecting the power consumption of the SSD or the amount of data of the data buffered by the volatile memory.
当充电控制模块检测到所述易失性存储器的功耗小于9W,或者,所述缓存数据的数据量小于6Mbit,那么所述充电控制模块可以采用17.5V的电压为所述备电电容充电。When the charging control module detects that the power consumption of the volatile memory is less than 9W, or the data amount of the buffered data is less than 6Mbit, the charging control module may charge the standby capacitor by using a voltage of 17.5V.
当充电控制模块检测到所述易失性存储器的功耗大于11W,或 者,所述缓存数据的数据量大于11Mbit,那么所述充电控制模块可以采用22.5V的电压为所述备电电容充电。When the charging control module detects that the volatile memory consumes more than 11W, or The data volume of the cache data is greater than 11 Mbit, and the charging control module can charge the backup capacitor with a voltage of 22.5V.
当充电控制模块检测到所述易失性存储器的功耗在9W至11W之间,或者,所述缓存数据的数据量处于6Mbit至10Mbit之间时,所述充电控制模块可以继续采用17.5V或22.5V的电压为备电电容充电。进一步,当充电控制模块检测到所述易失性存储器的功耗从9W以下变化到9W至11W之间,或者,所述缓存数据的数据量从少于6Mbit变化到6Mbit至10Mbit之间时,则可以从采用17.5V的电压为所述备电电容充电,改为采用采用22.5V的电压为所述备电电容充电;或者,当充电控制模块检测到所述易失性存储器的功耗从11W以上变化到9W至11W之间,或者,所述缓存数据的数据量从多于10Mbit变化到6Mbit至10Mbit之间时,则可以从采用22.5V的电压为所述备电电容充电,改为采用17.5V的电压为所述备电电容充电。When the charging control module detects that the power consumption of the volatile memory is between 9W and 11W, or the data amount of the buffered data is between 6Mbit and 10Mbit, the charging control module may continue to adopt 17.5V or The 22.5V voltage is used to charge the backup capacitor. Further, when the charging control module detects that the power consumption of the volatile memory changes from 9W to 9W to 11W, or the data amount of the cached data changes from less than 6Mbit to 6Mbit to 10Mbit, The charging capacitor can be charged from a voltage of 17.5V, and the standby capacitor can be charged by using a voltage of 22.5V; or when the charging control module detects the power consumption of the volatile memory from 11W or more changes to between 9W and 11W, or when the amount of data of the cached data changes from more than 10Mbit to between 6Mbit and 10Mbit, the backup capacitor can be charged from a voltage of 22.5V. The backup capacitor is charged with a voltage of 17.5V.
在此需要说明的是,充电控制模块可以持续检测易失性存储器数据存储量,并且采用与所述易失性存储器数据存储量相对应的充电电压为备电电容充电,即在步骤301之后可以重复执行步骤302至步骤303直至SSD下电。It should be noted that the charging control module can continuously detect the amount of volatile memory data storage, and charge the backup capacitor with a charging voltage corresponding to the volatile memory data storage amount, that is, after step 301. Step 302 to step 303 are repeated until the SSD is powered off.
在此还需要说明的是,前述仅以三个区间为例对本发明进行说明,根据实际需要也可以划分更多或更少的区间,具体的实现方式可以参见前述,在此就不再赘述。It should be noted that the foregoing description of the present invention is made by taking only three sections as an example, and more or less sections may be divided according to actual needs. For the specific implementation manner, reference may be made to the foregoing, and details are not described herein again.
在本实施例中,检测固态硬盘易失性存储器数据存储量;采用与所述易失性存储器数据存储量相对应的充电电压为备电电容充电。由于易失性存储器数据存储量与SSD实际的备电需求正相关,因此采用本发明所提供的方法,根据SSD实际的备电需求动态调整备电电容备电的电量,可以在保证备电电容基本失效率的情况下,大大降低备电电容降额的幅度,提升单个备电电容备电的电量,减小为SSD备电所需备电电容的数量。In this embodiment, the amount of volatile memory data storage of the solid state hard disk is detected; and the charging voltage corresponding to the volatile memory data storage amount is used to charge the backup capacitor. Since the amount of volatile memory data storage is positively related to the actual backup power requirement of the SSD, the method provided by the present invention dynamically adjusts the power of the backup capacitor according to the actual backup power requirement of the SSD, and can ensure the backup capacitor. In the case of a basic failure rate, the magnitude of the backup capacitor derating is greatly reduced, the amount of power for a single backup capacitor is increased, and the amount of backup capacitor required for the SSD backup is reduced.
参加图4为本发明充电装置一个实施例的结构示意图。该实施例所述的充电装置可以设置在SSD中,用于执行图2所对应的充方法, 控制SSD中备用电源的充电电压。FIG. 4 is a schematic structural view of an embodiment of a charging device of the present invention. The charging device described in this embodiment may be disposed in the SSD for performing the charging method corresponding to FIG. 2, Controls the charging voltage of the backup power supply in the SSD.
如图4所示,所述装置可以包括检测单元401、确定单元402及充电单元403。As shown in FIG. 4, the apparatus may include a detecting unit 401, a determining unit 402, and a charging unit 403.
其中,检测单元401,用于检测所述易失性存储器数据存储量,所述易失性存储器的数据存储量被预先划分为多个区间,每个区间对应一个充电电压;确定单元402,用于确定所检测的所述易失性存储器数据存储量所在的区间;充电单元403,用于采用与所述SSD的写性能相对应的充电电压为电容充电,其中,所述电容为所述SSD的备用电源。The detecting unit 401 is configured to detect the volatile memory data storage amount, where the data storage amount of the volatile memory is divided into a plurality of intervals, each interval corresponding to one charging voltage; the determining unit 402, And determining a section in which the detected volatile memory data storage amount is located; charging unit 403, configured to charge a capacitor by using a charging voltage corresponding to a write performance of the SSD, wherein the capacitor is the SSD Backup power.
当所述备电电容为额定电压25V的钽电容时,所述易失性存储器性能被预先划分为三个区间,第一区间为小于第一阈值,第二区间为大于所述第一阈值,小于第二阈值,第三区间为大于第二阈值,所述第一区间对应的充电电压为22.5V,所述第二区间对应的充电电压为22.5V或者17.5V,所述第三区间对应的充电电压为17.5V。When the backup capacitor is a tantalum capacitor with a rated voltage of 25V, the volatile memory performance is pre-divided into three intervals, the first interval is smaller than the first threshold, and the second interval is greater than the first threshold. The second interval is greater than the second threshold, the charging voltage corresponding to the first interval is 22.5V, and the charging voltage corresponding to the second interval is 22.5V or 17.5V, and the third interval corresponds to The charging voltage is 17.5V.
可选的,检测单元401,具体用于检测所述易失性存储器的功耗,或者,检测所述易失性存储器所缓存数据的数据量。Optionally, the detecting unit 401 is specifically configured to detect power consumption of the volatile memory, or detect a data amount of data cached by the volatile memory.
可选的,所述检测单元401,具体用于检测所述易失性存储器的功耗;或者,检测所述SSD中易失性存储器所缓存数据的数据量。Optionally, the detecting unit 401 is specifically configured to detect power consumption of the volatile memory; or detect a data amount of data cached by the volatile memory in the SSD.
可选的,所述充电单元403,具体用于在所述易失性存储器的功耗小于第一预设功耗,或者,所述缓存数据的数据量小于第一预设数据量时,采用预定充电电压为所述备电电容充电。Optionally, the charging unit 403 is specifically configured to: when the power consumption of the volatile memory is less than the first preset power consumption, or when the data volume of the cache data is less than the first preset data amount, The predetermined charging voltage charges the backup capacitor.
可选的,所述充电单元403,具体用于在所述易失性存储器的功耗大于第二预设功耗,或者,所述缓存数据的数据量大于第二预设数据量时,采用第二充电电压为所述备电电容充电。Optionally, the charging unit 403 is configured to: when the power consumption of the volatile memory is greater than the second preset power consumption, or when the data volume of the cache data is greater than the second preset data amount, The second charging voltage charges the backup capacitor.
其中,当所述备电电容为额定电压为25V的钽备电电容时,所述预定充电电压为22.5V,所述第二充电电压为17.5V。Wherein, when the backup capacitor is a backup capacitor having a rated voltage of 25V, the predetermined charging voltage is 22.5V, and the second charging voltage is 17.5V.
与本发明的充电方法及充电装置相对用,本发明还提供了一种SSD。In contrast to the charging method and charging device of the present invention, the present invention also provides an SSD.
如图2所示,所述SSD包括备电电容201及充电控制模块202。 As shown in FIG. 2 , the SSD includes a backup capacitor 201 and a charging control module 202 .
其中,所述备电电容201为所述SSD备用电源,通常可以为额定电压为25V的钽备电电容。The backup capacitor 201 is the SSD backup power source, and may be a backup capacitor with a rated voltage of 25V.
所述充电控制模块202,用于检测所述易失性存储器数据存储量;采用所述易失性存储器数据存储量所在的区间对应的充电电压为所述备电电容充电。具体来说,所述充电控制模块202可以检测所述易失性存储器数据存储量,所述易失性存储器的数据存储量被预先划分为多个区间,每个区间对应一个充电电压;确定所检测的所述易失性存储器数据存储量所在的区间;采用所述易失性存储器数据存储量所在的区间对应的充电电压为所述备电电容充电。The charging control module 202 is configured to detect the volatile memory data storage amount, and charge the standby power capacitor by using a charging voltage corresponding to the interval in which the volatile memory data storage amount is located. Specifically, the charging control module 202 may detect the volatile memory data storage amount, where the data storage amount of the volatile memory is divided into a plurality of intervals, each interval corresponding to one charging voltage; And detecting the interval in which the volatile memory data storage amount is located; charging the standby power capacitor by using a charging voltage corresponding to the interval in which the volatile memory data storage amount is located.
例如,在所述易失性存储器数据存储量低于第一阈值时,所述充电控制模块202可以采用预定充电电压为所述备电电容201充电;或者,在所述易失性存储器数据存储量高于第二阈值时,所述充电控制模块202可以采用第二充电电压为所述备电电容201充电;其中,所述第一阈值低于第二阈值,所述预定充电电压低于第二充电电压。当所述备电电容201为额定电压为25V的钽备电电容时,所述预定充电电压为22.5V,所述第二充电电压为17.5V。For example, when the volatile memory data storage amount is lower than the first threshold, the charging control module 202 may charge the backup capacitor 201 with a predetermined charging voltage; or, in the volatile memory data storage When the amount is higher than the second threshold, the charging control module 202 may charge the backup capacitor 201 by using a second charging voltage; wherein the first threshold is lower than a second threshold, and the predetermined charging voltage is lower than the second Two charging voltages. When the backup capacitor 201 is a backup capacitor having a rated voltage of 25V, the predetermined charging voltage is 22.5V, and the second charging voltage is 17.5V.
可选的,所述充电控制模块202可以包括功耗检测模块。所述功耗检测模块可以为专用集成电路(Application Specific Integrated Circuit,简称ASIC)或固件,用于检测所述易失性存储器的功耗;或者,用于检测所述SSD中易失性存储器所缓存数据的数据量。当所述易失性存储器的功耗小于第一预设功耗,或者,所述缓存数据的数据量小于第一预设数据量时,所述充电控制模块202可以采用预定充电电压为所述备电电容201充电。当所述易失性存储器的功耗大于第二预设功耗,或者,所述缓存数据的数据量大于第二预设数据量时,所述充电控制模块202可以采用第二充电电压为所述备电电容201充电。Optionally, the charging control module 202 can include a power consumption detecting module. The power consumption detection module may be an application specific integrated circuit (ASIC) or firmware for detecting power consumption of the volatile memory; or for detecting a volatile memory in the SSD. The amount of data that is cached. When the power consumption of the volatile memory is less than the first preset power consumption, or the data amount of the buffer data is less than the first preset data amount, the charging control module 202 may adopt a predetermined charging voltage as the The backup capacitor 201 is charged. When the power consumption of the volatile memory is greater than the second preset power consumption, or the data amount of the buffer data is greater than the second preset data amount, the charging control module 202 may adopt the second charging voltage as the The backup capacitor 201 is charged.
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上可以以软件产品的形式体现出来,该 计算机软件产品可以存储在存储介质中,如只读存储器(Read Only Memory,简称ROM)/随机存取存储器(Ramdom Access Memory,简称RAM)、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。 It will be apparent to those skilled in the art that the techniques in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on the understanding, the technical solution in the embodiment of the present invention can be embodied in the form of a software product. The computer software product may be stored in a storage medium, such as a Read Only Memory (ROM)/Ramdom Access Memory (RAM), a magnetic disk, an optical disk, etc., and includes a plurality of instructions for making one A computer device (which may be a personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention or in some portions of the embodiments.

Claims (7)

  1. 一种充电方法,应用于固态硬盘,所述固态硬盘包括备电电容及易失性存储器,其特征在于,所述方法包括:A charging method is applied to a solid state hard disk, and the solid state hard disk includes a backup capacitor and a volatile memory, wherein the method includes:
    检测所述易失性存储器数据存储量,所述易失性存储器的数据存储量被预先划分为多个区间,每个区间对应一个充电电压;Detecting the volatile memory data storage amount, where the data storage amount of the volatile memory is pre-divided into a plurality of intervals, each interval corresponding to one charging voltage;
    确定所检测的所述易失性存储器数据存储量所在的区间;Determining an interval in which the detected volatile memory data storage amount is located;
    采用所述易失性存储器数据存储量所在的区间对应的充电电压为所述备电电容充电。The backup capacitor is charged by using a charging voltage corresponding to the interval in which the volatile memory data storage amount is located.
  2. 如权利要求1所述的方法特征在于,所述检测所述易失性存储器数据存储量包括:The method of claim 1 wherein said detecting said volatile memory data storage amount comprises:
    检测所述易失性存储器的功耗;Detecting power consumption of the volatile memory;
    或者,检测所述易失性存储器所缓存数据的数据量。Alternatively, detecting the amount of data of the data cached by the volatile memory.
  3. 如权利要求1或2所述的方法,其特征在于,当所述备电电容为额定电压25V的钽电容时,所述易失性存储器的数据存储量被预先划分为三个区间,第一区间为小于第一阈值,第二区间为大于所述第一阈值,小于第二阈值,第三区间为大于第二阈值,所述第一区间对应的充电电压为22.5V,所述第二区间对应的充电电压为22.5V或者17.5V,所述第三区间对应的充电电压为17.5V。The method according to claim 1 or 2, wherein when the backup capacitor is a tantalum capacitor having a rated voltage of 25 V, the data storage amount of the volatile memory is divided into three sections in advance, first The interval is smaller than the first threshold, the second interval is greater than the first threshold, is smaller than the second threshold, the third interval is greater than the second threshold, and the charging voltage corresponding to the first interval is 22.5V, the second interval The corresponding charging voltage is 22.5V or 17.5V, and the charging voltage corresponding to the third interval is 17.5V.
  4. 一种充电装置,其特征在于,包括:A charging device, comprising:
    检测单元,用于检测所述易失性存储器数据存储量,所述易失性存储器的数据存储量被预先划分为多个区间,每个区间对应一个充电电压;a detecting unit, configured to detect the volatile memory data storage amount, where the data storage amount of the volatile memory is pre-divided into a plurality of intervals, each interval corresponding to one charging voltage;
    确定单元,用于确定所检测的所述易失性存储器数据存储量所在的区间;a determining unit, configured to determine an interval in which the detected volatile memory data storage amount is located;
    充电单元,用于采用与所述SSD的写性能相对应的充电电压为 电容充电,其中,所述电容为所述SSD的备用电源。a charging unit for using a charging voltage corresponding to a write performance of the SSD The capacitor is charged, wherein the capacitor is a backup power source of the SSD.
  5. 如权利要求4所述的装置,其特征在于,The device of claim 4 wherein:
    检测单元,具体用于检测所述易失性存储器的功耗,或者,检测所述易失性存储器所缓存数据的数据量。The detecting unit is specifically configured to detect power consumption of the volatile memory, or detect a data amount of data cached by the volatile memory.
  6. 如权利要求4或5所述的装置,其特征在于,当所述备电电容为额定电压25V的钽电容时,所述易失性存储器性能被预先划分为三个区间,第一区间为小于第一阈值,第二区间为大于所述第一阈值,小于第二阈值,第三区间为大于第二阈值,所述第一区间对应的充电电压为22.5V,所述第二区间对应的充电电压为22.5V或者17.5V,所述第三区间对应的充电电压为17.5V。The apparatus according to claim 4 or 5, wherein when the backup capacitor is a tantalum capacitor having a rated voltage of 25 V, the volatile memory performance is divided into three sections in advance, and the first section is smaller than a first threshold, the second interval is greater than the first threshold, less than the second threshold, the third interval is greater than the second threshold, and the charging voltage corresponding to the first interval is 22.5V, and the charging corresponding to the second interval The voltage is 22.5V or 17.5V, and the charging voltage corresponding to the third interval is 17.5V.
  7. 一种固态硬盘SSD,其特征在于包括充电控制模块、备电电容及易失性存储器,A solid state hard disk SSD, comprising a charging control module, a backup capacitor and a volatile memory,
    其中,所述备电电容为所述SSD的备用电源;The backup capacitor is a backup power source of the SSD;
    所述充电控制模块,用于检测所述易失性存储器数据存储量,所述易失性存储器的数据存储量被预先划分为多个区间,每个区间对应一个充电电压;确定所检测的所述易失性存储器数据存储量所在的区间;采用所述易失性存储器数据存储量所在的区间对应的充电电压为所述备电电容充电。 The charging control module is configured to detect the volatile memory data storage amount, where the data storage amount of the volatile memory is pre-divided into a plurality of intervals, each interval corresponding to one charging voltage; determining the detected location The interval in which the volatile memory data storage amount is located; charging the standby power capacitor by using a charging voltage corresponding to the interval in which the volatile memory data storage amount is located.
PCT/CN2016/111090 2015-12-30 2016-12-20 Charging method and device, and solid state disk WO2017114236A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511022850.2A CN105677241A (en) 2015-12-30 2015-12-30 Charging method and device, and solid state disk
CN201511022850.2 2015-12-30

Publications (1)

Publication Number Publication Date
WO2017114236A1 true WO2017114236A1 (en) 2017-07-06

Family

ID=56298148

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/111090 WO2017114236A1 (en) 2015-12-30 2016-12-20 Charging method and device, and solid state disk

Country Status (2)

Country Link
CN (1) CN105677241A (en)
WO (1) WO2017114236A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442218A (en) * 2018-05-04 2019-11-12 爱思开海力士有限公司 Electronic device and its device and method for supplying electric power

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677241A (en) * 2015-12-30 2016-06-15 华为技术有限公司 Charging method and device, and solid state disk
US10283173B2 (en) * 2017-04-19 2019-05-07 Seagate Technologies Llc Intelligent backup capacitor management
JP2021044037A (en) * 2019-09-10 2021-03-18 キオクシア株式会社 Memory system and power circuit
CN113760075B (en) * 2021-08-24 2024-05-14 深圳大普微电子科技有限公司 Capacitor switching management method, device, backup power system, and solid state hard disk
CN113760074B (en) * 2021-08-24 2023-08-04 深圳大普微电子科技有限公司 Standby power system and solid state disk

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102257453A (en) * 2009-12-01 2011-11-23 希捷科技有限公司 Backup power control in data storage devices
CN102902611A (en) * 2011-07-29 2013-01-30 鸿富锦精密工业(深圳)有限公司 Detection device
CN103870400A (en) * 2014-03-06 2014-06-18 华为技术有限公司 Voltage regulating method, device and system of super-capacitor
CN105677241A (en) * 2015-12-30 2016-06-15 华为技术有限公司 Charging method and device, and solid state disk

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102257453A (en) * 2009-12-01 2011-11-23 希捷科技有限公司 Backup power control in data storage devices
CN102902611A (en) * 2011-07-29 2013-01-30 鸿富锦精密工业(深圳)有限公司 Detection device
CN103870400A (en) * 2014-03-06 2014-06-18 华为技术有限公司 Voltage regulating method, device and system of super-capacitor
CN105677241A (en) * 2015-12-30 2016-06-15 华为技术有限公司 Charging method and device, and solid state disk

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442218A (en) * 2018-05-04 2019-11-12 爱思开海力士有限公司 Electronic device and its device and method for supplying electric power

Also Published As

Publication number Publication date
CN105677241A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
WO2017114236A1 (en) Charging method and device, and solid state disk
CN108733537B (en) Method and apparatus for intelligent backup capacitor management
US8745421B2 (en) Devices for control of the operation of data storage devices using solid-state memory based on a discharge of an amount of stored energy indicative of power providing capabilities
CN103500131B (en) A storage system power failure data backup method and storage system controller
US10438669B2 (en) Flash storage device with data integrity protection
US8065562B2 (en) Systems, methods and devices for backup power control in data storage devices
US8040750B2 (en) Dual mode memory system for reducing power requirements during memory backup transition
CN103942160B (en) Storage system, storage device and date storage method
US20140344609A1 (en) Dynamic allocation of power budget for a system having non-volatile memory
US9465426B2 (en) Method for backing up data in a case of power failure of storage system, and storage system controller
KR20110015273A (en) User device with auxiliary power supply
US9165667B2 (en) Electronic device with solid state drive and associated control method
US9508399B1 (en) Residual capacitance performance booster
CN103870400A (en) Voltage regulating method, device and system of super-capacitor
CN110781029A (en) Power-off protection method and system
CN106294217A (en) A kind of SSD system and power-off protection method thereof
US20200105312A1 (en) NVDIMM System with UPS power source
CN114003176B (en) Data writing method and device and hard disk device
CN115910170B (en) Power-down protection method and device for solid state disk and storage medium
TWI564717B (en) Data Buffer Adjustment Device and Method Thereof
CN221746873U (en) Solid state disk standby power system
US20250165156A1 (en) Autonomous battery recharge controller
CN102135945A (en) Cache device for increasing data access speed of memory device
CN106814969A (en) Data buffer adjusting device and method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16881025

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16881025

Country of ref document: EP

Kind code of ref document: A1