Cache barrier command processing method for disk array and device therefor

By generating and transmitting cache barrier stripes in the disk array, the problem that the cache barrier command sequence in the disk array is destroyed in other disks except the specific disk is solved, achieving sequential consistency and performance improvement for all disks.

CN113632058BActive Publication Date: 2024-08-27KOREA ADVANCED INST OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080004554.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-02-25
Filing Date
2020-11-26
Publication Date
2024-08-27
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

In a disk array, when write commands containing cache barrier commands are distributed across multiple disks, the original technology is difficult to maintain the recording order specified by the cache barrier command in other disks except the specific disk, causing the write order to be destroyed. , affecting performance.

Method used

When the disk array controller transmits a cache barrier command, it forms a cache barrier strip and distributes the strip to all disks to ensure the effectiveness of the cache barrier command in all disks and the sequential consistency of write commands. .

Benefits of technology

By generating and transmitting cache barrier stripes, the recording sequence specified by the cache barrier command can be effectively maintained in the disk array, improving the stability and performance of data writing and avoiding damage to the writing sequence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113632058B_ABST
    Figure CN113632058B_ABST
Patent Text Reader

Abstract

A disk array controller control method is disclosed, comprising: a step of generating a command sequence by the disk array controller; and a step of transmitting at least one cache barrier command to any disk constituting a disk array before transmitting a first write command arranged after the first cache barrier command in the command sequence to the arbitrary disk upon determining the first cache barrier command included in the command sequence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to computer technology, in particular to a control technology of a disk array (RAID). Background Art

[0002] <Disk Array>

[0003] A RAID (independent array of disks) is a method of connecting multiple disks in parallel to form a large-capacity disk for the purpose of increasing the performance of read and write operations.

[0004] When servicing a write command, the disk array controller collects blocks transmitted from the host and records the collected blocks on multiple disks constituting the disk array in specific units, such as blocks or integer multiples of blocks. Each disk constituting the disk array operates independently, so the disk array controller can record the collected blocks on multiple disks in parallel.

[0005] A collection of blocks recorded at one time on the disks constituting the disk array is called a stripe.

[0006] A stripe is composed of a plurality of data blocks, or one or more code blocks having a plurality of data blocks and recovery information about them. The code block stores information that can restore the contents of the data blocks stored in the damaged disk when the disk is damaged. For example, there may be parity bits of the data blocks present in a stripe.

[0007] The size of a stripe is (the size of the block used by a stripe) * (the number of blocks). Assume that the disk array is a 0 (zero) type disk array consisting of four disks. If the write unit recorded by each disk in a stripe is one block, the size of a stripe is four blocks.

[0008] For example, when 8 blocks need to be written to a disk array, these blocks are recorded on 4 disks in stripe size units. If blocks a, b, c, d, e, f, g, and h are recorded on four disks, {block a, b, c, d} form one stripe, and {block e, f, g, h} form another stripe.

[0009] If the write unit recorded by each disk in a stripe is two blocks, the size of a stripe is eight blocks. At this time, if the eight blocks are recorded in the same disk array 0, {a,b}, {c,d}, {e,f}, {g,h} are recorded on each disk.

[0010] The disk controller passes write requests to each disk while ensuring the write order between stripes.

[0011] <Strip composition>

[0012] In a disk array based on parity bits, a stripe consisting of N blocks consists of Nm data blocks and m parity bit blocks. For disk array 0, m=0. For disk array 4 or disk array 5, m is 1. For disk array 6, m=2.

[0013] <Record of Stripe>

[0014] The process of recording the blocks passed from the host is as follows.

[0015] First, the disk array controller forms a stripe.

[0016] Then, the disk array controller sends a write request to each disk in order to disperse and record the blocks belonging to a stripe on each disk. Each disk processes the received write request. That is, the block indicated in the write request is received by the disk. The so-called "receive" here means to transfer to the cache inside the disk.

[0017] After all the blocks that make up the stripe are transferred to the disks that make up the disk array, the disk array controller records the next stripe in the same way.

[0018] In the case of disk array 0, a stripe consists of data blocks only. In the case of disk array 5, a stripe consists of data blocks and one parity block. In the case of disk array 6, a stripe consists of data blocks and two parity blocks.

[0019] <cache barrier command>

[0020] The cache barrier command is a storage device command defined in a single disk. In eMMC 5.0, this command is defined as a standard.

[0021] Commands arriving at a disk can be divided into commands that already exist on the disk before the cache barrier command arrives and commands that arrive at the disk after the cache barrier, based on the cache barrier command.

[0022] A memory controller that is compatible with or supports a cache barrier command ensures that blocks that will be recorded by a write command that already exists on the disk before the cache barrier command arrives are permanently recorded before blocks that need to be recorded by a write command that arrives on the disk after the cache barrier command arrives.

[0023] For example, assume that commands arrive at the disk in the order of write(a), write(b), cache barrier, write(c), and write(D). Among them, write() is a write command for the block in (), and the cache barrier is the cache barrier command. The disk controller that supports the cache barrier command uses the time point of receiving the cache barrier command as a reference to ensure that blocks C and D are safely recorded after blocks A and B are safely recorded. The purpose of the cache barrier command is to indicate the final recording order between write commands.

[0024] On the contrary, a disk controller that does not support the cache barrier command will not satisfy the conditions required by the cache barrier command even if it receives the cache barrier command.

[0025] <Disk array and cache barrier commands>

[0026] After the command arrives from the host to the disk array controller, the disk array controller processes the corresponding command. The blocks indicated in the write command are transmitted from the host to the disk array storage device. The blocks received by the disk array controller are striped according to the rules defined by the disk array controller and then distributed and stored on the disks that constitute the disk array.

[0027] In disk array 0, blocks existing in the disk array controller are stored in stripe size units to disks constituting disk array 0. The disk array 0 controller allocates disks to data blocks of the stripe according to a predefined size (size unit in the stripe) to the disks constituting the stripe.

[0028] The blocks stored in the memory of the disk array storage device are stored in the disks constituting the disk array, which is achieved by the disk array controller sending a write command to each disk.

[0029] After generating parity bits for data blocks belonging to one stripe, the controller of the disk array 5 records the data blocks and parity bits on each disk constituting the disk array.

[0030] In addition, there are various disk arrays. They are all single stripes consisting of multiple data blocks and multiple code blocks (or parity blocks). Writing is achieved by recording the next stripe after recording one stripe on the disk.

[0031] The cache barrier command is a command that forcibly specifies the recording order between a series of write commands arriving at a single disk, that is, the cache barrier command has meaning in the set of commands arriving at a single disk.

[0032] When multiple write commands including a cache barrier command are distributed and recorded on disks constituting a disk array, the cache barrier command is only delivered to a specific disk. In the specific disk to which the cache barrier command is delivered, the recording order between the write commands that arrived before the cache barrier command arrived and the write commands that arrived after the cache barrier command arrived is maintained.

[0033] However, there is a problem that, in the remaining disks except the specific disk that transmits the cache barrier command, the record order that the cache barrier command originally intended to enforce cannot be further guaranteed.

[0034] In one embodiment, it can be assumed that a series of commands from a host to a disk array controller are composed of multiple write commands and one or more cache barrier commands. When multiple data blocks related to these multiple write commands are distributed and configured on multiple disks, there is a problem that the write order condition to be guaranteed by the one or more cache barrier commands will be destroyed.

[0035] As an example, let's assume that 8 blocks are written. For example, an application may want to use a cache barrier command to ensure that {a, b, c, d} is recorded first, and then {e, f, g, h} is recorded. To this end, it can be assumed that the host sends the following commands to the disk array controller: write(a), write(b), write(c), write(d), "cache barrier", write(e), write(f), write(g), write(h). Moreover, it can be assumed that the disk array consists of 4 disks.

[0036] At this time, as shown in the previous technology, if we consider the method of rotating processing between disks, first, the write commands write(a), write(b), write(c), write(d) for block a, block b, block c and block d are passed to each disk as follows.

[0037] Disk 0: write (a)

[0038] Disk 1: write (b)

[0039] Disk 2: write (c)

[0040] Disk 3: write (d)

[0041] Then, according to write(a), write(b), write(c), and write(d), block a, block b, block c, and block d are recorded on each disk as follows.

[0042] Disk 0: Block a

[0043] Disk 1: Block b

[0044] Disk 2: Block c

[0045] Disk 3: Block d

[0046] Then, cache barrier, which is a cache barrier command, is recorded on disk 0 as follows.

[0047] Disk 0: write (a), cache barrier

[0048] Disk 1: write(b),

[0049] Disk 2: write (c),

[0050] Disk 3: write(d),

[0051] Then, write commands write(e), write(f), write(g), and write(h) for block e, block f, block g, and block h are recorded on each disk as follows.

[0052] Disk 0:write(a),cache barrier,write(e)

[0053] Disk 1: write(b), write(f)

[0054] Disk 2: write(c), write(g)

[0055] Disk 3: write(d), write(h)

[0056] Then, according to write(e), write(f), write(g), and write(h), block e, block f, block g, and block h are recorded on each disk as follows.

[0057] Disk 0: block a, block e

[0058] Disk 1: block b, block f

[0059] Disk 2: Block c, Block g

[0060] Disk 3: Block d, Block h

[0061] At this time, the cache barrier command is only provided to disk 0, and is not provided to disk 1, disk 2, and disk 3. Therefore, there is a problem that the order relationship between blocks b and f recorded in disk 1, blocks c and g recorded in disk 2, and blocks d and h recorded in disk 3 is lost in the disk array. Summary of the invention

[0062] The problem to be solved by the present invention is that when multiple write commands containing a cache barrier command in the middle are distributed and recorded on disks constituting a disk array, since the one cache barrier command is only transmitted to a specific disk, the original recording order of the cache barrier command is destroyed in the remaining disks except the specific disk.

[0063] As a method for solving the above problem, firstly, the above exception is explained. There is a method of recording blocks a, b, c and d durably on each disk, and then recording blocks e, f, g and h on the disks. However, this method sends the next write block after confirming that it is securely recorded on the medium, which leads to poor performance.

[0064] According to one viewpoint of the present invention, at the time point when a cache barrier command is transmitted to a disk, the disk array controller generates a cache barrier stripe composed of cache barrier commands, and records the block distribution constituting a stripe on each disk, thereby transmitting the cache barrier command distribution constituting the cache barrier stripe to each disk.

[0065] For example, it can be assumed that the commands sent from the host arrive at the disk array storage device in the order of write(a), write(b), write(c), write(d), cache barrier, write(e), write(f), write(g), and write(h).

[0066] Block a, block b, block c and block d are transferred to the disk array storage device. Thereafter, in order to transfer these blocks to each disk again, write commands for block a, block b, block c and block d are respectively transferred to each disk as follows.

[0067] Disk 0: write (a)

[0068] Disk 1: write (b)

[0069] Disk 2: write (c)

[0070] Disk 3: write (d)

[0071] Then, before passing the write(e), write(f), write(g), and write(h) commands that need to be executed after the cache barrier command provided to the disk array storage device to each disk, the cache barrier is passed to each disk in its entirety. In this way, cache barrier commands corresponding to the number of disks constituting the disk array storage device and write commands for block e, block f, block g, and block h are recorded on each disk as follows.

[0072] Disk 0:write(a),cache barrier,write(e)

[0073] Disk 1:write(b),cache barrier,write(f)

[0074] Disk 2:write(c),cache barrier,write(g)

[0075] Disk 3: write(d),cache barrier,write(h)

[0076] In another embodiment of the present invention, when a cache barrier command enters the middle of a stripe, the stripe can be split. That is, when the commands transmitted from the host to the disk array controller in sequence are write(a), write(b), cachebarrier, write(c), write(d), write(e), cachebarrier, write(f), write(g), write(h), an array consisting of four disks is considered.

[0077] As described above, with cache barriers, stripes can be constructed as follows.

[0078] Stripe 1: Block a, Block b, Virtual block, Virtual block

[0079] Stripe 2 (barrier stripe): cache barrier, cache barrier, cache barrier, cache barrier

[0080] Stripe 3: virtual block, virtual block, block c, block d,

[0081] Stripe 4: Blocks, Virtual Blocks, Virtual Blocks, Virtual Blocks

[0082] Stripe 5 (barrier stripe): cache barrier, cache barrier, cache barrier, cache barrier

[0083] Stripe 6: Virtual Block, Block F, Block G, Block H

[0084] The following [Table 1] reveals the correspondence between the constituent elements of the above 6 stripes and the 4 disks.

[0085]

Table 1

[0086] Disk1 Disk2 Disk3 Disk4 Time1 / Stripe1 a b - - Time2 / Stripe2 barrier barrier barrier barrier Time3 / Stripe3 - - c d Time4 / Stripe4 e - - - Time5 / Stripe5 barrier barrier barrier barrier Time6 / Stripe6 - f g h

[0087] In order to explain the meaning of the above-mentioned "virtual block", the concept of "full stripe" referred to in the present invention is first explained. It will be described later that the full stripe means a stripe including the same number of write commands as the total number of disks constituting the disk array. For example, assuming that the total number of disks constituting the disk array is 4, a full stripe can be composed of a total of 4 actually existing blocks. In the above [Table 1], "-" corresponds to "virtual block".

[0088] The above-mentioned "virtual block" is a different type of stripe distinguished from the full stripe, and is a concept introduced in order to easily explain the structure of the partial stripe described later, for example, according to an embodiment of the present invention. The "virtual block" is a block that does not actually exist, and no write action occurs for the "virtual block". Stripe 1 to Stripe 5 mentioned above show an example in which the total number of disks constituting the disk array is 4. Among these 4 disks, the term "virtual block" is used to distinguish between the disks on which recording operations actually occur and the blocks on which recording operations do not occur. For example, the case of {Stripe 1: block a, block b, virtual block, virtual block} means that the disks on which block a and block b are recorded are the first disk and the second disk, and the disks on which no recording occurs are the third disk and the fourth disk. Below, the virtual blocks mentioned in this specification should be interpreted from this point of view.

[0089] The Stripe 1, Stripe 3, Stripe 4 and Stripe 6 correspond to partial stripes of one embodiment of the present invention. According to another embodiment of the present invention, two adjacent partial stripes may also be merged with each other. In the present invention, a new stripe formed by merging two partial stripes may be referred to as a merged stripe. For example, the adjacent Stripe 3 and Stripe 4 may be merged and reconstructed into a total of five stripes as shown in the following [Table 2]. In the following [Table 2], Stripe 3 is a merged stripe.

[0090]

Table 2

[0091] Disk1 Disk2 Disk3 Disk4 Time1 / Stripe1 a b - - Time2 / Stripe2 barrier barrier barrier barrier Time3 / Stripe3 e - c d Time4 / Stripe4 barrier barrier barrier barrier Time5 / Stripe5 - f g h

[0092] Different from this, assuming that there is no cache barrier in the above example, the above stripes can be composed of only 2 stripes as shown in the following [Table 3].

[0093]

Table 3

[0094] Disk1 Disk2 Disk3 Disk4 Time1 / Stripe1 a b c d Time2 / Stripe2 e f g h

[0095] According to one aspect of the present invention, a disk array controller control method can be provided, comprising: a step of generating a command sequence by the disk array controller; and a step of transmitting at least one cache barrier command to any disk constituting the disk array before transmitting a first write command arranged after the first cache barrier command in the command sequence to the arbitrary disk upon determining the first cache barrier command included in the command sequence.

[0096] At this time, the command sequence may be generated by the disk array controller reconfiguring the first command sequence (cs1) received from the external host device according to the disk array level of the disk array controller.

[0097] At this time, the command sequence may include a data block included in a first command sequence (cs1) received by the disk array controller from an external host device and a plurality of code blocks generated based on the data block.

[0098] At this time, the command sequence may be received by the disk array controller from an external host device.

[0099] At this time, the transmission step may include: before the disk array controller transmits the first write command to any disk constituting the disk array, the disk array controller forms a cache barrier stripe, that is, a stripe consisting of the same number of cache barrier commands as the number of all disks constituting the disk array.

[0100] At this time, the disks constituting the disk array may be N in total (N is a natural number greater than 2). Moreover, before the step of transmitting, the method for controlling the disk array controller may further include: in the process of obtaining N write commands continuously configured in the command sequence from the command sequence in order to form a stripe, the disk array controller, upon confirming that the first cache barrier command exists in the first command arrangement including the N write commands, forms a first type of partial stripe, that is, forms a stripe consisting only of write commands configured before the first cache barrier command in the first command arrangement.

[0101] At this time, after the step of forming the first type of partial stripe, the disk array controller control method may also include: a step of transmitting one or more cache barrier commands to the disks forming the disk array; and a step of forming a second type of partial stripe for at least one disk that has not received a write command based on the first type of partial stripe, that is, forming a stripe consisting of less than N write commands, including a write command immediately following the first cache barrier command configured in the first command arrangement.

[0102] At this time, the disk array controller may merge the first partial stripe of the first type or the second type that may be continuously constructed with the second partial stripe of the first type or the second type to form one stripe, that is, a merged stripe.

[0103] At this time, the disk array controller can enable a full stripe to be formed, that is, a stripe formed without considering cache barrier commands. The disk array controller makes the write commands included in the full stripe satisfy a predetermined first correspondence rule corresponding to the disks constituting the disk array. For the situation where the total number of write commands included in the merged stripe is the same as the total number of disks constituting the disk array, or the total number of write commands included in the merged stripe is the same as the total number of write commands included in the full stripe, the disk array controller makes the write commands included in the merged stripe satisfy a predetermined second correspondence rule corresponding to the disks constituting the disk array. The first correspondence rule and the second correspondence rule may be different from each other.

[0104] At this time, the first corresponding rule may be a rule for allocating multiple first blocks to the disk assigned with the serial number according to the order in which the first blocks are transmitted by the host device, and the second corresponding rule may be a rule for allocating multiple second blocks to the disk assigned with the serial number according to an order different from the order in which the host device transmits the second blocks.

[0105] At this time, the merged stripe can be formed only when the sum of the number of write commands included in the first partial stripe and the number of write commands included in the second partial stripe is less than the total number of disks constituting the disk array.

[0106] At this time, the disks constituting the disk array may be N in total (N is a natural number greater than or equal to 2). Moreover, before the step of transmitting, the disk array controller control method may further include: in the process of obtaining N write commands continuously configured in the command sequence from the command sequence in order to form a stripe, when the disk array controller confirms that there are multiple cache barrier commands including the first cache barrier command in the first command arrangement including the N write commands, a step of constituting a stripe consisting only of write commands configured between two adjacent cache barrier commands.

[0107] At this time, the command sequence may include one or more parity check bit blocks generated by the disk array controller from the blocks included in the first command sequence.

[0108] According to another aspect of the present invention, a disk array controller can be provided which, upon confirming a first cache barrier command included in a command sequence used to generate a stripe, transmits at least one cache barrier command to any disk constituting the disk array before transmitting a first write command that is arranged after the first cache barrier command in the command sequence to the arbitrary disk.

[0109] According to another aspect of the present invention, there may be provided a computing device comprising: the disk array controller described above; a plurality of disks controlled by the disk array controller; and a host providing a command sequence to the disk array controller.

[0110] According to another aspect of the present invention, a non-volatile storage medium can be provided, which is readable by a disk array controller and has a command set recorded thereon, wherein the command set enables the disk array controller, upon confirming a first cache barrier command included in a command sequence used to generate a stripe, to execute the step of transmitting at least one cache barrier command to any disk constituting the disk array before transmitting a first write command that is arranged after the first cache barrier command in the command sequence.

[0111] According to the present invention, when a disk array controller receives a plurality of write commands including a cache barrier command in between, the order of records to be maintained according to the cache barrier command can be guaranteed in all disks constituting the disk array. BRIEF DESCRIPTION OF THE DRAWINGS

[0112] Figure 1 The diagram shows the concept of a disk array controller operation method according to an embodiment of the present invention.

[0113] Figure 2 The diagram shows the concept of a disk array controller operation method according to another embodiment of the present invention.

[0114] Figure 3 The diagram shows the concept of a disk array controller operation method according to another embodiment of the present invention.

[0115] Figure 4 This is a diagram showing the concept of a disk array controller operating method according to yet another embodiment of the present invention.

[0116] Figure 5 This is a diagram showing the concept of a disk array controller operating method according to yet another embodiment of the present invention.

[0117] Figures 6 to 9 This is another example for helping to understand the concept of merging stripes and partial stripes according to one embodiment of the present invention.

[0118] Fig.10 It is used to illustrate the application of the present invention in other types of disk arrays other than disk array 0.

[0119] Fig.11 is a diagram showing a method for generating a cache barrier stripe according to another embodiment of the present invention.

[0120] Fig.12 It is a sequence diagram showing a disk array controller control method provided according to an embodiment of the present invention.

[0121] Fig.13 is a sequence diagram showing a disk array controller control method provided according to another embodiment of the present invention.

[0122] Fig.14 is a sequence diagram showing a disk array controller control method provided according to another embodiment of the present invention.

[0123] Fig.15 is a sequence diagram showing a disk array controller control method provided according to another embodiment of the present invention.

[0124] Fig.16 is a sequence diagram showing a disk array controller control method provided according to another embodiment of the present invention.

[0125] Fig.17 It is a diagram showing the structure of a computing device provided according to one embodiment of the present invention. DETAILED DESCRIPTION

[0126] The embodiments of the present invention are described below with reference to the accompanying drawings. However, the present invention is not limited to the embodiments described in this specification and can be embodied in a variety of other forms. The terms used in this specification are used to help understand the embodiments and are not intended to limit the scope of the present invention. In addition, the singular form used below also includes the plural form as long as the sentence does not clearly express the opposite meaning.

[0127] Figure 1 The diagram shows the concept of a disk array controller operation method according to an embodiment of the present invention.

[0128] Figure 1 The first command sequence (cs1) of (a) represents a series of commands transmitted from the host to the disk array controller.

[0129] In the following description, a symbol represented by a circle represents a write command to a data block indicated by the text included in the circle. For example, a circle including the text "a" is a write command to data block a. Also, a symbol represented by a quadrilateral represents a cache barrier command.

[0130] A cache barrier command (c1) is included in the first command sequence (cs1).

[0131] Figure 1 The second command sequence (cs2) of (b) is generated by the disk array controller reconstructing the first command sequence (cs1). Figure 1 In the example, disk array 0 is assumed and no additional code blocks are generated. Therefore, the second command sequence (cs2) is the same as the first command sequence (cs1).

[0132] Figure 1 (c) shows the manner in which the disk array controller generates a stripe consisting of write commands and a stripe consisting of cache barrier commands and transmits the stripes to each disk constituting the disk array according to an embodiment of the present invention.

[0133] First, the disk array controller forms a first stripe (F_Stripe 1) consisting of write(a), write(b), write(c), and write(d). At this time, the first stripe is transmitted to the disks forming the disk array in the first time slot (Time slot 1).

[0134] Then, the disk array controller ensures Figure 1 The order of recording the cache barrier commands between blocks represented by "c1" in (b) constitutes a second cache barrier stripe (CB_Stripe 2) composed of cache barrier commands whose number is the same as the number of disks constituting the disk array. At this time, the second cache barrier stripe is transmitted to each disk constituting the disk array in the second time slot (Time slot 2).

[0135] Then, the disk array controller forms a third stripe (F_Stripe 3) consisting of write(e), write(f), write(g), and write(h). At this time, the third stripe is transmitted to the disks constituting the disk array in the third time slot (Time slot 3).

[0136] Then, the disk array controller forms a fourth stripe (F_Stripe 4) consisting of write(i), write(j), write(k), and write(l). At this time, the fourth stripe is transmitted to the disks constituting the disk array in the fourth time slot (Time slot 4).

[0137] In this way, it can be seen that the recording order between data blocks required by the cache barrier command (c1) included in the first command sequence (cs1) is satisfied for all disks constituting the disk array.

[0138] Figure 2The diagram shows the concept of a disk array controller operation method according to another embodiment of the present invention.

[0139] Figure 2 The first command sequence (cs1) of (a) represents a series of commands transmitted from the host to the disk array controller.

[0140] The first command sequence (cs1) includes two cache barrier commands (c1, c2).

[0141] Figure 2 The second command sequence (cs2) of (b) is generated by the disk array controller reconstructing the first command sequence (cs1). Figure 1 In the above, it is assumed that disk array 0 is used, and no additional code blocks are generated. Therefore, the second command sequence (cs2) is the same as the first command sequence (cs1).

[0142] Figure 2 (c) shows the manner in which the disk array controller generates a stripe consisting of write commands and a stripe consisting of cache barrier commands and transmits the stripes to each disk constituting the disk array according to an embodiment of the present invention.

[0143] First, the disk array controller forms a first stripe (F_Stripe 1) consisting of write(a), write(b), write(c), and write(d). At this time, the first stripe is transmitted to the disks forming the disk array in the first time slot (Time slot 1).

[0144] Then, the disk array controller is based on Figure 2 The order of recording blocks of the cache barrier commands represented by "c1" in (b) constitutes a second cache barrier stripe (CB_Stripe 2) composed of cache barrier commands whose number is the same as the number of disks constituting the disk array. At this time, the second cache barrier stripe is transmitted to each disk constituting the disk array in the second time slot (Time slot2).

[0145] Then, the disk array controller forms a third stripe (F_Stripe 3) consisting of write(e), write(f), write(g), and write(h). At this time, the third stripe is transmitted to the disks constituting the disk array in the third time slot (Time slot 3).

[0146] Then, the disk array controller is based on Figure 2The order of recording blocks of the cache barrier commands represented by "c2" in (b) constitutes a fourth cache barrier stripe (CB_Stripe 4) composed of cache barrier commands whose number is the same as the number of disks constituting the disk array. At this time, the fourth cache barrier stripe is transmitted to each disk constituting the disk array in the fourth time slot (Time slot 4).

[0147] Then, the disk array controller forms a fifth stripe (F_Stripe 5) consisting of write(i), write(j), write(k), and write(l). At this time, the fifth stripe is transmitted to the disks forming the disk array in the fifth time slot (Time slot 5).

[0148] In this way, it can be seen that the recording order between data blocks required by the cache barrier command (c1) included in the first command sequence (cs1) is satisfied for all disks constituting the disk array.

[0149] Figure 3 The diagram shows the concept of a disk array controller operation method according to another embodiment of the present invention.

[0150] Figure 3 The first command sequence (cs1) of (a) represents a series of commands transmitted from the host to the disk array controller.

[0151] A cache barrier command (c1) is included in the first command sequence (cs1).

[0152] Figure 3 The second command sequence (cs2) of (b) is generated by the disk array controller reconstructing the first command sequence (cs1). Figure 1 In the above, it is assumed that disk array 0 is used, and no additional code blocks are generated. Therefore, the second command sequence (cs2) is the same as the first command sequence (cs1).

[0153] Figure 3 (c) shows a manner in which a disk array controller generates a stripe consisting of write commands and a stripe consisting of cache barrier commands and transmits the stripes to each disk constituting the disk array according to an embodiment of the present invention.

[0154] First, the disk array controller forms a first stripe (P_Stripe 1) consisting of write(a), write(b), write(c), and null. At this time, the first stripe is transmitted to the disks forming the disk array in the first time slot (Time slot 1).

[0155] In this embodiment, if the disk array controller finds a cache barrier command in the process of collecting write commands whose number is the same as the number of disks constituting the disk array, the stripe is formed by only using the write commands existing before the cache barrier command. At this time, if the number of write commands included in the stripe is less than the number of disks constituting the disk array, a free space is generated in the stripe. The free space can be filled with a null command, for example. The null command can mean that no command is sent to the disk corresponding to the null command.

[0156] In the drawings of this specification, the null command is represented by a triangle.

[0157] exist Figure 3 In the example, the number of write commands included in the first stripe (P_Stripe 1) is 3, which is less than the number of disks constituting the disk array, which is 4. Therefore, a free space is generated in the stripe. It can be considered that a null command exists in the free space of the first stripe (P_Stripe 1).

[0158] In the present invention, a stripe including a number of write commands that is less than the total number of disks constituting the disk array may be referred to as a partial stripe.

[0159] Then, the disk array controller is based on Figure 3 The order of recording blocks of the cache barrier commands represented by "c1" in (b) constitutes a second cache barrier stripe (CB_Stripe 2) composed of cache barrier commands whose number is the same as the number of disks constituting the disk array. At this time, the second cache barrier stripe is transmitted to each disk constituting the disk array in the second time slot (Time slot2).

[0160] Then, the disk array controller forms a third stripe (P_Stripe 3) consisting of null, null, null, write (d). At this time, the third stripe is transmitted to the disks constituting the disk array in the third time slot (Time slot 3). The third stripe (P_Stripe 3) is included in the classification of the above-mentioned partial stripes.

[0161] Then, the disk array controller forms a fourth stripe (F_Stripe 4) consisting of write(e), write(f), write(g), and write(h). At this time, the fourth stripe is transmitted to the disks constituting the disk array in the fourth time slot (Time slot 4). In the present invention, a stripe including the same number of write commands as the total number of disks constituting the disk array is called a full stripe. The full stripe is distinguished from the merged stripe described later.

[0162] Then, the disk array controller forms a fifth stripe (F_Stripe 5) consisting of write(i), write(j), write(k), and write(l). At this time, the fifth stripe is transmitted to the disks forming the disk array in the fifth time slot (Time slot 5).

[0163] In this way, it can be seen that the recording order between data blocks required by the cache barrier command (c1) included in the first command sequence (cs1) is satisfied for all disks constituting the disk array.

[0164] Figure 4 This is a diagram showing the concept of a disk array controller operating method according to yet another embodiment of the present invention.

[0165] Figure 4 The first command sequence (cs1) of (a) represents a series of commands transmitted from the host to the disk array controller.

[0166] The first command sequence (cs1) includes two cache barrier commands (c1, c2).

[0167] Figure 4 The second command sequence (cs2) of (b) is generated by the disk array controller reconstructing the first command sequence (cs1). Figure 1 In the above, it is assumed that disk array 0 is used, and no additional code blocks are generated. Therefore, the second command sequence (cs2) is the same as the first command sequence (cs1).

[0168] Figure 4 (c) shows the manner in which the disk array controller generates a stripe consisting of write commands and a stripe consisting of cache barrier commands and transmits the stripes to each disk constituting the disk array according to an embodiment of the present invention.

[0169] First, the disk array controller forms a first stripe (P_Stripe 1) consisting of write(a), write(b), write(c), and null. At this time, the first stripe is transmitted to the disks constituting the disk array in the first time slot (Time slot 1). The first stripe (P_Stripe 1) is the partial stripe mentioned above.

[0170] Then, the disk array controller is based on Figure 4The order of recording blocks of the cache barrier commands represented by "c1" in (b) constitutes a second cache barrier stripe (CB_Stripe 2) composed of cache barrier commands whose number is the same as the number of disks constituting the disk array. At this time, the second cache barrier stripe is transmitted to each disk constituting the disk array in the second time slot (Time slot2).

[0171] Then, the disk array controller forms a third stripe (P_Stripe 3) consisting of null, null, null, write (d). At this time, the third stripe is transmitted to the disks constituting the disk array in the third time slot (Time slot 3). The third stripe (P_Stripe 3) is the partial stripe mentioned above.

[0172] Then, the disk array controller forms a fourth stripe (P_Stripe 4) consisting of write(e), null, null, and null. At this time, the fourth stripe is transmitted to the disks constituting the disk array in the fourth time slot (Time slot 4). The fourth stripe (P_Stripe 4) is the partial stripe mentioned above.

[0173] The reason why the fourth stripe (P_Stripe 4) is composed of the partial stripes is as follows. That is, after the disk array controller transfers the third stripe (P_Stripe 3) to the disk, the disk array controller will once again construct a new stripe including a new write command. At this time, the disk array controller discovers a new cache barrier command (c2) in the process of collecting write commands whose number is the same as the number of disks constituting the disk array. Therefore, at this time, in an embodiment of the present invention, only the write commands that existed before the cache barrier command (c2) are used to construct the stripe. At this time, if the number of write commands included in the stripe is less than the number of disks constituting the disk array, free space is generated in the stripe. The free space is filled with a null command, for example. In Figure 4 In the embodiment of the present invention, the number of write commands (write(e)) included in the fourth stripe (P_Stripe 4) is 1, which is smaller than the number of disks constituting the disk array, which is 4. Therefore, three free spaces are generated in the fourth stripe (P_Stripe 4). It can be considered that there are null commands in the three free spaces.

[0174] Then, the disk array controller is based on Figure 4The order of recording blocks of the cache barrier commands represented by "c2" in (b) constitutes a fifth cache barrier stripe (CB_Stripe 5) composed of cache barrier commands whose number is the same as the number of disks constituting the disk array. At this time, the fifth cache barrier stripe is transmitted to each disk constituting the disk array in the fifth time slot (Time slot 5).

[0175] Then, the disk array controller forms a sixth stripe (F_Stripe 6) consisting of write(f), write(g), write(h), and write(i). At this time, the sixth stripe is transmitted to the disks constituting the disk array in the sixth time slot (Time slot 6). The sixth stripe (F_Stripe 6) is the above-mentioned full stripe.

[0176] Then, the disk array controller forms the seventh stripe (F_Stripe 7) consisting of write(j), write(k), write(l), and write(m). At this time, the seventh stripe is transferred to the disks constituting the disk array in the seventh time slot (Time slot 7). The "m" in write(m) represents the block m that should be recorded after the block l.

[0177] In this way, it can be seen that the recording order between data blocks required by the cache barrier command (c1) included in the first command sequence (cs1) is satisfied for all disks constituting the disk array.

[0178] Figure 5 This is a diagram showing the concept of a disk array controller operating method according to yet another embodiment of the present invention.

[0179] Figure 5 As from Figure 4 The modified embodiment suggests the concept of a merged stripe defined in the present invention. A merged stripe is a stripe generated by merging two consecutive partial stripes into one.

[0180] Figure 5 The first command sequence (cs1) of (a) represents a series of commands transmitted from the host to the disk array controller.

[0181] The first command sequence (cs1) includes two cache barrier commands (c1, c2).

[0182] Figure 5 The second command sequence (cs2) of (b) is generated by the disk array controller reconstructing the first command sequence (cs1). Figure 1In the above, it is assumed that disk array 0 is used, and no additional code blocks are generated. Therefore, the second command sequence (cs2) is the same as the first command sequence (cs1).

[0183] Figure 5 (c) shows the manner in which the disk array controller generates a stripe consisting of write commands and a stripe consisting of cache barrier commands and transmits the stripes to each disk constituting the disk array according to an embodiment of the present invention.

[0184] First, the disk array controller forms a first stripe (P_Stripe 1) consisting of write(a), write(b), write(c), and null. At this time, the first stripe is transmitted to the disks constituting the disk array in the first time slot (Time slot 1). The first stripe (P_Stripe 1) is the partial stripe mentioned above.

[0185] Then, the disk array controller is based on Figure 5 The order of recording blocks of the cache barrier commands represented by "c1" in (b) constitutes a second cache barrier stripe (CB_Stripe 2) composed of cache barrier commands whose number is the same as the number of disks constituting the disk array. At this time, the second cache barrier stripe is transmitted to each disk constituting the disk array in the second time slot (Time slot2).

[0186] Then, the disk array controller forms a third stripe (M_Stripe 3) consisting of write(e), null, null, write(d). At this time, the third stripe is transmitted to the disks constituting the disk array in the third time slot (Time slot 3).

[0187] The third stripe (M_Stripe 3) is Figure 4 The third strip (P_Stripe 3) shown is Figure 4 The fourth strip (P_Stripe 4) shown in FIG. 1 is then formed into a strip. In the present invention, the two continuous partial strips formed by merging the two continuous partial strips are formed as follows. Figure 5 The stripes shown in the third stripe (M_Stripe 3) are called merged stripes.

[0188] Figure 5 The third stripe (M_Stripe 3) is the merged stripe.

[0189] Then, the disk array controller is based on Figure 5The order of recording blocks of the cache barrier commands represented by "c2" in (b) constitutes a fourth cache barrier stripe (CB_Stripe 4) composed of cache barrier commands whose number is the same as the number of disks constituting the disk array. At this time, the fourth cache barrier stripe is transmitted to each disk constituting the disk array in the fourth time slot (Time slot 4).

[0190] Then, the disk array controller forms a fifth stripe (F_Stripe 5) consisting of write(f), write(g), write(h), and write(i). At this time, the fifth stripe is transmitted to the disks constituting the disk array in the fifth time slot (Time slot 5). The fifth stripe (F_Stripe 5) is the full stripe mentioned above.

[0191] Then, the disk array controller forms a sixth stripe (F_Stripe 6) consisting of write(j), write(k), write(l), and write(m). At this time, the sixth stripe is transmitted to the disks constituting the disk array in the sixth time slot (Time slot 6).

[0192] In this way, it can be seen that the recording order between data blocks required by the cache barrier command (c1) included in the first command sequence (cs1) is satisfied for all disks constituting the disk array.

[0193] exist Figure 5 In (c), arrows are used to indicate the corresponding relationship between the configuration order of the blocks included in the second command sequence (cs2) and the corresponding relationship between the blocks in each stripe and each disk. Figure 5 The order of the blocks displayed is based on the direction of the arrow in (c). Figure 5 The arrangement order of the blocks indicated in (b) corresponds to that of FIG.

[0194] Figures 6 to 9 This is another example for helping to understand the concept of merging stripes and partial stripes according to one embodiment of the present invention.

[0195] Figure 6 (a) and Figure 7 The first command sequence (cs1) shown in (a) represents a series of commands transmitted from the host to the disk array controller.

[0196] The first command sequence (cs1) includes two cache barrier commands (c1, c2).

[0197] Figure 6 (b) and Figure 7The second command sequence (cs2) shown in (b) is generated by the disk array controller reconstructing the first command sequence (cs1). Figure 1 In the above, it is assumed that disk array 0 is used, and no additional code blocks are generated. Therefore, the second command sequence (cs2) is the same as the first command sequence (cs1).

[0198] From Figures 1 to 5 This manual can be clearly understood Figure 6 and Fig. 9 The content of the diagram.

[0199] Figure 6 This is an example in which a stripe (P_Stripe 3) including write(d) is configured as the partial stripe, and a stripe (P_Stripe 4) including write(e), write(f), and write(g) is also configured as the partial stripe.

[0200] Figure 7 As from Figure 6 A modified embodiment is to change the Figure 6 The portion of the strip (P_Stripe 3) and Figure 6 This is an example in which the partial strips (P_Stripe 4) are merged with each other to form a merged strip (M_Stripe 3).

[0201] Figure 8 This is an example where the third time slot (Time slot 3) and the fourth time slot (Time slot 4) are connected to form a partial stripe. Figure 8 In the example, the sum of the number of write blocks (2) included in the third stripe (P_Stripe 3) of the third time slot and the number of write blocks (3) included in the fourth stripe (P_Stripe 4) of the fourth time slot is greater than the total number of disks constituting the disk array. Therefore, the third stripe (P_Stripe 3) and the fourth stripe (P_Stripe 4) can be simply combined to form another merged stripe.

[0202] But, Figure 8 As far as needs are concerned, Figure 8 The write (c), write (d) and Figure 8 The write(e) and write(f) of the fourth time slot (Time slot 4) shown in FIG. 4 are combined to form a combined stripe. Figure 8 The write (g) of the fourth time slot (Time slot 4) is separately constituted as a partial stripe. This constitution can be adopted when it is beneficial based on the specific embodiment.

[0203] Fig. 9 An example is shown in which a third partial stripe (P_Stripe 3) is formed in a third time slot (Time slot 3), a fourth cache barrier stripe (CB_Stripe 4) is formed in a fourth time slot (Time slot 4), and a fifth partial stripe (P_Stripe 5) is formed in a fifth time slot (Time slot 5).

[0204] The characteristics of the merged stripes defined in the present invention will now be described in detail.

[0205] First, in Figure 5 The number of write commands included in the merged stripe exemplarily illustrated in the third time slot (Time slot 3) is less than the total number of disks constituting the disk array.

[0206] In contrast, Figure 7 The number of write commands included in the merged stripe exemplarily illustrated in the third time slot (Time slot 3) is the same as the total number of disks constituting the disk array.

[0207] Therefore, the number of write commands included in one merged stripe does not necessarily have to be the same as the total number of disks constituting the disk array, and also does not need to be less than the total number.

[0208] Figure 5 and Figure 7 The common features of the suggested merged bands are as follows.

[0209] First, it can be assumed that in the state where one full stripe is prepared, the disk array controller allocates the write commands included in the full stripe to the disks according to the first corresponding rule that satisfies the following.

[0210] That is, for example, in Figure 5 The fifth time slot (Time slot 5) indicates that the write commands included in the fifth stripe (F_Stripe 5) as a full stripe are write(f), write(g), write(h), and write(i). The fifth stripe (F_Stripe 5) is as follows: Figure 5As shown in (b), the disk array controller generates a second command sequence (cs2) based on the first command sequence (cs1). At this time, in the second command sequence (cs2), the order of the write commands is write(f)→write(g)→write(h)→write(i). At this time, the write commands included in the fifth stripe (F_Stripe 5) as a full stripe are allocated to disk 1, disk 2, disk 3, and disk 4 according to the arrangement order in the second command sequence (cs2).

[0211] However, it will Figure 5 and Figure 7 The second corresponding rule for assigning write commands included in each merged stripe prompted in the prompt to the disk does not satisfy the first corresponding rule for the full stripe.

[0212] For example, in Figure 7 In the example, the four write commands that make up the merged stripe (M_Stripe 3) are write(d), write(e), write(f), and write(g). Figure 7 As shown in (b), in the second command sequence (cs2) reconstructed by the disk array controller, the order of the write commands is write(d)→write(e)→write(f)→write(g). However, the write commands write(d), write(e), write(f), and write(g) included in the merged stripe (M_Stripe3) are respectively assigned to disk 4, disk 1, disk 2, and disk 3. Different from this, if Figure 7 The stripe formed by the third time slot shown is the full stripe, then the write commands included in the full stripe are allocated to disk 1, disk 2, disk 3, and disk 4 respectively according to the first corresponding rule, write(d), write(e), write(f), and write(g).

[0213] As another example, in Figure 5 In the example, the two write commands that form the merged stripe (M_Stripe 3) are write(d) and write(e). Figure 5 As shown in (b), in the second command sequence (cs2) reconstructed by the disk array controller, the order of the write commands is write(d)→write(e). Moreover, the write commands write(d) and write(e) included in the merged stripe (M_Stripe 3) are respectively allocated to disk 4 and disk 1.

[0214] That is, the first corresponding rule is a rule for allocating blocks in the order of host transmission for disks that are assigned multiple serial numbers constituting a disk array. In contrast, the second corresponding rule is a rule for allocating blocks in an order different from the order of host transmission for disks that are assigned multiple serial numbers constituting a disk array.

[0215] As described above, the merged stripe defined in the present invention has at least the following three characteristics.

[0216] First, merging stripes is to reconstruct two consecutive partial stripes into one stripe.

[0217] Second, when the total number of write commands included in two consecutive partial stripes is greater than the total number of disks constituting the disk array, the two partial stripes are not simply reconstructed into one merged stripe.

[0218] Third, ① in the absence of a first corresponding rule that causes the write commands included in the full stripe formed by the disk array controller without considering the cache barrier command to correspond to the disks constituting the disk array, and ② in the case where the total number of write commands included in the merged stripe formed by the disk array controller is the same as the total number of disks constituting the disk array, or in the case where the total number of write commands included in the merged stripe is the same as the total number of write commands included in the full stripe, ③ the second corresponding rule that causes the write commands included in the merged stripe to correspond to the disks constituting the disk array does not satisfy the first corresponding rule.

[0219] For example, in Figure 7 In the merged stripe (M_Stripe 3) shown in (c), the recording order of the blocks of Disk 1 to Disk 4 is e, f, g, d, but if the records are in the form of a full stripe, the order is changed to d, e, f, g, which is the order from the host to the disk array controller.

[0220] On the other hand, according to Figure 7 The merged stripe (M_Stripe 3) shown in (c) of FIG. 1 has actual blocks recorded in all disks constituting the disk array, but according to Figure 5 The merged stripe (M_Stripe3) shown in (c) does not actually record blocks in the disks (disk2, disk3) that constitute a part of the disk array. Figure 5 The merged stripe (M_Stripe 3) shown in (c) can be regarded as both a merged stripe and still a partial stripe. And compared with this, Figure 7 The merged stripe (M_Stripe 3) shown in (c) can be considered as both a merged stripe and a full stripe.

[0221] The following describes the situation where the partial stripes proposed by the present invention occur.

[0222] First, the first type of partial striping can occur when the disk array controller discovers a new cache barrier command in the process of aggregating the same number of write commands as the number of disks that make up the disk array. An example of this can be found in Figure 3 The first time slot of Figure 4 The first time slot of Figure 4 The fourth time slot Figure 6 The first time slot of Figure 6 The fourth time slot Figure 8 The fourth time slot and Fig. 9 The fifth time slot is confirmed.

[0223] Second, the second type of partial stripe can be generated after the disk array controller continuously generates the first type of partial stripe and a cache barrier stripe. An example of this can be found in Figure 3 The third time slot, Figure 4 The third time slot, Figure 6 The third time slot, Figure 8 The third time slot, Fig. 9 The third time slot confirmation.

[0224] In the following Fig.10 In the case where it is prompted that the disk array controller continuously generates a full stripe and a cache barrier stripe, it can be confirmed that, in this case, it is not necessary to generate the second type of partial stripe immediately after the cache barrier stripe.

[0225] On the other hand, according to the embodiment, the partial stripes of the first type that occur consecutively after the partial stripes of the second type and the partial stripes of the second type may also be reconstructed into one of the merged stripes.

[0226] Fig.10 It is used to explain the application of the present invention to other types of disk arrays other than the disk array 0.

[0227] Fig.10 The diagram shows an example of a disk array 5 composed of, for example, four disks.

[0228] Fig.10 The first command sequence (cs1) of (a) represents a series of commands transmitted from the host to the disk array controller.

[0229] The first command sequence (cs1) includes three cache barrier commands (c1, c2, c3).

[0230] Fig.10The second command sequence (cs2) of (b) is generated by the disk array controller reconstructing the first command sequence (cs1). Fig.10 It is assumed that the disk array 5 generates one code block for every three data blocks. Therefore, the second command sequence (cs2) is different from the first command sequence (cs1).

[0231] In the case where the code block can be arranged immediately before or after the cache barrier command, it can preferably be arranged before.

[0232] exist Fig.10 In (b), the code blocks (P1, P2, P3) generated by the disk array controller are displayed as hexagons.

[0233] Fig.10 (c) shows the manner in which the disk array controller generates a stripe consisting of write commands and a stripe consisting of cache barrier commands and transmits the stripes to each disk constituting the disk array according to an embodiment of the present invention.

[0234] In disk array 5, the disk allocation order of each block in the stripe including the write block is different from the disk allocation order of each block in the stripe including the write block in disk array 0. Fig.10 Reflects and suggests this difference.

[0235] First, the disk array controller forms a first stripe (F_Stripe 1) consisting of write(a), write(b), write(c), and write(P1). At this time, the first stripe is transmitted to the disks constituting the disk array in the first time slot (Time slot1). The first stripe (F_Stripe 1) is the full stripe mentioned above.

[0236] Then, the disk array controller is based on Fig.10 The order of recording blocks of the cache barrier commands represented by "c1" in (b) constitutes a second cache barrier stripe (CB_Stripe 2) composed of cache barrier commands whose number is the same as the number of disks constituting the disk array. At this time, the second cache barrier stripe is transmitted to each disk constituting the disk array in the second time slot (Time slot2).

[0237] Then, the disk array controller forms a third stripe (F_Stripe 3) consisting of write(d), write(e), write(f), and write(P2). At this time, the third stripe is transmitted to the disks constituting the disk array in the third time slot (Time slot 3). The third stripe (F_Stripe 3) is the above-mentioned full stripe.

[0238] Then, the disk array controller forms a fourth stripe (P_Stripe 4) consisting of write (g), null, null, null. At this time, the fourth stripe is transmitted to the disks constituting the disk array in the fourth time slot (Time slot 4). The fourth stripe (P_Stripe 4) is the partial stripe mentioned above.

[0239] Then, the disk array controller is based on Fig.10 The order of recording blocks of the cache barrier command represented by "c2" in (b) constitutes a fifth cache barrier stripe (CB_Stripe 5) composed of cache barrier commands whose number is the same as the number of disks constituting the disk array. At this time, the fifth cache barrier stripe is transmitted to each disk constituting the disk array in the fifth time slot (Time slot 5).

[0240] Then, the disk array controller forms a sixth stripe (P_Stripe 6) consisting of null, write (h), null, and null. At this time, the sixth stripe is transmitted to the disks constituting the disk array in the sixth time slot (Time slot 6). The sixth stripe (P_Stripe 6) is the partial stripe mentioned above.

[0241] Then, the disk array controller is based on Fig.10 The order of recording blocks of the cache barrier command represented by "c3" in (b) constitutes the seventh cache barrier stripe (CB_Stripe 7) composed of the same number of cache barrier commands as the number of disks constituting the disk array. At this time, the seventh cache barrier stripe is transmitted to each disk constituting the disk array in the seventh time slot (Time slot 7).

[0242] Then, the disk array controller forms an eighth stripe (F_Stripe 8) consisting of write(i), write(P3), write(j), and write(k). At this time, the eighth stripe is transmitted to the disks constituting the disk array in the eighth time slot (Time slot 1). The eighth stripe (F_Stripe 8) is the above-mentioned full stripe.

[0243] pass Fig.10It can be understood from the illustrated examples that the present invention can also be applied to any of a variety of disk arrays such as disk array 0, disk array 3, disk array 4, disk array 5, disk array 6, disk array 0+1, disk array 10, disk array 50, disk array 1E, and disk array 1.5. This is because, according to a given disk array level, the present invention can reconstruct the first command sequence (cs1) received from the host by the disk array controller into the second command sequence (cs2), and the write command included in the second command sequence (cs2) can be applied to the present invention regardless of whether it is a write command for a data block or a write command for a code block.

[0244] Fig.10 In (c), arrows are used to indicate the corresponding relationship between the configuration order of the blocks included in the second command sequence (cs2) and the disks in each stripe. Fig.10 The order of the blocks shown in (c) corresponds to the direction of travel of the arrows given in Fig.10 The arrangement order of the blocks prompted in (b).

[0245] Fig.11 is a diagram showing a method for generating a cache barrier stripe according to another embodiment of the present invention.

[0246] Fig.11 is from Figure 4 Deformed Embodiments.

[0247] If only the description Fig.11 and Figure 4 The difference is that in Fig.11 In (c), in the second cache barrier stripe (P_CB_Stripe 2) formed in the second time slot (Time slot 2), there is no cache barrier command for providing to a part of the disks, that is, the second disk (disk2) and the third disk (disk3). That is, according to the second cache barrier stripe (P_CB_Stripe 2), no command is transmitted to the second disk (disk2) and the third disk (disk3). In this specification, this form of cache barrier stripe can be referred to as a partial cache barrier stripe.

[0248] Fig.11The second cache barrier stripe (P_CB_Stripe 2) shown can work effectively even if the cache barrier command is not transmitted to the second disk (disk2) and the third disk (disk3) with the help of the second cache barrier stripe (P_CB_Stripe 2), but it is predicted that another cache barrier command will be transmitted to the second disk (disk2) and the third disk (disk3) with the help of another cache barrier stripe (for example: CB_Stripe 5) formed before providing new write commands (for example: write(g), write(h)) to the second disk (disk2) and the third disk (disk3) and after the second cache barrier stripe (P_CB_Stripe 2).

[0249] Fig.12 It is a sequence diagram showing a disk array controller control method provided according to an embodiment of the present invention.

[0250] In step (S100), the disk array controller may generate a command sequence.

[0251] In step (S200), when the disk array controller confirms the first cache barrier command included in the command sequence, at least one cache barrier command can be transmitted to any disk constituting the disk array before the first write command configured after the first cache barrier command in the command sequence is transmitted to the arbitrary disk.

[0252] Fig.13 is a sequence diagram showing a disk array controller control method provided according to another embodiment of the present invention.

[0253] In step (S100), the disk array controller may generate a command sequence.

[0254] In step (S211), when the first cache barrier command included in the command sequence is confirmed, the disk array controller can form a cache barrier stripe, which is a stripe composed of cache barrier commands whose number is the same as the number of all disks constituting the disk array.

[0255] In step (S212), the disk array controller transmits the cache barrier stripe, so that before transmitting the first write command configured after the first cache barrier command in the command sequence to any disk constituting the disk array, at least one cache barrier command can be transmitted to the arbitrary disk.

[0256] Fig.14 is a sequence diagram showing a disk array controller control method provided according to another embodiment of the present invention.

[0257] In step (S100), the disk array controller may generate a command sequence.

[0258] In step (S221), the disk array controller, in the process of obtaining N write commands continuously configured in the command sequence in order to form a stripe, forms a first type of partial stripe upon confirming that the first cache barrier command exists in the first command arrangement including the N write commands. The first type of partial stripe is a stripe composed only of write commands configured before the first cache barrier command in the first command arrangement.

[0259] In step (S222), the disk array controller may transmit the partial stripe of the first type.

[0260] In step (S223), the disk array controller may form a cache barrier stripe, wherein the cache barrier stripe is a stripe formed by cache barrier commands having the same number as the number of all disks constituting the disk array.

[0261] In step (S224), the disk array controller transmits the cache barrier stripe, so that before transmitting the first write command configured after the first cache barrier command in the command sequence to any disk constituting the disk array, at least one cache barrier command can be transmitted to the arbitrary disk.

[0262] In step (S225), the disk array controller may form a second type of partial stripe for at least one disk that has not received a write command based on the first type of partial stripe, wherein the second type of partial stripe is a stripe consisting of less than N write commands, including a write command immediately following the first cache barrier command configured in the first command arrangement.

[0263] In step (S226), the disk array controller may transmit the partial stripe of the second type.

[0264] Fig.15 is a sequence diagram showing a disk array controller control method provided according to another embodiment of the present invention.

[0265] In step (S100), the disk array controller may generate a command sequence.

[0266] In step (S231), the disk array controller, in the process of obtaining N write commands continuously configured in the command sequence in order to form a stripe, can form and transmit a first type of partial stripe upon confirming that there are multiple cache barrier commands including the first cache barrier command and a second cache barrier command adjacent to the first cache barrier command in a first command arrangement including the N write commands. The first type of partial stripe is a stripe consisting only of write commands configured before the first cache barrier command in the first command arrangement.

[0267] In step (S232), the disk array controller may form a cache barrier stripe and transmit the cache barrier stripe, wherein the cache barrier stripe is a stripe formed by cache barrier commands having the same number as the number of all disks constituting the disk array.

[0268] In step (S233), the disk array controller may form a second type of partial stripe and transmit a second type of partial stripe, wherein the second type of partial stripe is a stripe consisting of less than N write commands configured between the first cache barrier command and the second cache barrier command.

[0269] In step (S234), the disk array controller may form a cache barrier stripe and transmit the cache barrier stripe, wherein the cache barrier stripe is a stripe formed by cache barrier commands having the same number as the number of all disks constituting the disk array.

[0270] In step (S235), the disk array controller may form and transmit another second type of partial stripe, wherein the yet another second type of partial stripe is a stripe formed by less than N write commands including a write command immediately following the second cache barrier command configured in the first command arrangement.

[0271] Fig.16 is a sequence diagram showing a disk array controller control method provided according to another embodiment of the present invention.

[0272] In step (S100), the disk array controller may generate a command sequence.

[0273] In step (S241), the disk array controller, in the process of obtaining N write commands continuously configured in the command sequence in order to form a stripe, can form and transmit a first type of partial stripe upon confirming that there are multiple cache barrier commands including the first cache barrier command and a second cache barrier command adjacent to the first cache barrier command in a first command arrangement including the N write commands. The first type of partial stripe is a stripe consisting only of write commands configured before the first cache barrier command in the first command arrangement.

[0274] In step (S242), the disk array controller may form a cache barrier stripe and transmit the cache barrier stripe, wherein the cache barrier stripe is a stripe formed by cache barrier commands having the same number as the number of all disks constituting the disk array.

[0275] In step (S243), the disk array controller may construct a second type of partial stripe {1} and transmit the second type of partial stripe {1}, wherein the second type of partial stripe {1} is a stripe consisting of less than N write commands including a write command immediately following the first cache barrier command.

[0276] In step (S244), the disk array controller may form another second type partial stripe {2} and transmit the other second type partial stripe {2}, wherein the other second type partial stripe {2} is a stripe consisting of less than N write commands including a write command configured immediately before the second cache barrier command.

[0277] In step (S245), the disk array controller may form a cache barrier stripe and transmit the cache barrier stripe, wherein the cache barrier stripe is a stripe formed by cache barrier commands having the same number as the number of all disks forming the disk array.

[0278] In step (S246), the disk array controller may form another second type of partial stripe {3} and transmit the yet another second type of partial stripe {3}, wherein the yet another second type of partial stripe {3} is a stripe consisting of less than N write commands, including a write command immediately following the second cache barrier command configured in the first command arrangement.

[0279] The second type partial stripe {1}, the second type partial stripe {2}, and the second type partial stripe {3} presented in step (S243), step (S244), and step (S246) are different partial stripes.

[0280] Fig.17 It is a diagram showing the structure of a computing device provided according to one embodiment of the present invention.

[0281] The computing device 1 may include a host 10 and a disk array storage device 20 .

[0282] The disk array storage device 20 may include a disk array controller 210 and a plurality of disks 221 , 222 , 223 , and 224 .

[0283] The disk array controller 210 may include a command sequence reconfiguration unit 211 and a stripe configuration unit 212 .

[0284] The host 10 may transmit a first command sequence ( cs1 ) to the disk array controller 210 .

[0285] The command sequence reconstruction unit 211 may reconstruct the first command sequence (cs1) according to a given disk array policy, and generate a reconstructed second command sequence (cs2).

[0286] The stripe forming unit 212 may generate a stripe from the second command sequence (cs2).

[0287] Commands based on the generated stripes may be passed to the respective disks 221 , 222 , 223 , 224 .

[0288] The disk array controller 210 can, upon confirming the first cache barrier command included in the second command sequence (cs2) used to generate the stripe, transmit at least one cache barrier command to any disk 221, 222, 223 or 224 before transmitting the first write command arranged after the first cache barrier command in the second command sequence (cs2) to any disk 221, 222, 223 or 224 constituting the disk array.

[0289] In addition, according to an embodiment of the present invention, there is provided a non-volatile storage medium readable by a disk array controller 210. A command set is recorded in the non-volatile storage medium, and the command set enables the disk array controller 210 to perform the step of transmitting at least one cache barrier command to any disk 221, 222, 223 or 224 before transmitting the first write command arranged after the first cache barrier command in the second command sequence (cs2) used to generate the stripe to any disk 221, 222, 223 or 224 constituting the disk array.

[0290] The non-volatile storage medium may be, for example, a storage device such as a ROM (read-only memory) or a flash memory attached to the disk array storage device 20. Alternatively, the non-volatile storage medium may also be a portable memory such as a USB. In addition, the non-volatile storage medium may also be a device such as a HDD (hard disk drive) or an SSD (solid state drive) that is accessible to a server to which the computing device 1 can be connected.

[0291] By using the embodiments of the present invention, those skilled in the art can easily implement various modifications and revisions within the scope of the essential characteristics of the present invention. The content of each claim of the claims can be combined with other claims without reference relationship within the scope that can be understood through this specification.

Claims

1. A disk array controller control method, comprising: The disk array controller generates a command sequence; and The disk array controller, when confirming the first cache barrier command included in the command sequence, transmits at least one cache barrier command to all disks constituting the disk array before transmitting a first write command arranged after the first cache barrier command in the command sequence to one of the disks constituting the disk array, in, The disk array controller is configured to generate a cache barrier stripe composed of cache barrier commands based on the first cache barrier command, and then transmit the cache barrier stripe to the disks constituting the disk array in a first time slot, and The first write command, which is arranged immediately after the first cache barrier command in the command sequence, is transmitted to one of the disks in a second time slot immediately after the first time slot.

2. The disk array controller control method according to claim 1, wherein: The command sequence is generated by the disk array controller reconstructing a first command sequence (cs1) received from an external host device according to a disk array level of the disk array controller.

3. The disk array controller control method according to claim 1, wherein: The command sequence includes a data block included in a first command sequence (cs1) received by the disk array controller from an external host device and a plurality of code blocks generated based on the data block.

4. The disk array controller control method according to claim 1, wherein: The command sequence is received by the disk array controller from an external host device.

5. The disk array controller control method according to claim 1, wherein: The transmission step includes: before the disk array controller transmits the first write command to one of the disks constituting the disk array, the disk array controller forms the cache barrier stripe, that is, a stripe consisting of the same number of cache barrier commands as the number of all disks constituting the disk array.

6. The disk array controller control method according to claim 1, wherein: The disk array comprises N disks in total, where N is a natural number greater than 2. Before the step of transmitting, the method further includes: The disk array controller, in the process of obtaining N write commands continuously configured in the command sequence in order to form a stripe, upon confirming that the first cache barrier command exists in a first command arrangement including the N write commands, forms a first type of partial stripe, that is, a stripe consisting of write commands configured before the first cache barrier command in the first command arrangement.

7. The disk array controller control method according to claim 6, wherein: After the step of forming a partial strip of the first type, the method further includes: The step of transmitting one or more cache barrier commands to one or more disks constituting the disk array; and For at least one disk that has not received a write command based on the first type of partial stripe, a step is performed to form a second type of partial stripe, that is, a stripe consisting of less than N write commands including a write command immediately following the first cache barrier command configured in the first command arrangement.

8. The disk array controller control method according to claim 7, characterized in that: The disk array controller causes a first partial stripe of the first type or the second type to be merged with a second partial stripe of the first type or the second type to form one stripe, that is, to form a merged stripe. If the one merged stripe cannot be generated using the first partial stripe and the second partial stripe, the first partial stripe and the second partial stripe are continuously provided as mutually different stripes.

9. The disk array controller control method according to claim 8, characterized in that: The disk array controller enables full stripes to be formed, i.e. stripes formed without taking into account cache barrier commands, The disk array controller makes the write command included in the full stripe satisfy a predetermined first correspondence rule corresponding to the disks constituting the disk array, The disk array controller, for a situation where the total number of write commands included in the merged stripe is the same as the total number of disks constituting the disk array, or the total number of write commands included in the merged stripe is the same as the total number of write commands included in the full stripe, makes the write commands included in the merged stripe satisfy a predetermined second correspondence rule corresponding to the disks constituting the disk array, The first corresponding rule and the second corresponding rule are different from each other.

10. The disk array controller control method according to claim 9, wherein: The first correspondence rule is a rule for allocating a plurality of first blocks according to the order in which the host device transmits the first blocks when allocating a plurality of first blocks to the disk to which the serial numbers are allocated. The second correspondence rule is a rule for allocating a plurality of second blocks to the disk to which the serial number is allocated in an order different from the order in which the host device transfers the second blocks.

11. The disk array controller control method according to claim 8, characterized in that: The merged stripe is formed only when the sum of the number of write commands included in the first partial stripe and the number of write commands included in the second partial stripe is less than the total number of disks constituting the disk array.

12. The disk array controller control method according to claim 1, wherein: The disk array comprises N disks in total, where N is a natural number greater than 2. Before the step of transmitting, the method further includes: The disk array controller, in the process of obtaining N write commands continuously configured in the command sequence in order to form a stripe, upon confirming that a plurality of cache barrier commands including the first cache barrier command exist in a first command arrangement including the N write commands, forms a stripe consisting only of write commands configured between two adjacent cache barrier commands.

13. The disk array controller control method according to claim 2, wherein: The command sequence includes one or more parity check bit blocks generated by the disk array controller from the blocks included in the first command sequence.