V
V
Vit2013-12-12 09:48:54
linux
Vit, 2013-12-12 09:48:54

Can increasing the segment size on Linux lead to sudden segfaults?

Good afternoon.
There is a need to enable data caching using APC for several PHP sites made on Bitrix.
The maximum segment size in the system is set to 32 MB. APC does not allow using several segments for the cache, it requires only 1. Bitrix, in turn, swears at the extremely small size of the APC cache.
Actually the question is: if I significantly increase the maximum segment size in Linux via sysctl and set the same segment size for APC, will this not lead to any sad consequences, such as sudden segfaults?
System info: Debian Squeeze amd64, 16 GB RAM, sites running on Apache 2.2 + mod_php, php 5.3

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
demimurych, 2013-12-12
@demimurych

Read on the Internet that Bitrix has a number of problems with devouring the APC cache, regardless of the APC settings.
You are probably in this exact situation.

B
Boris Syomov, 2013-12-12
@kotomyava

That's what they do, and there's nothing wrong with that. But it's better not to use APC for data caching in your situation.
The file cache is fine for you and under normal conditions will not be noticeably slower than the cache in APC. The files themselves are cached by the FS, and your cache, if there is free memory, will also be read not from disk, but from memory.
And the fact that Bitrix is ​​never smart is not a secret. =)
Well, you, apparently, should not try to mindlessly change the cache storage, but look for real bottlenecks in your project. Perhaps this is Bitrix, or rather a crookedly made site, perhaps server settings ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question