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

This is a memory stats from my VPS (OpenVZ).

$ free -m
         total       used       free     shared    buffers     cached
Mem:       800        405        394          0          0        405
-/+ buffers/cache:      0        800
Swap:        0          0          0

It hosts PHP stack (nginx, Apache, mod_php) + some Python apps via uWSGI, so machine is not idle anyway. Can anyone explain, why only cached memory is shown and buffers are always 0 (possibly, virtualization issue)? And what does buffers and cached memory values exactly mean?

PS: I've seen similar questions like this, but they don't make it more clear...

share|improve this question

1 Answer 1

OpenVZ does not let you see how physical memory not assigned to you is being used. It shows only the memory assigned to you and how much of it is assigned to processes you created.

You will frequently find that for this reason and many similar other reasons, it is recommend that important applications be kept a safe, and large, distance away from OpenVZ.

share|improve this answer
    
«it is recommend that important applications be kept a safe, and large, distance away from OpenVZ». Just golden. –  Roman Feb 18 at 9:30
    
Not to mention that those stats given in the question are obviously broken. Zero memory used?! –  Michael Hampton Feb 18 at 13:45

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.