diff options
author | Andres Freund <andres@anarazel.de> | 2025-09-12 10:18:31 -0400 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2025-09-12 10:18:31 -0400 |
commit | 20d541a200e9dfed8affef9e798ff35ca0f30b8e (patch) | |
tree | a205782bf5da932a97775e62a34dd7b59645ff70 /src | |
parent | ae0e1be9f2a20f6b64072dcee5b8dd7b9027a8fa (diff) |
ci: openbsd: Increase RAM disk's size
Its size was ~3.8GB before, which sometimes was not enough. OpenBSD CI task
often were failing due to no space left on device. Increase the RAM disk size
to ~4.6 GB.
Author: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/CAN55FZ2XVVPJRJmGB2DsL3gOrOinWh=HWvj6GO1cHzJ=6LwTag@mail.gmail.com
Backpatch-through: 18, where openbsd was added to CI
Diffstat (limited to 'src')
-rwxr-xr-x | src/tools/ci/gcp_ram_disk.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/ci/gcp_ram_disk.sh b/src/tools/ci/gcp_ram_disk.sh index d48634512ac..18dbb2037f5 100755 --- a/src/tools/ci/gcp_ram_disk.sh +++ b/src/tools/ci/gcp_ram_disk.sh @@ -15,7 +15,12 @@ case "`uname`" in umount /dev/sd0j # unused /usr/obj partition printf "m j\n\n\nswap\nw\nq\n" | disklabel -E sd0 swapon /dev/sd0j - mount -t mfs -o rw,noatime,nodev,-s=8000000 swap $CIRRUS_WORKING_DIR + # Remove the per-process data segment limit so that mount_mfs can allocate + # large memory filesystems. Without this, mount_mfs mmap() may fail with + # "Cannot allocate memory" if the requested size exceeds the current + # datasize limit. + ulimit -d unlimited + mount -t mfs -o rw,noatime,nodev,-s=10000000 swap $CIRRUS_WORKING_DIR ;; esac |