Re: [Qemu-devel] [RFC PATCH] file ram alloc: fail if cannot preallocate

2014-02-21 Thread Paolo Bonzini
Il 21/02/2014 14:02, Alexander Graf ha scritto: I think it makes sense to disable any fallback for -mem-path, so that it always only allocates RAM pages from the -mem-path pool. But this is a big change from how it used to work before and thus needs to be properly coordinated. Paolo, Peter, any

Re: [Qemu-devel] [RFC PATCH] file ram alloc: fail if cannot preallocate

2014-02-21 Thread Alexey Kardashevskiy
On 02/22/2014 12:10 AM, Alexander Graf wrote: > > On 21.02.2014, at 14:04, Alexey Kardashevskiy wrote: > >> On 02/22/2014 12:02 AM, Alexander Graf wrote: >>> >>> On 21.02.2014, at 13:56, Alexey Kardashevskiy wrote: >>> On 02/21/2014 07:57 PM, Alexander Graf wrote: > > On 21.02.2014

Re: [Qemu-devel] [RFC PATCH] file ram alloc: fail if cannot preallocate

2014-02-21 Thread Alexey Kardashevskiy
On 02/22/2014 12:02 AM, Alexander Graf wrote: > > On 21.02.2014, at 13:56, Alexey Kardashevskiy wrote: > >> On 02/21/2014 07:57 PM, Alexander Graf wrote: >>> >>> On 21.02.2014, at 05:57, Alexey Kardashevskiy wrote: >>> On 02/10/2014 05:32 PM, Alexey Kardashevskiy wrote: > At the moment

Re: [Qemu-devel] [RFC PATCH] file ram alloc: fail if cannot preallocate

2014-02-21 Thread Alexander Graf
On 21.02.2014, at 14:04, Alexey Kardashevskiy wrote: > On 02/22/2014 12:02 AM, Alexander Graf wrote: >> >> On 21.02.2014, at 13:56, Alexey Kardashevskiy wrote: >> >>> On 02/21/2014 07:57 PM, Alexander Graf wrote: On 21.02.2014, at 05:57, Alexey Kardashevskiy wrote: > On

Re: [Qemu-devel] [RFC PATCH] file ram alloc: fail if cannot preallocate

2014-02-21 Thread Alexander Graf
On 21.02.2014, at 13:56, Alexey Kardashevskiy wrote: > On 02/21/2014 07:57 PM, Alexander Graf wrote: >> >> On 21.02.2014, at 05:57, Alexey Kardashevskiy wrote: >> >>> On 02/10/2014 05:32 PM, Alexey Kardashevskiy wrote: At the moment if the user asked for huge pages and there is no more h

Re: [Qemu-devel] [RFC PATCH] file ram alloc: fail if cannot preallocate

2014-02-21 Thread Alexey Kardashevskiy
On 02/21/2014 07:57 PM, Alexander Graf wrote: > > On 21.02.2014, at 05:57, Alexey Kardashevskiy wrote: > >> On 02/10/2014 05:32 PM, Alexey Kardashevskiy wrote: >>> At the moment if the user asked for huge pages and there is no more huge >>> pages, QEMU prints warning and falls back to the anonym

Re: [Qemu-devel] [RFC PATCH] file ram alloc: fail if cannot preallocate

2014-02-21 Thread Alexander Graf
On 21.02.2014, at 05:57, Alexey Kardashevskiy wrote: > On 02/10/2014 05:32 PM, Alexey Kardashevskiy wrote: >> At the moment if the user asked for huge pages and there is no more huge >> pages, QEMU prints warning and falls back to the anonymous memory >> allocator which is quite easy not to noti

Re: [Qemu-devel] [RFC PATCH] file ram alloc: fail if cannot preallocate

2014-02-20 Thread Alexey Kardashevskiy
On 02/10/2014 05:32 PM, Alexey Kardashevskiy wrote: > At the moment if the user asked for huge pages and there is no more huge > pages, QEMU prints warning and falls back to the anonymous memory > allocator which is quite easy not to notice. QEMU also does so even > if the user specified -mem-preal

[Qemu-devel] [RFC PATCH] file ram alloc: fail if cannot preallocate

2014-02-09 Thread Alexey Kardashevskiy
At the moment if the user asked for huge pages and there is no more huge pages, QEMU prints warning and falls back to the anonymous memory allocator which is quite easy not to notice. QEMU also does so even if the user specified -mem-prealloc and it seems wrong as the user specifically requested hu