From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75E5FC83F10 for ; Thu, 31 Aug 2023 14:45:42 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C79040285; Thu, 31 Aug 2023 16:45:41 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 6E7EB4027B for ; Thu, 31 Aug 2023 16:45:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693493139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iXMxN3StpuuYv6fw+HCDaH+XvQVmDiJQ4cDYeB9BEq4=; b=IzhapZYp6P4lW4XyyweQs7IeWNCtlK2ictYHThUqTf2l8g6SrrGBupeTpGvijhvBQDZXve 2ytv7pfip4GgJ2yqiWs4ZIlNhlXs/H3expLLgWzT56XXmQx8hSRppUajklrGipacy9AEz3 xfExrYHEC/AAwOSzNXb4Rm5iMfifnb8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-661-p5TRHiJ5M6mXf4e_GoLCHg-1; Thu, 31 Aug 2023 10:45:37 -0400 X-MC-Unique: p5TRHiJ5M6mXf4e_GoLCHg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 14D9D856F67; Thu, 31 Aug 2023 14:45:37 +0000 (UTC) Received: from [10.39.208.19] (unknown [10.39.208.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2A391492C14; Thu, 31 Aug 2023 14:45:36 +0000 (UTC) Message-ID: <58a660d9-e7f2-754b-532b-ce3de217419b@redhat.com> Date: Thu, 31 Aug 2023 16:45:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2] vhost: add IRQ suppression To: dev@dpdk.org, chenbo.xia@intel.com, david.marchand@redhat.com, echaudro@redhat.com References: <20230831144450.3829729-1-maxime.coquelin@redhat.com> From: Maxime Coquelin In-Reply-To: <20230831144450.3829729-1-maxime.coquelin@redhat.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 8/31/23 16:44, Maxime Coquelin wrote: > Guest notifications offloading, which has been introduced > in v23.07, aims at offloading syscalls out of the datapath. > > This patch optimizes the offloading by not offloading the > guest notification for a given virtqueue if one is already > being offloaded by the application. > > With a single VDUSE device, we can already see few > notifications being suppressed when doing throughput > testing with Iperf3. We can expect to see much more being > suppressed when the offloading thread is under pressure. > > Signed-off-by: Maxime Coquelin > --- > lib/vhost/vhost.c | 4 ++++ > lib/vhost/vhost.h | 27 +++++++++++++++++++++------ > 2 files changed, 25 insertions(+), 6 deletions(-) > No functionnal change in the V2, just rebased so that CI can apply. Maxime