[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 0/6] virtio-mem: block size and address-assignment optimiz
From: |
David Hildenbrand |
Subject: |
Re: [PATCH v3 0/6] virtio-mem: block size and address-assignment optimizations |
Date: |
Thu, 22 Oct 2020 10:10:32 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 |
On 08.10.20 10:30, David Hildenbrand wrote:
>
>
> Let's try to detect the actual THP size and use it as default block size
> (unless the page size of the backend indicates that THP don't apply).
> Always allow to set a block size of 1 MiB, but warn if the configured block
> size is smaller than the default. Handle large block sizes better, avoiding
> a virtio-spec violation and optimizing address auto-detection.
>
> For existing setups (x86-64), the default block size won't change (was, and
> will be 2 MiB on anonymous memory). For existing x86-64 setups, the address
> auto-detection won't change in relevant setups (esp., anonymous memory
> and hugetlbfs with 2 MiB pages and no manual configuration of the block
> size). I don't see the need for compatibility handling (especially, as
> virtio-mem is still not considered production-ready).
>
> Most of this is a preparation for future architectures, using hugetlbfs
> to full extend, and using manually configured, larger block sizes
> (relevant for vfio in the future).
Ping.
--
Thanks,
David / dhildenb
- [PATCH v3 0/6] virtio-mem: block size and address-assignment optimizations, David Hildenbrand, 2020/10/08
- [PATCH v3 1/6] virtio-mem: Make sure "addr" is always multiples of the block size, David Hildenbrand, 2020/10/08
- [PATCH v3 2/6] virtio-mem: Make sure "usable_region_size" is always multiples of the block size, David Hildenbrand, 2020/10/08
- [PATCH v3 3/6] virtio-mem: Probe THP size to determine default block size, David Hildenbrand, 2020/10/08
- [PATCH v3 4/6] memory-device: Support big alignment requirements, David Hildenbrand, 2020/10/08
- [PATCH v3 5/6] memory-device: Add get_min_alignment() callback, David Hildenbrand, 2020/10/08
- [PATCH v3 6/6] virito-mem: Implement get_min_alignment(), David Hildenbrand, 2020/10/08
- Re: [PATCH v3 0/6] virtio-mem: block size and address-assignment optimizations,
David Hildenbrand <=