CPC G06F 3/0641 (2013.01) [G06F 3/061 (2013.01); G06F 3/067 (2013.01); G06F 3/0608 (2013.01); G06F 3/0643 (2013.01); G06F 3/0647 (2013.01); G06F 11/1435 (2013.01); G06F 16/182 (2019.01)] | 20 Claims |
1. A method for small files optimization, comprising:
merging, by a first thread service, M small files in a file system into one first file, wherein a size of each of the M small files is less than a predefined byte size, and wherein M is an integer that is greater than 1;
generating, by the first thread service, M pieces of metadata, wherein each of the M pieces of metadata indicates a location of a corresponding one of the M small files in the first file;
receiving, by a second thread service, a first instruction that instructs the second thread service to perform an operation on a first small file, wherein the first small file is one of the M small files, and wherein the first thread service and the second thread service are two different and separate thread services;
obtaining, by the second thread service, metadata of the first small file from a metadata set that comprises metadata describing a plurality of small files including the M small files; and
performing, by the second thread service, the operation on the first small file.
|