Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72513C433E0 for ; Tue, 9 Jun 2020 17:20:08 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4072A20760 for ; Tue, 9 Jun 2020 17:20:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ETigquZA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4072A20760 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:33420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jihux-0003rH-Eu for qemu-devel@archiver.kernel.org; Tue, 09 Jun 2020 13:20:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jihNG-0003yS-Mm for qemu-devel@nongnu.org; Tue, 09 Jun 2020 12:45:18 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:49873 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jihNF-0004KN-Ar for qemu-devel@nongnu.org; Tue, 09 Jun 2020 12:45:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591721116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=HjluHjBjIyH3SFBln7syEFNsmXFEchOOcwuqqVhibIo=; b=ETigquZAgY6ZoIY1oZ+ucEWBFNSnJKqmljzCQGoDT3Eo/ZO2mzf3c6K4IhTGwSSlj4y9Z2 DdUe7RVjfWm7zMQVWezWV+lSqJTdqxus242jrQfNECAIEh23ZJ+6UFw2lhjtSt30TJL2w9 VBPSLaM8E2fhipJ6qgGKpeX3YmmzT9U= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-469-_n9tbCWWN8mKJvXLruTiRw-1; Tue, 09 Jun 2020 12:45:14 -0400 X-MC-Unique: _n9tbCWWN8mKJvXLruTiRw-1 Received: by mail-wm1-f72.google.com with SMTP id b65so893789wmb.5 for ; Tue, 09 Jun 2020 09:45:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=HjluHjBjIyH3SFBln7syEFNsmXFEchOOcwuqqVhibIo=; b=IU4R2/vXryoHBril5W6zit7IDQ5L3EXD/VXQHL0mvld9pn63emWT0iBb5gMXoNNI7B DrEv9flfCqlD/E6DOH2F3JMDh5rK7BvWjzJ4tLOqkISGc0BL8WPirj0MwvW88ZRPsvxu SBaR63nsMAKRCyoTeyKcyHD6aU/sduoJN86vaircWSyLeXPDqUsJsr9b1Pm2Yiy3t7Hk hlvNQgwoJ6CUCo6Dass18v/n5ROMMfPi37rS6wJA/6hR5eZSptLfldMCnUN+1QcFCTK5 Pss/QS2c3KKHW6E5G7zH3DAsUysbz0LJ60BmI/iaSWK7n/mZ341CZNyUYwtBRdccgtWx 3kuA== X-Gm-Message-State: AOAM531muacVJob/JGc0XQVaYTviBMrkxOzpXuLxjWMoLhGEbQw98hyK +2oS/h7E9CH+ivmog2bpZxeMItlSU632NkR7c5EFtbDZMJ/u6BjY9wyheglNgufqykLfJDaYri3 WnPzcTTPGFFba4Ao= X-Received: by 2002:a1c:2002:: with SMTP id g2mr4731865wmg.132.1591721113768; Tue, 09 Jun 2020 09:45:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyb+3wX1lg6W472AVnzOQKcQyEnMn1VZZtHvAmdXLIQI2BpaEJbL7GlylQ7APyVm3KYYXuFA== X-Received: by 2002:a1c:2002:: with SMTP id g2mr4731837wmg.132.1591721113508; Tue, 09 Jun 2020 09:45:13 -0700 (PDT) Received: from [192.168.1.38] (181.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.181]) by smtp.gmail.com with ESMTPSA id y80sm3730815wmc.34.2020.06.09.09.45.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Jun 2020 09:45:12 -0700 (PDT) Subject: Re: [PULL 3/9] tests/migration: Reduce autoconverge initial bandwidth To: "Michael S. Tsirkin" , "Dr. David Alan Gilbert (git)" References: <20200325131632.311034-1-dgilbert@redhat.com> <20200325131632.311034-4-dgilbert@redhat.com> <20200609123323-mutt-send-email-mst@kernel.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Autocrypt: addr=philmd@redhat.com; keydata= mQINBDXML8YBEADXCtUkDBKQvNsQA7sDpw6YLE/1tKHwm24A1au9Hfy/OFmkpzo+M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qr9O2b/0VoXpQId7yY7OJuYYxs7kQoXI 6WzSMpmuXGkmfxOgbc/L6YbzB0JOriX0iRClxu4dEUg8Bs2pNnr6huY2Ft+qb41RzCJvvMyu gS32LfN0bTZ6Qm2A8ayMtUQgnwZDSO23OKgQWZVglGliY3ezHZ6lVwC24Vjkmq/2yBSLakZE 6DZUjZzCW1nvtRK05ebyK6tofRsx8xB8pL/kcBb9nCuh70aLR+5cmE41X4O+MVJbwfP5s/RW 9BFSL3qgXuXso/3XuWTQjJJGgKhB6xXjMmb1J4q/h5IuVV4juv1Fem9sfmyrh+Wi5V1IzKI7 RPJ3KVb937eBgSENk53P0gUorwzUcO+ASEo3Z1cBKkJSPigDbeEjVfXQMzNt0oDRzpQqH2vp apo2jHnidWt8BsckuWZpxcZ9+/9obQ55DyVQHGiTN39hkETy3Emdnz1JVHTU0Q== Message-ID: Date: Tue, 9 Jun 2020 18:45:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200609123323-mutt-send-email-mst@kernel.org> Content-Language: en-US X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=207.211.31.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/09 01:38:49 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , vsementsov@virtuozzo.com, maozhongyi@cmss.chinamobile.com, Cornelia Huck , pannengyuan@huawei.com, qemu-devel@nongnu.org, imammedo@redhat.com, =?UTF-8?Q?Alex_Benn=c3=a9e?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 6/9/20 6:36 PM, Michael S. Tsirkin wrote: > On Wed, Mar 25, 2020 at 01:16:26PM +0000, Dr. David Alan Gilbert (git) wrote: >> From: Philippe Mathieu-Daudé >> >> When using max-bandwidth=~100Mb/s, this test fails on Travis-CI >> s390x when configured with --disable-tcg: >> >> $ make check-qtest >> TEST check-qtest-s390x: tests/qtest/boot-serial-test >> qemu-system-s390x: -accel tcg: invalid accelerator tcg >> qemu-system-s390x: falling back to KVM >> TEST check-qtest-s390x: tests/qtest/pxe-test >> TEST check-qtest-s390x: tests/qtest/test-netfilter >> TEST check-qtest-s390x: tests/qtest/test-filter-mirror >> TEST check-qtest-s390x: tests/qtest/test-filter-redirector >> TEST check-qtest-s390x: tests/qtest/drive_del-test >> TEST check-qtest-s390x: tests/qtest/device-plug-test >> TEST check-qtest-s390x: tests/qtest/virtio-ccw-test >> TEST check-qtest-s390x: tests/qtest/cpu-plug-test >> TEST check-qtest-s390x: tests/qtest/migration-test >> ** >> ERROR:tests/qtest/migration-test.c:1229:test_migrate_auto_converge: 'got_stop' should be FALSE >> ERROR - Bail out! ERROR:tests/qtest/migration-test.c:1229:test_migrate_auto_converge: 'got_stop' should be FALSE >> make: *** [tests/Makefile.include:633: check-qtest-s390x] Error 1 >> >> Per David Gilbert, "it could just be the writing is slow on s390 >> and the migration thread fast; in which case the autocomplete >> wouldn't be needed. Perhaps we just need to reduce the bandwidth >> limit." >> >> Tuning the threshold by reducing the initial bandwidth makes the >> autoconverge test pass. >> >> Suggested-by: Dr. David Alan Gilbert >> Signed-off-by: Philippe Mathieu-Daudé >> Message-Id: <20200323184015.11565-1-philmd@redhat.com> >> Reviewed-by: Dr. David Alan Gilbert >> Tested-by: Alex Bennée >> Signed-off-by: Dr. David Alan Gilbert > > > This slows make check down significantly for me, it stays > at the migration test for minutes. Alex Bennée reported the same problem, I don't know what is the best way to fix this. > > I'm carrying a revert at top of my tree for now but I'd rather > not need that. > > > This seems like a fragile way to test things anyway. > What happens if someone slows writing even more > e.g. because it's running in a container or a VM? This seems to be the problem I noticed and tried to fix. > > How about detecting that migration finished too early > and slowing it down until autocomplete triggers? David, I am a bit clueless with this code, do you mind having a look? We can revert this test and disable the s390x runner, but it is our only big-endian host, which recently show to be useful. > >> --- >> tests/qtest/migration-test.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c >> index 3d6cc83b88..2568c9529c 100644 >> --- a/tests/qtest/migration-test.c >> +++ b/tests/qtest/migration-test.c >> @@ -1211,7 +1211,7 @@ static void test_migrate_auto_converge(void) >> * without throttling. >> */ >> migrate_set_parameter_int(from, "downtime-limit", 1); >> - migrate_set_parameter_int(from, "max-bandwidth", 100000000); /* ~100Mb/s */ >> + migrate_set_parameter_int(from, "max-bandwidth", 1000000); /* ~1Mb/s */ >> >> /* To check remaining size after precopy */ >> migrate_set_capability(from, "pause-before-switchover", true); >> -- >> 2.25.1 >> >> >