OpenVZ Forum


Home » General » Support » Weird memory numbers
Re: Weird memory numbers [message #20215 is a reply to message #20213] Thu, 13 September 2007 11:24 Go to previous messageGo to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

1. hmm... strange
I'll check

2. No. OS doesn't know in reallity how much RAM you will consume.
Look, you can mmap 1GB private mappings on machine with 100Mb of RAM. You will be allowed to do so on std kernel (without disabled overcimmitment). i.e. this 1GB will be charged to privvmpages.
The real memory pages are allocated later when application really wants to touch the memory. This is what charged to oomguarpages.

Applications very often map files privately with write access, so potentially they can have a full private copy of file in memory. But in reallity they touch only small pieces of it, so little memory is required. And that's why privvmpages >> oomguarpages.


http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Opensuse Template ... Discontinued?
Next Topic: Can not make VE work on external IP
Goto Forum:
  


Current Time: Tue Jul 22 12:13:04 GMT 2025

Total time taken to generate the page: 0.12118 seconds