US 12,271,609 B2
Capacity adjustment method and related apparatus
Zengshi Huang, Shenzhen (CN); and Hao Pan, Shenzhen (CN)
Assigned to Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed on Jul. 19, 2023, as Appl. No. 18/355,233.
Application 18/355,233 is a continuation of application No. PCT/CN2022/072411, filed on Jan. 17, 2022.
Claims priority of application No. 202110071074.4 (CN), filed on Jan. 19, 2021.
Prior Publication US 2023/0367493 A1, Nov. 16, 2023
Int. Cl. G06F 12/00 (2006.01); G06F 3/06 (2006.01); G06F 12/08 (2016.01)
CPC G06F 3/0629 (2013.01) [G06F 3/0608 (2013.01); G06F 3/0631 (2013.01); G06F 3/0685 (2013.01); G06F 12/08 (2013.01); G06F 2212/261 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A capacity adjustment method, wherein the method is applied to a storage system, and the method comprises:
analyzing cold and hot attributes of data stored in the storage system, to obtain an amount of hot data and an amount of cold data in the data;
wherein the storage system comprises a first storage medium set comprising one or more different storage medium, and a second storage medium set comprising one or more different storage medium;
determining, based on the amount of hot data and the amount of cold data, a capacity of a cache required by the storage system and a capacity of a persistent storage required by the storage system, wherein the cache required by the storage system comes from the first storage medium set, the persistent storage required by the storage system comes from the second storage medium set; and
adjusting, based on the capacity of the cache and the capacity of the persistent storage, a purpose of a storage medium comprised in the storage system including adjusting a ratio of the capacity of the cache to the capacity of the persistent storage in the storage medium.