Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1540344pxb; Thu, 16 Sep 2021 09:31:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA5yr6fiEPh0bbA3c43B1fQpHWbda1+CNPEnGdWwSkfGix7QxK9HPMPMQSDB1cfRhIYLJ8 X-Received: by 2002:a05:6602:117:: with SMTP id s23mr5146619iot.124.1631809905550; Thu, 16 Sep 2021 09:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631809905; cv=none; d=google.com; s=arc-20160816; b=XhWYSanEMaVNcgrFLpDodKLK7g+JIjIlYWiyfViMPVdLssLIGU2gMMysCWL5Lg0pt0 tkLKjsPuo42xbHKRPR67rrJ/Ma4tAh5oMXhhtMlxiqrglUbKpRwqJgY9w/9LdFTd74DQ fhiLTp2Mtu0t7i2CAtsmtY3/ch4mXo9hmxCrRN24RQo6aLNDWkeaVqI2Dd1RCLOGT0LF JfFZcx97KrDt6gdHyYD1tBEeEmjEbOHolVatCmzIP3splq27eL+gqL1HaFSAZTF59gwN qzCKV3MFUmqnDC2bMGT8sD1FkfWPPkla0IyvJjy8Ylwbo1+ow9UubAYOdR7s0vPDo+j+ fYqw== 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=kqxz0tfOEJ70tUJu36awZpnAtudSB4/S6etdsVvB2qc=; b=uwaFyHjL/tFz9WMqy0gfYZ0aEZU2ee7GS1xeHQLbxAhwRCS+QPz3Ln1l4zvWY2hSXy ywhgtt3Pu/iOyee2OHwgm2NrplzPzDRpqOHxfIsKSU2bKFgDHyuGB8TDuqahK8oxbbrN 83HvFu8smp0TPBgKF1jDobkPeS2uRGuGlGLy4Tjvb9qT/nloqHXk0W7ZhzdbhEeD+ipV rLV6Nk8l5uKMNMkY2VjAgTdVwMagRLJA7HPiCno0FhteWsJ1tpaBoYXocy+i9lFq0Lxl HhrRd4hgyxULWHHhI0XAyu2QYkTRoRIHOkW15kfuGiOzP85pZfMEhrAR/zk/ijGnAuYN /ciQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kwlciD8P; 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 n4si3249518ilo.88.2021.09.16.09.31.33; Thu, 16 Sep 2021 09:31: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=kwlciD8P; 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 S242408AbhIPQbs (ORCPT + 99 others); Thu, 16 Sep 2021 12:31:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:59282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239760AbhIPQXg (ORCPT ); Thu, 16 Sep 2021 12:23:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4B20B613E6; Thu, 16 Sep 2021 16:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808950; bh=Ovgj/vvutDI05EUO8Ndt1ma2M8LJQI9jF2jiL+0HvmY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kwlciD8PF6FoXD9mIP4XDtCm2ulQxwxyenCT0KsPDtJs4jujP9LSFtGn1dEpT9NnD GbDrf4qiP//6D24Hwg40yp/n2C3v3gFkZlhR9CVM2lVS2DOsTsnY3eorZp+AT1VCyT BoF6ZDcIaCCBq1JtmXzbXneIA82dule3bP5rrNeI= 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.10 250/306] selftests/bpf: Enlarge select() timeout for test_maps Date: Thu, 16 Sep 2021 17:59:55 +0200 Message-Id: <20210916155802.595291082@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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 0d92ebcb335d..179e680e8d13 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