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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel Borkmann <daniel@xxxxxxxxxxxxx> writes:
> On 04/30/2019 03:21 PM, Michael Ellerman wrote:
>> 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



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux