Reinforcement Learning for Optimal File Copy Thread Count

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Determining the optimal number of threads for file copying operations is challenging due to varying file sizes and types, as well as system parameters, leading to inefficient file copy times.

Innovation Solution

Employing a temporal difference learning, reinforcement learning approach, specifically using Q-learning, to determine the optimal number of threads for different file types and sizes, and fitting a continuous function to predict the optimal thread count for any file size, with periodic updates based on storage device utilization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If the number of threads is increased for file copying, then copying speed is improved, but system resource utilization becomes inefficient and copy time increases

Engineering Contradiction:
Improvefile copying speedVSAvoidsystem resource utilization efficiency
Core Design Contradiction:
SpeedVSProductivity

Solution Approach 1:

The patent dynamically adjusts the number of threads parameter based on file characteristics (size, type) and system conditions, rather than using a fixed or uniformly high thread count. This allows the system to optimize copying speed for each specific scenario while avoiding resource waste, directly resolving the contradiction between speed and efficiency.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The system transitions from static thread allocation to dynamic thread management by continuously learning from past copying operations and adapting thread counts to current file and system conditions. This dynamic adjustment ensures optimal performance across varying workloads without consistent resource overhead.

Inventive Principle:
Principle #15Dynamics

2Productivity

If a fixed thread count is used for file copying, then system complexity is reduced, but copying efficiency varies and suboptimal performance occurs

Engineering Contradiction:
Improvefile copying efficiencyVSAvoidthread management complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The system implements self-service through automated machine learning models that independently determine optimal thread counts based on learned patterns from historical data and current conditions. This eliminates the need for manual configuration or complex user-facing controls, maintaining simplicity while achieving high efficiency.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent incorporates feedback mechanisms where the system monitors copying performance and uses this information to continuously refine its thread allocation decisions through learning algorithms. This feedback loop enables the system to adapt to changing conditions automatically, improving efficiency without requiring complex manual intervention.

Inventive Principle:
Principle #23Feedback

3Measurement precision

If thread count is optimized for specific file types and sizes, then copying precision is improved, but adaptability to new file types decreases

Engineering Contradiction:
Improveoptimal thread determination accuracyVSAvoidadaptability to new file types
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The system performs preliminary learning and analysis during idle periods or initial operations to build knowledge bases for various file types and sizes. This preliminary action enables the system to quickly determine optimal thread counts for new file types without extensive real-time computation, maintaining both precision and adaptability.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent employs universal learning algorithms and models that can handle multiple file types and sizes through a unified framework. Rather than creating separate optimization rules for each file type, the system uses generalizable machine learning models that adapt to new file types while maintaining accuracy for known types.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS12153544B2Temporal difference learning, reinforcement learning approach to determine optimal number of threads to use for file copying
Publication Date: 2024.11.26 MICRO FOCUS LLC
  • US12153544B2 patent drawing
  • US12153544B2 patent drawing
  • US12153544B2 patent drawing

AI summary

For a given file type, an optimal number of threads to use to copy files of each of a number of different discrete file sizes is determined, using a temporal difference learning, reinforcement learning approach in which file copy time is used as feedback reward reinforcement. A continuous function corresponding to the given file type and outputting the number of threads to use to copy files having this given file type and that are of any input file size is fitted onto the optimal numbers of threads determined for the discrete file sizes.