CI speed improvements for FreeBSD
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-08-27T22:29:39Z
Lists: pgsql-hackers
Attachments
- 0001-ci-Use-a-RAM-disk-on-FreeBSD.patch (text/x-patch) patch 0001
- 0002-ci-Use-more-CPUs-on-FreeBSD.patch (text/x-patch) patch 0002
Hi, Here are a couple of changes that got FreeBSD down to 4:29 total, 2:40 in test_world in my last run (over 2x speedup), using a RAM disk backed by a swap partition, and more CPUs. It's still a regular UFS file system but FreeBSD is not as good at avoiding I/O around short lived files and directories as Linux: it can get hung up on a bunch of synchronous I/O, and also flushes disk caches for those writes, without an off switch. I don't know about Windows, but I suspect the same applies there, ie synchronous I/O blocking system calls around our blizzard of file creations and unlinks. Anyone know how to try it?
Commits
-
ci: Use a RAM disk and more CPUs on FreeBSD.
- 0265e5c120e0 17.0 landed