[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4d7d32d2-5220-4867-627d-461138a74684@fujitsu.com>
Date: Wed, 18 Aug 2021 10:15:17 +0000
From: "lizhijian@...itsu.com" <lizhijian@...itsu.com>
To: "lizhijian@...itsu.com" <lizhijian@...itsu.com>,
"shuah@...nel.org" <shuah@...nel.org>,
"linux-kselftest@...r.kernel.org" <linux-kselftest@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"bpf@...r.kernel.org" <bpf@...r.kernel.org>
CC: "ast@...nel.org" <ast@...nel.org>,
"daniel@...earbox.net" <daniel@...earbox.net>,
"andrii@...nel.org" <andrii@...nel.org>,
"kafai@...com" <kafai@...com>,
"songliubraving@...com" <songliubraving@...com>,
"yhs@...com" <yhs@...com>,
"kpsingh@...nel.org" <kpsingh@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"philip.li@...el.com" <philip.li@...el.com>,
"yifeix.zhu@...el.com" <yifeix.zhu@...el.com>,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] selftests/bpf: enlarge timeout to 3 seconds for test_maps
Just noticed that 3 seconds is not enough sometimes, i'm trying to update to 10 seconds instead.
If 10 seconds works, i will send V2 to do that.
Thanks
Zhijian
On 18/08/2021 15:16, Li Zhijian wrote:
> 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.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Signed-off-by: Li Zhijian <lizhijian@...fujitsu.com>
> ---
> 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..72673e0428fd 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 = 3;
> to.tv_usec = 0;
> s = select(sfd[3] + 1, &w, NULL, NULL, &to);
> if (s == -1) {
Powered by blists - more mailing lists