OpenVZ Forum


Home » General » Support » Memory issue
Memory issue [message #29633] Sat, 19 April 2008 12:32 Go to next message
OpenAdmin is currently offline  OpenAdmin
Messages: 7
Registered: April 2008
Junior Member
I have a machine with 4GB RAM. I have 2 VPS's on it. Each one has 512MB guaranteed RAM and 1024MB burstable however the memory on the node looks like this.

[root@openvz1 ~]# free -m
total used free shared buffers cached
Mem: 3943 3690 252 0 357 2915
-/+ buffers/cache: 417 3525
Swap: 4094 0 4094

I was working on one of the VPS's when I got an error I am limited to 334MB RAM when the main node is running out of memory.

My question is how is the machine running out of memory when I have only 2 VPS's on it and none of those VPS's use the memory nor I have anything else running on the main server which would use the RAM. What can be done in this case?
Re: Memory issue [message #29634 is a reply to message #29633] Sat, 19 April 2008 13:10 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Hi, which number exactly in the free output are you concerned with? The answer to your question is likely that Linux, like all modern operating systems, cache disk pages in unused memory. The Linux Page Cache.

Rick


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters

[Updated on: Sat, 19 April 2008 13:11]

Report message to a moderator

Re: Memory issue [message #29635 is a reply to message #29634] Sat, 19 April 2008 13:12 Go to previous messageGo to next message
OpenAdmin is currently offline  OpenAdmin
Messages: 7
Registered: April 2008
Junior Member
I know it caches it however I am concerned why OpenVZ thinks the main node is running out of memory?
Re: Memory issue [message #29636 is a reply to message #29635] Sat, 19 April 2008 13:21 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Tell us why you think openvz thinks the node is running out of memory.

try and be more specific:

"I see value XX in output YY but I feel it should be ZZ because AA".


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Memory issue [message #29637 is a reply to message #29636] Sat, 19 April 2008 13:28 Go to previous message
OpenAdmin is currently offline  OpenAdmin
Messages: 7
Registered: April 2008
Junior Member
As I said in my first post, I was working in one of the VPS's when I got a message that my script cannot be executed because I am limited to 334MB of memory when the server node is running out of free memory. In the meantime, the VPS itself is limited to 512MB guaranteed RAM and 1024MB burstable and as you can see the main node has lots of cached RAM (free ram). Why did I get that message I am limited to 334MB?
Previous Topic: Multicast Question
Next Topic: Fedora 5 and 6
Goto Forum:
  


Current Time: Sat Feb 04 08:16:59 GMT 2023

Total time taken to generate the page: 0.00791 seconds