Ubuntu 16.10 KVM: Running out of memory if trying to bringup guest with more than 64VFs.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Tim Gardner | ||
Yakkety |
Fix Released
|
Undecided
|
Tim Gardner | ||
Zesty |
Fix Released
|
Undecided
|
Tim Gardner |
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=
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-
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 88f54a3581eb9de
From: Alexey Kardashevskiy <email address hidden>
Date: Wed, 30 Nov 2016 17:51:59 +1100
Subject: powerpc/iommu: Pass mm_struct to init/cleanup helpers
From d7baee6901b34c4
From: Alexey Kardashevskiy <email address hidden>
Date: Wed, 30 Nov 2016 17:52:00 +1100
Subject: powerpc/iommu: Stop using @current in mm_iommu_xxx
From 39701e56f5f16ea
From: Alexey Kardashevskiy <email address hidden>
Date: Wed, 30 Nov 2016 17:52:01 +1100
Subject: vfio/spapr: Postpone allocation of userspace version of TCE table
From 6f01cc692a16405
From: Alexey Kardashevskiy <email address hidden>
Date: Wed, 30 Nov 2016 17:52:02 +1100
Subject: vfio/spapr: Add a helper to create default DMA window
From d9c728949ddc9de
From: Alexey Kardashevskiy <email address hidden>
Date: Wed, 30 Nov 2016 17:52:03 +1100
Subject: vfio/spapr: Postpone default window creation
From bc82d122ae4a0e9
From: Alexey Kardashevskiy <email address hidden>
Date: Wed, 30 Nov 2016 17:52:04 +1100
Subject: vfio/spapr: Reference mm in tce_container
From 4b6fad7097f8833
From: Alexey Kardashevskiy <email address hidden>
Date: Wed, 30 Nov 2016 17:52:05 +1100
Subject: powerpc/mm/iommu, vfio/spapr: Put pages on VFIO container shutdown
Changed in linux (Ubuntu Yakkety): | |
status: | In Progress → Fix Committed |
tags: |
added: targetmilestone-inin1704 removed: targetmilestone-inin--- |
Default Comment by Bridge