Re: 9 TiB vm memory creation

2022-02-15 Thread Daniel P . Berrangé
On Tue, Feb 15, 2022 at 09:38:34AM +0100, David Hildenbrand wrote: > On 15.02.22 09:12, Ani Sinha wrote: > > On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand wrote: > >> > >> On 15.02.22 08:00, Ani Sinha wrote: > >>> > >>> > >>> On Mon, 14 Feb 2022, David Hildenbrand wrote: > >>> > On

Re: 9 TiB vm memory creation

2022-02-15 Thread David Hildenbrand
On 15.02.22 10:40, Ani Sinha wrote: > On Tue, Feb 15, 2022 at 2:08 PM David Hildenbrand wrote: >> >> On 15.02.22 09:12, Ani Sinha wrote: >>> On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand wrote: On 15.02.22 08:00, Ani Sinha wrote: > > > On Mon, 14 Feb 2022, David

Re: 9 TiB vm memory creation

2022-02-15 Thread Ani Sinha
On Tue, Feb 15, 2022 at 2:08 PM David Hildenbrand wrote: > > On 15.02.22 09:12, Ani Sinha wrote: > > On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand wrote: > >> > >> On 15.02.22 08:00, Ani Sinha wrote: > >>> > >>> > >>> On Mon, 14 Feb 2022, David Hildenbrand wrote: > >>> > On 14.02.22

Re: 9 TiB vm memory creation

2022-02-15 Thread Ani Sinha
On Tue, Feb 15, 2022 at 3:14 PM David Hildenbrand wrote: > > On 15.02.22 10:40, Ani Sinha wrote: > > On Tue, Feb 15, 2022 at 2:08 PM David Hildenbrand wrote: > >> > >> On 15.02.22 09:12, Ani Sinha wrote: > >>> On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand > >>> wrote: > > On

Re: 9 TiB vm memory creation

2022-02-15 Thread David Hildenbrand
On 15.02.22 10:48, Ani Sinha wrote: > On Tue, Feb 15, 2022 at 3:14 PM David Hildenbrand wrote: >> >> On 15.02.22 10:40, Ani Sinha wrote: >>> On Tue, Feb 15, 2022 at 2:08 PM David Hildenbrand wrote: On 15.02.22 09:12, Ani Sinha wrote: > On Tue, Feb 15, 2022 at 1:25 PM David

Re: 9 TiB vm memory creation

2022-02-15 Thread David Hildenbrand
On 15.02.22 09:12, Ani Sinha wrote: > On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand wrote: >> >> On 15.02.22 08:00, Ani Sinha wrote: >>> >>> >>> On Mon, 14 Feb 2022, David Hildenbrand wrote: >>> On 14.02.22 13:36, Igor Mammedov wrote: > On Mon, 14 Feb 2022 10:54:22 +0530 (IST) >

Re: 9 TiB vm memory creation

2022-02-15 Thread Ani Sinha
On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand wrote: > > On 15.02.22 08:00, Ani Sinha wrote: > > > > > > On Mon, 14 Feb 2022, David Hildenbrand wrote: > > > >> On 14.02.22 13:36, Igor Mammedov wrote: > >>> On Mon, 14 Feb 2022 10:54:22 +0530 (IST) > >>> Ani Sinha wrote: > >>> > Hi Igor:

Re: 9 TiB vm memory creation

2022-02-14 Thread David Hildenbrand
On 15.02.22 08:00, Ani Sinha wrote: > > > On Mon, 14 Feb 2022, David Hildenbrand wrote: > >> On 14.02.22 13:36, Igor Mammedov wrote: >>> On Mon, 14 Feb 2022 10:54:22 +0530 (IST) >>> Ani Sinha wrote: >>> Hi Igor: I failed to spawn a 9 Tib VM. The max I could do was a 2 TiB vm on

Re: 9 TiB vm memory creation

2022-02-14 Thread Ani Sinha
> > > With KVM enabled it bails out with: > > >qemu-system-x86_64: kvm_set_user_memory_region: > > > KVM_SET_USER_MEMORY_REGION failed, slot=1, start=0x1, > > > size=0x8ff4000: Invalid argument > > > > > I have seen this in my system but not always. Maybe I should have dug >

Re: 9 TiB vm memory creation

2022-02-14 Thread Ani Sinha
> > static hwaddr kvm_max_slot_size = ~0; > > > > And only s390x sets > > > > kvm_set_max_memslot_size(KVM_SLOT_MAX_BYTES); > > > > with > > > > #define KVM_SLOT_MAX_BYTES (4UL * TiB) > > > > > So seems in Igor's system its getting limited by kvm not qemu. oops sorry, I read through the

Re: 9 TiB vm memory creation

2022-02-14 Thread Ani Sinha
On Mon, 14 Feb 2022, David Hildenbrand wrote: > On 14.02.22 13:36, Igor Mammedov wrote: > > On Mon, 14 Feb 2022 10:54:22 +0530 (IST) > > Ani Sinha wrote: > > > >> Hi Igor: > >> > >> I failed to spawn a 9 Tib VM. The max I could do was a 2 TiB vm on my > >> system with the following

Re: 9 TiB vm memory creation

2022-02-14 Thread David Hildenbrand
>>> >>> With KVM enabled it bails out with: >>>qemu-system-x86_64: kvm_set_user_memory_region: >>> KVM_SET_USER_MEMORY_REGION failed, slot=1, start=0x1, >>> size=0x8ff4000: Invalid argument >>> >>> all of that on a host with 32G of RAM/no swap. >>> >>> >> >> #define

Re: 9 TiB vm memory creation

2022-02-14 Thread Igor Mammedov
On Mon, 14 Feb 2022 15:37:53 +0100 David Hildenbrand wrote: > On 14.02.22 13:36, Igor Mammedov wrote: > > On Mon, 14 Feb 2022 10:54:22 +0530 (IST) > > Ani Sinha wrote: > > > >> Hi Igor: > >> > >> I failed to spawn a 9 Tib VM. The max I could do was a 2 TiB vm on my > >> system with the

Re: 9 TiB vm memory creation

2022-02-14 Thread David Hildenbrand
On 14.02.22 13:36, Igor Mammedov wrote: > On Mon, 14 Feb 2022 10:54:22 +0530 (IST) > Ani Sinha wrote: > >> Hi Igor: >> >> I failed to spawn a 9 Tib VM. The max I could do was a 2 TiB vm on my >> system with the following commandline before either the system >> destabilized or the OOM killed

Re: 9 TiB vm memory creation

2022-02-14 Thread Igor Mammedov
On Mon, 14 Feb 2022 10:54:22 +0530 (IST) Ani Sinha wrote: > Hi Igor: > > I failed to spawn a 9 Tib VM. The max I could do was a 2 TiB vm on my > system with the following commandline before either the system > destabilized or the OOM killed killed qemu > > -m 2T,maxmem=9T,slots=1 \ > -object