Page MenuHomeFreeBSD

Significantly speed up mkimg_test
ClosedPublic

Authored by arichardson on Oct 15 2020, 3:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 24, 1:59 PM
Unknown Object (File)
Sun, Mar 22, 10:55 PM
Unknown Object (File)
Fri, Mar 20, 6:17 AM
Unknown Object (File)
Fri, Mar 20, 4:25 AM
Unknown Object (File)
Fri, Mar 20, 4:24 AM
Unknown Object (File)
Thu, Mar 19, 5:43 AM
Unknown Object (File)
Sun, Mar 15, 1:54 PM
Unknown Object (File)
Sat, Mar 14, 11:16 PM
Subscribers

Details

Summary

It turns out that the majority of the test time for the mkimg tests isn't
mkimg itself but rather the use of jot and hexdump which can be quite slow
on emulated platforms such as QEMU.

On QEMU-RISC-V this reduces the time for kyua test mkimg_test from 655
seconds to 200. And for CheriBSD on QEMU-CHERI this saves 4-5 hours (25%
of the time for the entire testsuite!) since jot ends up triggering slow
functions inside the QEMU emulation a lot.

Test Plan

tests a lot faster and make rebase still works inside buildenv

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable