** Tags removed: targetmilestone-inin--- ** Tags added: targetmilestone-inin1704
-- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1654067 Title: Ubuntu 16.10 KVM: Running out of memory if trying to bringup guest with more than 64VFs. Status in linux package in Ubuntu: Fix Released Status in linux source package in Yakkety: Fix Committed Status in linux source package in Zesty: Fix Released Bug description: == Comment: #0 - Carol L. Soto - 2017-01-04 12:03:57 == ---Problem Description--- If user try to create a guest with more than 64 VFs then the guest will have issues to come up but if user keeps trying to bringup this guest over and over the system will eventually start seeing out of memory messages. Like this: Jan 3 14:33:13 ltc-fire1 kernel: [ 1053.950753] systemd invoked oom-killer: gfp_mask=0x26000d0(GFP_TEMPORARY|__GFP_NOTRACK), order=0, oom_score_adj=0 Jan 3 14:33:16 ltc-fire1 kernel: [ 1053.950757] systemd cpuset=/ mems_allowed=0 Jan 3 14:33:16 ltc-fire1 kernel: [ 1053.950761] CPU: 104 PID: 1 Comm: systemd Tainted: G OE 4.8.0-34-generic #36-Ubuntu Jan 3 14:33:16 ltc-fire1 kernel: [ 1053.950763] Call Trace: ---uname output--- Linux ltc-fire1 4.8.0-34-generic #36 SMP Tue Jan 3 15:27:22 CST 2017 ppc64le ppc64le ppc64le GNU/Linux ---Additional Hardware Info--- we are using Mellanox CX4 card with SRIOV enabled to be able to create a guest with more than 64 VFs. Machine Type = P8 ---Steps to Reproduce--- create a guest with more than 64 VFs and then just try to bring up the guest by virsh start --console ltc-fire1-vm3-ubuntu-16.10-69VFs. Will attach example guest xml. == Comment: #2 - Carol L. Soto - 2017-01-04 12:09:32 == If I build a kernel with these upstream patches, then I do not see the memory leaks messages in dmesg: From 88f54a3581eb9deaa3bd1aade40aef266d782385 Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy <a...@ozlabs.ru> Date: Wed, 30 Nov 2016 17:51:59 +1100 Subject: powerpc/iommu: Pass mm_struct to init/cleanup helpers From d7baee6901b34c4895eb78efdbf13a49079d7404 Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy <a...@ozlabs.ru> Date: Wed, 30 Nov 2016 17:52:00 +1100 Subject: powerpc/iommu: Stop using @current in mm_iommu_xxx From 39701e56f5f16ea0cf8fc9e8472e645f8de91d23 Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy <a...@ozlabs.ru> Date: Wed, 30 Nov 2016 17:52:01 +1100 Subject: vfio/spapr: Postpone allocation of userspace version of TCE table From 6f01cc692a16405235d5c34056455b182682123c Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy <a...@ozlabs.ru> Date: Wed, 30 Nov 2016 17:52:02 +1100 Subject: vfio/spapr: Add a helper to create default DMA window From d9c728949ddc9de5734bf3b12ea906ca8a77f2a0 Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy <a...@ozlabs.ru> Date: Wed, 30 Nov 2016 17:52:03 +1100 Subject: vfio/spapr: Postpone default window creation From bc82d122ae4a0e9f971f13403995898fcfa0c09e Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy <a...@ozlabs.ru> Date: Wed, 30 Nov 2016 17:52:04 +1100 Subject: vfio/spapr: Reference mm in tce_container From 4b6fad7097f883335b6d9627c883cb7f276d94c9 Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy <a...@ozlabs.ru> Date: Wed, 30 Nov 2016 17:52:05 +1100 Subject: powerpc/mm/iommu, vfio/spapr: Put pages on VFIO container shutdown To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1654067/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp