From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [bpf-next PATCH] bpf: reduce runtime of test_sockmap tests Date: Wed, 25 Apr 2018 02:15:14 +0200 Message-ID: <15936095-62b3-eb38-4e7f-ef75a9fa6667@iogearbox.net> References: <20180424232818.21788.42271.stgit@john-Precision-Tower-5810> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: John Fastabend , ast@kernel.org Return-path: Received: from www62.your-server.de ([213.133.104.62]:44454 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbeDYAPQ (ORCPT ); Tue, 24 Apr 2018 20:15:16 -0400 In-Reply-To: <20180424232818.21788.42271.stgit@john-Precision-Tower-5810> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 04/25/2018 01:28 AM, John Fastabend wrote: > When test_sockmap was running outside of selftests and was not being > run by build bots it was reasonable to spend significant amount of > time running various tests. The number of tests is high because many > different I/O iterators are run. > > However, now that test_sockmap is part of selftests rather than > iterate through all I/O sides only test a minimal set of min/max > values along with a few "normal" I/O ops. Also remove the long > running tests. They can be run from other test frameworks on a regular > cadence. > > This significanly reduces runtime of test_sockmap. > > Before: > > $ time sudo ./test_sockmap > /dev/null > > real 4m47.521s > user 0m0.370s > sys 0m3.131s > > After: > > $ time sudo ./test_sockmap > /dev/null > > real 0m0.514s > user 0m0.104s > sys 0m0.430s > > The CLI is still available for users that want to test the long > running tests that do the larger send/recv tests. > > Signed-off-by: John Fastabend Applied to bpf-next, thanks John!