From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8159AA052A; Mon, 25 Jan 2021 18:30:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4F85D14111E; Mon, 25 Jan 2021 18:30:20 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id C43DD14111B for ; Mon, 25 Jan 2021 18:30:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611595817; 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=vb6W4SAUsabo3chB6WzwRF4o35DghEGo5tAVvay0xRY=; b=Q+Tan+3lw5w+eCSNf+8l2nTR1fQboV+bKX24hQm4+A9DbvevK7hEUlmAQLqmjN1L+U6DKt HbxgH7nI2/9yJ58xsEX296x3fMol1kiKZX7nNtsMhvMZX9ktTbqWdwYvwnirQjznHIIyrE dYXHHqjARBBav/tvPJsWt5TwBkcC6Bw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-24-2gbF9fQVPgCdz29DQOxjSA-1; Mon, 25 Jan 2021 12:30:13 -0500 X-MC-Unique: 2gbF9fQVPgCdz29DQOxjSA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9D4448015C8; Mon, 25 Jan 2021 17:30:12 +0000 (UTC) Received: from [10.36.110.31] (unknown [10.36.110.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6133619C78; Mon, 25 Jan 2021 17:30:07 +0000 (UTC) To: dev@dpdk.org, chenbo.xia@intel.com, amorenoz@redhat.com, david.marchand@redhat.com, olivier.matz@6wind.com References: <20201221161456.31696-1-maxime.coquelin@redhat.com> From: Maxime Coquelin Message-ID: <4ac6b735-b95c-3240-72d6-f69b6f3df158@redhat.com> Date: Mon, 25 Jan 2021 18:30:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20201221161456.31696-1-maxime.coquelin@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 0/3] net/virtio: make virtqueue struct cache-friendly 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 Sender: "dev" On 12/21/20 5:14 PM, Maxime Coquelin wrote: > This series optimizes the cache usage of virtqueue struct, > by make a "fake" mbuf being dynamically allocated in Rx > virtnet struct, by removing a useless virtuque pointer > into the virtnet structs and by moving a few fields > to pack holes. > > With these 3 patches, the virtqueue struct size goes from > 576 bytes (9 cachelines) to 248 bytes (4 cachelines). > > Maxime Coquelin (3): > net/virtio: remove reference to virtqueue in vrings > net/virtio: allocate fake mbuf in Rx queue > net/virtio: pack virtuqueue struct > > drivers/net/virtio/virtio_ethdev.c | 46 +++++++++++-------- > drivers/net/virtio/virtio_rxtx.c | 36 +++++++-------- > drivers/net/virtio/virtio_rxtx.h | 5 +- > drivers/net/virtio/virtio_rxtx_packed_avx.c | 14 +++--- > drivers/net/virtio/virtio_rxtx_simple.h | 2 +- > .../net/virtio/virtio_rxtx_simple_altivec.c | 2 +- > drivers/net/virtio/virtio_rxtx_simple_neon.c | 2 +- > drivers/net/virtio/virtio_rxtx_simple_sse.c | 2 +- > .../net/virtio/virtio_user/virtio_user_dev.c | 4 +- > drivers/net/virtio/virtio_user_ethdev.c | 2 +- > drivers/net/virtio/virtqueue.h | 24 ++++++---- > 11 files changed, 72 insertions(+), 67 deletions(-) > Deferring to v21.05 release. Maxime