-
公开(公告)号:US20210223958A1
公开(公告)日:2021-07-22
申请号:US17257015
申请日:2018-06-30
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Chao Yu , Hao Chen , Bifeng Tong , Chengliang Zheng , Xiyu Zhou
Abstract: A storage fragment management method and a terminal. The method may be applied to a file system of the terminal, and the file system includes at least one segment. The method includes: first determining, by the terminal, a source segment from the file system based on an aging degree of the segment and a valid block ratio of the segment; then determining, by the terminal from the file system based on an aging degree of the source segment, a target segment whose aging degree is consistent with the aging degree of the source segment; and finally migrating, by the terminal, data of a valid block in the source segment to an idle block in the target segment. This method is used to resolve a problem that power consumption is high when data migration is performed on a storage fragment in an existing log-structured file system.
-
公开(公告)号:US11868631B2
公开(公告)日:2024-01-09
申请号:US17626331
申请日:2020-07-09
Applicant: Huawei Technologies Co., Ltd.
IPC: G06F3/06
CPC classification number: G06F3/0632 , G06F3/0619 , G06F3/0644 , G06F3/0659 , G06F3/0673
Abstract: A system startup method includes creating a first thread when a kernel driver in a kernel mode detects a first disk partition, reading, in the kernel mode, metadata of the first disk partition using the first thread, and writing the metadata of the first disk partition into a first page cache using the first thread. In the kernel mode, metadata of a disk partition is pre-cached into a page cache using the first thread, and in a subsequent process in a user mode, the metadata of the disk partition is directly read from the page cache. A storage area of the page cache is memory and has a higher read/write operation rate compared with a disk.
-
公开(公告)号:US20220058118A1
公开(公告)日:2022-02-24
申请号:US17464174
申请日:2021-09-01
Applicant: Huawei Technologies Co., Ltd.
Inventor: Chao Yu , Hao Chen , Bifeng Tong , Chengliang Zheng , Xiyu Zhou
Abstract: A garbage data scrubbing method includes obtaining an input/output (IO) busy/idle status of a terminal at a current moment, where the IO busy/idle status includes a busy state and an idle state. When the IO busy/idle status of the terminal at the current moment is the idle state, a discard message is delivered to a storage device, where the discard message includes an initial address and a size of to-be-scrubbed physical space in the storage device, and where the discard message is used to unbind a mapping relationship between a physical address of the to-be-scrubbed physical space and a corresponding logical address.
-
公开(公告)号:US20200349069A1
公开(公告)日:2020-11-05
申请号:US16754537
申请日:2017-10-13
Applicant: Huawei Technologies Co., Ltd.
Inventor: Chao Yu , Hao Chen , Bifeng Tong , Chengliang Zheng , Xiyu Zhou
Abstract: This application provides a garbage data scrubbing method and a device, and relates to the field of terminals, to resolve a problem that delivering a discard message in a file system transaction affects a user foreground operation. The method includes: obtaining an IO busy/idle status of a terminal at a current moment, where the IO busy/idle status includes a busy state and an idle state (S301); and if the IO busy/idle status of the terminal at the current moment is the idle state, delivering a discard message to a storage device (S302), where the discard message includes an initial address and a size of to-be-scrubbed physical space in the storage device, and the discard message is used to unbind a mapping relationship between a physical address of the to-be-scrubbed physical space and a corresponding logical address.
-
-
-