Dynamic Clock Interrupt Period Adjustment for Process Scheduling

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The fixed period of clock interruption in operating systems leads to inefficiencies in process scheduling, increased system overhead, and reduced response times due to lack of flexibility, especially when handling varying numbers of processes.

Innovation Solution

A method and apparatus that dynamically adjust the period of clock interruption based on the number of processes in the run-queue, using different periods when the number of processes exceeds or is below a reference threshold to optimize scheduling speed and reduce overhead.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If the clock pulse rate is increased to enable timely scheduling of processes, then the response speed and interaction of the system is improved, but the core overhead increases to impair the performance of the system

Engineering Contradiction:
Improveresponse speedVSAvoidcore overhead
Core Design Contradiction:
SpeedVSLoss of energy

Solution Approach 1:

The patent implements dynamic adjustment of the clock interrupt period based on the number of processes in the run-queue. When the run-queue length exceeds a threshold, the system switches to a shorter interrupt period (higher clock rate) to improve scheduling responsiveness. When the run-queue is short, the system uses a longer interrupt period (lower clock rate) to reduce core overhead. This dynamic adaptation resolves the contradiction by making the clock rate flexible rather than fixed.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes the parameter of clock interrupt period based on system state (run-queue length). By monitoring the number of processes and adjusting the interrupt period parameter accordingly, the system optimizes the balance between response speed and core overhead, avoiding the permanent trade-off of a fixed clock rate.

Inventive Principle:
Principle #35Parameter changes

2Device complexity

If a fixed period of clock interruption is used in the run state, then the system operation is simplified, but the processing efficiency is degraded due to lack of flexibility

Engineering Contradiction:
Improvesystem operation complexityVSAvoidprocessing efficiency
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The patent introduces dynamic adjustment of the clock interrupt period while maintaining a relatively simple implementation. The system monitors the run-queue length and adjusts the interrupt period between two predefined values, avoiding complex algorithms while still achieving adaptive optimization of processing efficiency.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentEP2551767B1Method and device for adjusting clock interrupt cycle
Publication Date: 2017.04.05 HUAWEI TECH CO LTD
  • EP2551767B1 patent drawing
  • EP2551767B1 patent drawing
  • EP2551767B1 patent drawing

AI summary

The present invention relates to a method and an apparatus for adjusting a period of clock interruption. The method comprises: determining a number of processes in a run-queue of a processor; and determining the period of clock interruption for use in a run state of the processor such that the period of clock interruption for use when the number of the processes is greater than a reference threshold is less than the period of clock interruption for use when the number of the processes is not greater than the reference threshold. The apparatus comprises a first determination block and a second determination block. With the method and apparatus according to the embodiment of the invention, it is possible to dynamically adjust the period of clock interruption such that the period of clock interruption for use in the run state of the processor can be changed according to needs with flexibility. When a shorter period of clock interruption is used for a relatively large number of processes, it is possible to increase the response speed. When a longer period of clock interruption is used for a relatively small number of processes, it is possible to reduce overhead and enable sufficient execution of processes. As a result, the processing efficiency of the system can be improved.