Posts tagged “Lto”
Pinned: One idempotent script for the whole Ubuntu web stack
Angie, PHP-FPM, MariaDB, Valkey and Elasticsearch from a single Bash entry point: every command, option and safety rule in one place.

clang, PHP 8.4 and the missing zlib: the last round of compiled PHP
The final round of the compiled-PHP question: CentminMod's function alignment on its own, a clang build and PHP 8.4, with every module compiled from source. clang is the only build with a repeatable edge (+3 % on XenForo), 8.4 is slower than 8.5, and my earlier source builds were missing zlib.

Everything on: LTO, PGO and -march=native made PHP 8.5 slower
A follow-up to the four-build PHP test: turn on every CentminMod compiler option, add LTO and two-stage PGO trained on real XenForo traffic, and compile every module from source. The result is 5 to 10 % slower than the distribution package, not faster.

Is a compiled PHP faster? Four builds, one Xeon, and a JIT that makes the question moot
Sury packages, Ubuntu's archive, and PHP built from source with -O3 -march=native and only the modules XenForo needs. On a PHP-bound forum the difference was inside the noise, and the reason is the tracing JIT.

Who compresses a logged-in XenForo page? 12 % of PHP, one fastcgi_param, and a clock that lied
Profiling the member pages of a XenForo forum showed zlib eating 12 % of PHP-FPM CPU: XenForo gzips its own pages at level 9 inside the worker. Moving that to Angie gave +5 % on the forum index and +9 % on thread pages. Along the way, a CPU turbo budget faked a 27 % speed-up, and three other ideas did not survive measurement.

Deleting my bot filter: 2,400 lines, one proxy hop, and what an Angie map actually costs
I removed the optional Anubis bot filter from my provisioning stack: what it cost, how to migrate a host without taking the sites down, and an honest measurement of what is left in the Angie request path. The maps were already lean; one regex if was not.

PHP-FPM, FrankenPHP, RoadRunner or Swoole? The PHP layer decides less than you think
Eleven ways to execute PHP, one application-shaped workload, then the real WordPress, XenForo and Chevereto pages. Worker runtimes are 1.4-1.6x faster, but the applications cannot use them without a port; PHP-FPM stays the default.

Angie, nginx, FreeNginx, OpenResty, Tengine or Caddy? The cache decides
Six web servers, one PHP-FPM pool, three real applications and the same load generator. The event loop is not what separates them; a generic full-page cache is, and stock Caddy does not have one.

gzip, Brotli or zstd? It depends on what you are compressing
Measured per tier on one origin: precompressed Brotli made static files 22-30x faster, zstd cut the CPU of compressing member pages by 61%, and the guest cache was already right. Plus a cookie trick that leaked member pages to guests.

