Re: Why not distribute timer handlers on CPUs on SMP

From: bhs
Date: Tue Oct 05 2010 - 21:51:00 EST



On Oct 6, 2010, at 9:05 AM, bhs wrote:

> 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.


> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/