Time synchronization method and system for multi-core system

一种时间同步系统、时间同步的技术,应用在多核处理器领域,能够解决时钟中断丢失、系统时钟tick偏差、tick偏差等问题,达到提高可靠性和稳定性、均衡处理负载、避免处理延时的效果

Active Publication Date: 2009-02-04
ZTE CORP
View PDF0 Cites 49 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When a multi-core system runs multiple embedded operating systems, for example, each core independently runs embedded operating systems such as vxWorks and Linux, such as figure 1 As shown, each core 10 in the multi-core system 20 independently completes the system clock counting function through the clock interrupt 30. Due to reasons such as unbalanced running load of each core, the system clock tick of the embedded operating system running on each core cannot be kept in sync. , on the contrary, as the system running time increases, the system clock ticks of different cores will have a large deviation. Since the upper layer software timer is generally designed based on the system clock tick, this deviation will seriously affect the different cores when the deviation reaches a certain level. Accuracy and synchronization of upper layer application software timers
For example, assuming that each clock interrupt tick of the operating system is 10ms, if the operating system on multiple cores also sets a timer with a duration of 10,000 ticks, the clock interrupt on the core will be lost due to unbalanced load of a certain core, resulting in tick produces deviation
When the cumulative deviation of the clock ticks of different cores reaches 5 ticks or 50ms, this is intolerable in some time-sensitive applications

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
  • Time synchronization method and system for multi-core system
  • Time synchronization method and system for multi-core system
  • Time synchronization method and system for multi-core system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The present invention will be described in detail below with reference to the accompanying drawings and in combination with specific embodiments.

[0039] For specific embodiments of the present invention see Figure 2 to Figure 5 ,Such as figure 2 As shown, the time synchronization method of the specific embodiment of the present invention mainly includes the following steps:

[0040] S10. First divide the clock synchronization domains, and uniquely divide each core into each clock synchronization domain;

[0041] S11. Determine the master clock synchronization domain and the slave clock synchronization domain, and send a registration message to the master clock synchronization domain from the clock synchronization domain;

[0042] S12. Construct all clock synchronization domains into a ring network, and regularly monitor clock deviations of other clock synchronization domains by the master clock synchronization device in the master clock synchronization domain;

...

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 invention discloses a multi-core system time synchronization method and a system thereof; the time synchronization method comprises the following steps: A, establishing at least a clock synchronization domain, and distributing the cores respectively into each lock synchronization domain; B, selecting the core with the minimum load as the master clock synchronization source in each clock synchronous domain, and taking the clock synchronization domain having the master clock synchronization source with the minimum load among all the master clock synchronization sources as the master clock synchronization domain, and taking the other clock synchronization domains as the slave clock synchronization domains; C, after the master clock synchronization domain sends synchronization error detection information to each slave clock synchronization domain, calculating the time deviation value between each slave clock synchronization domain and the master clock synchronization domain; D, when the time deviation value is greater than the permitted deviation value, the master clock synchronization domain calculates the time adjustment quantity of each slave clock synchronization domain and releases the time adjustment quantity to each slave clock synchronization domain, then each slave clock synchronization domain makes adjustment based on the corresponding time adjustment quantity. The invention effectively solves the time synchronization problem of the multi-core system.

Description

technical field [0001] The invention relates to the field of multi-core processors, in particular to a time synchronization method and system for a multi-core system. Background technique [0002] In a single-core embedded processor system, usually only a single embedded operating system can be run, and during system operation, the most critical system clock interrupt is through converting the time interval of the scheduled interrupt into a specific value. When the time interval value is high, submit the timing interrupt to the kernel and the processor will automatically reload the counter to complete it; considering that the interval of the timing interrupt should not be too frequent, the system usually sets the interval of the system timing interrupt to 10ms ~ 100ms, and each time it occurs When the clock is interrupted, the system enters the timing interrupt service program, accumulates the ticks of the system (clock tick, which is the relative time unit of the system, co...

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 Applications(China)
IPC IPC(8): G06F1/12G06F9/50
CPCG06F1/14
Inventor 赵阳肖理
Owner ZTE CORP
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