[Bug 1413540] Re: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Serge Hallyn
A few comments here.

First, some of upstream qemu's position is that nested KVM is not for
enterprise installs in the first place.  (Others feel that if there are
bugs, they should be worked out)

Second, the bug appears to be a soft luckup.  It seems to me the bug
should be about that.  If you've opened a separate bug about the lockup
itself, please mark it both against qemu and linux. If not, then let's
mark this bug as also affecting linux.

Thirdly, there's the question of how to (assuming we decide to)
implement this.  Should /etc/init/qemu-kvm do something like

   grep -qi qemu /proc/cpuinfo  echo 0  /sys/kernel/mm/ksm/run

?

Note that you can currently do this yourself by having your VM install
(say at cloud-init or in juju install section) set KSM_ENABLED=0 in
/etc/default/qemu-kvm

I'm not sure how to mark the priroity of this bug.  If the bug is about
the soft lockup, that's high priority (against linux).  if it's about
disabling ksm, that's low priority (against qemu, since there's a
workaround)

** Changed in: qemu (Ubuntu)
   Importance: Undecided = Low

** Changed in: qemu (Ubuntu)
   Status: New = 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:
  qemu-kvm package enables KSM on 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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Serge Hallyn
Moving to qemu;  qemu-kvm is the source package only up to precise.

** Package changed: qemu-kvm (Ubuntu) = qemu (Ubuntu)

-- 
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:
  qemu-kvm package enables KSM on VMs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Adam Collard
** Package changed: ubuntu = qemu-kvm (Ubuntu)

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

Title:
  qemu-kvm package enables KSM on VMs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Gema Gomez
** Attachment added: apport.qemu-kvm.3i3ndao3.apport
   
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1413540/+attachment/4303546/+files/apport.qemu-kvm.3i3ndao3.apport

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

Title:
  qemu-kvm package enables KSM on VMs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Gema Gomez
ProblemType: Bug
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
Date: Thu Jan 22 10:37:18 2015
DistroRelease: Ubuntu 14.04
Ec2AMI: ami-000f
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.medium
Ec2Kernel: aki-0002
Ec2Ramdisk: ari-0002
Package: qemu-kvm (not installed)
ProcEnviron:
 TERM=xterm-256color
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 XDG_RUNTIME_DIR=set
ProcVersionSignature: User Name 3.13.0-44.73-generic 3.13.11-ckt12
SourcePackage: qemu
Tags:  trusty ec2-images
Uname: Linux 3.13.0-44-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
_MarkForUpload: True

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

Title:
  qemu-kvm package enables KSM on VMs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Gema Gomez
Please, bear in mind I have already modified the KSM value for this node
not to crash, that is the only change made to this system after the
issue, other than rebooting it.

** Attachment added: apport.qemu-system-x86.hhh4e6d9.apport
   
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1413540/+attachment/4303547/+files/apport.qemu-system-x86.hhh4e6d9.apport

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

Title:
  qemu-kvm package enables KSM on VMs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Gema Gomez
apport file for linux.

** Attachment added: apport.linux-image-3.13.0-44-generic.61de1tqv.apport
   
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1413540/+attachment/4303622/+files/apport.linux-image-3.13.0-44-generic.61de1tqv.apport

-- 
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:
  qemu-kvm package enables KSM on 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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Gema Gomez
apport file for linux.

** Attachment added: apport.linux-image-3.13.0-44-generic.61de1tqv.apport
   
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1413540/+attachment/4303621/+files/apport.linux-image-3.13.0-44-generic.61de1tqv.apport

-- 
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:
  qemu-kvm package enables KSM on 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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Gema Gomez
I can reproduce this issue and hand a VM over to whoever is going to
triage in a hung state.

-- 
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:
  qemu-kvm package enables KSM on 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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Chris J Arges
** Changed in: linux (Ubuntu)
 Assignee: (unassigned) = Chris J Arges (arges)

** Changed in: linux (Ubuntu)
   Importance: Undecided = High

-- 
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:
  qemu-kvm package enables KSM on 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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Serge Hallyn
@gema,

please re-do the 'apport-collect 1413540' (with the new, corrected
package names)

** Also affects: linux (Ubuntu)
   Importance: Undecided
   Status: New

-- 
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:
  qemu-kvm package enables KSM on 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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Gema Gomez
apport for qemu

** Attachment added: apport.qemu.pnfp6lff.apport
   
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1413540/+attachment/4303623/+files/apport.qemu.pnfp6lff.apport

-- 
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:
  qemu-kvm package enables KSM on 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: qemu-kvm package enables KSM on VMs

2015-01-22 Thread Chris J Arges
@serge-hallyn:

First step is to debug this issue and see if its a reasonable fix. If
that's possible then we should leave qemu alone.

Second if we want to disable KSM for nested VMs relying on a 'QEMU' cpu isn't 
sufficient if someone uses a different -cpu flag. We could do:
grep -q Booting paravirtualized kernel on KVM  /var/log/kern.log  echo 0  
/sys/kernel/mm/ksm/run
Or use tools like virt-what.

Regardless I'll work on step 1.

-- 
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:
  qemu-kvm package enables KSM on 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