]> code.ossystems Code Review - openembedded-core.git/commit
qemurunner: Try to ensure mmap'd libs are paged in
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 26 May 2021 13:03:55 +0000 (14:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Jun 2021 22:49:47 +0000 (23:49 +0100)
commite77844314d09ceff9c22338d366519928f4f7284
treef36a195abea0b2bea0c0237e97d658f1885f5289
parentd5e4a55f3d8ed79afca11cbeac6f9f478537a83b
qemurunner: Try to ensure mmap'd libs are paged in

We've seeing issues where IO load appears to cause strange failures due to timeouts
within qemu. One theory for these is that it is is hitting hard page faults
at in-opportune moments which cause timing problems within the VM.

This patch is a bit of a hack which tries to ensure the data is paged in
at a point when we know we can take the time delays (waiting for the QMP
start signal). Whilst this isn't ideal, it does seem to improve things on
the autobuilder and shouldn't harm anything.

The code figures out which files to read my looking at the mmap'd files
the process has open from /proc. On Centos7 systems these files are not
user readable, if that is the case we just skip them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py