krakjoe / apcu

APCu - APC User Cache
Other
957 stars 193 forks source link

increase default shm_size #370

Open staabm opened 5 years ago

staabm commented 5 years ago

would it make sense to increase default shm_size? https://github.com/krakjoe/apcu/blob/33b40e061b650af782b1755d58b0726fc049571a/php_apc.c#L142

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

TysonAndre commented 1 year ago

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