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)
Mon, Feb 10, 7:53 AM
Unknown Object (File)
Sun, Feb 9, 9:22 AM
Unknown Object (File)
Sun, Feb 9, 5:40 AM
Unknown Object (File)
Thu, Jan 30, 5:43 AM
Unknown Object (File)
Jan 28 2025, 11:31 PM
Unknown Object (File)
Sep 8 2024, 12:27 PM
Unknown Object (File)
Sep 5 2024, 4:21 PM
Unknown Object (File)
Sep 1 2024, 5:30 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