[Bug 1413540] Re: issues with KSM enabled for nested KVM VMs

2015-01-22 Thread Ryan Harper
I think you'll find that nested kvm and ksm will be a worst-case
scenario w.r.t memory swap-out.  KSM actively scans the hosts memory for
pages it can unmap , which means when a guest (level 1) or nested guest
(level 2) needs to write to that memory, then you incur a page table
walk (Guest virtual to host physical) which is quite costly.  This can
be further affected by overcommit of memory, which ends up having the
hypervisor swap memory to disk to handle the working set size.  KSM will
not have any view into the the page tables, or swapping activity of the
guest (l1, or l2) meaning that overtime it's increasingly likely that
KSM will have swapped out memory needed for either the L1  or L2 guest.
Swapping L1 memory utilized to run the L2 guest is likely to the the
most painful since there are two levels of swap-in occuring (host to l1,
and the l1 to l2).  Swap in/out will be IO intensive, and blocking on io
is also more likely to trigger soft-lockups in either l1 or l2 guests.

I suggest looking at the openstack environment and disabling/turning
down the amount of memory overcommit to reduce the memory pressure on
the host.  Given that KSM isn't optimized at all for nested KVM, it's
certainly worth  disabling KSM when running nested guests (certainly in
the L1 guest, possibly the host as well) unless one wants to invest in
tuning KSM as well as close monitoring of the host memory pressure any
any L1 guest memory pressure if the L1 guest also runs an L2 guest.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu in Ubuntu.
https://bugs.launchpad.net/bugs/1413540

Title:
  issues with KSM enabled for nested KVM VMs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1413540/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1413540] Re: issues with KSM enabled for nested KVM VMs

2015-01-22 Thread Gema Gomez
I have a different VM that has crashed (also nested nova compute), this
one had ksm disabled. See log attached.

** Attachment added: soft-lockup-different-node.log
   
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1413540/+attachment/4303814/+files/soft-lockup-different-node.log

** Changed in: linux (Ubuntu)
   Status: Incomplete = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu in Ubuntu.
https://bugs.launchpad.net/bugs/1413540

Title:
  issues with KSM enabled for nested KVM VMs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1413540/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1413540] Re: issues with KSM enabled for nested KVM VMs

2015-01-22 Thread Ryan Harper
Any information about the physical host running the L1 guest?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu in Ubuntu.
https://bugs.launchpad.net/bugs/1413540

Title:
  issues with KSM enabled for nested KVM VMs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1413540/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1413540] Re: issues with KSM enabled for nested KVM VMs

2015-01-22 Thread Chris J Arges
** Summary changed:

- qemu-kvm package enables KSM on VMs
+ issues with KSM enabled for nested KVM VMs

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu in Ubuntu.
https://bugs.launchpad.net/bugs/1413540

Title:
  issues with KSM enabled for nested KVM VMs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1413540/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs