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 3BE96A0C4C; Tue, 5 Oct 2021 18:46:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 211CC4138A; Tue, 5 Oct 2021 18:46:42 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id B2FFF4132B for ; Tue, 5 Oct 2021 18:46:40 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10128"; a="212917347" X-IronPort-AV: E=Sophos;i="5.85,349,1624345200"; d="scan'208";a="212917347" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 09:46:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,349,1624345200"; d="scan'208";a="623465314" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga001.fm.intel.com with ESMTP; 05 Oct 2021 09:46:38 -0700 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 5 Oct 2021 09:46:37 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Tue, 5 Oct 2021 09:46:37 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Tue, 5 Oct 2021 09:45:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nfMliHeowyeQi4GZBi6z+VG4P7S5ICIOLhv+po1H1DDURYljYCsQAPA3Ceh8yQzHv/o04NmV7ovyvIEmK0KgjnmIbn2EAkgI0ULjFiEki5jWaTAbJ2Xc/jr7dzz80tAiCwVXSf3z3blWMFL2Cyd3wCllyynxFbPGhAhWsq3LgJu8bpxGfp867PQlQrXOT5B7CwTecsV5DfYlq7nBuo+K9EBy7dROv3CRv5bsXmtPazqC9qpi04nALKmOU5gLVmkOlNec/dw0FuJk7II2H0tT5lOLdBu3jl26qFTc9c6ZYKCTqt/xkP2kYq7+WZtert/LcIfL3A+ywl3A6kvsIc+N9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0OvhSOfGF8C0lMymqxCrcc/r9DVSIVQirUftiEoJgqQ=; b=E0AEwg3Eah89Krbfp3iuiOsbLGEG073K4+1lQw+0flb8u2Iif8r7UDZyAewJvJi+qXtiG/e7j3sEFVvhJOApifMcL1dTBZnkyHnvr0nD4W1ey1OsDqGSNq8oT9UdQD6OCTRtHFnm9yUadJ2GA+IJnHiOZyB+xwLpMv+WOi1vJmOMWFGXKoiEu2e41zkjVcftdJayHmQbqHWpN11J4IFclglxHRoJO4RDTjcfRNl/PaEI3bd/O+codSmkWYGdmLUMb4AO1751q5SZOn26/wsuo8w3gPV49X84h7nARFj7cdBGOVzgiwMq2pmtdh9p1x1FT87GYPeU51puyf3Ji6hZBw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0OvhSOfGF8C0lMymqxCrcc/r9DVSIVQirUftiEoJgqQ=; b=cexDMInNpFVTKqu4zQI26uPJj6/63ElGLyYgLgaKoaWID7jTnjzNNp/Q2TMwtYQr7r+3POP2ecKSAWnEmD69vHaCHcZKXLtR/SkffjebhkjtN6pwKiTAMmvPy6nUBWlylVH9Q5EjFpINUoj+FmzRa8NvWqQp0IziyjhZqbjANPk= Received: from DM6PR11MB4491.namprd11.prod.outlook.com (2603:10b6:5:204::19) by DM6PR11MB4106.namprd11.prod.outlook.com (2603:10b6:5:19f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.22; Tue, 5 Oct 2021 16:45:20 +0000 Received: from DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::740e:126e:c785:c8fd]) by DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::740e:126e:c785:c8fd%4]) with mapi id 15.20.4566.022; Tue, 5 Oct 2021 16:45:20 +0000 From: "Ananyev, Konstantin" To: Thomas Monjalon CC: "dev@dpdk.org" , "Li, Xiaoyun" , "anoobj@marvell.com" , "jerinj@marvell.com" , "ndabilpuram@marvell.com" , "adwivedi@marvell.com" , "shepard.siegel@atomicrules.com" , "ed.czeck@atomicrules.com" , "john.miller@atomicrules.com" , "irusskikh@marvell.com" , "ajit.khaparde@broadcom.com" , "somnath.kotur@broadcom.com" , "rahul.lakkireddy@chelsio.com" , "hemant.agrawal@nxp.com" , "sachin.saxena@oss.nxp.com" , "Wang, Haiyue" , "Daley, John" , "hyonkim@cisco.com" , "Zhang, Qi Z" , "Wang, Xiao W" , "humin29@huawei.com" , "yisen.zhuang@huawei.com" , "oulijun@huawei.com" , "Xing, Beilei" , "Wu, Jingjing" , "Yang, Qiming" , "matan@nvidia.com" , "viacheslavo@nvidia.com" , "sthemmin@microsoft.com" , "longli@microsoft.com" , "heinrich.kuhn@corigine.com" , "kirankumark@marvell.com" , "andrew.rybchenko@oktetlabs.ru" , "mczekaj@marvell.com" , "jiawenwu@trustnetic.com" , "jianwang@trustnetic.com" , "maxime.coquelin@redhat.com" , "Xia, Chenbo" , "Yigit, Ferruh" , "mdr@ashroe.eu" , "Jayatheerthan, Jay" Thread-Topic: [dpdk-dev] [PATCH v4 1/7] ethdev: allocate max space for internal queue array Thread-Index: AQHXuSe58CLIXh2rakit88Z9aLsrr6vEUVcAgABL9SA= Date: Tue, 5 Oct 2021 16:45:19 +0000 Message-ID: References: <20211001140255.5726-1-konstantin.ananyev@intel.com> <20211004135603.20593-1-konstantin.ananyev@intel.com> <20211004135603.20593-2-konstantin.ananyev@intel.com> <2309344.bJfOgahzzc@thomas> In-Reply-To: <2309344.bJfOgahzzc@thomas> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.200.16 authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 29863cff-b3e8-4211-c024-08d9881f84a3 x-ms-traffictypediagnostic: DM6PR11MB4106: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: x79riNLCKRTuquguddJdpAtdhIjLuSBvedOcJYehQ2HtOBdDD1ToKmrsNqZ4Ldv8EJ1iQg+pKJ6HOveS7iJIYalPfiuFXO8smOgVsaHbp/+OUDr6Bk0KrqDKVd6iU6Nwk2x71w2vGsiOhobOiw1HSs3P+Sh0Z6zJR28J7TWAPj2qfnN6rAkQXMeOx8eiIMpM77vKWnO+lWYhfqJyIzYsK5zq3bhOrIYRoJza/dLNamNQICO5v31oaP0FgMSt4oe50OFMx4tNey4FixNISqPJD0vzKAFN63M8HEyjInGLgo7fmLXgKKSUzbWKn+f6CFZyEkfdFYWRjFVeY5k417X6esQLOyf2yYqROyHA1QZHljuPHoIta+uosJ6HTqGK5QzCdkdwT5Xrqc5FR+niftAdcQyf/jLS+a3IuDfL2RTDsRF64ekaLYFaKB0MoKzT8fbp22lqPG2Ye1suhXWw8VPQ0MHiPpPruUtzkjYmutp8rctRO8pn6rXJ24oiVt1mTgFkFcgpvHiJaq4fXvUNbndTA2MCNrAd8PXhFzEWEVXg5R/h+PgnbbTM/V+/dvh1pnutfS+f9RWONWq1sS602sb1psQ5BFhhZLDHL+afxTQAqDMWRXN7aNf8oOxcnzh/Qs8P6tpGeu9RFcJqSkdP2XsgwX8jXkEwvKu1JmCc6Wh8SkLQGRuXwGjCZvmvDkDfet1qeDnUXxWTv+oDHuetgJuTWg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB4491.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(54906003)(107886003)(186003)(66946007)(26005)(33656002)(6916009)(7696005)(71200400001)(316002)(76116006)(38100700002)(508600001)(122000001)(38070700005)(5660300002)(4326008)(66446008)(55016002)(6506007)(2906002)(86362001)(64756008)(55236004)(66476007)(52536014)(8936002)(8676002)(66556008)(7406005)(4744005)(7416002)(9686003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HWuIFxWKN84elTnug5zdrBaqa6LgaI4Jq5zZDWk5WARPun/Wd9r4LYtXca2D?= =?us-ascii?Q?URQdun2QBbTVc7tyccmW+nmVn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o96yFrnE?= =?us-ascii?Q?Kh3S24+8OXzhx97iGWRbErMe9oaXSLcLn/omDwrzfLDVFrEPfJeuj9wNk16U?= =?us-ascii?Q?XwicVp1vYvXF0lxdoa9HrkvB2sT6ZaBUOJsNGqL7OcO48IfnGiazKd+Xk3Pn?= =?us-ascii?Q?/DYtQNeThQbKRjvuTWwq3mEJ/uViLcaXow/fH4Ynj3+nGMmjkz7QQFr4UvGZ?= =?us-ascii?Q?tdwQ/samUA+lB+wDkphwJXIoCtxq6YhluSFjH4a7TN+9F8Pyc0wcqIGx+Hjs?= =?us-ascii?Q?LzFX0UjrCd5mr4aVSSMZA0M6R7wWU5nqQNnBfMQsnUgoh0afitQhNxuPMIIp?= =?us-ascii?Q?NWNzy0/QQjBo8cAYDM2+JfFAX4wCqb8qymESYAIUs2JRn/ORGyKVVg6z+rWM?= =?us-ascii?Q?XmAqppDWY7Hxz8NlAQVvGnFS?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4491.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 29863cff-b3e8-4211-c024-08d9881f84a3 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2021 16:45:19.9264 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VYicEpMBrdHjgxM4Iob6NdAa00euM6QCtwoPlyquGnsrrnG1e6WhRuTfbVgvBakp2lUMw1+yMg46qC5ifyuN4xJdlVTUkybp8KuuC5MfvuI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4106 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 1/7] ethdev: allocate max space for internal queue array 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" > > At queue configure stage always allocate space for maximum possible > > number (RTE_MAX_QUEUES_PER_PORT) of queue pointers. > > That will allow 'fast' inline functions (eth_rx_burst, etc.) to refer > > pointer to internal queue data without extra checking of current number > > of configured queues. >=20 > What is the memory usage overhead per port? (2*sizeof(uintptr_t))* RTE_MAX_QUEUES_PER_PORT With RTE_MAX_QUEUES_PER_PORT=3D=3D1024 (default value) it is 16KB per port.= =20 > We should consider cases with thousand of virtual ports. For 1K ports (with 1K queues each) it will be 16MB.