CN100456253C - Method for protecting cache data of storage system - Google Patents
Method for protecting cache data of storage system Download PDFInfo
- Publication number
- CN100456253C CN100456253C CNB200510048804XA CN200510048804A CN100456253C CN 100456253 C CN100456253 C CN 100456253C CN B200510048804X A CNB200510048804X A CN B200510048804XA CN 200510048804 A CN200510048804 A CN 200510048804A CN 100456253 C CN100456253 C CN 100456253C
- Authority
- CN
- China
- Prior art keywords
- disk cache
- storage system
- random access
- access memory
- description item
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 230000006870 function Effects 0.000 claims description 9
- 230000007246 mechanism Effects 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 claims description 3
- 239000000872 buffer Substances 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
技术领域 technical field
本发明涉及一种数据保护方法,特别涉及一种存储系统的高速缓存的数据的保护方法。The invention relates to a data protection method, in particular to a data protection method of a cache of a storage system.
背景技术 Background technique
在计算机系统中,中央处理单元(CPU)的运算速度极快,但其直接读写区块设备(如,硬盘、SCSI硬盘、磁盘阵列等)尤其是对区块设备的寻址时间很长。起初,CPU采用PIO(Programmed I/O)方式读写区块设备,即,CPU必需一直等待对区块设备的读写操作完成后才可以继续执行后续任务,极大地浪费了CPU的时间,降低了CPU的资源。为了解决这个问题,采用了中断的方式,即,CPU在读写区块设备时,可以执行其它任务,当区块设备读写操作结束时,借由外部设备触发中断,让CPU继续执行刚才的任务,这样提高了CPU的使用效率。然而,这种方式没有充分利用读写速度较快的随机存取内存(Random Access Memory,RAM)的特性。因此,采用一种磁盘高速缓存(Disk Cache)的方式以进一步提高系统效能,即,利用一部分系统随机存取内存作为区块设备读写操作的磁盘高速缓存。当对设备进行写操作时,将需要写入的数据、设备名称以及在此设备的位置记录在磁盘高速缓存中,而CPU即认为写操作结束,然后由系统专门的读写设备的任务定期或于系统随机存取内存资源不足时完成存储在磁盘高速缓存中的写操作,但磁盘高速缓存中的数据继续保留;当对设备进行读操作时,先判断磁盘高速缓存中是否存储有需要读取的数据,如果有,则直接读取。否则,CPU发出一个读取设备的任务,当前任务会被保留,CPU可以执行其它任务,当将数据从设备读取后,读取的数据会被添加至磁盘高速缓存中,并发送一个中断信号至CPU,CPU可以继续执行对设备的读操作。为了提高对区块设备的读写效率,区块设备的驱动(Driver)都采用了一些提高读写效率的方法,如电梯算法、预先读算法、延迟写算法等。In a computer system, the calculation speed of a central processing unit (CPU) is extremely fast, but it takes a long time to directly read and write block devices (such as hard disks, SCSI hard disks, disk arrays, etc.), especially for block devices. At first, the CPU uses the PIO (Programmed I/O) method to read and write block devices, that is, the CPU must wait for the completion of the read and write operations on the block device before continuing to perform subsequent tasks, which greatly wastes CPU time and reduces CPU resources. In order to solve this problem, an interrupt method is adopted, that is, when the CPU reads and writes the block device, it can perform other tasks. tasks, which improves the efficiency of CPU usage. However, this method does not make full use of the characteristics of random access memory (Random Access Memory, RAM) with a faster read and write speed. Therefore, a disk cache (Disk Cache) method is adopted to further improve system performance, that is, a part of system random access memory is used as a disk cache for block device read and write operations. When the device is written, the data to be written, the device name and the location of the device are recorded in the disk cache, and the CPU considers that the write operation is over, and then the special task of the system to read and write the device periodically or When the random access memory resources of the system are insufficient, the write operation stored in the disk cache is completed, but the data in the disk cache continues to be retained; when the device is read, it is first determined whether the disk cache needs to be read The data, if any, are read directly. Otherwise, the CPU issues a task to read the device, the current task will be reserved, and the CPU can perform other tasks. When the data is read from the device, the read data will be added to the disk cache and an interrupt signal will be sent. to the CPU, the CPU can continue to perform read operations on the device. In order to improve the read and write efficiency of the block device, the driver of the block device (Driver) adopts some methods to improve the read and write efficiency, such as elevator algorithm, pre-read algorithm, delayed write algorithm, etc.
操作系统中磁盘高速缓存描述项(Disk Cache Item)的每一个描述项代表一个物理内存页(Page)或区块(Block)。对磁盘高速缓存的管理一般采用下述方法:磁盘高速缓存一般存储在脏(dirty)、干净(clean)和锁(locked)三个最近最少使用(Least Recently Use,LRU)链接串行中。其中,脏链接串行包含所有需要写入区块设备的磁盘高速缓存描述项,锁链结串行包含所有正在写入区块设备的磁盘高速缓存描述项,干净链接串行包含最新的已存储在磁盘高速缓存中的区块设备的数据。因此,磁盘高速缓存描述项可以在这三个链接串行的间迁移。CPU执行对区块设备的写操作时,会先从干净链接串行中查找是否有对应的磁盘高速缓存描述项,如果有,则将对应的磁盘高速缓存描述项从干净链接串行中删除,更改磁盘高速缓存描述项中的数据并将此磁盘高速缓存描述项加入脏链接串行;如果没有,则从系统随机存取内存中分配磁盘高速缓存描述项,修改磁盘高速缓存描述项中数据并将此磁盘高速缓存描述项加入脏链接串行。接着,在一定时间间隔、系统随机存取内存资源不足、磁盘高速缓存所占的随机存取内存达到使用者设定的上限或使用者强制清除磁盘高速缓存时,CPU会调用区块设备写操作的任务,将脏链接串行中的部分磁盘高速缓存描述项加入锁链结串行,以写入区块设备,写入完毕的磁盘高速缓存描述项加入干净链接串行,且删除干净链接串行中最近最少使用的磁盘高速缓存描述项,删除的磁盘高速缓存描述项被回收至系统的自由随机存取内存中供系统使用。在以存储任务为主的系统中,大量的随机存取内存被用作磁盘高速缓存。Each description item of the disk cache description item (Disk Cache Item) in the operating system represents a physical memory page (Page) or block (Block). The management of disk cache generally adopts the following method: disk cache is generally stored in three least recently used (Least Recently Use, LRU) link serials of dirty (dirty), clean (clean) and locked (locked). Among them, the dirty link sequence contains all the disk cache description items that need to be written to the block device, the lock chain sequence contains all the disk cache description items that are being written to the block device, and the clean link sequence contains the latest stored in Block device data in disk cache. Therefore, disk cache descriptors can be migrated serially between these three links. When the CPU executes the write operation to the block device, it will first check whether there is a corresponding disk cache description item from the clean link sequence, and if so, delete the corresponding disk cache description item from the clean link sequence. Change the data in the disk cache description item and add this disk cache description item to the dirty link sequence; if not, allocate the disk cache description item from the system random access memory, modify the data in the disk cache description item and Add this disk cache descriptor entry to the dirty link serialization. Then, at a certain time interval, when the system random access memory resources are insufficient, when the random access memory occupied by the disk cache reaches the upper limit set by the user, or the user forcibly clears the disk cache, the CPU will call the block device write operation The task of adding part of the disk cache description items in the dirty link sequence to the lock link sequence to write to the block device, adding the written disk cache description items to the clean link sequence, and deleting the clean link sequence The least-recently-used disk cache descriptors in the cache, deleted disk cache descriptors are reclaimed to the system's free random access memory for system use. In storage-centric systems, large amounts of random-access memory are used as disk caches.
然而,将磁盘高速缓存描述项加入脏链接串行和将写入区块设备的磁盘高速缓存描述项加入干净链接串行的过程是异步的,且往往是将磁盘高速缓存描述项加入脏链接串行的过程较快。因此,磁盘高速缓存中存储有数据没有写入真实的区块设备中。如果系统断电时,磁盘高速缓存中的数据会丢失。因而,在一些对数据完整性、安全性要求较高的存储类产品(如,SAN、NAS、磁盘阵列)中,需要保护并处理这部分数据。很多厂商提供了电池供电随机存取内存的解决方案。However, the process of adding disk cache descriptors to the dirty link queue and adding disk cache descriptors written to the block device to the clean link queue is asynchronous, and often adds disk cache descriptors to the dirty link queue The process is faster. Therefore, the data stored in the disk cache is not written to the real block device. If the system loses power, the data in the disk cache is lost. Therefore, in some storage products (eg, SAN, NAS, disk array) that have high requirements on data integrity and security, this part of data needs to be protected and processed. Many vendors offer battery-backed RAM solutions.
常见的电池供电解决方案包含RAID Adapter、Smart Array和电池供电随机存取内存适配器。其均为计算机系统的一个设备,提供自己的设备驱动程序,可以加快写数据的速度和数据吞吐量。其将计算机系统随机存取内存中磁盘高速缓存的数据转移至自己内部的缓冲区,然后通过设备自身处理数据。其中,RAID Adapter、Smart Array将自身缓冲区的数据写入和自己相连的存储设备,电池供电随机存取内存适配器r仅存储数据。其均因为具有电池供电功能,可以保护自己内部缓冲区的数据在系统断电后的一段时间内不丢失,系统恢复正常后即可将自己缓冲区的数据写入存储设备。Common battery-powered solutions include RAID Adapter, Smart Array, and battery-backed RAM adapters. It is a device of the computer system, which provides its own device driver, which can speed up the speed of writing data and the data throughput. It transfers the data from the disk cache in the random access memory of the computer system to its own internal buffer, and then processes the data through the device itself. Among them, RAID Adapter and Smart Array write the data in their own buffers to the storage device connected to themselves, and the battery-powered random access memory adapter r only stores data. Because of its battery power supply function, it can protect the data in its internal buffer from being lost within a period of time after the system is powered off, and the data in its own buffer can be written into the storage device after the system returns to normal.
然而公知技术的这种做法在系统断电时只能保护从存储系统的随机存取内存中传递到自己内部缓冲区的数据,不能保护计算机系统随机存取内存中磁盘高速缓存存储的数据。However, this method of the known technology can only protect the data transferred from the random access memory of the storage system to its internal buffer when the system is powered off, and cannot protect the data stored in the disk cache in the random access memory of the computer system.
发明内容 Contents of the invention
为了解决上述公知技术中的问题与缺陷,本发明的目的在于提供一种存储系统的高速缓存的数据的保护方法,用以在计算机系统断电时,保护一个具有电池供电(Battery Backed)功能的存储系统的高速缓存的数据。In order to solve the problems and defects in the above-mentioned known technologies, the purpose of the present invention is to provide a method for protecting cached data of a storage system, which is used to protect a battery-backed (Battery Backed) function when the computer system is powered off. The cached data of the storage system.
本发明所提供的一种存储系统的高速缓存的数据的保护方法,包含以下步骤:当存储系统启动时,在存储系统的随机存取内存的适当开始位置保留适当长度的保留区域;当存储系统启动后,监控对脏链接串行和干净链接串行的操作;当系统增加一个磁盘高速缓存描述项至脏链接串行时,依照磁盘高速缓存描述项在随机存取内存的位置计算出保留区域的一个入口(Entry)的序号;存储此磁盘高速缓存描述项在随机存取内存的位置、磁盘高速缓存描述项的随机存取内存大小、磁盘高速缓存描述项写入的区块设备名称以及磁盘高速缓存描述项在区块设备的位置信息至此入口;当系统增加一个磁盘高速缓存描述项至干净链接串行时,依照磁盘高速缓存描述项在随机存取内存的位置计算出保留区域的一个入口的序号,清除此入口存储的信息;当存储系统断电时,通过电池供电功能为随机存取内存提供电源;当存储系统重新启动时,读取该保留区域的多个入口存储的磁盘高速缓存描述项的位置和大小信息,依照读取的位置和大小信息保留对应位置的随机存取内存存储的数据;当存储系统重新启动后,读取保留区域的多个入口存储的磁盘高速缓存描述项的信息,依照读取的信息将对应位置的随机存取内存存储的数据写入对应的区块设备;以及释放存储系统启动时保留的随机存取内存中磁盘高速缓存的空间,并设置保留区域的每一个入口的值为零。A method for protecting cached data of a storage system provided by the present invention includes the following steps: when the storage system is started, a reserved area of an appropriate length is reserved at an appropriate start position of the random access memory of the storage system; After startup, monitor the operation of the dirty link serial and clean link serial; when the system adds a disk cache description item to the dirty link serial, calculate the reserved area according to the location of the disk cache description item in the random access memory The serial number of an entry (Entry); store the location of this disk cache description item in the random access memory, the size of the random access memory of the disk cache description item, the name of the block device written by the disk cache description item, and the disk The location information of the cache descriptor in the block device is entered here; when the system adds a disk cache descriptor to the clean link sequence, an entry for the reserved area is calculated according to the location of the disk cache descriptor in random access memory Clear the information stored in this entry; when the storage system is powered off, use the battery power supply function to provide power to the random access memory; when the storage system restarts, read the disk cache stored by multiple entries in the reserved area The position and size information of the description item, according to the read position and size information, retain the data stored in the random access memory at the corresponding position; when the storage system is restarted, read the disk cache description items stored in multiple entries in the reserved area According to the read information, write the data stored in the random access memory at the corresponding location to the corresponding block device; and release the disk cache space in the random access memory reserved when the storage system starts, and set the reserved area The value of each entry of is zero.
其中,保留区域的适当开始位置为存储系统的操作系统初始化所需的随机存取内存位置以及硬件在随机存取内存映射的位置以外的位置,而适当长度通过如下公式计算出来:((随机存取内存大小)/(高速缓存描述项大小)+1)*(保留区域的入口大小)+(UUID大小),UUID为通用唯一识别码(Universal Unique IDentifier)。保留区域的入口序号通过如下公式计算出来:(高速缓存描述项在随机存取内存的位置)/(高速缓存描述项大小)。Wherein, the appropriate start position of the reserved area is the random access memory location required for the initialization of the operating system of the storage system and the location other than the location of the hardware in the random access memory map, and the appropriate length is calculated by the following formula: ((random access memory Take memory size)/(cache description item size)+1)*(reserved area entry size)+(UUID size), UUID is Universal Unique IDentifier. The entry sequence number of the reserved area is calculated by the following formula: (position of the cache description item in the random access memory)/(cache description item size).
本发明所述的存储系统的高速缓存的数据的保护方法,其中保留该保留区域借由添加该保留区域的开始位置和长度信息至该存储系统的操作系统建立的启动操作系统自身需要的内存访问区域的管理机制中来实现。The method for protecting the cached data of the storage system according to the present invention, wherein the reserved area is reserved by adding the start position and length information of the reserved area to the memory access established by the operating system of the storage system to start the operating system itself It is implemented in the management mechanism of the region.
本发明所述的存储系统的高速缓存的数据的保护方法,其中该磁盘高速缓存描述项的信息包含:该磁盘高速缓存描述项在随机存取内存的位置以及该磁盘高速缓存描述项的大小信息。The method for protecting cached data of a storage system according to the present invention, wherein the information of the disk cache description item includes: the location of the disk cache description item in random access memory and the size information of the disk cache description item .
本发明所述的存储系统的高速缓存的数据的保护方法,其中该入口序号通过如下公式计算出来:(磁盘高速缓存描述项在随机存取内存的位置)/(磁盘高速缓存描述项大小)。In the method for protecting cached data of a storage system according to the present invention, the entry sequence number is calculated by the following formula: (position of the disk cache description item in the random access memory)/(disk cache description item size).
综上所述,本发明的优点在于利用计算机系统的电池供电功能实现了对计算机系统的随机存取内存中磁盘高速缓存存储的数据的断电保护功能。To sum up, the advantage of the present invention is that the battery power supply function of the computer system is used to realize the power-off protection function for the data stored in the disk cache in the random access memory of the computer system.
附图说明 Description of drawings
图1为本发明的方法流程图。Fig. 1 is a flow chart of the method of the present invention.
其中,附图标记说明如下:Wherein, the reference signs are explained as follows:
S100当存储系统启动时,在存储系统的随机存取内存的适当开始位置保留适当长度的一个保留区域S100 When the storage system is started, reserve a reserved area of an appropriate length at an appropriate start position of the random access memory of the storage system
S110当存储系统启动后,监控对脏链接串行和干净链接串行的操作S110, after the storage system is started, monitor operations on dirty link serials and clean link serials
S120当增加一个磁盘高速缓存描述项至脏链接串行时,依照磁盘高速缓存描述项在随机存取内存的位置计算出保留区域的一个入口的序号S120 When adding a disk cache description item to the dirty link sequence, calculate the sequence number of an entry of the reserved area according to the position of the disk cache description item in the random access memory
S130存储磁盘高速缓存描述项在随机存取内存的位置以及磁盘高速缓存描述项的大小信息至此入口S130 stores the location of the disk cache description item in the random access memory and the size information of the disk cache description item to this entry
S140当增加一个高速缓存描述项至干净链接串行时,依照高速缓存描述项在随机存取内存的位置计算出保留区域的一个入口的序号,清除此入口存储的信息S140 When adding a cache description item to the clean link sequence, calculate the sequence number of an entry in the reserved area according to the position of the cache description item in the random access memory, and clear the information stored in this entry
S150当存储系统断电时,通过电池供电功能为随机存取内存提供电源When the storage system is powered off, the S150 provides power to the random access memory through the battery power supply function
S160当存储系统重新启动时,读取保留区域的多个入口存储的高速缓存描述项的位置和大小信息,依照读取的位置和大小信息保留对应位置的随机存取内存存储的数据S160 When the storage system restarts, read the location and size information of the cache description items stored in the multiple entries of the reserved area, and reserve the data stored in the random access memory at the corresponding location according to the read location and size information.
S170当存储系统重新启动后,读取保留区域的多个入口存储的高速缓存描述项的信息,依照读取的信息将对应位置的随机存取内存存储的数据写入对应的区块设备S170 After the storage system is restarted, read the information of the cache description items stored in the multiple entries of the reserved area, and write the data stored in the random access memory at the corresponding location to the corresponding block device according to the read information.
S180释放保留的随机存取内存的空间,并设置保留区域的每一个入口的值为零S180 releases the space of the reserved random access memory, and sets the value of each entry of the reserved area to zero
具体实施方式 Detailed ways
以下,将结合附图部份对本发明的较佳实施方式作详细说明。Hereinafter, preferred embodiments of the present invention will be described in detail in conjunction with the accompanying drawings.
请参考图1,此图为本发明一种存储系统的高速缓存的数据的保护方法的方法流程图,如图所示,此方法包含以下步骤:Please refer to FIG. 1, which is a flow chart of a method for protecting cached data of a storage system according to the present invention. As shown in the figure, the method includes the following steps:
当存储系统启动时,在存储系统的随机存取内存的适当开始位置保留适当长度的一个保留区域(S100),其中,保留区域的适当开始位置为存储系统的操作系统初始化所需的随机存取内存位置以及硬件在随机存取内存映射的位置以外的位置,而适当长度通过如下公式计算出来:((随机存取内存大小)/(高速缓存描述项大小)+1)*(保留区域的入口大小)+(UUID大小),UUID为通用唯一识别码。当存储系统的操作系统建立启动操作系统自身需要的内存访问区域的管理机制时,将保留区域的开始位置和长度数据添加进去,以达到保留此保留区域的目的。When the storage system is started, a reserved area of appropriate length is reserved at an appropriate start position of the random access memory of the storage system (S100), wherein the appropriate start position of the reserved area is the random access required for the initialization of the operating system of the storage system The memory location and the location of the hardware outside the random access memory map, and the appropriate length is calculated by the following formula: ((random access memory size)/(cache description item size)+1)*(reserved area entry size)+(UUID size), UUID is a universally unique identifier. When the operating system of the storage system establishes a management mechanism for starting the memory access area required by the operating system, the start position and length data of the reserved area are added to achieve the purpose of reserving the reserved area.
当存储系统启动后,监控系统对脏链接串行和干净链接串行的操作(S110)。当检测到系统增加一个磁盘高速缓存描述项至脏链接串行时,依照公式:(高速缓存描述项在随机存取内存的位置)/(高速缓存描述项大小),利用磁盘高速缓存描述项在随机存取内存的位置计算出保留区域的一个入口的序号(S120),并依照计算出来的入口序号存储磁盘高速缓存描述项在随机存取内存的位置以及磁盘高速缓存描述项的随机存取内存大小信息至此入口(S130)。当检测到系统增加一个磁盘高速缓存描述项至干净链接串行时,依照公式:(高速缓存描述项在随机存取内存的位置)/(高速缓存描述项大小),利用磁盘高速缓存描述项在随机存取内存的位置计算出保留区域的一个入口的序号,并依照计算出来的入口序号清除此入口存储的信息(S140)。After the storage system is started, the monitoring system operates on dirty link sequences and clean link sequences (S110). When it is detected that the system adds a disk cache description item to the dirty link serial, according to the formula: (the position of the cache description item in the random access memory)/(the size of the cache description item), use the disk cache description item in The position of the random access memory calculates the sequence number of an entry of the reserved area (S120), and stores the position of the disk cache description item in the random access memory and the random access memory of the disk cache description item according to the calculated entry sequence number The size information comes here (S130). When it is detected that the system adds a disk cache description item to the clean link sequence, according to the formula: (position of the cache description item in random access memory)/(cache description item size), use the disk cache description item in The location of the random access memory calculates the serial number of an entry in the reserved area, and clears the information stored in the entry according to the calculated serial number of the entry (S140).
当存储系统断电时,通过电池供电功能为系统的随机存取内存提供电源,以保护系统随机存取内存存储的数据。且为存储系统的CPU提供较短时间的电源,以让CPU完成将CPU的高速缓存数据同步至系统的随机存取内存的任务(S150)。When the storage system is powered off, the battery power supply function is used to provide power to the random access memory of the system, so as to protect the data stored in the random access memory of the system. And provide short-term power for the CPU of the storage system, so that the CPU can complete the task of synchronizing the cache data of the CPU to the random access memory of the system ( S150 ).
当存储系统重新启动时,通过修改存储系统的基本输入/输出系统(BIOS)中关于随机存取内存自检的参数设定来保护系统随机存取内存存储的所有数据。重复S100的保留过程。并读取系统随机存取内存的S100保留区域的多个入口存储的磁盘高速缓存描述项的位置和大小信息,依照读取的位置和大小信息保留对应位置的随机存取内存存储的数据(S160)。When the storage system is restarted, all data stored in the random access memory of the system is protected by modifying the parameter setting of the basic input/output system (BIOS) of the storage system about the self-test of the random access memory. Repeat the reservation process of S100. And read the position and the size information of the disk cache description item stored in a plurality of entries of the S100 reserved area of the system random access memory, keep the data stored in the random access memory of the corresponding position according to the read position and size information (S160 ).
当存储系统重新启动后,读取保留区域的每一个入口存储的磁盘高速缓存描述项的信息,依照读取的信息查找到对应位置的随机存取内存,从对应位置的随机存取内存读取磁盘高速缓存描述项需要写入的数据、磁盘高速缓存描述项需要写入的区块设备名称以及磁盘高速缓存描述项在区块设备的位置。并依照读取的信息将需要写入的数据写入对应的区块设备,以实现对系统的随机存取内存中磁盘高速缓存存储的数据的保护(S170)。After the storage system restarts, read the information of the disk cache description item stored in each entry of the reserved area, find the random access memory at the corresponding location according to the read information, and read from the random access memory at the corresponding location The data to be written in the disk cache description item, the name of the block device to be written in the disk cache description item, and the location of the disk cache description item in the block device. And write the data to be written into the corresponding block device according to the read information, so as to realize the protection of the data stored in the disk cache in the random access memory of the system (S170).
当系统的随机存取内存中所有磁盘高速缓存存储的数据被写入对应的区块设备后,释放存储系统启动时保留的随机存取内存中磁盘高速缓存的空间,并设置随机存取内存的保留区域中每一个入口的值为零(S180)。After all the data stored in the disk cache in the random access memory of the system is written into the corresponding block device, release the disk cache space in the random access memory reserved when the storage system starts, and set the random access memory The value of each entry in the reserved area is zero (S180).
虽然本发明以前述的较佳实施方式公开如上,然其并非用以限定本发明。本领域的技术人员应当意识到在不脱离本发明所附的权利要求书所揭示的本发明的范围和精神的情况下,所作的改动与修饰,均属本发明的专利保护范围的内。关于本发明所界定的保护范围请参考所附的权利要求书。Although the present invention is disclosed above with the aforementioned preferred embodiments, they are not intended to limit the present invention. Those skilled in the art should realize that without departing from the scope and spirit of the present invention disclosed in the appended claims of the present invention, changes and modifications made are within the scope of patent protection of the present invention. For the scope of protection defined by the present invention, please refer to the appended claims.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB200510048804XA CN100456253C (en) | 2005-12-28 | 2005-12-28 | Method for protecting cache data of storage system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB200510048804XA CN100456253C (en) | 2005-12-28 | 2005-12-28 | Method for protecting cache data of storage system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1991775A CN1991775A (en) | 2007-07-04 |
| CN100456253C true CN100456253C (en) | 2009-01-28 |
Family
ID=38214046
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB200510048804XA Expired - Fee Related CN100456253C (en) | 2005-12-28 | 2005-12-28 | Method for protecting cache data of storage system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100456253C (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102971716A (en) * | 2010-03-03 | 2013-03-13 | Ati科技无限责任公司 | Cache with reload capability after power restoration |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101499313B (en) * | 2009-01-06 | 2012-03-21 | 成都市华为赛门铁克科技有限公司 | Method, equipment and memory system for guaranteeing data security |
| CN102117184B (en) * | 2010-01-05 | 2017-06-27 | 联想(北京)有限公司 | Controller, terminal device and its startup and access method for multi-memory |
| US9003103B2 (en) * | 2011-09-12 | 2015-04-07 | Microsoft Technology Licensing, Llc | Nonvolatile media dirty region tracking |
| JP5803614B2 (en) * | 2011-11-29 | 2015-11-04 | ソニー株式会社 | Nonvolatile cache memory, processing method of nonvolatile cache memory, and computer system |
| CN104219207B (en) * | 2013-05-31 | 2017-10-17 | 杭州迪普科技股份有限公司 | A kind of safe consultation device and method |
| CN109918228B (en) * | 2019-01-28 | 2021-01-12 | 浙江中控技术股份有限公司 | Data power failure maintaining method and system |
| CN111752851B (en) * | 2019-03-27 | 2023-08-18 | 厦门网宿有限公司 | Memory recycling method and device |
| CN112379844A (en) * | 2020-11-25 | 2021-02-19 | 深圳市华宝电子科技有限公司 | Data protection method and device, electronic terminal and storage medium |
| CN115599607B (en) * | 2022-11-29 | 2023-06-16 | 苏州浪潮智能科技有限公司 | Data recovery method and related device of RAID array |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1060729A (en) * | 1990-10-07 | 1992-04-29 | 深圳华德电子有限公司 | The computer circuit breaking field data is preserved and restoration methods |
| US5448719A (en) * | 1992-06-05 | 1995-09-05 | Compaq Computer Corp. | Method and apparatus for maintaining and retrieving live data in a posted write cache in case of power failure |
| US5519831A (en) * | 1991-06-12 | 1996-05-21 | Intel Corporation | Non-volatile disk cache |
| EP0778526A1 (en) * | 1995-12-07 | 1997-06-11 | Hitachi, Ltd. | Magnetic disk controller for backing up cache memory |
| US20030212921A1 (en) * | 2002-05-08 | 2003-11-13 | Howe Steven M. | Write cache recovery after loss of power |
-
2005
- 2005-12-28 CN CNB200510048804XA patent/CN100456253C/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1060729A (en) * | 1990-10-07 | 1992-04-29 | 深圳华德电子有限公司 | The computer circuit breaking field data is preserved and restoration methods |
| US5519831A (en) * | 1991-06-12 | 1996-05-21 | Intel Corporation | Non-volatile disk cache |
| US5448719A (en) * | 1992-06-05 | 1995-09-05 | Compaq Computer Corp. | Method and apparatus for maintaining and retrieving live data in a posted write cache in case of power failure |
| EP0778526A1 (en) * | 1995-12-07 | 1997-06-11 | Hitachi, Ltd. | Magnetic disk controller for backing up cache memory |
| US20030212921A1 (en) * | 2002-05-08 | 2003-11-13 | Howe Steven M. | Write cache recovery after loss of power |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102971716A (en) * | 2010-03-03 | 2013-03-13 | Ati科技无限责任公司 | Cache with reload capability after power restoration |
| CN102971716B (en) * | 2010-03-03 | 2015-06-17 | Ati科技无限责任公司 | Cache with reload capability after power restoration |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1991775A (en) | 2007-07-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11907200B2 (en) | Persistent memory management | |
| US10817421B2 (en) | Persistent data structures | |
| US9218278B2 (en) | Auto-commit memory | |
| US8595451B2 (en) | Managing a storage cache utilizing externally assigned cache priority tags | |
| US9772938B2 (en) | Auto-commit memory metadata and resetting the metadata by writing to special address in free space of page storing the metadata | |
| US20060129763A1 (en) | Virtual cache for disk cache insertion and eviction policies and recovery from device errors | |
| CN103262054B (en) | For automatically submitting device, the system and method for storer to | |
| KR101702201B1 (en) | Optimized context drop for a solid state drive(ssd) | |
| TWI556104B (en) | Techniques to perform power fail-safe caching without atomic metadata | |
| JP5404637B2 (en) | Method, system and computer program for providing continuous data protection | |
| US20150039837A1 (en) | System and method for tiered caching and storage allocation | |
| US20140223096A1 (en) | Systems and methods for storage virtualization | |
| TW201619971A (en) | Green nand SSD application and driver | |
| WO2015020811A1 (en) | Persistent data structures | |
| KR20120090965A (en) | Apparatus, system, and method for caching data on a solid-state strorage device | |
| CN107615254A (en) | Cache Architecture and Algorithms for Hybrid Object Storage Devices | |
| US20080016274A1 (en) | Method of protecting cache memory data in storage system | |
| WO2012079432A1 (en) | Snapshot method and solid state drive | |
| CN100456253C (en) | Method for protecting cache data of storage system | |
| KR20230127934A (en) | Persistent memory device with cache coherent interconnect interface | |
| US7360016B2 (en) | Method of protecting data in cache memory of storage system | |
| CN111356991A (en) | Logical block addressing range conflict crawler | |
| CN100426246C (en) | Method for protecting cached data of storage system | |
| US20240311318A1 (en) | Systems and methods for a cache-coherent interconnect protocol storage device | |
| US9274709B2 (en) | Indicators for storage cells |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20191223 Address after: No. 99, University Road, high tech Zone, Xuzhou City, Jiangsu Province Patentee after: XUZHOU LIFANG ELECTROMECHANICAL EQUIPMENT MANUFACTURING CO., LTD. Address before: Taipei City, Taiwan, China Patentee before: Yingda Co., Ltd. |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090128 Termination date: 20191228 |