From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A60EB28CF5E for ; Thu, 10 Apr 2025 14:52:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744296730; cv=none; b=gpXRm/AOa50hfmIvoYkB3jRMckkZi9A80VIfwkm6WWMU97XReJVwRIy+CwBSbrKtP16KLIpcYBO466+BZPjRpF06t1ANni9yzEjFa5Zwaw9QeCnp/QGhe4dlrgY9xqK9nkFuSBzgh3dzmpTvLLlqSbNNEgork8bhNoveJocbbJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744296730; c=relaxed/simple; bh=ZIicm+KVsGD+UXLKJQ6xU43zvhsJHugkh0vLpA6ilxk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=nPa32BZaodGJvyL7yylLITGGWbNe87uteB/g9zMEU2R9x5HQASt7IBMqPwDiVn9u3MBWGFklieqUHqpzWVjUeSy5bOTOtN8Z91uU/NClWvlm0MIIAbCMnD41ixbzxrK+Y0u7s3BpnfCPhP4Z9vw7MmVcHoCqX0MjLa5LZXM4D6Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=izl1nAj3; arc=none smtp.client-ip=209.85.216.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="izl1nAj3" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-2ff7aecba07so883130a91.2 for ; Thu, 10 Apr 2025 07:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1744296728; x=1744901528; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=1Z2Z/UC7GMxO7YogACXn6KcfTpVXYjk8lDSafrd3aGw=; b=izl1nAj3UVTkithmtbXKWdZ3RPoDf6Cu2DSf5BRMbhaGXsQGkJt8XoSuU3F+6bP4Bf 8wKrWXUFRTx90ueNEW+ZZAU0UxU1P34dio7x/Gc80M6t6zdbPdT2DFE4XJRz7GGmFtgt /UdSJxIsEVis0kvs2ZYnlKLHeSJl7PQ2hYJtDgda6xLip96ccKMglzQmoV/FdQM6WGE0 NecIFr2TC5yQaUaKN4TzyRTFDeB3WvR0pN8XxKdHikr0/Il7jt6JtuNQ0J8ymnLwOG2w MudSavFIC8ba4t6X7Z35VKt3G2dsiCteELzBCktXpC9xi61GhECom2/wqVnFAoLhcTRm EU7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744296728; x=1744901528; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1Z2Z/UC7GMxO7YogACXn6KcfTpVXYjk8lDSafrd3aGw=; b=q/YDx+hJBRmU+sJ3jTi4ya/LLBE7gJFmn9Bp7OtTI5/D53v0DcN0rJ7V2WZtFByOgJ bV7HAPyfghyEk21W7B1m0T16fy/r1ZXvd95lF0wqxv0CdWo+3GLkJ927toYiGkQgAEmB rX315bq9bp4UOBPs9claiC6q71ry9v5O/ACICTH3Ohsg59FBpPvXj42zcNrjlLaK+cZE XQdjJfFaIj9gvh1ackKhfMehruW9aCLhWzxh5Da0Ust9vqfoYSI4DTJf5tDv9eO8mTjx fisWFcJMV6/jzuSmCsioQk5zytiFfOZmFVQ3/R5tqib3sFGWVVQdEXIuV2KYlUwW3B5X /xIA== X-Forwarded-Encrypted: i=1; AJvYcCWyPV/3HK0mmvvBGVwq1UIx+sffCdY0DfJC4iigGXMOnH3isjXFgJ2DokdzLOzRMIaR8kMNbwGNqYYXf9g=@vger.kernel.org X-Gm-Message-State: AOJu0Yy93Om6DGzYW7v/iF/FPaGMoyH9omDBUAAdH39PVSaMiW48s2Yc wZglQpRkjC+Rhnc5x1ACkkfvx+mzk3BSw+ifxR5SxmFqFUFvoSH70bXrjFYr2h4zEf7P4h16iuG P4g== X-Google-Smtp-Source: AGHT+IGZay7VOQfADYHvwp0kpNoQEUaWaWhAXxEPULjNq/g/UaMADWvkJQ5d2IT2MEsdoUp5QTqBbaB3uao= X-Received: from pjvf15.prod.google.com ([2002:a17:90a:da8f:b0:2fc:2c9c:880]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:5844:b0:2ee:db8a:2a01 with SMTP id 98e67ed59e1d1-307e9b43a9dmr3689922a91.30.1744296727781; Thu, 10 Apr 2025 07:52:07 -0700 (PDT) Date: Thu, 10 Apr 2025 07:52:05 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250404211449.1443336-1-seanjc@google.com> <20250404211449.1443336-8-seanjc@google.com> Message-ID: Subject: Re: [PATCH 7/7] irqbypass: Use xarray to track producers and consumers From: Sean Christopherson To: Kevin Tian Cc: "Michael S. Tsirkin" , Jason Wang , Paolo Bonzini , Alex Williamson , "kvm@vger.kernel.org" , "virtualization@lists.linux.dev" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Oliver Upton , David Matlack , Like Xu , Yong He Content-Type: text/plain; charset="us-ascii" On Thu, Apr 10, 2025, Kevin Tian wrote: > > From: Sean Christopherson > > Sent: Saturday, April 5, 2025 5:15 AM > > > > Track IRQ bypass produsers and consumers using an xarray to avoid the > > O(2n) > > 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. > > add a link to the original data collected by Like. > > > > > Cc: Oliver Upton > > Cc: David Matlack > > Cc: Like Xu > > Reported-by: Yong He > > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217379 > > Link: https://lore.kernel.org/all/20230801115646.33990-1-likexu@tencent.com I linked Like's submission here, which has his numbers. Would it be helpful to explictly call this out in the meat of the changelog?