Found this extremely useful post over on maxgarrick.com about how OpenVZ resource limits work. I’m re-posting a very handy diagram that was part of the blog post so that I have a local copy for my own references here:
I highly recommend that you check out the post if you want a great description of the resource limits with respect to memory work with OpenVZ.

