Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In PHP xCache and APC, there are options that allows to set maximum memory. Do xCache and APC actually RESERVE the memory, or they just use it whenever they need to?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I'm not sure what you mean by the RESERVE. If you use malloc on Linux to allocate some memory, you get pointer to some virtual memory, which is not yet mapped to physical RAM. Physical memory pages are allocated only when you start putting data there.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.