Re: [PATCH] qemu: Relax memory pre-allocation rules

2020-12-14 Thread Igor Mammedov
On Mon, 30 Nov 2020 11:14:20 + Daniel P. Berrangé wrote: > On Mon, Nov 30, 2020 at 11:48:28AM +0100, Michal Privoznik wrote: > > On 11/30/20 11:16 AM, Daniel P. Berrangé wrote: > > > On Mon, Nov 30, 2020 at 11:06:14AM +0100, Michal Privoznik wrote: > > > > Currently, we configure QEMU to

Re: [PATCH] qemu: Relax memory pre-allocation rules

2020-11-30 Thread Michal Privoznik
On 11/30/20 12:14 PM, Daniel P. Berrangé wrote: On Mon, Nov 30, 2020 at 11:48:28AM +0100, Michal Privoznik wrote: On 11/30/20 11:16 AM, Daniel P. Berrangé wrote: On Mon, Nov 30, 2020 at 11:06:14AM +0100, Michal Privoznik wrote: Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1894053

Re: [PATCH] qemu: Relax memory pre-allocation rules

2020-11-30 Thread Daniel P . Berrangé
On Mon, Nov 30, 2020 at 11:48:28AM +0100, Michal Privoznik wrote: > On 11/30/20 11:16 AM, Daniel P. Berrangé wrote: > > On Mon, Nov 30, 2020 at 11:06:14AM +0100, Michal Privoznik wrote: > > > Currently, we configure QEMU to prealloc memory almost by > > > default. Well, by default for NVDIMMs,

Re: [PATCH] qemu: Relax memory pre-allocation rules

2020-11-30 Thread Michal Privoznik
On 11/30/20 11:21 AM, Peter Krempa wrote: On Mon, Nov 30, 2020 at 11:06:14 +0100, Michal Privoznik wrote: Currently, we configure QEMU to prealloc memory almost by default. Well, by default for NVDIMMs, hugepages and if user asked us to (via memoryBacking ). However, there are two cases where

Re: [PATCH] qemu: Relax memory pre-allocation rules

2020-11-30 Thread Michal Privoznik
On 11/30/20 11:16 AM, Daniel P. Berrangé wrote: On Mon, Nov 30, 2020 at 11:06:14AM +0100, Michal Privoznik wrote: Currently, we configure QEMU to prealloc memory almost by default. Well, by default for NVDIMMs, hugepages and if user asked us to (via memoryBacking ). However, there are two

Re: [PATCH] qemu: Relax memory pre-allocation rules

2020-11-30 Thread Peter Krempa
On Mon, Nov 30, 2020 at 11:06:14 +0100, Michal Privoznik wrote: > Currently, we configure QEMU to prealloc memory almost by > default. Well, by default for NVDIMMs, hugepages and if user > asked us to (via memoryBacking ). > > However, there are two cases where this approach is not the best: > >

Re: [PATCH] qemu: Relax memory pre-allocation rules

2020-11-30 Thread Daniel P . Berrangé
On Mon, Nov 30, 2020 at 11:06:14AM +0100, Michal Privoznik wrote: > Currently, we configure QEMU to prealloc memory almost by > default. Well, by default for NVDIMMs, hugepages and if user > asked us to (via memoryBacking ). > > However, there are two cases where this approach is not the best: >

[PATCH] qemu: Relax memory pre-allocation rules

2020-11-30 Thread Michal Privoznik
Currently, we configure QEMU to prealloc memory almost by default. Well, by default for NVDIMMs, hugepages and if user asked us to (via memoryBacking ). However, there are two cases where this approach is not the best: 1) in case when guest's NVDIMM is backed by real life NVDIMM. In this case