Flexible Write Cache Policy in RAID Environments
AssigneeAvago Technologies International Sales Pte. Limited
InventorSourav Saha
Life of this patent
Estimating the term…
Abstract
Solutions for providing more customizable performance for a virtual disk in a RAID environment. Some solutions provide for a flexible write cache policy that manages a proportion of input-output operations written in write-back mode against input-output operations written in write-though mode. In some cases, aspects of the flexible write cache policy can be specified by a user.
Claims20
A redundant array of independent disks (RAID) controller to manage a virtual disk comprising a plurality of arms, each of the arms comprising physical storage on a physical disk, the RAID controller comprising:
- a cache comprising a random-access memory (RAM);
- a virtual disk property table (VDPT);
- a cache manager comprising:
- hardware circuitry to receive a first plurality of write input-output operations (IO);
- hardware circuitry to execute each of the first plurality of IOs in write-back mode;
- and
- hardware circuitry to transmit a completion confirmation for each completed IO executed in write-back mode;
- an IO manager comprising:
- hardware circuitry to receive a second plurality of IOs;
- hardware circuitry to execute each of the second plurality of IOs on the virtual disk;
- and
- hardware circuitry to transmit a completion confirmation for each IO executed on the virtual disk;
- firmware comprising:
- logic to receive user input indicating a preferred ratio of write-back IOs to total IOs;
- logic to establish a flexible write cache policy based at least on the preferred ratio of write-back IOs to total IOs, the flexible write cache policy specifying:
- a first proportion of IOs to be performed in write-back mode (PC);
- and
- a second proportion of IOs to be performed in write-though mode (PD);
- logic to store the flexible write cache policy in the VDPT;
- logic to set a counter to implement the flexible write cache policy, wherein the counter implements the flexible write cache policy using the following relationships:
- W
- tot
- =
- (
- W
- C
- +
- W
- D
- )
- P
- C
- =
- W
- C
- W
- tot
- P
- D
- =
- W
- D
- W
- tot
- =
- W
- tot
- -
- W
- C
- W
- tot
- where Wtot represents a total number of IOs executed per cycle as specified by an IO group size of the flexible write cache policy, WC represents a number of IOs executed in write-back mode per cycle, and WD represents a number of IOs executed in write-through mode per cycle;
- and
- a command dispatcher (CDU) comprising:
- hardware circuitry to store the counter;
- hardware circuitry to receive a plurality of host IOs;
- hardware circuitry to perform a repeating cycle comprising:
- (1) creating of an accelerated IO (ACIO) from each of the host IOs
- (2) transmitting each remaining ACIO to the cache manager for execution until the counter exceeds WC;
- (3) updating the counter for every ACIO transmitted to the cache manager;
- (4) transmitting each remaining ACIO to the IO manager for execution until the counter reaches Wtot;;
- (5) updating the counter for every ACIO transmitted to the IO manager;
- and
- (6) resetting the counter after transmitting Wtot ACIOs;
- hardware circuitry to receive a plurality of write completion confirmations from the cache manager and the IO manager;
- and
- hardware circuitry to notify the host of each host IO completed.
A device, comprising
- logic to manage a virtual disk comprising a plurality of arms, each of the arms comprising physical storage on a physical disk;
- a cache comprising random access memory (RAM);
- logic to establish a flexible write cache policy;
- logic to execute a first plurality of write input-output operations (IO) in write-back mode, based at least in part on the flexible write cache policy;
- and
- logic to execute a second plurality of IOs in write-though mode, based at least in part on the flexible write cache policy.
A method, comprising:
- managing a virtual disk comprising a plurality of arms, each of the arms comprising physical storage on a physical disk;
- establishing a flexible write cache policy;
- executing a first plurality of write input-output operations (IO) on a cache, based at least in part on the flexible write cache policy;
- and
- executing a second plurality of IOs in write-though mode, based at least in part on the flexible write cache policy.
Dependencies are inferred from the claim text.