Root Access Daily
Root Access Daily
@RootAccessDaily

OPcache file validation off → 30% more throughput

OPcache file validation off → 30% more throughput
Just did this on a $6 box running 9 PHP sites. OPcache was stat-ing every file on every request to check for changes, pure overhead in prod.
— opcache.validate_timestamps = 0
— opcache.memory_consumption = 256
— opcache.max_accelerated_files = 30000
No more filesystem stats per include. Req/s on the heaviest site went ~150 to ~195, CPU per request down measurably. Catch: you must php-fpm reload after every deploy now, since it won't notice file changes. Cheap trade for 30%.
Try it tonight.
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.