Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for adjusting clock interrupt cycle

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

Active Publication Date: 2011-06-01
HUAWEI TECH CO LTD
View PDF3 Cites 14 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 technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present invention.

[0017] First, combine figure 1 A method 100 for adjusting the period of clock interruption 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 run queue of the processor; in S120, based on the clock interruption period that needs to be used when the number of processes is greater than a reference threshold is less than that needed w...

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 embodiment of the invention provides a method and device for adjusting a clock interrupt cycle. The method comprises the following steps of: determining the number of processes in a running queue of a processor; and determining the clock interrupt cycle required to be used in the running status of the processor on the basis of the fact that a clock interrupt cycle required to be used when thenumber of processes is greater than a reference threshold is smaller than a clock interrupt cycle required to be used when the number of processes is not greater than the reference threshold. The device comprises a first determination module and a second determination module. By adopting the method and the device provided by the embodiment of the invention, the clock interrupt cycle can be adjusted dynamically, so that the clock interrupt cycle used in the running status of the processor is flexible, and different clock interrupt cycles can be used as required. Moreover, the response speed can be increased by using a smaller clock interrupt cycle when the number of processes is great, and the expense can be reduced and the processes can be fully executed by using a greater clock interruptcycle when the number of processes is small. Thus, the processing efficiency of the system can be increased.

Description

Technical field [0001] The present invention relates to the field of system management, and more specifically, to a method and device for adjusting the period of clock interruption in the field of system management. Background technique [0002] The clock interrupt is the driving force of the operating system and 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 time, so that the system has better interactivity and response speed. However, as the clock tick rate increases, the overhead of the kernel increases, which affects the performance of the operating system, and may make some computationally intensive processes not processed in time. Therefore, it is very important to choose an appropriate clock tick rate for the operating system. ...

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
IPC IPC(8): G06F9/48
CPCG06F1/04G06F9/4825G06F13/24G06F1/08
Inventor 叶炎钟
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products