Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1900893pxb; Thu, 16 Sep 2021 19:36:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTSokCkBpcsAZtYVcd7ijXqBhaR5+/XYjrAS7ZCfMudPp+PUSZK/rJK+xfPjZ0vYUj5DzW X-Received: by 2002:a05:6638:d04:: with SMTP id q4mr6885716jaj.120.1631846205465; Thu, 16 Sep 2021 19:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631846205; cv=none; d=google.com; s=arc-20160816; b=NZcbyksZi+iCaylIfRVbMVKGvdUPiaZ1MsFeoaJqiN4sDhzC9PYSd3J/kvS1eiCi5K xDHKUTbCUE+yZ2+3Rpmvkr0mYrTl7K3uEpb08X8en62fe7UFzuhihD/rJNqirUj4/8J2 f1jdaDMCHnY6nTy9rttvag0VQ2z0HXY54OlPt/emv4JRK8cdo28i4mAaiJLiIqgVrW1S YWkS6NxG8onBYzB+3DZ0Y4E7scA6m+WP9yYf8717UQPMAZ9CXzzQQ4DzgqQppKzSSwTw 71S3LhbDt4BZAZaawJIsYCrvDKRSxCXa22zGLqf8I2tUaSSv5x84wOXGK5aCkcVQtDCQ EpZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PcXP4nnTH0ngXPet0Q1n+L3YV1WCer1W9KURjya1rjM=; b=iYauxm19S8QIq83u/JNycTf1oSa6stKx6n+bgvFTXrS9UTZW8ZnkBB1viKq57wVYaN 9UFOV9jpvG8uKfRT8xJi2hJCMPmDz/NaqGsdz9btt3r5cLpesdjWdWFTlqWBug4txrvj NcX5mVSTqLV1ytru2KlImvQ5ltSjVLvwiPR7Bdb7I4b4M552qPeB0ST9orrrNciikMOm E2BRvV/lbgSHyb4x8LykMVakqB5/WnzvGkKYVZQshpC/UhyYIUww0ubi0BS9Al8CzJBI VIhMYPPHrrO8C6BSqVXjb9o4TgWmbzp45tgeC5N7NrMwQj2BjwGrm/gqZ1ya3lP07Y/8 n4dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jtozJM4c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si4105471ilm.82.2021.09.16.19.36.34; Thu, 16 Sep 2021 19:36:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jtozJM4c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347676AbhIPR2T (ORCPT + 99 others); Thu, 16 Sep 2021 13:28:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:51640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346292AbhIPQ4o (ORCPT ); Thu, 16 Sep 2021 12:56:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1F93961AA7; Thu, 16 Sep 2021 16:31:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809864; bh=ZBkEDnoN2J+07qPlLftAE4Dc+YRxVmSqccJH65rgsbY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jtozJM4caOU4nq8fEy27jlRUrflX3FMhcfCEnY9/Ks+su/IsioCIUFOwxGMlQn/Xz ZzsZzfyCh9K5iLsxsp8t33SWN7vXvJs9zEInYZRm57274+rCiQgUSVr/yWkERR6HF4 PCXSruW7VBQ1nQKE4fA17UBdURt5JHZdHKtf/KK8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Li Zhijian , Alexei Starovoitov , Song Liu , Sasha Levin Subject: [PATCH 5.13 310/380] selftests/bpf: Enlarge select() timeout for test_maps Date: Thu, 16 Sep 2021 18:01:07 +0200 Message-Id: <20210916155814.612419626@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Li Zhijian [ Upstream commit 2d82d73da35b72b53fe0d96350a2b8d929d07e42 ] 0Day robot observed that it's easily timeout on a heavy load host. ------------------- # selftests: bpf: test_maps # Fork 1024 tasks to 'test_update_delete' # Fork 1024 tasks to 'test_update_delete' # Fork 100 tasks to 'test_hashmap' # Fork 100 tasks to 'test_hashmap_percpu' # Fork 100 tasks to 'test_hashmap_sizes' # Fork 100 tasks to 'test_hashmap_walk' # Fork 100 tasks to 'test_arraymap' # Fork 100 tasks to 'test_arraymap_percpu' # Failed sockmap unexpected timeout not ok 3 selftests: bpf: test_maps # exit=1 # selftests: bpf: test_lru_map # nr_cpus:8 ------------------- Since this test will be scheduled by 0Day to a random host that could have only a few cpus(2-8), enlarge the timeout to avoid a false NG report. In practice, i tried to pin it to only one cpu by 'taskset 0x01 ./test_maps', and knew 10S is likely enough, but i still perfer to a larger value 30. Reported-by: kernel test robot Signed-off-by: Li Zhijian Signed-off-by: Alexei Starovoitov Acked-by: Song Liu Link: https://lore.kernel.org/bpf/20210820015556.23276-2-lizhijian@cn.fujitsu.com Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/test_maps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/test_maps.c b/tools/testing/selftests/bpf/test_maps.c index aa38dc4a5e85..90f38c6528a1 100644 --- a/tools/testing/selftests/bpf/test_maps.c +++ b/tools/testing/selftests/bpf/test_maps.c @@ -968,7 +968,7 @@ static void test_sockmap(unsigned int tasks, void *data) FD_ZERO(&w); FD_SET(sfd[3], &w); - to.tv_sec = 1; + to.tv_sec = 30; to.tv_usec = 0; s = select(sfd[3] + 1, &w, NULL, NULL, &to); if (s == -1) { -- 2.30.2