qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v10 6/6] migration/dirtyrate: implement dirty-ring dirtyrate


From: Hyman
Subject: Re: [PATCH v10 6/6] migration/dirtyrate: implement dirty-ring dirtyrate calculation
Date: Tue, 29 Jun 2021 23:58:52 +0800
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0



在 2021/6/29 23:18, Peter Xu 写道:
On Tue, Jun 29, 2021 at 09:04:07PM +0800, Hyman wrote:


在 2021/6/29 7:05, Peter Xu 写道:
On Mon, Jun 28, 2021 at 12:27:46AM +0800, huangy81@chinatelecom.cn wrote:
+static void dirtyrate_global_dirty_log_stop(void)
+{
+    qemu_mutex_lock_iothread();

One thing I missed: maybe we want to sync dirty before stop, so the value will
be more accurate.  Perhaps a call to memory_global_dirty_log_sync() here?
seems good, if the dirty ring reaper is sleeping, we can sync log by
ourselves, making dirtyrate more accurate.

Btw, I commented here because there has the bql so it's easier; please still
remember to record the pages after sync is done!  Otherwise it'll be an effort
of no real use (which I think that's missing in your latest repost..).
my fault, not examing the code.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]