Distributed File System Small File Optimization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Distributed file systems, such as Hadoop, experience performance degradation due to the presence of a large number of small files, which lead to excessive overhead on system resources, memory, and processor utilization.
Innovation Solution
The method involves determining if input files in a directory are smaller than a block size and combining them into a reduced set of files, using techniques like MapReduce to optimize storage and reduce the number of file parts, thereby improving system efficiency and reducing unnecessary blocks.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If a large number of small files are stored in the distributed file system, then the file system can store diverse data, but system performance degrades due to excessive overhead on memory, processor utilization, and network resources
Solution Approach 1:
The patent combines multiple small files into a smaller number of larger files to reduce the overhead on distributed file system resources. By merging files that are smaller than the block size into consolidated files, the system reduces the number of file metadata entries, decreases memory footprint in the NameNode, and improves overall system performance while maintaining data accessibility
2Productivity
If files are combined into larger files, then system performance and efficiency improve, but the number of files available for processing decreases
Solution Approach 1:
The patent applies local quality by selectively combining only those files that are smaller than the block size while leaving larger files unchanged. This targeted approach optimizes system performance for the specific problematic case of small files without unnecessarily consolidating files that are already of appropriate size, thus maintaining a balanced file structure
3Quantity of substance
If the number of file parts is reduced, then memory footprint and CPU time decrease, but file system granularity is reduced
Solution Approach 1:
The patent changes the parameter of file size by combining small files into files that approach or reach the block size threshold. This parameter transformation reduces the number of file parts and their associated overhead while maintaining adaptability through configurable block size parameters that can be adjusted based on specific system requirements and workloads
Data Source
AI summary
Methods and systems for optimizing a number of files stored in a distributed file system are provided. The method includes determining whether the size of a plurality of input files in a directory are less than a block size. The method further includes determining whether the size of the input files in the directory divided by a desired file size is greater than a threshold. Additionally, the method includes combining the collection of input files into a reduced set of files.


