Disk Logging Method Using Dynamic Batch Sizing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing disk logging methods face challenges in achieving high throughput and low latency for small data payloads due to mismatches between fine-grained logging and modern file systems, high per-operation overheads, and inefficient use of disk resources, particularly with hard disk drives being considered unsuitable for logging due to slow performance and high costs of alternative solutions like SSDs.

Innovation Solution

A disk logging method that dynamically adjusts batch sizes and uses a traditional hard disk drive to aggregate logging operation requests, optimizing the disk write pipeline by continuously submitting write requests with consecutive target addresses, thereby keeping the disk fully occupied and minimizing latency and maximizing throughput, without requiring detailed knowledge of disk geometry.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a flash based memory such as NVRAM is used for logging disk, then reliability is improved, but cost increases

Engineering Contradiction:
Improvelogging reliabilityVSAvoidcost
Core Design Contradiction:
ReliabilityVSEase of manufacture

Solution Approach 1:

The patent uses HDDs as logging disks, which are cheaper than SSDs/NVRAM, accepting that they are not permanent but sufficient for the temporary logging function. The logging disk is intentionally designed as a disposable component that can be easily replaced or reformatted, eliminating the need for expensive durable storage solutions.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

2Ease of manufacture

If an HDD is used for logging disk, then cost is reduced, but speed deteriorates

Engineering Contradiction:
ImprovecostVSAvoidlogging speed
Core Design Contradiction:
Ease of manufactureVSSpeed

Solution Approach 1:

The system pre-allocates and pre-writes to the logging disk in a controlled manner, preparing the disk surface in advance to minimize seek times during actual logging operations. The disk is formatted and initialized beforehand with optimal parameters for logging workloads.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent changes the operational parameters of the HDD by adjusting batch sizes, write ordering, and disk queue management to optimize for logging workloads rather than general-purpose storage. The system modifies how the disk is accessed and controlled to extract maximum performance from the mechanical drive.

Inventive Principle:
Principle #35Parameter changes

3Productivity

If fine-grained logging operations are performed, then productivity is improved, but device complexity increases

Engineering Contradiction:
Improvelogging throughputVSAvoidfile system complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent extracts the logging function from the complex file system layer and implements it as a dedicated subsystem with its own simplified queue management and write handling. The logging disk operates independently from the main file system, eliminating the need for complex file system operations and metadata management.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The system segments the logging operations into separate queues and processing stages, isolating the logging function from general file system operations. This segmentation allows fine-grained logging to be handled efficiently without the overhead of conventional file system processing.

Inventive Principle:
Principle #1Segmentation

4Adaptability or versatility

If multiple processing steps are added to the data path, then adaptability is improved, but loss of time increases

Engineering Contradiction:
Improvelogging flexibilityVSAvoidlogging latency
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent implements continuous writing to the logging disk without interruption, maintaining a steady stream of data writes that keeps the disk busy and eliminates idle time. The system continuously submits write requests to maintain optimal disk utilization and minimize latency.

Inventive Principle:
Principle #20Continuity of useful action

Solution Approach 2:

The system uses periodic flushing and batched writing operations to manage the data path efficiently, organizing writes into regular cycles that minimize processing steps while maintaining flexibility. The periodic nature of the operations allows for optimized timing and reduced overhead.

Inventive Principle:
Principle #19Periodic action

Data Source

PatentUS9176820B2Disk logging method applicable to storage medium and electronic device, storage medium using the same and electronic device using the same
Publication Date: 2015.11.03 IND TECH RES INST
  • US9176820B2 patent drawing
  • US9176820B2 patent drawing
  • US9176820B2 patent drawing

AI summary

The present disclosure proposes a disk logging method configured for an electronic device comprising a temporary non-volatile storage medium to log data from a volatile memory to said first storage medium, and the method includes the elements of aggregating data from applications of the electronic device in a queue, transferring the aggregated data to a per device queue targeted toward a native queue of the storage medium, writing the data stored in the native queue of the storage medium into a disk platter of the storage medium, and transmitting an interrupt in response to the completion of the writing of the data to the disk platter, wherein the first batch size is dynamically adjusted such that the step of writing the data to the platter takes more time than the step of transferring the data from the per device queue to the native queue of the storage medium.