Flash Memory LBA Remapping for Defragmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional flash memory systems suffer from fragmentation, leading to degraded performance and the need for frequent and resource-intensive disk defragmentation, which can cause flash wear and is often avoided due to time and resource constraints.

Innovation Solution

Implementing a storage device-level remapping of logical block addresses (LBAs) to reorganize file storage without changing the physical location of data, allowing for efficient defragmentation that reduces resource usage and minimizes flash wear.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If conventional flash memory systems use fixed logical groups mapped to physical blocks, then data storage is simple and direct, but fragmentation occurs leading to degraded performance and frequent defragmentation needs

Engineering Contradiction:
Improvedefragmentation efficiencyVSAvoidperformance stability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent divides the logical address space into individual file-specific mappings rather than fixed logical groups. Each file's logical block addresses are independently remapped to sequential physical blocks, allowing defragmentation of individual files without affecting others. This segmentation enables efficient defragmentation while maintaining performance stability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic remapping of logical block addresses where the mapping relationship between logical and physical addresses can change over time. The system dynamically adjusts the LBA-to-physical-block mappings based on fragmentation detection, enabling the storage system to adapt to changing data patterns and maintain optimal performance without fixed mappings.

Inventive Principle:
Principle #15Dynamics

2Stability of the object's composition

If host-level disk defragmentation is performed to address fragmentation, then file sequentiality is improved, but significant time and resources are consumed and flash wear increases

Engineering Contradiction:
Improvefile sequentialityVSAvoiddefragmentation time
Core Design Contradiction:
Stability of the object's compositionVSLoss of time

Solution Approach 1:

The patent introduces an intermediary mapping layer between the host's logical address space and the physical flash memory blocks. The memory controller acts as a mediator that translates host logical block addresses to optimized physical block addresses, enabling defragmentation without host involvement. This intermediary layer maintains file sequentiality while avoiding the time and resource costs of host-level defragmentation operations.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The memory system performs defragmentation autonomously without requiring host intervention. The controller detects fragmentation and automatically remaps logical block addresses to achieve sequential file storage, eliminating the need for host-level defragmentation software and reducing both time loss and flash wear associated with host-performed operations.

Inventive Principle:
Principle #25Self-service

3Productivity

If frequent defragmentation is performed to maintain performance, then file access efficiency is improved, but flash wear out accelerates

Engineering Contradiction:
Improvefile access efficiencyVSAvoidflash lifespan
Core Design Contradiction:
ProductivityVSDuration of action of stationary object

Solution Approach 1:

The patent creates and maintains a copy of the mapping information in the form of a translation layer between logical and physical addresses. This mapping copy allows the system to track and remap file locations without physically moving data frequently. By copying the address translation information rather than repeatedly moving physical data, the system maintains file access efficiency while minimizing flash wear from write operations.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS9021187B2Logical block address remapping
Publication Date: 2015.04.28 SANDISK TECHNOLOGIES LLC
  • US9021187B2 patent drawing
  • US9021187B2 patent drawing
  • US9021187B2 patent drawing

AI summary

A method and system is disclosed that remaps logical block addresses (LBAs) for defragmentation that is managed at the storage device level. The remapping may include sequentially remapping LBAs where individual files are remapped so that each file is referenced by sequential LBAs. The remapping of LBAs may be performed without changes to the physical location of data.