From f79928d7d13ed7d032d39e9abb7a96d0b36b31bd Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Fri, 17 Feb 2023 08:42:41 +0100 Subject: [PATCH] Increase db timeout 3s -> 60s (#35517) When running many concurrent spack install processes that need to write to the db, Spack regularly times out. This is because writing to the DB after another process has written to it requires deserialization of the db, mutating it in memory, and serializing it again, which takes some time. On top of that, I believe there's a 1 second retry when a write lock cannot be obtained, so I think this means only 3 processes can really write to the DB at the same time before timing out. --- etc/spack/defaults/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/spack/defaults/config.yaml b/etc/spack/defaults/config.yaml index b3356428fe4..9735987bd77 100644 --- a/etc/spack/defaults/config.yaml +++ b/etc/spack/defaults/config.yaml @@ -176,7 +176,7 @@ config: # when Spack needs to manage its own package metadata and all operations are # expected to complete within the default time limit. The timeout should # therefore generally be left untouched. - db_lock_timeout: 3 + db_lock_timeout: 60 # How long to wait when attempting to modify a package (e.g. to install it).