Distributed File System Small File Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improvenumber of filesVSAvoidsystem performance
Core Design Contradiction:
Quantity of substanceVSProductivity

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

Inventive Principle:
Principle #5Merging (Combining)

2Productivity

If files are combined into larger files, then system performance and efficiency improve, but the number of files available for processing decreases

Engineering Contradiction:
Improvesystem efficiencyVSAvoidnumber of files
Core Design Contradiction:
ProductivityVSQuantity of substance

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

Inventive Principle:
Principle #3Local quality

3Quantity of substance

If the number of file parts is reduced, then memory footprint and CPU time decrease, but file system granularity is reduced

Engineering Contradiction:
Improvenumber of file partsVSAvoidfile system granularity
Core Design Contradiction:
Quantity of substanceVSAdaptability or versatility

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

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS11036678B2Optimizing files stored in a distributed file system
Publication Date: 2021.06.15 AETNA INC
  • US11036678B2 patent drawing
  • US11036678B2 patent drawing
  • US11036678B2 patent drawing

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.