US 12,277,059 B1
Method and apparatus for reducing mirror data transmission amount by dual layer cache, and device and medium
Xiangfei Kong, Jiangsu (CN); and Yonggang Wang, Jiangsu (CN)
Assigned to Suzhou MetaBrain Intelligent Technology Co., Ltd., Jiangsu (CN)
Filed by Suzhou MetaBrain Intelligent Technology Co., Ltd., Jiangsu (CN)
Filed on Dec. 20, 2024, as Appl. No. 18/989,585.
Application 18/989,585 is a continuation of application No. PCT/CN2023/115295, filed on Aug. 28, 2023.
Claims priority of application No. 202211361623.2 (CN), filed on Nov. 2, 2022.
Int. Cl. G06F 12/08 (2016.01); G06F 12/0811 (2016.01)
CPC G06F 12/0811 (2013.01) [G06F 2212/286 (2013.01)] 20 Claims
OG exemplary drawing
 
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.