Skip to contentSkip to conversation

Timer list lock contention

Qemu-devel Sergey Fedorov 2 participants 2 messages Oct 29, 2014

lore
Share & tools
lore
#0 lore raw

Hi!

I am wondering is there any case when timer list lock could be under contention?

Thanks,
Serge

#1 lore raw
Quoted 4 lines · Sergey Fedorov

Hi!

I am wondering is there any case when timer list lock could be under contention?

Most of the time, the timer list is accessed under the "big QEMU lock" (qemu_mutex_lock_iothread/qemu_mutext_unlock_iothread), so the timer list lock itself shouldn't have contention at all.

That said, there are plans to decrease the cost of the lock by not taking it at all in some cases.

Paolo