Centmin Mod LEMP users get another 5-40% boost in performance

eva2000

Well-known member
Seeing as there are some folks here using my Centmin Mod LEMP stack, I thought I'd share a quick guide I wrote for configuration tips to improve performance beyond the out of box automatic optimisations already done. In theory these configuration tips can provide an additional 5-40% improvement in some areas https://community.centminmod.com/threads/13776/

If you haven't tried latest beta then quick install & setup instructions at https://community.centminmod.com/th...-nginx-vhost-site-mysql-database-setup.12904/

Example of how you can achieve 22-29% better HTTP gzip compressed page serving performance just by switching from Centmin Mod Nginx's standard zlib 1.2.11 library usage to Cloudflare's zlib performance library fork.

chart2.webp
 
Unfortunately, only for Nginx's usage of zlib and not PHP. Actually, will look into this for CentminMod's PHP installs as well. Have a good portion of my free $100 credit and 60% off Vultr Baremetal promo deal to use for testing Centmin Mod stuff as E3-1270v6 are bloody fast :)

Not a php programmer, so will need some php zlib compression test script to test before/after improvements ? Any ideas there ? :)

edit: ok Centmin Mod latest 123.09beta01 has been updated with PHP-FPM support to optionally switch to Cloudflare zlib performance forked library https://community.centminmod.com/th...-cloudflare-zlib-fork-for-php-compiles.13814/ :)
 
Last edited:
  • Like
Reactions: Xon
@eva2000 does this apply to php's zlib version? Because by default XenForo will use gzip compression on text/html output
maybe not that all useful for Xenforo according to @Kier PHP gzip is disabled if it detects server level gzip compression in use i.e. nginx gzip ? So just having Nginx zlib using Cloudflare's zlib forked library is enough to get the benefits

XenForo does ship with gzip support enabled by default, and we don't provide a user option to disable it (why would anyone ever want to not run it?) but the system should detect that the server is already applying gzip compression at the server level and disable XF's own system.
Is that still the case ?
 
XF actually has an option to disable gzip ($config['enableGzip']) as it works off the HTTP_ACCEPT_ENCODING header from the upstream system.

It just does gzencode($content, 1);, so might not be to useful.
 
Ah that means level 1 compression so yeah not very useful. Though maybe other non-xenforo php apps might make use of php gzip ? Either way option is there to be used in Centmin Mod LEMP stack if folks want to switch PHP-FPM zlib library usage from system zlib to cloudflare zlib performance fork :)
 
  • Like
Reactions: Xon
Top Bottom