Real-Time Task Load Measurement Using Free-Running Counter

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing real-time computing systems lack the capability to measure task loads in real-time, making it impossible to use this information as an input for other applications, such as adjusting MIDI voice processing, due to non-real-time data capture methods.

Innovation Solution

The method involves determining task execution cycles by reading count values from a free-running counter before and after a task executes, calculating the difference, and accumulating these differences over a configurable reference interval to compute task load, which is then used to schedule future tasks effectively.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If task execution data is captured using a logic analyzer, then task load information can be obtained, but the measurement is not real-time and cannot be used as input for other applications

Engineering Contradiction:
Improvetask load measurementVSAvoidreal-time measurement speed
Core Design Contradiction:
Measurement precisionVSSpeed

Solution Approach 1:

The patent introduces a counter as an intermediary device that continuously tracks task execution cycles. The counter serves as a mediator between the task execution process and the measurement system, providing real-time cycle count data without requiring external logic analyzers. This intermediary mechanism enables both precise measurement and real-time availability of task load information.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system performs self-measurement by having the task itself update a counter during execution. The task increments the counter for each cycle it executes, making the measurement process self-contained and eliminating the need for external observation tools. This self-service approach ensures both accuracy and real-time availability of task load data.

Inventive Principle:
Principle #25Self-service

2Manufacturing precision

If the number of MIDI voices processed is increased to improve audio quality, then audio processing quality improves, but system task load increases and may cause timing violations

Engineering Contradiction:
Improveaudio processing qualityVSAvoidsystem task load
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The patent implements a feedback mechanism where the measured task load from the counter is used to dynamically adjust the number of MIDI voices processed in the next audio frame. The system continuously monitors current task load, compares it against thresholds, and adjusts processing parameters accordingly. This closed-loop feedback enables the system to maintain high audio quality when resources are available while preventing timing violations when task load is high.

Inventive Principle:
Principle #23Feedback

Data Source

PatentEP2313827B1Method and system for measuring task load
Publication Date: 2019.07.24 QUALCOMM INC
  • EP2313827B1 patent drawingFigure 1
  • EP2313827B1 patent drawingFigure 2
  • EP2313827B1 patent drawingFigure 3

AI summary

A method for determining the task load in real-time. The method takes a difference in real-time between a first count value from a free running counter prior to a task executing, and a second count value after the task stops running. The task load may then be determined by using an accumulator to accumulate the difference between the first count value and the second count value over a reference interval and dividing the sum by a configurable reference interval. The individual task load computed in realtime may be used in scheduling an audio task.