Maybe this is stupid question but i'm trying to figure out how does max_accelerated_files actually work...
I understand the "description/instructions" from PHP net
opcache.max_accelerated_files integer The maximum number of keys (and therefore scripts) in the OPcache hash table. The actual value used will be the first number in the set of prime numbers { 223, 463, 983, 1979, 3907, 7963, 16229, 32531, 65407, 130987 } that is greater than or equal to the configured value. The minimum value is 200. The maximum value is 100000 in PHP < 5.5.6, and 1000000 in later versions.
But my question is what it does with this number once is configured. Does it allocate a memory for this setting? why don't we just set number 1000000 and that's it if we have enough memory? What happens if we let say configure this number to 2000 and we have 2010 files? Do they some sort stack and once its that file turn it gets cached? What happens with un cached files?
Thank you for your answers