Looking for some validation of my thought process here. I don't have the stats to hand to back up my claims, but have enough experience with web hosting with and without EFS to be comfortbale in making it.
A Joomla or WordPress PHP site being served entirely from EFS (e.g. the document root is in EFS) - making use of Apache and PHP-FPM will be slower than one that is served from EBS. This is because of the inherent latency of EFS for per-file operations.
My understanding was that with Opcache enabled, all PHP scripts are compiled into Opcodes and stored in memory.
if validate_timestamps
is set to =0
then once a file is read from the file storage and compiled into Opcodes it is not then subsequently read.
What I don't understand is that even with the above set, requests to a page will still be slower on EFS. Even if the code base is held in memory.
Is my understanding incorrect and what else could be causing this latency?
0 Answers