Disk Controller Cache Management for Shingled Magnetic Recording

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In disk drives, the accumulation of metadata due to force unit access write commands leads to significant space usage, which could be allocated for valid data storage, especially in shingled magnetic recording systems where metadata is written alongside data, causing inefficiency.

Innovation Solution

Implementing a controller that manages force unit access write data and metadata by writing them to specific shingled zones closest to the head, maintaining data in cache until full, and then flushing to different locations, while updating valid data counters to optimize space usage and enable garbage collection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If force unit access write commands are executed and metadata is written to the disk, then data integrity and accessibility are improved, but disk space for valid data storage is reduced

Engineering Contradiction:
Improvedata integrityVSAvoiddisk space for valid data
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The disk is divided into multiple zones with different metadata management strategies. Some zones write metadata for each force unit access write, while others use caching and only write metadata periodically or when cache is full, segmenting the disk to balance data integrity with space efficiency

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Metadata is cached in memory before being written to the disk. The controller performs preliminary actions by storing metadata in cache alongside data, and only flushes to disk when cache is full or under specific conditions, preventing premature metadata writes that would consume disk space

Inventive Principle:
Principle #10Preliminary action

2Ease of operation

If metadata is written to the disk with each force unit access write, then data tracking and management are improved, but the frequency of garbage collection operations increases

Engineering Contradiction:
Improvedata trackingVSAvoidgarbage collection frequency
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

The controller maintains a cache of metadata in memory, performing preliminary tracking and management operations without immediately writing to disk. This reduces the frequency of disk I/O operations and garbage collection cycles while maintaining accurate data tracking through in-memory structures

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

A metadata cache acts as an intermediary between the force unit access write commands and the physical disk storage. This intermediary layer tracks data locations and manages metadata writes, reducing the direct impact on disk space and garbage collection frequency

Inventive Principle:
Principle #24Intermediary (Mediator)

3Loss of information

If metadata is accumulated on the disk, then comprehensive data tracking is achieved, but storage capacity for valid data is reduced

Engineering Contradiction:
Improvedata tracking completenessVSAvoidstorage capacity
Core Design Contradiction:
Loss of informationVSQuantity of substance

Solution Approach 1:

The system performs preliminary metadata tracking in cache memory before writing to disk. By maintaining in-memory metadata structures, the system achieves comprehensive data tracking without immediately consuming disk space, only writing metadata to disk when necessary (cache full, zone-specific policies, or periodic flushes)

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent moves metadata management from a single-dimension disk-based approach to a two-dimensional approach combining in-memory caching with selective disk writing. This dimensional change allows comprehensive tracking in fast memory while reducing disk space consumption through selective persistence

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Applied Scientific Principles

This section explains which scientific principles are used to turn an abstract innovation direction into a practical engineering solution.

Function Achieved in This Case

This approach conserves space on the disk by efficiently managing metadata and valid data, reducing the need for frequent garbage collection and enhancing storage capacity.

Implementation Method 1

A disk drive comprises a rotating magnetic disk and a head actuated over the disk to magnetically write data to and read data from the disk

Methodology Applied
Scientific EffectMagnetic field: Magnetic Field

Data Source

PatentUS8990493B1Method and apparatus for performing force unit access writes on a disk
Publication Date: 2015.03.24 WESTERN DIGITAL TECHNOLOGIES INC
  • US8990493B1 patent drawing
  • US8990493B1 patent drawing
  • US8990493B1 patent drawing

AI summary

A disk drive comprising a rotatable disk, a head actuated over the disk, and a controller is disclosed. The controller is configured to write a first force unit access write data to the cache as part of the cache data, write the first force unit access write data and a first metadata corresponding to the first force unit access write data to the first location by using the head, transmit a first write complete status to a host, and maintain the first force unit access write data in the cache as part of the cache data. The controller is also configured to store write data as part of the cache data. Furthermore, the controller is configured to write the cache data to a third location, and a metadata corresponding to the cache data to the disk.