Skip to contentSkip to conversation

Why not distribute timer handlers on CPUs on SMP

DISCUSSION bhs 1 participant 2 messages Oct 6, 2010

lore
Share & tools
lore

bhs

author
#0 lore raw

Hello,

I am just curious about why handle the timer functions on a CPU serially but not distribute them over CPUs even on a SMP system?

The timer wheel handler function __run_timers() serializes the timer functions on a CPU, is there any design consideration that handling timers on a CPU is more reasonable than distribute them over CPUs?

Best regards
Shan Hai

author
#1 lore raw
Quoted 5 lines · bhs

Hello,

I am just curious about why handle the timer functions on a CPU serially but not distribute them over CPUs even on a SMP system?

Yea, it already distributed over CPUs at calling add_timer(), timer function was bounded to a cpu on which it was created.

I am sorry for my noise.

Quoted 7 lines

The timer wheel handler function __run_timers() serializes the timer functions on a CPU, is there any design consideration that handling timers on a CPU is more reasonable than distribute them over CPUs?

Best regards
Shan Hai