Write-Back Cache Aware Snapshot Creation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Combining snapshot and caching technologies can result in point-in-time inconsistent data, leading to unusable backups due to caching solutions like write-back caching, which store writes in cache memory instead of the storage device, causing data inconsistencies that snapshot solutions may overlook.
Innovation Solution
Implement a method to monitor writes stored in cache memory and ensure they are included in snapshots by tracking and flushing these writes to the backing store, allowing for write-back-cache aware snapshot creation that maintains data consistency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If write-back caching is implemented to improve storage system performance, then storage system performance is improved, but data consistency is worsened (point-in-time inconsistent data)
Solution Approach 1:
The patent introduces a cache abstraction layer as an intermediary between the cache and the snapshot solution. This layer monitors writes stored in cache memory and coordinates with the snapshot creation process to ensure cached writes are included in snapshots, thereby maintaining data consistency while preserving the performance benefits of write-back caching
Solution Approach 2:
The cache abstraction layer implements feedback mechanisms by monitoring which writes are stored in cache and providing this information to the snapshot creation process. This feedback loop ensures that snapshots include all relevant writes, including those temporarily stored in cache, thus resolving the data consistency issue
2Loss of time
If snapshot creation is performed without cache awareness, then snapshot creation speed is improved, but snapshot data accuracy is worsened (point-in-time inconsistent snapshots)
Solution Approach 1:
The cache abstraction layer performs preliminary actions by pre-monitoring and tracking writes to cache memory before snapshot creation is requested. This allows the snapshot solution to quickly retrieve the list of cached writes and include them in the snapshot without delaying the snapshot creation process, thus maintaining both speed and accuracy
Data Source
AI summary
A computer-implemented method for enabling write-back-cache aware snapshot creation may include (1) identifying a cache that implements write-back caching to selectively store at least one write to a backing store, (2) receiving, while the write is stored within the cache, a request to create a snapshot of the backing store, and (3) creating, in response to the request, the snapshot of the backing store by (a) determining that the write is stored within the cache and (b) tracking, in response to the determination, the write stored within the cache to ensure that the write is included in the snapshot of the backing store. Various other methods, systems, and computer-readable media are also disclosed.


