Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9781521rwp; Thu, 20 Jul 2023 09:33:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlEcxf1xgsyrONfsf1MWdOB/We3tg2yswgQnShCMqjoatmdzWDk0e9B0ky0/Gbc4JoF59mqL X-Received: by 2002:a05:6402:1254:b0:51d:ebf4:9874 with SMTP id l20-20020a056402125400b0051debf49874mr2446731edw.2.1689870817581; Thu, 20 Jul 2023 09:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689870817; cv=none; d=google.com; s=arc-20160816; b=AK+YP8TYJXKlog6jcUec/LJry93ZcKznF0UKbLjTFCyoXySXsxVKcfe3gbe7r9aXR2 HCe8XY0w82JSgE7tSAtHPt/LtDw+Nr81P0J0r2slCMZIcH9Yz4MuP+xZRRHVgduEL/eU qqhv5d02jEVYElF5K4xzogchZn77/yN38Uzmf9j+gsG7rSPLy9KTggcugy4RlJCGpEyb 4nic5qKY8L5Ljj7zJYnUo0ALlsiikMUUmpBDJ+JOU6XRYpD5D4d1gBkMW1a6lrfC1ker UOqWWqE/jH//XfmGE4LfzVAQmeVgi8lDC86qnpqNNBY2zJkw6mrMmQGQv3abXnK8k6V5 Y8nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=hUe0XO+vShDYz71plbhqbItGKfO2pi4bn3OFUkq3gPw=; fh=Lq+e+kSGfqFuYqO2S74IB9vZtpbpVWNI4l+4Y9tWDSo=; b=ztEipedRmPq7pYKWLPlEqEHZ6taEc1litseV9EkVUhdWGUQHYJp+hIO+f2rY+cbYPu Jy+6/jdGXC9hQA4fWJ6LZJs4DJr7gfjYB5qGgSNcM6QwcoGEclB6FvwRP4qxXAoIbFhO 4ZFAlXStTIu6yOHjEqTIrSXM7i/Y+MGIFc0/fMtJRtOfFjFhGSOA8zAXZzM48oKN6kbM sCVnH3UChOjvenMTB6KVFYMYm1+L8dVRD/bx0rtCzz4IXSdV8yIPpSqa/EgxskxiX7Ko Vn5+xP1kF6d9BE2P1GyXfoudYELkDmWuh2gbA2cg0tcv/6vFqqe6DKp++yFp5nvdCrrK hHZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=00looCrQ; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=N45t8GTc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a50ef02000000b00521ae63ee65si1026146eds.639.2023.07.20.09.33.11; Thu, 20 Jul 2023 09:33:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=00looCrQ; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=N45t8GTc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229782AbjGTQHZ (ORCPT + 99 others); Thu, 20 Jul 2023 12:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbjGTQHY (ORCPT ); Thu, 20 Jul 2023 12:07:24 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64FECE47; Thu, 20 Jul 2023 09:07:21 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 7E38460171; Thu, 20 Jul 2023 18:07:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689869228; bh=8hV6k4hJ/hPCHyUdlhZQjxzzgl5BuECH6T0mUmObz/A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=00looCrQqz2H65GHYlx0abgubMpyVsyXyp8IA1zNRwsB0amyJp4cPTFbKgeWAVwRQ a/dbt8V/55BEkBBkwDflqNa+ItbhgoiOtBCgYkg5ylb2NXvFOTjRp9dhtfMXUFjAYJ sc6zv46T0thScF12thE3Daj7AXyKToqADPQiTWG7PAgoDATwHTO43rI4gH50vcmBQa 1g+6t/XIU8WMFAtR0yEcoTH+PcFcAoajKZqr50r6P+bBhx3GKTieiPcJADHgLZd+sR KdxpZKOoTu6uF7BG0SuYcoJQPrQyZcCssHk6vZZkDIocx3iEruebI4TG58KIM/E1VP c/9sXmZP6wR2g== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DL_4EscF3azY; Thu, 20 Jul 2023 18:07:05 +0200 (CEST) Received: from [192.168.1.6] (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 1AB616016E; Thu, 20 Jul 2023 18:07:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689869225; bh=8hV6k4hJ/hPCHyUdlhZQjxzzgl5BuECH6T0mUmObz/A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=N45t8GTcMB6u4PW17PfN3VhDIMRi8lha73l/YKkRW4JePy1Oq3Z2JsCcWdGFiI3YM vSakh+4ES7dj9PIa9ZWPWIskx79Cs3xMXGKnEJPJny8gYp/dP0NAcvFRmJqGY5Ev8Q HOWlXTH4rGaf9Rp5Acg7uQSPbrMHOjpT613CZ5bEDZnaOFPz+G88SfQ9ZDRtIS7qmZ LuHserd8HZqlRzu6fMycpON481vztwneyqHMXtH+g4DsWr0cu+BMZk9VJadtV5UiBS 5UoHMn/+x/QUC16UsCx5H98MqtMWTdAFkrvV9idd7RnlHLLupamS66ly/Zd1NcQQ4t i+FxehVeD8e6Q== Message-ID: <580b9f28-7a68-e618-b2d5-b8663386aa12@alu.unizg.hr> Date: Thu, 20 Jul 2023 18:07:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PROBLEM] seltests: net/forwarding/sch_ets.sh [HANG] To: Petr Machata Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , linux-kselftest@vger.kernel.org, Ido Schimmel References: <759fe934-2e43-e9ff-8946-4fd579c09b05@alu.unizg.hr> <87cz0m9a3n.fsf@nvidia.com> Content-Language: en-US From: Mirsad Todorovac In-Reply-To: <87cz0m9a3n.fsf@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/20/23 11:43, Petr Machata wrote: > > Mirsad Todorovac writes: > >> Using the same config for 6.5-rc2 on Ubuntu 22.04 LTS and 22.10, the execution >> stop at the exact same line on both boxes (os I reckon it is more than an >> accident): >> >> # selftests: net/forwarding: sch_ets.sh >> # TEST: ping vlan 10 [ OK ] >> # TEST: ping vlan 11 [ OK ] >> # TEST: ping vlan 12 [ OK ] >> # Running in priomap mode >> # Testing ets bands 3 strict 3, streams 0 1 >> # TEST: band 0 [ OK ] >> # INFO: Expected ratio >95% Measured ratio 100.00 >> # TEST: band 1 [ OK ] >> # INFO: Expected ratio <5% Measured ratio 0 >> # Testing ets bands 3 strict 3, streams 1 2 >> # TEST: band 1 [ OK ] >> # INFO: Expected ratio >95% Measured ratio 100.00 >> # TEST: band 2 [ OK ] >> # INFO: Expected ratio <5% Measured ratio 0 >> # Testing ets bands 4 strict 1 quanta 5000 2500 1500, streams 0 1 >> # TEST: band 0 [ OK ] >> # INFO: Expected ratio >95% Measured ratio 100.00 >> # TEST: band 1 [ OK ] >> # INFO: Expected ratio <5% Measured ratio 0 >> # Testing ets bands 4 strict 1 quanta 5000 2500 1500, streams 1 2 >> # TEST: bands 1:2 [ OK ] >> # INFO: Expected ratio 2.00 Measured ratio 1.99 >> # Testing ets bands 3 quanta 3300 3300 3300, streams 0 1 2 >> # TEST: bands 0:1 [ OK ] >> # INFO: Expected ratio 1.00 Measured ratio .99 >> # TEST: bands 0:2 [ OK ] >> # INFO: Expected ratio 1.00 Measured ratio 1.00 >> # Testing ets bands 3 quanta 5000 3500 1500, streams 0 1 2 >> # TEST: bands 0:1 [ OK ] >> # INFO: Expected ratio 1.42 Measured ratio 1.42 >> # TEST: bands 0:2 [ OK ] >> # INFO: Expected ratio 3.33 Measured ratio 3.33 >> # Testing ets bands 3 quanta 5000 8000 1500, streams 0 1 2 >> # TEST: bands 0:1 [ OK ] >> # INFO: Expected ratio 1.60 Measured ratio 1.59 >> # TEST: bands 0:2 [ OK ] >> # INFO: Expected ratio 3.33 Measured ratio 3.33 >> # Testing ets bands 2 quanta 5000 2500, streams 0 1 >> # TEST: bands 0:1 [ OK ] >> # INFO: Expected ratio 2.00 Measured ratio 1.99 >> # Running in classifier mode >> # Testing ets bands 3 strict 3, streams 0 1 >> # TEST: band 0 [ OK ] >> # INFO: Expected ratio >95% Measured ratio 100.00 >> # TEST: band 1 [ OK ] >> # INFO: Expected ratio <5% Measured ratio 0 >> # Testing ets bands 3 strict 3, streams 1 2 >> # TEST: band 1 [ OK ] >> # INFO: Expected ratio >95% Measured ratio 100.00 >> # TEST: band 2 [ OK ] >> # INFO: Expected ratio <5% Measured ratio 0 >> # Testing ets bands 4 strict 1 quanta 5000 2500 1500, streams 0 1 >> >> I tried to run 'set -x' enabled version standalone, but that one finished >> correctly (?). >> >> It could be something previous scripts left, but right now I don't have a clue. >> I can attempt to rerun all tests with sch_ets.sh bash 'set -x' enabled later today. > > If you run it standalone without set -x, does it finish as well? Added that. Yes, standlone run finishes correctly, with or without 'set -x': root@defiant:/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/net/forwarding# ./sch_ets.sh TEST: ping vlan 10 [ OK ] TEST: ping vlan 11 [ OK ] TEST: ping vlan 12 [ OK ] Running in priomap mode Testing ets bands 3 strict 3, streams 0 1 TEST: band 0 [ OK ] INFO: Expected ratio >95% Measured ratio 100.00 TEST: band 1 [ OK ] INFO: Expected ratio <5% Measured ratio 0 killing MZ killed MZ killing MZ killed MZ Testing ets bands 3 strict 3, streams 1 2 TEST: band 1 [ OK ] INFO: Expected ratio >95% Measured ratio 100.00 TEST: band 2 [ OK ] INFO: Expected ratio <5% Measured ratio 0 killing MZ killed MZ killing MZ killed MZ Testing ets bands 4 strict 1 quanta 5000 2500 1500, streams 0 1 TEST: band 0 [ OK ] INFO: Expected ratio >95% Measured ratio 100.00 TEST: band 1 [ OK ] INFO: Expected ratio <5% Measured ratio 0 killing MZ killed MZ killing MZ killed MZ Testing ets bands 4 strict 1 quanta 5000 2500 1500, streams 1 2 TEST: bands 1:2 [ OK ] INFO: Expected ratio 2.00 Measured ratio 1.99 killing MZ killed MZ killing MZ killed MZ Testing ets bands 3 quanta 3300 3300 3300, streams 0 1 2 TEST: bands 0:1 [ OK ] INFO: Expected ratio 1.00 Measured ratio 1.00 TEST: bands 0:2 [ OK ] INFO: Expected ratio 1.00 Measured ratio .99 killing MZ killed MZ killing MZ killed MZ killing MZ killed MZ Testing ets bands 3 quanta 5000 3500 1500, streams 0 1 2 TEST: bands 0:1 [ OK ] INFO: Expected ratio 1.42 Measured ratio 1.42 TEST: bands 0:2 [ OK ] INFO: Expected ratio 3.33 Measured ratio 3.33 killing MZ killed MZ killing MZ killed MZ killing MZ killed MZ Testing ets bands 3 quanta 5000 8000 1500, streams 0 1 2 TEST: bands 0:1 [ OK ] INFO: Expected ratio 1.60 Measured ratio 1.59 TEST: bands 0:2 [ OK ] INFO: Expected ratio 3.33 Measured ratio 3.33 killing MZ killed MZ killing MZ killed MZ killing MZ killed MZ Testing ets bands 2 quanta 5000 2500, streams 0 1 TEST: bands 0:1 [ OK ] INFO: Expected ratio 2.00 Measured ratio 1.99 killing MZ killed MZ killing MZ killed MZ Running in classifier mode Testing ets bands 3 strict 3, streams 0 1 TEST: band 0 [ OK ] INFO: Expected ratio >95% Measured ratio 100.00 TEST: band 1 [ OK ] INFO: Expected ratio <5% Measured ratio 0 killing MZ killed MZ killing MZ killed MZ Testing ets bands 3 strict 3, streams 1 2 TEST: band 1 [ OK ] INFO: Expected ratio >95% Measured ratio 100.00 TEST: band 2 [ OK ] INFO: Expected ratio <5% Measured ratio 0 killing MZ killed MZ killing MZ killed MZ Testing ets bands 4 strict 1 quanta 5000 2500 1500, streams 0 1 TEST: band 0 [ OK ] INFO: Expected ratio >95% Measured ratio 100.00 TEST: band 1 [ OK ] INFO: Expected ratio <5% Measured ratio 0 killing MZ killed MZ killing MZ killed MZ Testing ets bands 4 strict 1 quanta 5000 2500 1500, streams 1 2 TEST: bands 1:2 [ OK ] INFO: Expected ratio 2.00 Measured ratio 1.99 killing MZ killed MZ killing MZ killed MZ Testing ets bands 3 quanta 3300 3300 3300, streams 0 1 2 TEST: bands 0:1 [ OK ] INFO: Expected ratio 1.00 Measured ratio .99 TEST: bands 0:2 [ OK ] INFO: Expected ratio 1.00 Measured ratio .99 killing MZ killed MZ killing MZ killed MZ killing MZ killed MZ Testing ets bands 3 quanta 5000 3500 1500, streams 0 1 2 TEST: bands 0:1 [ OK ] INFO: Expected ratio 1.42 Measured ratio 1.42 TEST: bands 0:2 [ OK ] INFO: Expected ratio 3.33 Measured ratio 3.33 killing MZ killed MZ killing MZ killed MZ killing MZ killed MZ Testing ets bands 3 quanta 5000 8000 1500, streams 0 1 2 TEST: bands 0:1 [ OK ] INFO: Expected ratio 1.60 Measured ratio 1.60 TEST: bands 0:2 [ OK ] INFO: Expected ratio 3.33 Measured ratio 3.33 killing MZ killed MZ killing MZ killed MZ killing MZ killed MZ Testing ets bands 2 quanta 5000 2500, streams 0 1 TEST: bands 0:1 [ OK ] INFO: Expected ratio 2.00 Measured ratio 2.00 killing MZ killed MZ killing MZ killed MZ root@defiant:/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/net/forwarding# > That would imply that the reproducer needs to include the previous tests as > well. This is entirely possible, as timeouts and CTRL+C events do not seem to be caught and the cleanup is not done ... sch_ets_core.sh: trap cleanup EXIT Some tests time out even after settings:timeout=240, so IMHO this should be taken into account. Best regards, Mirsad Todorovac > It looks like the test is stuck in ets_test_mixed in classifier_mode. > A way to run just this test would be: > > TESTS="classifier_mode ets_test_mixed" ./sch_ets.sh > > Looking at the code, the only place that I can see that waits on > anything is the "{ kill %% && wait %%; } 2>/dev/null" line in > stop_traffic() (in lib.sh). Maybe something like this would let > us see if that's the case: > > modified tools/testing/selftests/net/forwarding/lib.sh > @@ -1468,8 +1470,10 @@ start_tcp_traffic() > > stop_traffic() > { > + echo killing MZ > # Suppress noise from killing mausezahn. > { kill %% && wait %%; } 2>/dev/null > + echo killed MZ > }