[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test
From: |
Peter Xu |
Subject: |
Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test |
Date: |
Mon, 9 Oct 2017 16:19:38 +0800 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Wed, Oct 04, 2017 at 12:39:28PM +0200, Juan Quintela wrote:
[...]
(having some unit tests for migration is really good...)
> +static void test_precopy(const char *uri)
> +{
> + QTestState *from, *to;
> +
> + test_migrate_start(&from, &to, uri);
> +
> + /* We want to pick a speed slow enough that the test completes
> + * quickly, but that it doesn't complete precopy even on a slow
> + * machine, so also set the downtime.
> + */
> + /* 100 ms */
> + migrate_set_parameter(from, "downtime-limit", "100");
> + /* 1MB/s slow*/
This is 100MB/s?
> + migrate_set_parameter(from, "max-bandwidth", "100000000");
> +
> + /* Wait for the first serial output from the source */
> + wait_for_serial("src_serial");
> +
> + migrate(from, uri);
> +
> + wait_for_migration_pass(from);
> +
> + /* 1GB/s now it should converge */
> + migrate_set_parameter(from, "max-bandwidth", "1000000000");
Curious: would it possible that 1GB/s won't suffice in some cases?
Is there any reason behind this 1GB/s value?
(I agree with Thomas that it would be good to work upon the existing
postcopy-test.c file, at least easier to review :)
Thanks,
--
Peter Xu
- Re: [Qemu-devel] [PATCH 2/6] tests: Add basic migration precopy tcp test, (continued)
- [Qemu-devel] [PATCH 3/6] tests: Add precopy test using deprecated commands, Juan Quintela, 2017/10/04
- [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test, Juan Quintela, 2017/10/04
- Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test, Eric Blake, 2017/10/04
- Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test,
Peter Xu <=
- Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test, Dr. David Alan Gilbert, 2017/10/16
- Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test, Peter Xu, 2017/10/18
- Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test, Juan Quintela, 2017/10/18
- Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test, Daniel P. Berrange, 2017/10/18
- Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test, Peter Xu, 2017/10/18
- Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test, Daniel P. Berrange, 2017/10/19
- Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test, Dr. David Alan Gilbert, 2017/10/19
- Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test, Daniel P. Berrange, 2017/10/19
- Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test, Dr. David Alan Gilbert, 2017/10/19