mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 18:00:17 +02:00
Some of the unit tests we run will leak shm regions. Presumably this is because they never called `shmctl(IPC_RMID)` so the ID is laked forever. This can be seen by querying `/proc/sysvipc/shm` to see a list of old shm regions that eventually hit the maximum capacity of 4096 shm ids. Once CI is done running, run a utility application that all it does is check for SHM IDs that have zero attachments (thus unused), it was created by the UID of the runner, and it is older than ten minutes. At which point it will erase it. This will fix spurious failures in our CI caused by running out of SHM IDs, previously I had a cron job setup to restart the CI runners every hour or so which caused its own spurious failure problems. FINALLY this bug was triaged which has been annoying us for...years?