Directory Caching in Deduplicated Storage Systems
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In deduplicated file systems, accessing large or frequently accessed directories can severely impact system performance due to increased write-erase cycles, reducing the useful lifespan of the system cache.
Innovation Solution
A method and system for caching directories in a storage system, where directories are selected for caching based on statistics such as file count or access frequency, and cached in a cache memory device using a cache policy, thereby reducing churn on the system cache and improving access performance.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If directories are accessed in a deduplicated file system, then directory access operations can be performed, but write-erase cycles increase causing system cache lifespan to reduce
Solution Approach 1:
The patent implements directory preloading that proactively loads directory structures into the system cache before they are actually accessed. By anticipating future directory access needs and loading them in advance, the system prepares the cache to handle subsequent directory operations without triggering additional write-erase cycles, thus resolving the contradiction between enabling directory access and preserving cache lifespan
Solution Approach 2:
The patent introduces a directory cache as an intermediary layer between the file system directories and the main system cache. This directory cache stores directory metadata and structures separately, allowing directory access operations to be performed without directly impacting the main system cache. The intermediary directory cache absorbs the write-erase cycle burden, protecting the main cache and extending its effective lifespan
2Productivity
If large or frequently accessed directories are accessed, then directory operations can be performed, but system performance severely degrades due to increased cache churn
Solution Approach 1:
The patent extracts directory access operations from the main system cache path by implementing a separate directory caching mechanism. Directory metadata and structures are loaded into and managed in a dedicated directory cache, removing them from the main cache churn. This extraction allows the main system cache to focus on data operations while directory operations are handled separately, preventing performance degradation and reducing overall cache churn
Solution Approach 2:
The system performs preliminary loading of frequently accessed directories into the directory cache based on access patterns and metadata analysis. By proactively loading these directories before they are needed for actual operations, the system eliminates the need for repeated cache loading during normal operations, thereby reducing cache churn and maintaining high system performance
Data Source
AI summary
According to some embodiment, a storage system selects one or more directories within a file system as candidates for caching based on directory statistics associated with the directories, where each of the directories includes one or more file objects stored in the storage system. For each of the selected directories, the system determines whether the directory is to be cached based on a directory cache policy. The system caches the directory in a cache memory device in response to determining that the directory is to be cached.


