Thread (3 messages) 3 messages, 2 authors, 2019-05-07

Re: selftests/bpf/test_tag takes ~30 minutes?

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2019-05-07 06:50:02
Also in: bpf

Daniel Borkmann [off-list ref] writes:
On 04/30/2019 03:21 PM, Michael Ellerman wrote:
quoted
Hi Daniel,

I'm running selftests/bpf/test_tag and it's taking roughly half an hour
to complete, is that expected?

I don't really grok what the test is doing TBH, but it does appear to be
doing it 5 times :)

	for (i = 0; i < 5; i++) {
		do_test(&tests, 2, -1,     bpf_gen_imm_prog);
		do_test(&tests, 3, fd_map, bpf_gen_map_prog);
	}

Could we make it just do one iteration by default? That would hopefully
reduce the runtime by quite a bit. It could take a parameter to run the
longer version perhaps?
On my 2.5 years old laptop it's taking 16 seconds. ;)
Hrm. I guess I need to dig into why it's taking so long then :)

Today it takes 10s on the same machine :/

Is it affected by the BPF JIT being enabled/disabled?

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help