-
1.
公开(公告)号:US20160210302A1
公开(公告)日:2016-07-21
申请号:US15085626
申请日:2016-03-30
Applicant: Huawei Technologies Co., Ltd.
Inventor: Feng XIA
CPC classification number: G06F16/1724 , G06F3/061 , G06F3/0619 , G06F3/0643 , G06F3/0647 , G06F3/065 , G06F3/067 , G06F3/1204 , G06F3/1222 , G06F3/1236 , G06F3/1238 , G06F3/1258 , G06F3/1285 , G06F3/1292 , G06F12/06 , G06F16/128 , G06F16/214
Abstract: A method for migrating a file in a storage device. The storage device obtains a snapshot of metadata of the file. The snapshot includes logical addresses of data blocks of the file and first write time points of the data blocks. The storage device identifies a logical address of a target data block and a first write time point of the target data block. Then, the storage device obtains a second write time point from the metadata of the file. The second write time point indicates a latest time point of writing the target data block into the storage device. If the first write time point of the target data block is identical to the second write time point, the storage device migrates the target data block to pre-allocated continuous storage space. Thereby, disk defragmentation can be achieved.
Abstract translation: 一种用于在存储设备中迁移文件的方法。 存储设备获取该文件的元数据的快照。 快照包括文件的数据块和数据块的第一写入时间点的逻辑地址。 存储装置识别目标数据块的逻辑地址和目标数据块的第一写入时间点。 然后,存储装置从文件的元数据中获得第二写入时间点。 第二写时间点指示将目标数据块写入存储装置的最新时间点。 如果目标数据块的第一写入时间点与第二写入时间点相同,则存储设备将目标数据块迁移到预先分配的连续存储空间。 由此,可以实现磁盘碎片整理。
-
公开(公告)号:US20220179785A1
公开(公告)日:2022-06-09
申请号:US17680739
申请日:2022-02-25
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Chunhua TAN , Feng XIA
IPC: G06F12/06
Abstract: A cache space management method and apparatus are disclosed. In the method, first, a hit rate of the read cache of the storage system is obtained; and then, a size of the read cache and a size of the metadata cache are adjusted based on the hit rate of the read cache. In the foregoing technical solution, the size of the read cache and the size of the metadata cache are dynamically adjusted by using the hit rate of the read cache as a decision factor. For example, when the hit rate of the read cache is relatively high, the size of the read cache may be increased.
-