Why not distribute timer handlers on CPUs on SMP
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
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