Method and device for adjusting clock interrupt cycle

A clock interrupt and clock cycle technology, applied in the field of system management, can solve the problems of reducing system response time, affecting process scheduling speed, wasting hardware resources, etc., to improve processing efficiency, reduce clock interrupt overhead, and improve response speed.

Active Publication Date: 2013-02-27
HUAWEI TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Even if the tickless function of the dynamic clock mode is enabled in the system, when the processor enters the idle state, the system will change the clock interrupt period to infinity or a value large enough to stop the processor's clock interrupt, but when processing When the processor is in a non-idle running state, the processor still processes processes at a fixed clock interrupt cycle
[0004] The fixed clock interrupt period in the running state lacks flexibility, which may cause a series of problems such as affecting the scheduling speed of the process, reducing the response time of the system, or wasting hardware resources, which further affects the processing efficiency of the system.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for adjusting clock interrupt cycle
  • Method and device for adjusting clock interrupt cycle
  • Method and device for adjusting clock interrupt cycle

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The following will clearly and completely describe the technical solutions of the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.

[0017] First, combine figure 1 A method 100 for adjusting a clock interruption period according to an embodiment of the present invention is described.

[0018] Such as figure 1 As shown, the method 100 includes: In S110, determining the number of processes in the running queue of the processor; The used clock interrupt period, which determines the clock interrupt period that the processor needs to use in the running state.

[0019] The processor can place pe...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

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.

Description

technical field [0001] The invention relates to the field of system management, more specifically, to a method and a device for adjusting a clock interruption period in the field of system management. Background technique [0002] The clock interrupt is the driver of the operating system, which is related to the processing and scheduling of different tasks. The system uses clock interrupts to perform load statistics, process time statistics, and prompt process switching. A higher clock tick rate, that is, a smaller clock interruption period, can enable the process to be scheduled in a timely manner, making the system have better interactivity and response speed. However, when the clock tick rate is increased, the kernel overhead is increased, which affects the performance of the operating system, and may prevent some processes with a large amount of calculation from being processed in time. Therefore, it is very important to choose an appropriate clock tick rate for the op...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/48
CPCG06F1/08G06F13/24G06F9/4825G06F1/04
Inventor 叶炎钟
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products