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 AD7F8A0C41; Wed, 17 Nov 2021 12:08:45 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6749441177; Wed, 17 Nov 2021 12:08:45 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2073.outbound.protection.outlook.com [40.107.220.73]) by mails.dpdk.org (Postfix) with ESMTP id C083841157 for ; Wed, 17 Nov 2021 12:08:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R+H49SEzZQMjGcKbtD8p7ESBUl2yNLnRnK6VZh1ZbmOk56pk4UaPCYcwuFs1pS0O6pieEl9WbxR/kX4qm8W+Iip2iCMz+C5CRo2/ZCbQ8qTI4jQePIKR6cFV5hN3dBakPnWvAD8mgdOXha2g1chxQvPje3lREV/zPm53kSCA6jN+Gm/nLmox+flPT1cf9BdSOFOZEQuepSL54OxxLdH4FtLrKuTgU6hCneVNWQkDBMC3RuhUH3DTFItM90rqfrJW+Ebc2ddIQ/fY4DbgXe5cwWXzx1E0u+fyMbbqh1jO68XjAn+YWrrEQKFaJUqIVCC6mbopQ3UQgGZ4NMCw1LwtMA== 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=wM5puKje9l5xoPLUDe0Ty1Z1JfViitwqbfjanYoMQ2A=; b=U6czSU7JLOA4wE5jaMjYTKX+p79jFdonrwzHkdNZIj0fLZGQpctBJznbDjCGmamzheBGn5mGa2gJpSnRtjfEJGridc3WGIOICIzR1coehed4bjaq8KvttCcw8S3qj0O4QIuJq2Qi2xZva5WnzAABBoysOXiO+lGbQjU2sVrtQAfvrLTC72XSvSSx3NRsKMjWKjw0x1CNTjtmGMFQtyPqdCH++2bbBk5pfNe7mqW6GVPXl4lQwlgpx+M3/zqOWaB0cywmPKWQx59PF5/2s/4Na2jHvjIktQanvyHCvd4yFxnzYsASLKa6lUVxpAaHG7qQ6NZZsXux1S5cUlq0P2jV/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wM5puKje9l5xoPLUDe0Ty1Z1JfViitwqbfjanYoMQ2A=; b=gmKLhLpuxo67O7iK12+PAlgQ0AEUVGsETW6PdKUoyy3rG4Bn+EujJ5k9vXGOR1FVaAxA7fSytIBqAqWa1sYr38tSIR3hsPk7d9/waEGag2On1zJAygeSp+yw31CtVkCVUzGYj8grmyIGN2kyoCVYOinRhHGOZNB7Ua/s5pRChGG4gTRrKgTgjOjzR54R+961zNE93TSo+wCIti6ZGWrLNnADSL+3s48LyyPMTJoyUZBooNazRVpchLRGmih2K+pQgEX/qfQDMNjrliLw4OaVZ4z9hxKvPnr/VXLC76rOTQpJRo3/2KM11vyKwwkxpFAWfa3+DTpYjTYuGyCLGbhaOg== Received: from DM6PR12MB4107.namprd12.prod.outlook.com (2603:10b6:5:218::7) by DM6PR12MB3628.namprd12.prod.outlook.com (2603:10b6:5:3d::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Wed, 17 Nov 2021 11:08:42 +0000 Received: from DM6PR12MB4107.namprd12.prod.outlook.com ([fe80::98ea:e961:8212:62f4]) by DM6PR12MB4107.namprd12.prod.outlook.com ([fe80::98ea:e961:8212:62f4%7]) with mapi id 15.20.4713.021; Wed, 17 Nov 2021 11:08:42 +0000 From: Elena Agostini To: Stephen Hemminger CC: "dev@dpdk.org" Subject: Re: [PATCH v3 1/1] app/testpmd: add GPU memory option for mbuf pools Thread-Topic: [PATCH v3 1/1] app/testpmd: add GPU memory option for mbuf pools Thread-Index: AQHX2xtuLnccivIdaEyRk5cICPLtBqwGrVmAgADi4Jo= Date: Wed, 17 Nov 2021 11:08:42 +0000 Message-ID: References: <20211029204909.21318-1-eagostini@nvidia.com> <20211117030459.8274-1-eagostini@nvidia.com> <20211117030459.8274-2-eagostini@nvidia.com> <20211116133449.7b7d21d1@hermes.local> In-Reply-To: <20211116133449.7b7d21d1@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dd79d7e5-65ce-46cd-3a4b-08d9a9ba9d82 x-ms-traffictypediagnostic: DM6PR12MB3628: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DxkGG4dd3pp+81Tr6yd2aHK17EqLxV4D4zeIXnMZaoL9cKxKWPBsfb5wp7Q8pSOvooMIeh0OZB57pLWlgsndby+ctogG9w4yfvhtYcJvXAnEPO3qardDV22+RXx/Wjcp/4BjLAvbKdshDIWj4i4j9WH1gY/dmR8KVSGkv3OhVaw3EU66yPqJejntwupzMT7qQ25Kq3b++iv/r79GEIAlvxWSrxpAulwVM+3pqxeZjbmjfrgg51L9ruyrXLFGS3rg/bkH7LvQQxIcQzErvwrwEQnyN4Q/R6hUXCsCDdFPZFx3a7nu1JUs+AoLrlcWcSvZ5iK7BcxxTN5ekY8ySXmP2d+L9mqQVWuweqyb1JeEI063k4NtiPtXjt6gXb34EwvrTqa3uaTJkSZxdS+LOZshtkJBhfiPFSTHIdwKmouZJ7cY2m6LaXXX6Oe5oj90ygLFAh84A8fbOBGLW9sOOcYVa4A/kHjRqAg8wTUkYFA2XLQ7vi/3ftHGghyjvpDU9O/KTda6orCo029D1klGlKQIvnIitNU8osEgnEZXas0q32IaEwtYOK+XhGbcMmX5M8gThco/eWTVuvpWTxAdTqs23WFd29l7aMBFKRAzHUSXSylSsz+iG4Gpd+iufteN5QnGBdnuRBCs9Sl7KJXeKbkJEUBFigqmHv77tGpvCvXAN/WWxSfNViGEKO24UqrUxA+Krj3LpL7BWcOt3BsbbWfYWg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB4107.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(8936002)(6916009)(4326008)(4744005)(55016002)(122000001)(71200400001)(38100700002)(508600001)(6506007)(316002)(86362001)(66476007)(2906002)(52536014)(66946007)(33656002)(5660300002)(66556008)(9686003)(91956017)(66446008)(76116006)(64756008)(38070700005)(7696005)(186003)(8676002)(26005)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eWywi4OaURLg+jCkCaVRggX8R2x6ZMiQuyxP8THZomCPLUGpLjxzL1+7Ippz?= =?us-ascii?Q?oGESHHXQRV7PBlz2o7t0s9GlwlK1g0Bp7HcN+HUqcMwQjyWgzep4iQDuhIWa?= =?us-ascii?Q?wXE3FAk9ILEgBgUMHBwyrHGhIr5fRksyAfPa04PRQfhrfe7rs6ZLl+F4hZ8Y?= =?us-ascii?Q?w86nQ+Y51KoS1uZJXOwSTh4jZeyDFmfJOOOTWZExlXaknfLPSIjTL8MAzfFG?= =?us-ascii?Q?GfoSQoe+AqkH0YRionk2cxR3iirLcRrUz2DDq4lgEb58InkDM8sDqCCG0/5P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OPYsZ6QE4ycyXgEPuih8nr?= =?us-ascii?Q?cTSfNJoxwFhAB6W5lz84upKqal4/WcBQdjMmCknrVpZ6DvQgZUOkaYzfisBT?= =?us-ascii?Q?cb8ax4tF/iP8wWyg+8Ffe6oYhVAVOBDIcl+9HgSM+Nmfn8fknXqRKNjkW+l1?= =?us-ascii?Q?H9iiDISREPENC0ERYWRRUuAepdnoUo85PHwV+Ut/aQlMTKbcVO7boEhDxH2t?= =?us-ascii?Q?3dKY6DhMIS/nshm4f+gFk0dAVqH+UMEjDvEY9K5ii+w700VCsy2arNuzHuHa?= =?us-ascii?Q?a6JTxDiAl7wDM9Kwr6X8Zpw5OemZ7n8JIy5usix/LiUmf3wgRBdKjrU8YboX?= =?us-ascii?Q?2KLM40wzEcXHKNLM7G79WK37uvdoOUgl1BfGQtY60lSMB86TYOoa9XTyF4Z5?= =?us-ascii?Q?Ec/2+R894j/6FzOFPD4gWUf+XbPpuinOmXfPykSLgcAatgGdHanJuHHaUuyy?= =?us-ascii?Q?pW1PzPsNZOD2QJlY8ZdgAPdEVlDmDoeVr47QfRyI6H1X?= Content-Type: multipart/alternative; boundary="_000_DM6PR12MB4107105D4D1BC0D854372904CD9A9DM6PR12MB4107namp_" MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4107.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd79d7e5-65ce-46cd-3a4b-08d9a9ba9d82 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Nov 2021 11:08:42.0238 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: st0TYpry1XA6VnRC/3QKMopWsSmwr8wvHNJa2grg/zvtPlQgs/cX/qLhbiD1A5BoMbQJGnq3qRDN7+X1DR0p1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3628 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 --_000_DM6PR12MB4107105D4D1BC0D854372904CD9A9DM6PR12MB4107namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > External email: Use caution opening links or attachments > > > On Wed, 17 Nov 2021 03:04:59 +0000 > wrote: > > > From: Elena Agostini > > > > This patch introduces GPU memory in testpmd through the gpudev library. > > Testpmd can be used for network benchmarks when using GPU memory > > instead of regular CPU memory to send and receive packets. > > This option is currently limited to iofwd engine to ensure > > no workload is applied on packets not accessible from the CPU. > > > > The options chose is --mbuf-size so buffer split feature across > > different mempools can be enabled. > > > > Signed-off-by: Elena Agostini > > Won't this create a hard dependency of test-pmd on gpudev? > I thought gpudev was supposed to be optional Sure, let me submit another patch to make it optional --_000_DM6PR12MB4107105D4D1BC0D854372904CD9A9DM6PR12MB4107namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

> External email= : Use caution opening links or attachments

>

>

> On Wed, 17 Nov= 2021 03:04:59 +0000

> <eagostini@= nvidia.com> wrote:

>

> > From: Ele= na Agostini <eagostini@nvidia.com>

> >

> > This patc= h introduces GPU memory in testpmd through the gpudev library.

> > Testpmd c= an be used for network benchmarks when using GPU memory

> > instead o= f regular CPU memory to send and receive packets.

> > This opti= on is currently limited to iofwd engine to ensure

> > no worklo= ad is applied on packets not accessible from the CPU.

> >

> > The optio= ns chose is --mbuf-size so buffer split feature across

> > different= mempools can be enabled.

> >

> > Signed-of= f-by: Elena Agostini <eagostini@nvidia.com>

>

> Won't this cre= ate a hard dependency of test-pmd on gpudev?

> I thought gpud= ev was supposed to be optional

 

Sure= , let me submit another patch to make it optional

--_000_DM6PR12MB4107105D4D1BC0D854372904CD9A9DM6PR12MB4107namp_--