Re: [PATCH v4 5/6] migration/dirtyrate: move init step of calculation to main thread

2021-06-16 Thread Peter Xu
On Wed, Jun 16, 2021 at 09:12:31AM +0800, huang...@chinatelecom.cn wrote: > From: Hyman Huang(黄勇) > > since main thread could "query dirty rate" at any time, then it's > better to move init step into main thead so that synchronization > overhead of dirty stat can be reduced. > > since not sure

[PATCH v4 5/6] migration/dirtyrate: move init step of calculation to main thread

2021-06-15 Thread huangy81
From: Hyman Huang(黄勇) since main thread could "query dirty rate" at any time, then it's better to move init step into main thead so that synchronization overhead of dirty stat can be reduced. since not sure whether "only one QMP iothread" will still keep true forever, always introduce a mutex