Advanced-Trim Command for SSD Database Data Structure Management

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Solid state drives (SSDs) experience performance deterioration due to inefficient data block management when deleting data structures within databases, leading to inefficiencies in available capacity and data writing speed, as existing trim commands do not effectively invalidate cells storing deleted data structures.

Innovation Solution

A computer device and storage system that includes a file modification detector and a command generator to detect and transmit advanced-trim commands to invalidate cells storing deleted data structures, improving SSD performance by specifically managing data structure deletions within database files.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If the storage device uses traditional trim commands to invalidate cells after file deletion, then the basic trim function is achieved, but deleted data structures within database files cannot be effectively managed, leading to capacity and performance inefficiency

Engineering Contradiction:
Improvewriting speedVSAvoiddata structure management complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the data management approach by introducing advanced-trim commands that specifically target deleted data structures (tables, rows, fields) within database files, rather than treating the entire file as a unit. This segmentation allows the storage device to invalidate only the affected cells, improving writing speed by reducing the amount of data that needs to be managed and rewritten.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary mechanism (the advanced-trim command system with file modification detectors) that mediates between the database engine and the storage device. This intermediary detects data structure deletions and translates them into appropriate invalidation commands, resolving the complexity of tracking deleted structures while maintaining efficient storage management.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If the storage device erases blocks before new data is written, then data integrity is maintained, but write performance deteriorates due to the erase operation

Engineering Contradiction:
Improvedata integrityVSAvoidwrite speed
Core Design Contradiction:
ReliabilityVSSpeed

Solution Approach 1:

The patent applies preliminary action by invalidating cells corresponding to deleted data structures before new data is written to those blocks. The advanced-trim commands proactively mark cells as invalid, allowing the storage device to perform garbage collection and erase operations only when necessary, rather than before every write operation. This maintains data integrity while improving write performance.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements discarding and recovering by selectively invalidating and erasing only the cells corresponding to deleted data structures, rather than erasing entire blocks. The storage device recovers usable capacity by identifying and discarding invalid cells, making them available for new data without requiring full block erasures, thus maintaining integrity while enhancing write speed.

Inventive Principle:
Principle #34Discarding and recovering

3Productivity

If the storage device flags blocks as not in use instead of erasing them, then write operations can proceed, but available capacity is reduced due to inability to erase blocks

Engineering Contradiction:
Improvewriting speedVSAvoidavailable capacity
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent changes the parameter of block management by introducing fine-grained invalidation at the cell level within blocks. Instead of uniformly flagging entire blocks as not in use, the advanced-trim system tracks and invalidates only the specific cells containing deleted data structures. This parameter change allows the storage device to maintain blocks as available while removing only the necessary invalid data, thereby preserving available capacity while enabling continuous writing operations.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS10089348B2Computer device and storage device
Publication Date: 2018.10.02 SAMSUNG ELECTRONICS CO LTD
  • US10089348B2 patent drawing
  • US10089348B2 patent drawing
  • US10089348B2 patent drawing

AI summary

A computer device for controlling a storage device based on non-volatile memory is provided. The computer device includes a file modification detector configured to detect whether a data structure in a database file has been deleted using an identifier recorded in the database file to indicate whether the data structure is deleted or not; and a command generator configured to generate an advanced-trim command including information corresponding to the deleted data structure and to transmit the command to the storage device.