CN105224243B - A kind of speed adjusting method of initialization and the reconstruction of disk array - Google Patents

A kind of speed adjusting method of initialization and the reconstruction of disk array Download PDF

Info

Publication number
CN105224243B
CN105224243B CN201510549098.0A CN201510549098A CN105224243B CN 105224243 B CN105224243 B CN 105224243B CN 201510549098 A CN201510549098 A CN 201510549098A CN 105224243 B CN105224243 B CN 105224243B
Authority
CN
China
Prior art keywords
raid
thread
priority
band number
initialization
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.)
Active
Application number
CN201510549098.0A
Other languages
Chinese (zh)
Other versions
CN105224243A (en
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.)
Shenzhou Yunke Beijing Technology Co ltd
Wuhan Shenzhou Digital Cloud Technology Co ltd
Original Assignee
Shenzhen Science And Technology Co Ltd Digital Cloud Data
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 Shenzhen Science And Technology Co Ltd Digital Cloud Data filed Critical Shenzhen Science And Technology Co Ltd Digital Cloud Data
Priority to CN201510549098.0A priority Critical patent/CN105224243B/en
Publication of CN105224243A publication Critical patent/CN105224243A/en
Application granted granted Critical
Publication of CN105224243B publication Critical patent/CN105224243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention discloses the speed adjusting method of initialization and the reconstruction of a kind of disk array, the method includes:Disk array RAID is by adjusting the first maximum concurrent band number and the first minimum interval, to adjust the speed of RAID initialization;First maximum concurrent band number is the adjacent band number maximum value initialized twice;First minimum interval is the time used in the band number of the several numbers of the maximum concurrent band of adjacent initialization first twice;RAID is by adjusting the second maximum concurrent band number and the second minimum interval, to adjust the speed of RAID reconstructions;Second maximum concurrent band number is the adjacent band number maximum value rebuild twice;Second minimum interval is the time used in the adjacent band number for rebuilding the second several numbers of maximum concurrent band twice.The method of the present invention allows settings of the disk array RAID according to user, judges read-write and reconstruction, read-write and the priority of initialization and resource accounting, adapts to different business demands.

Description

A kind of speed adjusting method of initialization and the reconstruction of disk array
Technical field
The present invention relates to field of computer technology, and in particular to the speed of initialization and the reconstruction of a kind of disk array is adjusted Method.
Background technology
In traditional magnetic disk array (Redundant Arrays of independent Disks, RAID), in order to make RAID read-writes process can be more quick, and RAID is initialized, and RAID is rebuild after degrading.
In traditional RAID, the speed of initialization and the reconstruction of RAID is based on fixed initialization speed and fixed heavy It builds speed, and initialization thread, rebuilds what the priority of thread and user writable data thread was also to determine.
But the initialization thread of RAID, rebuild thread can with the IO of user writable data thread generate lock conflict and The competition of other resources, thus RAID initialization or reconstruction process can seriously affect RAID read-write speed.Specifically should In, it also will appear situation about being required to initializing and rebuilding speed, so existing fixed initialization speed and again Speed is built, practical application demand can not be met well.
Invention content
The technical problems to be solved by the invention are in traditional RAID, the initialization thread of RAID, rebuild thread can with The IO of family read-write data thread generates lock conflict and the competition of other resources, therefore the initialization of RAID or reconstruction process meeting The problem of seriously affecting the speed of RAID read-writes.
For this purpose, the present invention provides a kind of speed adjusting method of initialization and the reconstruction of disk array, the method Including:
Disk array RAID is by adjusting the first maximum concurrent band number and the first minimum interval, at the beginning of adjusting RAID The speed of beginningization;Described first maximum concurrent band number is the adjacent band number maximum value initialized twice;Described first is minimum Time interval is the time used in the adjacent band number for initializing the described first several numbers of maximum concurrent band twice;
RAID is by adjusting the second maximum concurrent band number and the second minimum interval, to adjust the speed of RAID reconstructions Degree;Described second maximum concurrent band number is the adjacent band number maximum value rebuild twice;Second minimum interval is Time used in the adjacent band number for rebuilding the described second several numbers of maximum concurrent band twice.
Optionally, the method further includes:
RAID is according to preset first priority, the execution order of adjustment initialization thread and user writable data thread, Priority of preset first priority for initialization thread and user writable data thread;
RAID rebuilds the execution order of thread and user writable data thread, institute according to preset second priority, adjustment It is to rebuild the priority of thread and user writable data thread to state preset second priority.
Optionally, preset first priority is the first priority of user setting, and described preset second is preferential Grade is the second priority of user setting.
Optionally, the RAID is according to preset first priority, adjustment initialization thread and user writable data thread Execution order, including:
RAID adjusts initialization thread and user writable after the first precedence information of the user setting is received The execution order of data thread and timeslice occupation proportion;
Correspondingly, the RAID rebuilds thread and user writable data thread according to preset second priority, adjustment Execution order, including:
For RAID after the second precedence information of the user setting is received, thread and user writable number are rebuild in adjustment According to the execution order of thread and timeslice occupation proportion.
Compared with the prior art, method of the invention allows settings of the disk array RAID according to user, judges to read and write With rebuilding, reading and writing priority and resource accounting with initializing, different business demands is adapted to.
Description of the drawings
Fig. 1 shows the speed adjusting method of initialization and the reconstruction of a kind of disk array.
Specific embodiment
As shown in Figure 1, the present embodiment discloses the speed adjusting method of initialization and the reconstruction of a kind of disk array, the side Method includes:
Disk array RAID is by adjusting the first maximum concurrent band number and the first minimum interval, at the beginning of adjusting RAID The speed of beginningization;First maximum concurrent band number is the adjacent band number maximum value initialized twice;First minimum interval For the time used in the band number of the several numbers of the maximum concurrent band of adjacent initialization first twice;
RAID is by adjusting the second maximum concurrent band number and the second minimum interval, to adjust the speed of RAID reconstructions Degree;Second maximum concurrent band number is the adjacent band number maximum value rebuild twice;Second minimum interval for it is adjacent twice Rebuild the time used in the band number of the second several numbers of maximum concurrent band.
In a particular application, method may also include unshowned following steps in Fig. 1:
RAID is according to preset first priority, the execution order of adjustment initialization thread and user writable data thread, Priority of preset first priority for initialization thread and user writable data thread;
RAID rebuilds the execution order of thread and user writable data thread according to preset second priority, adjustment, in advance If the second priority be to rebuild the priority of thread and user writable data thread.
Preset first priority is the first priority of user setting, preset second priority for user setting the Two priority.
RAID is according to preset first priority, the execution order of adjustment initialization thread and user writable data thread, Including:
RAID is after the first precedence information of user setting is received, adjustment initialization thread and user writable data The execution order of thread and timeslice occupation proportion;
Correspondingly, RAID rebuilds the execution of thread and user writable data thread according to preset second priority, adjustment Order, including:
For RAID after the second precedence information of user setting is received, thread and user writable data line are rebuild in adjustment The execution order of journey and timeslice occupation proportion.
The method of the present embodiment allows settings of the disk array RAID according to user, judge read-write with rebuild, read-write with The priority of initialization and resource accounting, adapt to different business demands.
It should be noted that:" first " described herein " second " does not imply that ordinal relation or operative relationship, only uses To distinguish different entities.

Claims (4)

1. a kind of speed adjusting method of initialization and the reconstruction of disk array, which is characterized in that the method includes:
Disk array RAID is by adjusting the first maximum concurrent band number and the first minimum interval, to adjust RAID initialization Speed;Described first maximum concurrent band number is the adjacent band number maximum value initialized twice;First minimum time Between be divided into time used in the adjacent band number for initializing the described first maximum concurrent several numbers of band twice;
RAID is by adjusting the second maximum concurrent band number and the second minimum interval, to adjust the speed of RAID reconstructions;Institute It is the adjacent band number maximum value rebuild twice to state the second maximum concurrent band number;Second minimum interval is adjacent two Time used in the secondary band number for rebuilding the described second several numbers of maximum concurrent band.
2. according to the method described in claim 1, it is further characterized in that, the method further includes:
RAID is according to preset first priority, and the execution order of adjustment initialization thread and user writable data thread is described Priority of preset first priority for initialization thread and user writable data thread;
For RAID according to preset second priority, the execution order of thread and user writable data thread is rebuild in adjustment, described pre- If the second priority be to rebuild the priority of thread and user writable data thread.
3. according to the method described in claim 2, it is characterized in that, preset first priority is the first of user setting Priority, preset second priority are the second priority of user setting.
4. according to the method described in claim 3, it is characterized in that, the RAID is adjusted just according to preset first priority The execution order of beginningization thread and user writable data thread, including:
RAID is after the first precedence information of the user setting is received, adjustment initialization thread and user writable data The execution order of thread and timeslice occupation proportion;
Correspondingly, the RAID rebuilds the execution of thread and user writable data thread according to preset second priority, adjustment Order, including:
For RAID after the second precedence information of the user setting is received, thread and user writable data line are rebuild in adjustment The execution order of journey and timeslice occupation proportion.
CN201510549098.0A 2015-08-31 2015-08-31 A kind of speed adjusting method of initialization and the reconstruction of disk array Active CN105224243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510549098.0A CN105224243B (en) 2015-08-31 2015-08-31 A kind of speed adjusting method of initialization and the reconstruction of disk array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510549098.0A CN105224243B (en) 2015-08-31 2015-08-31 A kind of speed adjusting method of initialization and the reconstruction of disk array

Publications (2)

Publication Number Publication Date
CN105224243A CN105224243A (en) 2016-01-06
CN105224243B true CN105224243B (en) 2018-06-12

Family

ID=54993249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510549098.0A Active CN105224243B (en) 2015-08-31 2015-08-31 A kind of speed adjusting method of initialization and the reconstruction of disk array

Country Status (1)

Country Link
CN (1) CN105224243B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246480A (en) * 2012-02-08 2013-08-14 Lsi公司 System and method for improved rebuild in RAID
CN103345450A (en) * 2013-06-26 2013-10-09 浙江宇视科技有限公司 Device and method for dynamically regulating redundant RAID array reconstruction

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080250269A1 (en) * 2007-04-05 2008-10-09 Jacob Cherian System and Method for Improving Rebuild Speed Using Data in Disk Block

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246480A (en) * 2012-02-08 2013-08-14 Lsi公司 System and method for improved rebuild in RAID
CN103345450A (en) * 2013-06-26 2013-10-09 浙江宇视科技有限公司 Device and method for dynamically regulating redundant RAID array reconstruction

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
RAID一致性初始化方法研究;谭志虎等;《小型微型计算机系统》;20080731;第29卷(第7期);第1204-1207页 *
一种提高磁盘阵列重建效率的缓存替换算法;毛波等;《华中科技大学学报(自然科学版)》;20110630;第39卷(第6期);第1-4页 *
一种改进的RAID后台初始化技术;宋戈;《计算机与数字工程》;20101231;第38卷(第3期);第165-168页 *

Also Published As

Publication number Publication date
CN105224243A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
TWI467371B (en) Memory module and utilizing method thereof, computer program and computer readable medium
US7653781B2 (en) Automatic RAID disk performance profiling for creating optimal RAID sets
US20110016239A1 (en) System, method, and computer program product for reducing a rate of data transfer to at least a portion of memory
CN103927129B (en) Date storage method
CN111880744B (en) Data migration method and device, electronic equipment and medium
CN103034603A (en) Multi-channel flash memory card control device and control method thereof
CN110245119A (en) A kind of file consolidation method and storage system
US20130111287A1 (en) Memory storage device, memory controller thereof, and data transmission method thereof
CN102541466A (en) Hybrid storage control system and method
CN103186438A (en) Method of improving disk array data reconstruction efficiency
CN102566939A (en) Solid state disk (SSD) and read-modify-write operation data management method thereof
US20100180076A1 (en) Locking in raid storage systems
CN107291392A (en) A kind of solid state hard disc and its reading/writing method
CN105373339B (en) A kind of copy method and system of hard disc data
CN105224243B (en) A kind of speed adjusting method of initialization and the reconstruction of disk array
CN109799959A (en) A method of it improving open channel solid-state disk and writes concurrency
US9009490B2 (en) Implementing dynamic banding of self encrypting drive
US20140059377A1 (en) Dynamic y-buffer size adjustment for retained sector reprocessing
CN105389161A (en) Conflict detection method for transactional memory, transactional memory system and microprocessor
CN102096560A (en) Multi-path solid state disk acceleration method based on PCI-E interface
CN101667458B (en) Method for erasing solid state disk wholly and equipment thereof
US11016689B2 (en) Data storage system
TW201810277A (en) Methods for priority writes in a SSD (Solid State Disk) system and apparatuses using the same
CN106371950A (en) Method and device for achieving RAID level conversion
CN102968366B (en) The local storage means of a kind of Blu-ray player daily record and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170331

Address after: Nanshan District Guangdong streets, Shenzhen city 518131 Guangdong Province Road No. 8 financial services technology innovation base 1 building 11 floor F3

Applicant after: Shenzhen science and Technology Co.,Ltd. digital cloud data

Address before: 100085 Beijing, Haidian District, No. 9 on the ground floor of the digital science and Technology Plaza, 9

Applicant before: YUNKE CHINA DATA TECHNOLOGY LTD.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190717

Address after: 430200 Six Floors of 777B Office Building, Guanggu Third Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province

Patentee after: Wuhan Shenzhou Digital Cloud Technology Co.,Ltd.

Address before: Nanshan District Guangdong streets, Shenzhen city 518131 Guangdong Province Road No. 8 financial services technology innovation base 1 building 11 floor F3

Patentee before: Shenzhen science and Technology Co.,Ltd. digital cloud data

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230421

Address after: 6 / F, office building B, No.777, Guanggu Third Road, Donghu New Technology Development Zone, Wuhan, Hubei 430200

Patentee after: Wuhan Shenzhou Digital Cloud Technology Co.,Ltd.

Patentee after: Shenzhou Yunke (Beijing) Technology Co.,Ltd.

Address before: 6 / F, office building B, No.777, Guanggu Third Road, Donghu New Technology Development Zone, Wuhan, Hubei 430200

Patentee before: Wuhan Shenzhou Digital Cloud Technology Co.,Ltd.