Skip to content

test-runner: use virtio-fs by default, functional test speedup

Pauli Virtanen linux-bluetooth 2 versions – Applied

Status from this message: This series was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- refactor start_qemu() argv building
- split out rootfs setup to separate functions
- fix bug in check_virtualization() that causes problems here

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4tools/test-runner: replace alloca() based argv setuptools/test-runner.c+89 -431 reply
2/4doc: enable virtio-fs in tester kernel configsdoc/ci.config doc/tester.config+4 -00 replies
3/4tools/test-runner: use virtiofsd for filesystem passthroughdoc/test-runner.rst tools/test-runner.c+227 -160 replies
4/4tools/test-runner: Fix CPUID register clobberstools/test-runner.c+8 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH BlueZ v2 0/4] test-runner: use virtio-fs by default, functional test speedup

v2:
- refactor start_qemu() argv building
- split out rootfs setup to separate functions
- fix bug in check_virtualization() that causes problems here

***

Use virtio-fs instead of 9p, which gives 3x reduction in CPU time for functional tests:

Before:

$ time make check-functional
real	1m56,857s
user	8m37,727s
sys	2m21,655s

After:

$ time make check-functional
real	1m4,714s
user	2m52,831s
sys	0m37,379s

Wall clock improvement becomes more significant under CPU load.

Requires /usr/libexec/virtiofsd installed, and CONFIG_VIRTIO_FS=y in kernel. Enable that option in tester configs.

If virtiofsd is not available, fall back to 9p as before.

Pauli Virtanen (4):
tools/test-runner: replace alloca() based argv setup
doc: enable virtio-fs in tester kernel configs tools/test-runner: use virtiofsd for filesystem passthrough tools/test-runner: Fix CPUID register clobbers

 doc/ci.config       |   2 +
 doc/test-runner.rst |  10 +-
 doc/tester.config   |   2 +
 tools/test-runner.c | 414 +++++++++++++++++++++++++++++++++++---------
 4 files changed, 346 insertions(+), 82 deletions(-)
Signature · 1 line
2.55.0