Skip to content

Conversation

@MHIGists
Copy link

Use prime number 3907 for opcache.max_accelerated_files
Set the opcache.mmap_base to 0x20000000 to get rid of Base address marks unusable memory region
And changed the value of opcache.interned_strings_buffer to 16 because 8 is too little

Use prime number '3907'
Set the 'opcache.mmap_base' to '0x20000000'
And changed the value of 'opcache.interned_strings_buffer' to 16 because
8 is too little
@ishitatsuyuki
Copy link
Member

  • Use a descriptive commit message
  • Do not alter the parameters unless you know what you're doing

@MHIGists
Copy link
Author

First off it's good to use prime numbers rather than the number 4000 for opcache.max_accelerated_files
Sadly I don't know the significance of the value 0x20000000 but I can ensure you that this helps solving issues related to Base address marks unusable memory region(tried and tested).
And at last opcache.interned_strings_buffer should be set to 16MB. This setting improves performance and and saves memory. This saves memory caching one string and calling it every time it's repeated. I explained so you know that I actually understand what is it for.

@ishitatsuyuki
Copy link
Member

Do not blindly tune the parameters. Benchmark and show the difference.

As dktapps showed in the issue comment, the random generated value exist as a address base workaround. We cannot add something that other people don't need.

@PeratX PeratX closed this Jun 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants