From: Eric Anholt Date: Mon, 20 Jul 2020 17:46:51 +0000 (-0700) Subject: ci: Set XDG_CACHE_HOME to tmpfs for bare-metal runners to avoid NFS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b3452a556640ab2319248c304822a9f5e2e7394;p=mesa.git ci: Set XDG_CACHE_HOME to tmpfs for bare-metal runners to avoid NFS. We don't want these files shared between builds (it'll get blown away by the next rsync), and NFS will just increase our latency for hitting the cache. Drops a630 gles31 run from 11-17 minutes to 5.5. Maximum cache size on a run I've seen is 153M, which it seems we can easily spare. Fixes: f97acb4bb4b1 ("freedreno/ir3: disk-cache support") Reviewed-by: Christian Gmeiner Reviewed-by: Rob Clark Part-of: --- diff --git a/.gitlab-ci/bare-metal/init.sh b/.gitlab-ci/bare-metal/init.sh index 00bee38a616..b7d38d175c3 100755 --- a/.gitlab-ci/bare-metal/init.sh +++ b/.gitlab-ci/bare-metal/init.sh @@ -7,9 +7,13 @@ mount -t sysfs none /sys mount -t devtmpfs none /dev || echo possibly already mounted mkdir -p /dev/pts mount -t devpts devpts /dev/pts +mount -t tmpfs tmpfs /tmp . /set-job-env-vars.sh +# Store Mesa's disk cache under /tmp, rather than sending it out over NFS. +export XDG_CACHE_HOME=/tmp + echo "nameserver 8.8.8.8" > /etc/resolv.conf if sh $BARE_METAL_TEST_SCRIPT; then