Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp458317pxb; Thu, 9 Sep 2021 05:04:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg94C8+rzhrVsJ7T65mYuqb6dDZoVwOeA/dqdE+/+qsIyXlmnBy4ZVV291RfgTzIThx9be X-Received: by 2002:aa7:d645:: with SMTP id v5mr2820220edr.145.1631189045374; Thu, 09 Sep 2021 05:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631189045; cv=none; d=google.com; s=arc-20160816; b=mxJHJbiv3ZsayWvmI3gV8KKl21NLL2esNrG5XvD1ECLdB02QMhYUzlzLPs8eXWA2tc +1ZbCWhcnjZCnMYlkOdJ8o6/FF1045vvOd7kt3dGnDYUySMe1TB9iMUX5CdjCe5W1dpC RqUZ9ery57a7GI8O1AwPqbHOmn1T40SeqD8H4EvWkrdAKrrRlAsHyJOd4S7I9eGKpuBD yfzUs34xSDlMNOOy/W8pbFAEQyZ1heof+hYk3d3qt8FuStCdOnwrjk0UdNnXpR6b0nvX zcuK4yuP4SiuD5SWW6XDQW9F3ha9lZqj7HPoVJYlE2SPFyyzbF/fQn+6xG3T1DzPJ2QG tifg== 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=0h9cyQbkevGNs2sCcWFf+ejPlH1e4bWBM6grrAlJkVo=; b=X1a9y8c2pB5mIeVovT/dU+NlwvEq3vHy+EGzu3waWJIqtPiMBU0v5R1qnOun9H6Elq xvHgFJk2wgRO+OI96mJgSuksCHDKwPzX/KFvDIXpMeuJp1fSJ0ysm9pWeisecfKl8pVk Aim1b34fQ9sHbNv0gfoLvuPhWSPnhyshFKDKYUI6B1HCqKp0YGa5CB5SHTuSouoizT1h ePrvfdiLouKhGxBQShcXpDkrbKbNkGd6GI3uyuFiFlRkP5RzuK8msZylFU/1IEi69crw yTX8yaSVWszJFPWcT+5EB8W1tlYQK5oy8kNDZn1Y/llRXkhoTp5o+I7zZffndw1tdKT6 kWFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MdQdpqFw; 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 o14si1533261ejy.668.2021.09.09.05.03.33; Thu, 09 Sep 2021 05:04:05 -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=MdQdpqFw; 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 S1344994AbhIIMCX (ORCPT + 99 others); Thu, 9 Sep 2021 08:02:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:34230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242198AbhIIL6K (ORCPT ); Thu, 9 Sep 2021 07:58:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1BCA561406; Thu, 9 Sep 2021 11:45:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631187940; bh=gQpAEeu5aNjYvHIz708CrDFt+f3jTZ55tZHXEwVeicU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MdQdpqFwTL8YmV/UwUC0D84VhV8G26lqrJVhSxxljmLAQa4ivIC4AX2EUhZ115tgg d26TwZLoz+DcsAHN5iUJyFNHduM/8gZ+YtXjIHT+YIrNKBAyHX0nmxkJvW8fc+vMqY Rar0tmf72nJjSLV60KmX4Mi6fnRgCd9OwXCoXhpOWu70js7xcA2Bg80GzrcL3fyZF9 MoEw3XLmj3T3/uSTimo4GPDnX1ihh3/SSAaCV8eO4XCzRCmfMk75FWz3olhs4vphuI cBIOR+8fyy5qD5gbiodFIDMSePK98fnVacvcRvt4iSagbfL8H2bk9DxEpoZI4kyNml PiThGdRbs98Ig== 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.14 210/252] selftests/bpf: Enlarge select() timeout for test_maps Date: Thu, 9 Sep 2021 07:40:24 -0400 Message-Id: <20210909114106.141462-210-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114106.141462-1-sashal@kernel.org> References: <20210909114106.141462-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 30cbf5d98f7d..de58a3070eea 100644 --- a/tools/testing/selftests/bpf/test_maps.c +++ b/tools/testing/selftests/bpf/test_maps.c @@ -985,7 +985,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