Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2350373pxb; Mon, 20 Sep 2021 19:45:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgezPfXY+qay++DoUhdbGhNExCb7ScLlmrxVZdSazPo56s9sDLfKZ0x/O1M58ixwH//fiA X-Received: by 2002:a17:906:6547:: with SMTP id u7mr31822854ejn.544.1632192320008; Mon, 20 Sep 2021 19:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192320; cv=none; d=google.com; s=arc-20160816; b=WJ1+uSix3NYmVX024cWBRIbFGSGoyDUgvhn19j+jZBMw0S4AZ0cNNHV1g95RA9TtfR lAHrgRUSNiJBeqemZ+YlCzxBIo9HuY0n+USf2vLa/hYEIsgS/Mbcdn2PHT3ffGIA/8T6 pLUD2gVB5qFtEAX2DAhIJLX3wYKZ3q5g/HcURVzw/udymJ8G0rZ4R14zVqPlq7kh9Npd cp7Feq92tkbN/tDXptHu3C57P/BQ5pK51L/5PxxaXL/2tXLzoP/00bAq8DsoqdNCuciG BC0uY9tV9/e26ZhE9Tz9w12MGddGxizAvjrZr8ntjSJ+htTcmXqZ7ol91LwVdsTo1Hhs qqpw== 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=YPAaGrObLBmvzaVjTTWkSF5fs1wgZHBdpt5m2llwW7o=; b=hbwXakcSPrQRf/12mrVn9kiNfvHPDgOoCiDNMRIZ8DYmK3Rq/YnV4EYQBQmKnpNV5R d3ZePOpD73nIbnlSY5xAdGlO4Rxk8jvsN7zbmttPibLdO4O5uLN4XS4VCHIakE9fFw1h IKVxH6u7qomDHfYjOjqaiZB0lJN2S8h1SYWA9ttORvog1B9+IfzIBL7RQ5iwNl2c8o+4 nEnMBmMhaRfCtuFndEv0Gsg3CTP50zD97bXMUoPOKXvg4DdBxUe53QLUbcwHFiLoVnif rVP+SK5nnpc4tu+enQJD5QDKBiM1018G8kS7+bfSurVlsxtI7cd9J5USw5YoYjHETob1 x4Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WPE6ohse; 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 v9si17964446edw.524.2021.09.20.19.44.55; Mon, 20 Sep 2021 19:45:19 -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=WPE6ohse; 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 S1351904AbhITSVp (ORCPT + 99 others); Mon, 20 Sep 2021 14:21:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:35804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376725AbhITSOW (ORCPT ); Mon, 20 Sep 2021 14:14:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6FE4061407; Mon, 20 Sep 2021 17:21:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158492; bh=ZWep0WPF1IjUAje+ZQ5KO+fruCBz/AcdChbTVOFIS7I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WPE6ohseqQ67hKsr6QRj8FlolXeMVETbCGK7R9Zj0IVJ4EDbfcKgp6Gf1eYhx8vgi gIjExvORSGmr/m4kz1cTrhV+6bx4M9tVMCh3qn2kUbTbP6I0txyoL/7h26ymHONDuq B4/zk5sYytBjhJPnBRdQ1VhM5JoSWeZEDIaH+3wQ= 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.4 154/260] selftests/bpf: Enlarge select() timeout for test_maps Date: Mon, 20 Sep 2021 18:42:52 +0200 Message-Id: <20210920163936.345183620@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 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