LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 09-26-2011, 04:33 AM   #1
Sander88
LQ Newbie
 
Registered: Mar 2010
Location: The Netherlands
Posts: 11

Rep: Reputation: 0
Host machine out of memory with QEMU/KVM 0.14


Hi,

I'm running KVM with libvirt for 2 years now. But I have a strange issue since a few months. The host machine runs out of memory and swap which causes kernel panic. My host machine (Ubuntu 10.10 x64) has 8gb memory and 2gb swap. I run 3 guests on this machine with the following memory settings:

- Guest 1: max and current usage: 2gb.
- Guest 2: max and current usage: 2gb.
- Guest 3: max 3gb and current usage: 2gb.

Total max. usage by guest: 7gb.

KVM/Libvirt version info
Compiled against library: libvir 0.9.0
Using library: libvir 0.9.0
Using API: QEMU 0.9.0
Running hypervisor: QEMU 0.14.0

When all guests are under high load the systeem may run out of memory (once or twice a month). I checked the memory usage from time to time: the KVM the process of Guest 3 uses more than 3gb (4.1gb is the max. I have seen). How is this possible?

Already thanks for your help and time.

Best regards,
Sander
 
Old 09-26-2011, 06:51 AM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
The actual memory usage for each VM is slightly larger than the requested size. qemu-kvm VMs run about 20-25 percent more memory than the requested size on my systems. Reduce the amount of memory for each VM using that formula and that should solve the memory over commit issue.
 
Old 09-26-2011, 09:31 AM   #3
Sander88
LQ Newbie
 
Registered: Mar 2010
Location: The Netherlands
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for your reply.

I have lowered the max. total memory usage to 6gb (on a machine with 8gb RAM and 2gb swap). I will update this thread when I have the issue again.
 
Old 09-27-2011, 02:52 PM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
have you tried to use KSM or balooning?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM / QEMU and NAT on the host machine (mini-tutorial) heby Linux - Networking 5 05-16-2012 10:17 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
LXer: Attempt of qemu-kvm-0.14 patching via Gerd’s Hoffmann “spice/qxl: locking fix for qemu-kvm” on LXer Syndicated Linux News 0 03-14-2011 01:20 PM
[SOLVED] Qemu-kvm memory and swap problem Linux.tar.gz Linux - Virtualization and Cloud 4 09-17-2010 07:18 AM
Share between Qemu-Kvm host and guest Alexvader General 1 06-13-2010 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration