| CPC G06F 12/0811 (2013.01) [G06F 2212/286 (2013.01)] | 20 Claims |

|
1. A method for reducing a mirror data transmission amount by a dual layer cache, comprising following steps:
dividing a cache space corresponding to a first node into a first upper-layer cache space and a first lower-layer cache space, and dividing a cache space corresponding to a second node into a second upper-layer cache space and a second lower-layer cache space;
after the first node receives an input/output (IO) request, writing the IO request into the first upper-layer cache space;
writing, by the first node, first cached data corresponding to the IO request into the first lower-layer cache space according to the IO request, and generating, by the first node, first index information for the first cached data, wherein the first index information points to the first cached data;
writing mirror data of the IO request in the first upper-layer cache space of the first node into the second upper-layer cache space of the second node; and
writing mirror data of the first index information in the first lower-layer cache space of the first node into the second lower-layer cache space of the second node, and not transmitting the first cached data to the second lower-layer cache space of the second node.
|