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)
Wed, Apr 3, 1:48 AM
Unknown Object (File)
Dec 20 2023, 5:03 AM
Unknown Object (File)
Nov 21 2023, 2:09 PM
Unknown Object (File)
Nov 12 2023, 7:56 AM
Unknown Object (File)
Nov 8 2023, 7:09 AM
Unknown Object (File)
Oct 20 2023, 1:07 PM
Unknown Object (File)
Oct 11 2023, 6:55 AM
Unknown Object (File)
Oct 7 2023, 6:02 AM
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