[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [RFC 1/5] virtio-balloon: Remove unnecessary MADV_WILLNEE
From: |
David Hildenbrand |
Subject: |
Re: [Qemu-ppc] [RFC 1/5] virtio-balloon: Remove unnecessary MADV_WILLNEED on deflate |
Date: |
Mon, 15 Oct 2018 13:14:25 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
>> (And "Expect access in the near future." does not sound like guarantees
>> to me either way)
>
> Should we be concerned about impact on performance though?
Yes, it really depends on the use case (and most of the time, the memory
won't be directly reused). Let's document it in the commit log just as
you suggest.
>
> Thinking aloud it might have an impact. But there is also a benefit.
> Let's document known effects so people know what to look for
> if they see issues?
>
> WILLNEED aggressively faults all memory in, removing it
> will cause just as much memory as needed to be allocated on access,
> slowing down the CPU at that point but conserving host memory.
>
> With this patch device assignment (e.g. with VFIO) hotplug will take
> longer
> as it needs to allocate all this memory on hotplug.
> While this happens all VM is paused right now.
--
Thanks,
David / dhildenb
- Re: [Qemu-ppc] [RFC 2/5] virtio-balloon: Corrections to address verification, (continued)
[Qemu-ppc] [RFC 4/5] virtio-balloon: Use ram_block_discard_range() instead of raw madvise(), David Gibson, 2018/10/11
[Qemu-ppc] [RFC 5/5] virtio-balloon: Safely handle BALLOON_PAGE_SIZE < host page size, David Gibson, 2018/10/11
- Re: [Qemu-ppc] [RFC 5/5] virtio-balloon: Safely handle BALLOON_PAGE_SIZE < host page size, David Hildenbrand, 2018/10/12
- Re: [Qemu-ppc] [RFC 5/5] virtio-balloon: Safely handle BALLOON_PAGE_SIZE < host page size, David Gibson, 2018/10/13
- Re: [Qemu-ppc] [RFC 5/5] virtio-balloon: Safely handle BALLOON_PAGE_SIZE < host page size, David Hildenbrand, 2018/10/15
- Re: [Qemu-ppc] [RFC 5/5] virtio-balloon: Safely handle BALLOON_PAGE_SIZE < host page size, David Gibson, 2018/10/16
- Re: [Qemu-ppc] [RFC 5/5] virtio-balloon: Safely handle BALLOON_PAGE_SIZE < host page size, David Hildenbrand, 2018/10/17
- Re: [Qemu-ppc] [RFC 5/5] virtio-balloon: Safely handle BALLOON_PAGE_SIZE < host page size, David Gibson, 2018/10/23
- Re: [Qemu-ppc] [RFC 5/5] virtio-balloon: Safely handle BALLOON_PAGE_SIZE < host page size, David Hildenbrand, 2018/10/23
Re: [Qemu-ppc] [RFC 5/5] virtio-balloon: Safely handle BALLOON_PAGE_SIZE < host page size, David Hildenbrand, 2018/10/12