qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v3 2/2] migration: Tally pre-copy, downtime and post-copy byt


From: Juan Quintela
Subject: Re: [PATCH v3 2/2] migration: Tally pre-copy, downtime and post-copy bytes independently
Date: Thu, 27 Jan 2022 10:12:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

David Edmondson <david.edmondson@oracle.com> wrote:
> Provide information on the number of bytes copied in the pre-copy,
> downtime and post-copy phases of migration.
>
> Signed-off-by: David Edmondson <david.edmondson@oracle.com>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>

Reviewed-by: Juan Quintela <quintela@redhat.com>

queued.

>  static void ram_transferred_add(uint64_t bytes)
>  {
> +    if (runstate_is_running()) {
> +        ram_counters.precopy_bytes += bytes;
> +    } else if (migration_in_postcopy()) {
> +        ram_counters.postcopy_bytes += bytes;
> +    } else {
> +        ram_counters.downtime_bytes += bytes;
> +    }
>      ram_counters.transferred += bytes;
>  }

Now transferred can be calculated from the other three fields, but
changing it needs too many changes.

Later, Juan.




reply via email to

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