Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp504455pxb; Thu, 9 Sep 2021 06:03:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcUw5ZGpfhl+k6RQgpd4YwDGUkNG7RUdq0FSfy+C5xkyzoFanZ4lNKem7r2kAJsdSDUzRT X-Received: by 2002:a92:cb8e:: with SMTP id z14mr2319760ilo.318.1631192596912; Thu, 09 Sep 2021 06:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631192596; cv=none; d=google.com; s=arc-20160816; b=SPiFQBafX70OdK/XPtSzdsfN6fyDzHSpBsJLSjded8ugapCG3mzU+bHoTHvjtQzz/e CU3tioGGPCR7xi0T3DI62RkRSJZS+fIPa2JUsHA9bjG7trTVayZ5X7NHkVXJO84c80ym cfgH2ut4YM6bNQV0AoT8GPuNp5znvcZix379bFWVvQUgrlMCy5MuBafCP34o0MlnZREq DMHAoLJDhgymOreGk0Ls3fLKGLWAaLolUsnhx+33eDRPQb58V1CultHl/711EyvSVqHm UrfIStwxV8oW2mlkFrBifoDmtu2USK06qq3o2nl27RDyFFL9x5KOXtQiEY7XVJ7oxTh+ a1cQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YPAaGrObLBmvzaVjTTWkSF5fs1wgZHBdpt5m2llwW7o=; b=CNJpAGFE8i8cpSLhCyA5x0CjPH8GafDMd54da1+SSAT3ZN5/+0c4/S5DSMpMHBfmmk QAHNyR2KurLg6wBuP+d84Vq0aPoiPEZ6LCn5KoH7Rm2mJt3hpnmFJxOgRf8rXfn58/xm Q9f13Ve5qXlCZH6o3PFlxEDAm9DfHZtA43htwyPL0mR/JpLwh9SIL/5yIJQbTEAB7/Yw 9i9KANuc1TSh7/xliCI8Ipsv4yzUW0TESw8wW2NYqjCvhTNzQDT9AUwR7U701vEMgZ9H JAEBjp3TuH//hYXxhbCVhCli7v4xeqwt94AUxGDQ5d6A2yLttGhZdpra9Hau+/1bzOS9 7hHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d0RvDZ5g; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si1659407ils.74.2021.09.09.06.02.58; Thu, 09 Sep 2021 06:03:16 -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=@kernel.org header.s=k20201202 header.b=d0RvDZ5g; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353553AbhIINB1 (ORCPT + 99 others); Thu, 9 Sep 2021 09:01:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:42574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355327AbhIIMtm (ORCPT ); Thu, 9 Sep 2021 08:49:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BDC94613A1; Thu, 9 Sep 2021 11:57:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631188621; bh=ZWep0WPF1IjUAje+ZQ5KO+fruCBz/AcdChbTVOFIS7I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d0RvDZ5g1+x6ukxZjSJHxbCr5Afl/65u3EqDfTT27dcDUa0GtC2c0KIoVw4P7wAQM SUVe8JJt+nqYk8BZLaGuwSFjZxoBDMIiwiaV42jYCaJzTSBCA80NeCu58t5LYT6L+R ZWq070Eu/Ftm0EWv40U7hrN7nhV36KqCwQPuvkpMKq1xqeUCrIZBaPImsqp6ZYedar 3Cfl2FlX6ddFgeLI6QBOiXuJTyXZesVLNqnkoEHli+MhiT66+HU1pT3a/qidmKBRRT CLNvPcZqOzQZuEHUpU8QQ/7jp9s/lwIjiHE8S/uG8mFgMm10OX+9rz5YmZMOP12tKc arP6pVn3BgXDQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Li Zhijian , kernel test robot , Alexei Starovoitov , Song Liu , Sasha Levin , linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 090/109] selftests/bpf: Enlarge select() timeout for test_maps Date: Thu, 9 Sep 2021 07:54:47 -0400 Message-Id: <20210909115507.147917-90-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909115507.147917-1-sashal@kernel.org> References: <20210909115507.147917-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 1c4219ceced2..45c7a55f0b8b 100644 --- a/tools/testing/selftests/bpf/test_maps.c +++ b/tools/testing/selftests/bpf/test_maps.c @@ -972,7 +972,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