diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-07-20 11:54:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-07-22 12:45:56 +0100 |
commit | 8010b0d82bdf8d19d76ec0831f2a2f5410798c15 (patch) | |
tree | c5fba250c6a4eefbf1d7100ad1f5dabb9041179b /meta/lib/oeqa/utils/qemutinyrunner.py | |
parent | 4a523ac32b612e4d07195d41addace0fa9d42368 (diff) | |
download | poky-8010b0d82bdf8d19d76ec0831f2a2f5410798c15.tar.gz |
oeqa/qemurunner: Add priority/nice information for running processes
We're seeing failures due to system load. In theory we've set process
nice levels which should compensate for this. Add debugging so we can
find out if they're being correctly applied.
(From OE-Core rev: 1e4e345bba8216b9b5623682206a7dae7cad261c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/qemutinyrunner.py')
-rw-r--r-- | meta/lib/oeqa/utils/qemutinyrunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemutinyrunner.py b/meta/lib/oeqa/utils/qemutinyrunner.py index 364005bd2d..5c92941c0a 100644 --- a/meta/lib/oeqa/utils/qemutinyrunner.py +++ b/meta/lib/oeqa/utils/qemutinyrunner.py | |||
@@ -138,7 +138,7 @@ class QemuTinyRunner(QemuRunner): | |||
138 | # | 138 | # |
139 | # Walk the process tree from the process specified looking for a qemu-system. Return its [pid'cmd] | 139 | # Walk the process tree from the process specified looking for a qemu-system. Return its [pid'cmd] |
140 | # | 140 | # |
141 | ps = subprocess.Popen(['ps', 'axww', '-o', 'pid,ppid,command'], stdout=subprocess.PIPE).communicate()[0] | 141 | ps = subprocess.Popen(['ps', 'axww', '-o', 'pid,ppid,pri,ni,command'], stdout=subprocess.PIPE).communicate()[0] |
142 | processes = ps.decode("utf-8").split('\n') | 142 | processes = ps.decode("utf-8").split('\n') |
143 | nfields = len(processes[0].split()) - 1 | 143 | nfields = len(processes[0].split()) - 1 |
144 | pids = {} | 144 | pids = {} |