Inode Cache Replacement Policy Using Longevity Counters

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional inode caches utilize suboptimal replacement policies, leading to performance degradation and potential harm to system performance, especially when memory is limited and inodes need to be repurposed.

Innovation Solution

Implementing an in-memory inode cache with a prioritization module that increases retention priority for inodes based on longevity criteria, such as being free and frequently accessed, and decreases priority for inodes unlikely to be reused, using longevity counters to determine the replacement policy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If LRU replacement policy is used in inode cache, then implementation is simple, but cache hit rate is suboptimal and system performance may be harmed

Engineering Contradiction:
Improvereplacement policy implementationVSAvoidsystem performance
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The patent changes the parameter used for inode replacement from simple recency (LRU) to a composite priority value that incorporates both recency and frequency of access. This parameter transformation allows the system to achieve better cache hit rates while maintaining reasonable implementation complexity, directly resolving the contradiction between simplicity and performance.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent implements a feedback mechanism where inode access patterns are monitored and used to dynamically adjust replacement priorities. The system tracks both recent and historical access patterns, feeding this information back into the replacement decision process to optimize cache performance based on actual usage behavior rather than following a fixed LRU policy.

Inventive Principle:
Principle #23Feedback

2Productivity

If inode cache stores more inodes, then cache hit rate improves, but memory usage increases and may exceed available memory

Engineering Contradiction:
Improvecache hit rateVSAvoidmemory usage
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent transforms the cache management approach by changing from a size-based or simple LRU-based eviction policy to a priority-based policy. Inodes are assigned priority values based on their access patterns, allowing the cache to retain high-value inodes longer while evicting low-priority inodes first. This enables better cache hit rates within the same memory constraints.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent introduces dynamic priority adjustment for inodes based on their access behavior. Rather than static cache management, the system continuously adapts inode priorities based on observed access patterns, allowing the cache to dynamically optimize its contents to maximize hit rates while maintaining efficient memory utilization.

Inventive Principle:
Principle #15Dynamics

3Ease of operation

If LRU policy repurposes least-recently accessed inode, then implementation is straightforward, but frequently accessed inodes may be evicted causing performance degradation

Engineering Contradiction:
Improvereplacement policy operationVSAvoidfile access performance
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

The patent changes the replacement criterion from purely recency-based (LRU) to a composite priority metric that incorporates both recency and frequency of access. This parameter change ensures that frequently accessed inodes maintain high priority and are protected from eviction, while still providing a straightforward replacement mechanism that operates automatically without complex manual intervention.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS8510510B1File cache optimization using element prioritization
Publication Date: 2013.08.13 ARCTERA US LLC
  • US8510510B1 patent drawing
  • US8510510B1 patent drawing
  • US8510510B1 patent drawing

AI summary

A medium, system, and method are disclosed for implementing an in-memory inode cache. The cache stores inodes that include respective file metadata. The system includes a replacement module that prioritizes the inodes for replacement according to retention priorities for the inodes. The system also includes a prioritization module that is configured to increase the retention priority of a given inode in the cache in response to detecting a cache hit on the given inode and that the given inode meets one or more longevity criteria.