Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase default shm_size #370

Open
staabm opened this issue Feb 21, 2019 · 1 comment
Open

increase default shm_size #370

staabm opened this issue Feb 21, 2019 · 1 comment

Comments

@staabm
Copy link
Contributor

staabm commented Feb 21, 2019

would it make sense to increase default shm_size?

apcu/php_apc.c

Line 142 in 33b40e0

STD_PHP_INI_ENTRY("apc.shm_size", "32M", PHP_INI_SYSTEM, OnUpdateShmSize, shm_size, zend_apcu_globals, apcu_globals)

it seems this value is way to less for a decent system nowadays.

@TysonAndre
Copy link
Contributor

https://stackoverflow.com/questions/2782628/any-way-to-reserve-but-not-commit-memory-in-linux

Also, the memory will be reserved but not committed (virtual memory) on startup, at least on Linux with mmap, though I hadn't checked other platforms. So the impact on actual free memory is small until those parts of shared memory start getting used

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

No branches or pull requests

2 participants