Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.