mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-01 06:04:12 +08:00
81f25d8f27
Currently we run deqp-runner inside a single VM, which makes very poor use of the available CPUs because Virgl has a bottleneck in the VMM that serializes everything. With this change, we can run several Crosvm instances in a runner and make full use of the CPUs. Getting the same coverage with 3 runners instead of 6. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12828>
30 lines
536 B
Bash
Executable File
30 lines
536 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
export DEQP_TEMP_DIR=$1
|
|
|
|
mount -t proc none /proc
|
|
mount -t sysfs none /sys
|
|
mkdir -p /dev/pts
|
|
mount -t devpts devpts /dev/pts
|
|
mount -t tmpfs tmpfs /tmp
|
|
|
|
. $DEQP_TEMP_DIR/crosvm-env.sh
|
|
|
|
cd $PWD
|
|
|
|
dmesg --level crit,err,warn -w >> $DEQP_TEMP_DIR/stderr &
|
|
|
|
set +e
|
|
stdbuf -oL sh $DEQP_TEMP_DIR/crosvm-script.sh 2>> $DEQP_TEMP_DIR/stderr >> $DEQP_TEMP_DIR/stdout
|
|
echo $? > $DEQP_TEMP_DIR/exit_code
|
|
set -e
|
|
|
|
sync
|
|
sleep 1
|
|
|
|
poweroff -d -n -f || true
|
|
|
|
sleep 1 # Just in case init would exit before the kernel shuts down the VM
|