PHP-FPM Just In Time compiler benchmarks ON / OFF
!Friendica Admins Hello there,
(New publication attempt from another instance, sorry if you see double posts)
Is it an overlooked optimization setting because of its recent appearance in php-8 branch ? or is there a reason to have the global JIT compiler disable by default ?
I looked into closed github issues, without real clues 🤔
Anyway, adding a couple of lines enable the Just In Time compiler for better performance. Just saying 😉
diff -u /usr/local/etc/php/conf.d/opcache-recommended.ini.old /usr/local/etc/php/conf.d/opcache-recommended.ini
--- /usr/local/etc/php/conf.d/opcache-recommended.ini.old 2025-02-04 19:55:44.000000000 +0000
+++ /usr/local/etc/php/conf.d/opcache-recommended.ini 2025-02-06 06:49:21.263016902 +0000
@@ -4,3 +4,5 @@
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidte_freq=1
+opcache.jit_buffer_size=128M
+opcache.jit=tracing
Ⓜ3️⃣3️⃣ 🌌
in reply to Ⓜ3️⃣3️⃣ 🌌 • •Friendica Admins reshared this.
Hypolite Petovan
in reply to Ⓜ3️⃣3️⃣ 🌌 • • •Ⓜ3️⃣3️⃣ 🌌
in reply to Ⓜ3️⃣3️⃣ 🌌 • •I tried this : unfollow then follow ago on the group. Will see next time I have something to publish 🤔
Friendica Admins reshared this.
Ⓜ3️⃣3️⃣ 🌌
in reply to Ⓜ3️⃣3️⃣ 🌌 • •Well, maybe I'm the only one concerned about JIT disabled by default.
I think it's an heritage of obsolete PHP 7 default config, when we're currently running PHP 8, at least in Friendica's docker images.
Anyway, benchmarks indicate a real benefit for JIT enabled here 🤷
Friendica Admins reshared this.
Hypolite Petovan
in reply to Ⓜ3️⃣3️⃣ 🌌 • • •Ⓜ3️⃣3️⃣ 🌌
in reply to Ⓜ3️⃣3️⃣ 🌌 • •Yes, I remember, yet I wonder how many admins know about this setting.
And if Friendica's docker images should enable it by default.
It's not about adding a feature to Friendica's admin panel, more like having better (best?) default settings under the hood.
Anyway maybe nobody need more speed, provided servers hosting Friendica instances have enough computing power, or not enough active users to need optimization.
Friendica Admins reshared this.
Hypolite Petovan
in reply to Ⓜ3️⃣3️⃣ 🌌 • • •