[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [virtio-dev] VM memory protection and zero-copy transfers.
On Fri, Jul 15, 2022 at 02:18:32PM +0000, Afsa, Baptiste wrote: > > One thing I didn't see in your proposal was a copying vs zero-copy > > threshold. Maybe it helps to look at the size of requests and copy data > > instead of granting pages when descriptors are small? On the other hand, > > a 4 KB page size means that many descriptors won't be larger than 4 KB > > anyway due to guest physical memory fragmentation. This is basically > > hybrid of swiotlb and your proposal - zero-copy when it pays off, > > copying when it's cheap. > > > > As I mentioned, I think IOMMUs are worth investigating, in particular > > for the case where mappings are rarely changed. They are fast in that > > case. > > I agree there is much likely a point until which copying is cheaper. However, we > have not considered this in our initial investigation. > > Thank you Stefan for taking the time to read this proposal and for your > feedback. I will be away until August so I probably won't participate in the discussion. One thing I forgot to say is that relying on a single benchmark may not be representative of real workloads. Two factors we touched on are descriptor size and page reuse. It seems worth evaluating solutions based on multiple benchmarks that vary these factors. Stefan
Attachment:
signature.asc
Description: PGP signature
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]