timer - What is Rescheduling interrupts (RES)? What causes it? How is it handled in Linux kernel? -


what difference between "res: rescheduling interrupts" , "loc: local timer interrupts"? responsible fire res interrupt? loc same general timer interrupt generated timer h/w in processor?

also, please give clarity on part of scheduler invoked during timer interrupt , res interrupt? how happens in linux kernel?

thanks in advance.

rescheduling interrupts linux kernel's way wake-up idle cpu-core schedule thread on it. on smp systems, done scheduler in effort spread load across multiple cpu-cores.

the scheduler tries spread processor activity across many cores possible. general rule of thumb is preferable have many processes running on cores in lower power (lower clock frequencies) rather have 1 core busy running @ full speed while other cores sleeping.

rescheduling interrupts implemented using inter-processor interrupts (ipi). more details checkout article on rescheduling interrupts on linux.


local timer interrupts raised apic specific cpu-core. cpu-core receives interrupts , handles them. brief description of various advantages, checkout answer.