Are there any differences between these 2 examples:
- 1 Shared Memory Segment @ 256MB
- 4 Shared Memory Segments @ 64MB
Do multiple segments make it easier for APC to clean up stale entries?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By default, some systems (including most BSD variants) have very low limits on the size of a shared memory segment, so to give APC access to more memory, because you can’t increase the size of each segment, you have to increase the number of segments.
Seems like there should be just 1 setting where you say “Give APC this much memory” and it automatically figures out what to do based on your system configuration… but that’d require inspecting your configurations etc, so they just leave it up to you to configure it properly 🙂
Because it seems there are only 2 settings to account for the fact that some systems are gimpy when it comes to the size it allows, I would go for 1 big segment whenever possible.
Doesn’t seem like it should affect performance one way or the other, though.