CN104268102A - Method for writing caches of storage servers in hybrid modes - Google Patents

Method for writing caches of storage servers in hybrid modes Download PDF

Info

Publication number
CN104268102A
CN104268102A CN201410529429.XA CN201410529429A CN104268102A CN 104268102 A CN104268102 A CN 104268102A CN 201410529429 A CN201410529429 A CN 201410529429A CN 104268102 A CN104268102 A CN 104268102A
Authority
CN
China
Prior art keywords
write
disk
disk buffering
buffering
hit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410529429.XA
Other languages
Chinese (zh)
Inventor
王闯
孙冰勇
戴鸿君
于治楼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Group Co Ltd
Original Assignee
Inspur Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201410529429.XA priority Critical patent/CN104268102A/en
Publication of CN104268102A publication Critical patent/CN104268102A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention provides a method for writing caches of storage servers in hybrid modes. The method has the advantages that the hybrid modes of a write-back process and a write-through process are adopted, and the write-back process is adopted when sufficient spaces are available in the caches of disks, so that the read-write performance can be improved; the write-through process is adopted when the spaces available in the caches of the disk are reduced and reach a certain threshold value, so that read-write and refresh frequencies of the caches of the disks can be reduced, and the read-write speeds of the caches of the disks can be increased to a certain degree.

Description

A kind of storage server adopts hybrid mode to write the method for buffer memory
Technical field
The present invention relates to Computer Storage server design technical field, specifically a kind of storage server adopts hybrid mode to write the method for buffer memory.
Background technology
Writing strategy is the important symbol distinguishing different disk caching design scheme.The strategy of writing that disk buffering is conventional has write-back and write through method.
Write-back (write back), does not write disk when namely performing write operation, but writes in the disk buffering in internal memory, just write back in disk when the data in disk buffering are replaced away.Data in the disk buffering of write-back can inconsistent with disk.A zone bit is set when writing disk buffering, when the data in disk buffering write back disk, removes this position.According to this value, in disk buffering, each block has two states: clear (clean) and turbid (dirty), when writing disk buffering, state is " turbid ", and when data write back disk, state is " clearly ".Write operation is consistent with the speed of internal memory, and the multi-pass operations of same is only needed to carry out single job to lower one deck storer, write-back needs less bandwidth of memory, for the storer of other levels and the use of memory bus less, save power consumption.
Write through method, also referred to as depositing through method, refers to when performing disk write operation, not only corresponding block in information write disk buffering, and corresponding block in write next stage storer.Data in disk buffering are always clean, and next stage stores up-to-date current data copy, simplifies data consistency.But the write operation of processor must wait for that the write operation of disk completes, and reduces read or write speed.
Summary of the invention
The object of this invention is to provide a kind of storage server adopts hybrid mode to write the method for buffer memory.
The object of the invention is to realize in the following manner, adopt write-back and write through method hybrid mode to write buffer memory, when there being enough free spaces in disk buffering, adopting write-back, improving readwrite performance; When the free space in disk buffering is down to a certain threshold values, adopt write through method, reduce read-write and the refreshing frequency of disk buffering, improve the read or write speed of disk buffering, concrete steps are as follows:
(1) when there being enough free spaces in disk buffering, the mode write back is adopted;
When disk buffering receives write request, first search in disk buffering, if hit, then directly copy in corresponding block, if do not hit, then the region of memory that distribution one piece is idle, copy data in this region of memory, after some time, this dirty data is flushed in disk;
(2) when the free space in disk buffering is down to a certain threshold values, the mode of write through is adopted;
When disk buffering receives write request, first search in disk buffering, if hit, then directly copy in corresponding block; If do not hit, then directly write data in disk, because the not hit in disk buffering of this write request, there will not be the situation that data are inconsistent.
Object beneficial effect of the present invention is: adopt write-back and write through method hybrid mode, when there being enough free spaces in disk buffering, adopting write-back, improving readwrite performance; When the free space in disk buffering is down to a certain threshold values, adopt write through method, reduce read-write and the refreshing frequency of disk buffering, improve the read or write speed of disk buffering to a certain extent.
Embodiment
Adopt write-back and write through method hybrid mode, when there being enough free spaces in disk buffering, adopting write-back, improving readwrite performance; When the free space in disk buffering is down to a certain threshold values, adopt write through method, reduce read-write and the refreshing frequency of disk buffering, improve the read or write speed of disk buffering to a certain extent.Concrete steps are as follows:
1) when there being enough free spaces in disk buffering, the mode write back is adopted;
When disk buffering receives write request, first search in disk buffering, if hit, then directly copy in corresponding block, if do not hit, then the region of memory that distribution one piece is idle, copy data in this region of memory, after some time, this dirty data is flushed in disk;
2) when the free space in disk buffering is down to a certain threshold values, the mode of write through is adopted.
When disk buffering receives write request, first search in disk buffering, if hit, then directly copy in corresponding block; If do not hit, then directly write data in disk, because the not hit in disk buffering of this write request, there will not be the situation that data are inconsistent.
Except the technical characteristic described in instructions, be the known technology of those skilled in the art.

Claims (1)

1. storage server adopts hybrid mode to write a method for buffer memory, it is characterized in that, adopts write-back and write through method hybrid mode to write buffer memory, when there being enough free spaces in disk buffering, adopting write-back, improving readwrite performance; When the free space in disk buffering is down to a certain threshold values, adopt write through method, reduce read-write and the refreshing frequency of disk buffering, improve the read or write speed of disk buffering, concrete steps are as follows:
(1) when there being enough free spaces in disk buffering, the mode write back is adopted;
When disk buffering receives write request, first search in disk buffering, if hit, then directly copy in corresponding block, if do not hit, then the region of memory that distribution one piece is idle, copy data in this region of memory, after some time, this dirty data is flushed in disk;
(2) when the free space in disk buffering is down to a certain threshold values, the mode of write through is adopted;
When disk buffering receives write request, first search in disk buffering, if hit, then directly copy in corresponding block; If do not hit, then directly write data in disk, because the not hit in disk buffering of this write request, there will not be the situation that data are inconsistent.
CN201410529429.XA 2014-10-10 2014-10-10 Method for writing caches of storage servers in hybrid modes Pending CN104268102A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410529429.XA CN104268102A (en) 2014-10-10 2014-10-10 Method for writing caches of storage servers in hybrid modes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410529429.XA CN104268102A (en) 2014-10-10 2014-10-10 Method for writing caches of storage servers in hybrid modes

Publications (1)

Publication Number Publication Date
CN104268102A true CN104268102A (en) 2015-01-07

Family

ID=52159625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410529429.XA Pending CN104268102A (en) 2014-10-10 2014-10-10 Method for writing caches of storage servers in hybrid modes

Country Status (1)

Country Link
CN (1) CN104268102A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484314A (en) * 2015-09-01 2017-03-08 阿里巴巴集团控股有限公司 A kind of cache data control method and device
CN107678692A (en) * 2017-10-09 2018-02-09 郑州云海信息技术有限公司 A kind of IO flow rate control methods and system
CN113342265A (en) * 2021-05-11 2021-09-03 中天恒星(上海)科技有限公司 Cache management method and device, processor and computer device
CN115016740A (en) * 2022-07-14 2022-09-06 杭州优云科技有限公司 Data recovery method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438647B1 (en) * 2000-06-23 2002-08-20 International Business Machines Corporation Method and apparatus for providing battery-backed immediate write back cache for an array of disk drives in a computer system
JP2006313407A (en) * 2005-05-06 2006-11-16 Fujitsu Ltd Dirty data processing method, dirty data processor and dirty data processing program
CN101008921A (en) * 2007-01-26 2007-08-01 浙江大学 Embedded heterogeneous polynuclear cache coherence method based on bus snooping
CN101694639A (en) * 2009-10-15 2010-04-14 清华大学 Computer data caching method
CN102681791A (en) * 2012-04-13 2012-09-19 华中科技大学 Energy saving storage method of cluster storage system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438647B1 (en) * 2000-06-23 2002-08-20 International Business Machines Corporation Method and apparatus for providing battery-backed immediate write back cache for an array of disk drives in a computer system
JP2006313407A (en) * 2005-05-06 2006-11-16 Fujitsu Ltd Dirty data processing method, dirty data processor and dirty data processing program
CN101008921A (en) * 2007-01-26 2007-08-01 浙江大学 Embedded heterogeneous polynuclear cache coherence method based on bus snooping
CN101694639A (en) * 2009-10-15 2010-04-14 清华大学 Computer data caching method
CN102681791A (en) * 2012-04-13 2012-09-19 华中科技大学 Energy saving storage method of cluster storage system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
余林琛等: "多虚拟机环境下磁盘写优化机制", 《计算机工程与科学》 *
彭军等: "基于总线侦听Cache一致性协议算法与实现", 《计算机与现代化》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484314A (en) * 2015-09-01 2017-03-08 阿里巴巴集团控股有限公司 A kind of cache data control method and device
CN106484314B (en) * 2015-09-01 2020-01-03 阿里巴巴集团控股有限公司 Cache data control method and device
CN107678692A (en) * 2017-10-09 2018-02-09 郑州云海信息技术有限公司 A kind of IO flow rate control methods and system
CN107678692B (en) * 2017-10-09 2020-09-22 苏州浪潮智能科技有限公司 IO flow rate control method and system
CN113342265A (en) * 2021-05-11 2021-09-03 中天恒星(上海)科技有限公司 Cache management method and device, processor and computer device
CN113342265B (en) * 2021-05-11 2023-11-24 中天恒星(上海)科技有限公司 Cache management method and device, processor and computer device
CN115016740A (en) * 2022-07-14 2022-09-06 杭州优云科技有限公司 Data recovery method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10241919B2 (en) Data caching method and computer system
CN103136121B (en) Cache management method for solid-state disc
US9785558B2 (en) Mixed cache management
US9921955B1 (en) Flash write amplification reduction
CN107391398B (en) Management method and system for flash memory cache region
CN106528454B (en) A kind of memory system caching method based on flash memory
US20120102273A1 (en) Memory agent to access memory blade as part of the cache coherency domain
CN103885728A (en) Magnetic disk cache system based on solid-state disk
CN104268102A (en) Method for writing caches of storage servers in hybrid modes
CN104834607A (en) Method for improving distributed cache hit rate and reducing solid state disk wear
US9990293B2 (en) Energy-efficient dynamic dram cache sizing via selective refresh of a cache in a dram
CN106909323B (en) Page caching method suitable for DRAM/PRAM mixed main memory architecture and mixed main memory architecture system
US20090094391A1 (en) Storage device including write buffer and method for controlling the same
JP2017126334A (en) Storage devices, operating methods thereof and systems
CN113377690A (en) Solid state disk processing method suitable for user requests of different sizes
CN104679681A (en) High-speed bridge device for AHB (advanced high-performance bus) accessing on-chip SRAM (static random access memory) and operating method of high-speed bridge device
CN108572799B (en) Data page migration method of heterogeneous memory system of bidirectional hash chain table
CN109739696A (en) Double-control storage array solid state disk cache acceleration method
CN102681792B (en) Solid-state disk memory partition method
US10152410B2 (en) Magnetoresistive random-access memory cache write management
CN109478164A (en) For storing the system and method for being used for the requested information of cache entries transmission
CN109791469B (en) Apparatus and method for setting clock speed/voltage of cache memory
CN102043731A (en) Cache system of storage system
CN108664217A (en) A kind of caching method and system reducing the shake of solid-state disc storaging system write performance
US20140032843A1 (en) Management of chip multiprocessor cooperative caching based on eviction rate

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150107