mirror of
https://github.com/karatektus/pl_mail.git
synced 2026-10-25 10:04:18 +00:00
The php container took about a minute to start on TrueNAS, and 58 of those 61 seconds were one line of the entrypoint: setfacl -R over all of var/. On the TrueNAS layout var/data is the whole data dataset - the Postgres files, one .eml per stored message, every attachment - and the dataset refuses POSIX ACLs, so the walk read the metadata of every file only to be told no. The second pass took 0.3s because the first had warmed the cache. Every service running the entrypoint did the same walk at the same moment: seven of them in that layout. The ACLs were for www-data, which nothing in the image runs as - the line came with the Symfony Docker template. They are set on var/cache and var/log alone now, the two directories Symfony writes. Measured in the released image: the step took 1.4-1.9s with 100,000 message files under var/data on RAM-backed storage against 0.2s with none; it now takes 0.2s either way, and the mail files are left without ACL entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>