[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync |
Date: |
Wed, 7 Oct 2015 11:44:01 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 07/10/2015 08:20, Denis V. Lunev wrote:
>
> All calls of this hook will be from ram_save_pending().
>
> At the first call of this hook we need to save the initial
> size of VM memory and put the migration thread to sleep for
> decent period (downtime for example). During this period
> guest would dirty memory.
>
> The second and the last call.
> We make our estimation of dirty bytes rate assuming that time
> between two synchronizations of dirty bitmap differs from downtime
> negligibly.
>
> An alternative to this approach is receiving information about
> size of data “transmitted” through the transport.
This would use before_ram_iterate/after_ram_iterate, right?
> However, this
> way creates large time and memory overheads:
> 1/Transmitted guest’s memory pages are copied to QEMUFile’s buffer
> (~8 sec per 4GB VM)
Note that they are not if you implement writev_buffer.
> 2/Dirty memory pages are processed one by one (~60msec per 4GB VM)
That however improves the accuracy, doesn't it?
Paolo
- Re: [Qemu-devel] [PATCH 7/8] migration: new migration test mode, (continued)
- Re: [Qemu-devel] [PATCH 7/8] migration: new migration test mode, Denis V. Lunev, 2015/10/09
- Re: [Qemu-devel] [PATCH 7/8] migration: new migration test mode, Dr. David Alan Gilbert, 2015/10/08
- [Qemu-devel] [PATCH 4/8] migration: add function for reseting migration bitmap, Denis V. Lunev, 2015/10/08
- [Qemu-devel] [PATCH 5/8] migration: add draft of new transport, Denis V. Lunev, 2015/10/08
- [Qemu-devel] [PATCH 2/8] qemu-file: new hook in qemu-file, Denis V. Lunev, 2015/10/08
- [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync, Denis V. Lunev, 2015/10/08
- Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync,
Paolo Bonzini <=
- Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync, Denis V. Lunev, 2015/10/09
- Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync, Paolo Bonzini, 2015/10/08
- Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync, Denis V. Lunev, 2015/10/09
- Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync, Dr. David Alan Gilbert, 2015/10/08
- [Qemu-devel] [PATCH 1/8] migration: fix expected_downtime, Denis V. Lunev, 2015/10/08
- [Qemu-devel] [PATCH 8/8] migration: add output of gathered statistics, Denis V. Lunev, 2015/10/08
- Re: [Qemu-devel] [RFC 0/8] QEMUFile-way to gather VM's memory statistics, Dr. David Alan Gilbert, 2015/10/08