Data processing method and apparatus, and device to adjust garbage collection threshold
AssigneeCloud Intelligence Assets Holding (Singapore) Private Limited
InventorYuandong Hong
Life of this patent
Estimating the term…
Abstract
Provided in the present application are a data processing method and apparatus, and a device. The method includes: acquiring target decision information corresponding to a capacity physical hard disk; determining a target time instant corresponding to a garbage collection operation based on the target decision information; performing the garbage collection operation on duplicated data in the capacity physical hard disk at the target time instant. Through the technical solution of the present application, the garbage collection operation can be performed at an appropriate time, which prevents the garbage collection operation from preempting a bandwidth of a data read operation, so that the capacity physical hard disk can meet a fast read/write need.
Claims17
A data processing method, applied to a storage device, wherein the storage device comprises a high-speed physical hard disk and a capacity physical hard disk, user data is stored into the high-speed physical hard disk in an append manner, and in response to the high-speed physical hard disk meeting a migration condition, the user data in the high-speed physical hard disk is migrated to the capacity physical hard disk in the append manner, the method comprising:
- acquiring target decision information corresponding to the capacity physical hard disk;
- determining, based on the target decision information, a target time instant corresponding to a garbage collection operation;
- and
- performing the garbage collection operation on duplicated data in the capacity physical hard disk at the target time instant;
- wherein the determining, based on the target decision information, the target time instant corresponding to the garbage collection operation comprises:
- determining, based on the target decision information, a target garbage collection threshold corresponding to the garbage collection operation;
- and
- determining a time instant at which a data quantity of the duplicated data in the capacity physical hard disk reaches the target garbage collection threshold, and determining the time instant as the target time instant corresponding to the garbage collection operation.
A storage device, wherein the storage device comprises a high-speed physical hard disk and a capacity physical hard disk, and the storage device comprise a processor and a non-transitory machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions capable of being executed by the processor;
- and the processor is configured to execute the machine-executable instructions to:
- store, after obtaining user data, the user data into the high-speed physical hard disk in an append manner;
- and migrate, when the high-speed physical hard disk meets a migration condition, the user data in the high-speed physical hard disk to the capacity physical hard disk in the append manner;
- acquire target decision information corresponding to the capacity physical hard disk;
- determine, based on the target decision information, a target time instant corresponding to a garbage collection operation;
- and
- perform the garbage collection operation on duplicated data in the capacity physical hard disk at the target time instant;
- wherein the processor is specifically configured to:
- determine, based on the target decision information, a target garbage collection threshold corresponding to the garbage collection operation;
- and
- determine a time instant at which a data quantity of the duplicated data in the capacity physical hard disk reaches the target garbage collection threshold, and determine the time instant as the target time instant corresponding to the garbage collection operation.
A non-transitory machine-readable storage medium storing machine-executable instructions capable of being executed by a processor, wherein the processor is configured to execute the machine-executable instructions to implement the following operations:
- acquiring target decision information corresponding to a capacity physical hard disk;
- determining, based on the target decision information, a target time instant corresponding to a garbage collection operation;
- and
- performing the garbage collection operation on duplicated data in the capacity physical hard disk at the target time instant;
- wherein the operations are applied to a storage device, the storage device comprises a high-speed physical hard disk and the capacity physical hard disk, user data is stored into the high-speed physical hard disk in an append manner, and when the high-speed physical hard disk meets a migration condition, the user data in the high-speed physical hard disk is migrated to the capacity physical hard disk in the append manner;
- wherein the determining, based on the target decision information, the target time instant corresponding to the garbage collection operation comprises:
- determining, based on the target decision information, a target garbage collection threshold corresponding to the garbage collection operation;
- and
- determining a time instant at which a data quantity of the duplicated data in the capacity physical hard disk reaches the target garbage collection threshold, and determining the time instant as the target time instant corresponding to the garbage collection operation.
Dependencies are inferred from the claim text.