Dynamic Priority Threshold for Workload Processing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing technologies face challenges in efficiently utilizing processor resources for high-priority workloads under heavy loads, leading to suboptimal processing efficiency and delayed processing of high-priority tasks.
Innovation Solution
A method that dynamically adjusts a priority threshold based on queue data and processor resource usage, allowing high-priority workloads to be processed with the processor while low-priority workloads are processed without using the processor, thereby optimizing resource allocation.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If processor resources are used to process all workloads, then processing speed is improved, but processor resource exhaustion occurs under heavy loads
Solution Approach 1:
The patent applies local quality by differentiating processing modes based on workload priority. High-priority workloads receive processor-based processing while low-priority workloads use non-processor paths, creating localized quality differences in resource allocation that resolve the contradiction between processing speed and resource availability
Solution Approach 2:
The patent implements dynamics by dynamically adjusting the priority threshold based on current processor resource usage and queue conditions. The system transitions from static to dynamic resource allocation, allowing the processing strategy to adapt in real-time to changing system states, thereby maintaining processing speed while preventing resource exhaustion
2Productivity
If high-priority workloads are processed first, then processing efficiency for critical tasks is improved, but low-priority workloads experience delays
Solution Approach 1:
The patent introduces a priority threshold as an intermediary mechanism that mediates between high-priority and low-priority workloads. By using PMEM and task queues as intermediary structures, the system can defer low-priority workloads without complete processor dependency, reducing their waiting time while maintaining high-priority processing efficiency
Solution Approach 2:
The patent segments the workload processing into two distinct paths: processor-based processing for high-priority workloads and non-processor-based processing for low-priority workloads. This segmentation allows critical tasks to be handled efficiently while low-priority tasks are managed separately, reducing their impact on overall system productivity
3Speed
If processor is used for every workload access, then data access speed is improved, but processor becomes a performance bottleneck
Solution Approach 1:
The patent extracts the processor dependency from the data access path by implementing a dual-mode processing architecture. Low-priority workloads are taken out of the processor-dependent path and handled through alternative mechanisms, eliminating the performance bottleneck while maintaining fast access for high-priority workloads that require processor intervention
Data Source
AI summary
Embodiments of the present disclosure relate to a method, an electronic device, and a computer program product for processing workloads. The method includes determining a priority threshold for a task queue based on queue data of the task queue. The method further includes acquiring a priority of a workload at the queue head of the task queue. The method further includes processing the workload by using a processor in response to the priority being greater than the priority threshold. In addition, the method further includes processing the workload without using the processor in response to the priority being less than or equal to the priority threshold. Through the solution in the embodiments of the present disclosure, the priority threshold can be dynamically adjusted to prioritize high-priority loads by utilizing the processor when processor resources are insufficient, thereby ensuring that the high-priority workloads are prioritized for processing.


