Bug 14328 - Mitigate AB ptest intermittent failure
Summary: Mitigate AB ptest intermittent failure
Status: RESOLVED FIXED
Alias: None
Product: Package Testing (ptest)
Classification: QA/Testing
Component: ptest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.4 M1
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks: 14163
  Show dependency tree
 
Reported: 2021-03-25 15:35 UTC by Yi Fan Yu
Modified: 2021-05-20 15:13 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Fan Yu 2021-03-25 15:35:02 UTC
It feels like an I/O load issue, work on some sort of `flock`/`dd` timeout is currently done to try to get to the bottom of the cause and verify if it is indeed I/O related.


2 solutions have been suggested in the Mar 25 triage 

IIRC they were: 

* cgroups control to give qemu an advantage over builds
* nice levels to make qemu higher priority (lowering the builds priority)
Comment 1 Randy MacLeod 2021-04-01 14:35:24 UTC
We were doing this anyway but this bug can be used to track things.
Comment 2 Richard Purdie 2021-04-15 13:35:10 UTC
Most autobuilder workers only have cgroups v1 which doesn't give the IO controls we'd need. We already set ionice/nice levels. 

The ionice level doesn't affect async writes.

We've now added support for running qemu images within tmpfs.
Comment 3 Alexandre Belloni 2021-04-15 14:58:58 UTC
Following the triage call, it seems necessary to:
 - timestamp the start and end of the image copy to tmpfs
 - double the qemu start timeout
Comment 4 Randy MacLeod 2021-05-20 15:13:32 UTC
Many changes including:
 - moving the qemu rootfs to tmpfs
 - limiting glibc self-test memory usage
 - adding smp to qemu image for x86, arm and changing the x86 target machine.
and likely more have improve ptests. Closing this generic bug. Open specific issues for additional problems.
Comment 5 Randy MacLeod 2021-05-20 15:13:45 UTC
As per previous comment.