[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ff11bfee-b78e-4074-8bc6-d7826ad4d8be@linux.intel.com>
Date: Mon, 7 Apr 2025 11:37:57 +0800
From: Binbin Wu <binbin.wu@...ux.intel.com>
To: Sean Christopherson <seanjc@...gle.com>
Cc: "Michael S. Tsirkin" <mst@...hat.com>, Jason Wang <jasowang@...hat.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Alex Williamson <alex.williamson@...hat.com>, kvm@...r.kernel.org,
virtualization@...ts.linux.dev, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Oliver Upton <oliver.upton@...ux.dev>,
David Matlack <dmatlack@...gle.com>, Like Xu <like.xu.linux@...il.com>,
Yong He <alexyonghe@...cent.com>
Subject: Re: [PATCH 7/7] irqbypass: Use xarray to track producers and
consumers
On 4/5/2025 5:14 AM, Sean Christopherson wrote:
> Track IRQ bypass produsers and consumers using an xarray to avoid the O(2n)
produsers -> producers
> insertion time associated with walking a list to check for duplicate
> entries, and to search for an partner.
>
> At low (tens or few hundreds) total producer/consumer counts, using a list
> is faster due to the need to allocate backing storage for xarray. But as
> count creeps into the thousands, xarray wins easily, and can provide
> several orders of magnitude better latency at high counts. E.g. hundreds
> of nanoseconds vs. hundreds of milliseconds.
>
[...]
Powered by blists - more mailing lists