1) What guest disk cache method are you using?
2) What control panel are you running? (SolusVM?)
3) If its SolusVM and CentOS 6, turn of traffic shaping and IP stealing/ARP (Causes memory leaks)
4) KVM Can and will eat up free memory, just like a normal system, to improve performance.
Overselling RAM on KVM is pretty pointless because of this, as its almost impossible when compared to OpenVZ.
GetKVM.com | Premium KVM VPS | Linux, Windows and BSD VPS | Ignoring LET Trolls Since 2013.
@jaxyan said: the most rare things was that the used memory was not a process(s) but in the cache as refer to the top command.
That's not rare, that's how memory management in linux is. The memory is cached (saved) so that future executions (in this case read/writes) don't have to start all over again from nothing. It will get released if another program needs it, you can test this easily. Check the output of free -m as said above.
The guest just uses all free RAM for something useful (i.e. the disk cache). It does not see any need to release it back to being free, better keep some disk cache around to increase performance. Of course on the host this translates into guest using up RAM to it's allowance and not releasing any. What else would you expect.
for example, i set a guest with 2g memory.
while i try dd to test hdd performance.
the memory was used almost 2g and made cached.
the all usable memory was almost gone but will not be released after complete executing the dd command.
as a result, i found no usable memory.
almost 2g out of 2g usable memory has been used but won't get back until rebooting.
Comments
Is it this? http://www.linuxatemyram.com/
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks[update] after i tried echo 3 > /proc/sys/vm/drop_caches the memory release. so i gonna be a cache issue.
but i found rare that i have to do it manually to release the cache. and have to do twice on host and guest
any help?
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks1) What guest disk cache method are you using? 2) What control panel are you running? (SolusVM?) 3) If its SolusVM and CentOS 6, turn of traffic shaping and IP stealing/ARP (Causes memory leaks)
4) KVM Can and will eat up free memory, just like a normal system, to improve performance.
Overselling RAM on KVM is pretty pointless because of this, as its almost impossible when compared to OpenVZ.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksi just play around a kvm host and guest system in my test pc.
even when i create the guest disk image(raw) with cache='none' have no effect. sounds rare.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankscache='none' has no effect on how the guest ram is used. Linux does use memory, issue the free -m command and you will see the real usage. M
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksthe most rare things was that the used memory was not a process(s) but in the cache as refer to the top command.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksThat's not rare, that's how memory management in linux is. The memory is cached (saved) so that future executions (in this case read/writes) don't have to start all over again from nothing. It will get released if another program needs it, you can test this easily. Check the output of free -m as said above.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksThe guest just uses all free RAM for something useful (i.e. the disk cache). It does not see any need to release it back to being free, better keep some disk cache around to increase performance. Of course on the host this translates into guest using up RAM to it's allowance and not releasing any. What else would you expect.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksbut that means,
for example, i set a guest with 2g memory. while i try dd to test hdd performance. the memory was used almost 2g and made cached. the all usable memory was almost gone but will not be released after complete executing the dd command.
as a result, i found no usable memory.
almost 2g out of 2g usable memory has been used but won't get back until rebooting.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankshere are the top result after executing dd.
top - 09:28:30 up 15:34, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 53 total, 1 running, 52 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2061228k total, 2045364k used, 15864k free, 4544k buffers Swap: 562164k total, 0k used, 562164k free, 1957164k cached
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksstart KSM if it's still off and check again
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@jaxyan start a program now, you'll see cached decrease and you shouldn't delve into swap.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks