qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Hyman <huangy81@chinatelecom.cn>
To: Peter Xu <peterx@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>,
	Juan Quintela <quintela@redhat.com>,
	qemu-devel@nongnu.org,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	Chuan Zheng <zhengchuan@huawei.com>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v10 6/6] migration/dirtyrate: implement dirty-ring dirtyrate calculation
Date: Tue, 29 Jun 2021 23:58:52 +0800	[thread overview]
Message-ID: <e9b81dfb-c6fd-2b14-4b88-55bd33705058@chinatelecom.cn> (raw)
In-Reply-To: <YNs52rBi2bqiNq3e@t490s>



在 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	other threads:[~2021-06-29 16:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-27 16:27 [PATCH v10 0/6] support dirtyrate at the granualrity of vcpu huangy81
     [not found] ` <cover.1624811188.git.huangy81@chinatelecom.cn>
2021-06-27 16:27   ` [PATCH v10 1/6] KVM: introduce dirty_pages and kvm_dirty_ring_enabled huangy81
2021-06-27 16:27   ` [PATCH v10 2/6] memory: make global_dirty_tracking a bitmask huangy81
2021-06-27 16:27   ` [PATCH v10 3/6] migration/dirtyrate: introduce struct and adjust DirtyRateStat huangy81
2021-06-27 16:27   ` [PATCH v10 4/6] migration/dirtyrate: adjust order of registering thread huangy81
2021-06-27 16:27   ` [PATCH v10 5/6] migration/dirtyrate: move init step of calculation to main thread huangy81
2021-06-27 16:27   ` [PATCH v10 6/6] migration/dirtyrate: implement dirty-ring dirtyrate calculation huangy81
2021-06-28 23:05     ` Peter Xu
2021-06-29 13:04       ` Hyman
2021-06-29 15:18         ` Peter Xu
2021-06-29 15:58           ` Hyman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e9b81dfb-c6fd-2b14-4b88-55bd33705058@chinatelecom.cn \
    --to=huangy81@chinatelecom.cn \
    --cc=dgilbert@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=zhengchuan@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).