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 0FF2D430FE; Fri, 25 Aug 2023 11:40:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D865340695; Fri, 25 Aug 2023 11:40:37 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 94EFF400D5 for ; Fri, 25 Aug 2023 11:40:36 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 5FCFF208AA; Fri, 25 Aug 2023 11:40:36 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: 32 bit arch optimization suggestion X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 25 Aug 2023 11:40:32 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D87B3C@smartserver.smartshare.dk> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 32 bit arch optimization suggestion Thread-Index: AdnXODDKJK0NBES9RD+aQUPMZ173dQ== From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: , "Ruifeng Wang" , , Cc: 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 I was wondering... How widely is DPDK used with 32 bit architectures? Both phys_addr_t and rte_iova_t are cast as uint64_t in rte_common.h. = Should they be uint32_t on 32 bit arch? If so, the rte_mbuf structure has 12 unused byte in the first cache line = on 32 bit arch. Now, moving the "next" (4 byte pointer) and "tx_offload" (8 byte flags) = fields to the first cache line could improve performance significantly, = because this modification would leave the second cache line unused in = most cases. Med venlig hilsen / Kind regards, -Morten Br=F8rup