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 77C5DA0C41; Wed, 17 Nov 2021 14:38:58 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA04241186; Wed, 17 Nov 2021 14:38:56 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2057.outbound.protection.outlook.com [40.107.220.57]) by mails.dpdk.org (Postfix) with ESMTP id 39CD140040 for ; Wed, 17 Nov 2021 14:38:53 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gUoEuOThPqMEBEUOB3dHV5VSHiCb+rRPHytF5ivi7mWHESXMZhxPMM5ydsW3iRcj4Ws3aqNRJKjttIIZYKegtbJKMHP6qmcQFVmQY1kr1xgJpdp4PPVEtckT+p6+G+my4iO+GtlZ6w4jOjXPD3OOBaHgT9ECRr79qv4THDhCH5QEo3aYsYBGbiYJiH5nA8WAPYLnl1ranO0fjlYGtWc0jzc7CbgW9+eHqbf9C0rmsMMom4VObcGVo8s5VY0URy4g6WbVSZwGXrSb+0iiUUvQtqqT5t4YJ1nLBKbt7+kZmGMLZy0oOX3Teh4QccmTu8q/uKjiIDhteWbBbsxa0EWctw== 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=f6K9NGE7nDSLvtk9CH99GIJHSQTndFiR3cQNN3cmNrE=; b=bYPhVkjsyPgCFDNepVR8dNqZvQsABvc9cX2EXWcKpQd3v/0L6rDq8uTBaYtwqqgYpvzBIS2IsNIC8F6Ylzazmkiuj5okvpZaCJtDXwlKwBuxVandlx/fUuGpbXDdncVSuD5p8g9fojMrcmpdHz5gIVKQQ85Az9uk3q1+Y/qBhNTBR+NqHW0rg07DdfSawnFhBOMSU6ydnQRSCbavqUdRIkCbTz2soaIlKny5lIs+By1YyDpru6U2WUsfvYizvcye7JPjOqCSU6vPheO2+vniL1L19wKQsFSJW7i0KuWVsIPBOVMsUzl5oDNjnjaiOwFjMMMJzNU31kKX09KW2elzrA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); 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=f6K9NGE7nDSLvtk9CH99GIJHSQTndFiR3cQNN3cmNrE=; b=jsc9m+6pkF4UJFpSk1bW15W4dPw5ZdnTyW63X3z4Qn7KkEai8coh9ZnAEKv/uqVIDcci1wtrMqXXOsAgIl7CaNkDgePK4GAIvafQz6dciuCR+49BTZNhErImAU1ccAgbeA9Pfk+CHmWTDdt6jdLCiyBVaYaG1nRZJaLXTIZcyKSiHEja/uSByYxyycJLrcTiPyIa8XE3YzwBwbS1nuon4AG5prpXurtKTRZZA+fc+LAquk7oIZ8S7wBBuKKtc9fDUqAPu+2ZC2Auv/Xg58kpYtpUWLJBGta1JqkxHKyyalH0ZGy3zTh9ddIb4sosym6DRWYFaNK+f1kF/hQ5QxydTw== Received: from BN6PR13CA0071.namprd13.prod.outlook.com (2603:10b6:404:11::33) by BY5PR12MB3762.namprd12.prod.outlook.com (2603:10b6:a03:196::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19; Wed, 17 Nov 2021 13:38:51 +0000 Received: from BN8NAM11FT065.eop-nam11.prod.protection.outlook.com (2603:10b6:404:11:cafe::2) by BN6PR13CA0071.outlook.office365.com (2603:10b6:404:11::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.16 via Frontend Transport; Wed, 17 Nov 2021 13:38:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT065.mail.protection.outlook.com (10.13.177.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4713.20 via Frontend Transport; Wed, 17 Nov 2021 13:38:50 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 17 Nov 2021 13:38:49 +0000 From: To: CC: Elena Agostini Subject: [PATCH v4 0/1] app/testpmd: add GPU memory option for mbuf pools Date: Wed, 17 Nov 2021 21:49:22 +0000 Message-ID: <20211117214923.15655-1-eagostini@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211029204909.21318-1-eagostini@nvidia.com> References: <20211029204909.21318-1-eagostini@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f0ee0c32-fef5-4c7f-761c-08d9a9cf9709 X-MS-TrafficTypeDiagnostic: BY5PR12MB3762: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Y4CTNn55bnZ1MBqqrgUL9vGE1SSnx6RrL4MIn/B8B4gq6Ink25Fj7e8RzwCYKbEar+Nlioa4HBq0DRpbmvqyDgcFWhl3dZygu34aZorSsLiZJhD7HdDDZsetY7NCCgNNmI8ULQ6pei1ft5hQJxNtmZprmi6BX7a9SNJ2Rl8QgMUNooHr8RrRarmyQM/5pygGJmq/YYvUyfsoqqPjLQYOEkDDPFUtl+x0vRy0lI2bV6i6/s/zMLDrkPNddIpnZvkU22jiwLHYXqFZS/nRPmg8vPo/3CwhCHGiUaIdvkAkIXwwYdh0gi3p+ObjgULbHdufz9i14ilXakCvIDEuGGboizPsiO31lXIlhLlJ6hqnQ3+QXFc7ZkXAfQ6NoY5H4D2MqoJr+DNv0Q9Si/pubh2aM0SFFHuXdXZh+ckaB4Yn1HmmslEk2SJu+sG8t9hGF7kEWtt2GV0G2xmxxJ2wq9gYi79A0N47V2FH3Spxh8yld/IZh6Eqd8+ne092URRidBWZuWAy2su5mKNYraecDen3CtPCub35Gey/d7WIdS4JXdkFcp55yGQnjpmb34Ye1kcaoRg5CzUVR7EhiKRGvqVNOCXN0dzQgUkr07lbBLxxgm4ws8dHK2ZC6Hrg6FTFR2RIWlS6WtSm0ecNXyvWPOKDWbgEeDmXBqXipNXwSwjF1cJChfdmIfmAnDBwOPD0ZOfCNxf0xGgjBYatdNiSqSP4KQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(316002)(26005)(55016002)(336012)(356005)(107886003)(36906005)(83380400001)(47076005)(2616005)(36756003)(4326008)(16526019)(426003)(7636003)(186003)(36860700001)(6666004)(2906002)(2876002)(5660300002)(6916009)(7696005)(6286002)(70586007)(70206006)(82310400003)(8676002)(1076003)(86362001)(508600001)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2021 13:38:50.4761 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0ee0c32-fef5-4c7f-761c-08d9a9cf9709 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT065.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB3762 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 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. Main reasons for this patch are: - test memory features like external memory mempools and buffer split - provide an upstream tool to test network metrics with GPU memory Changelog: - gpudev dependency is optional Elena Agostini (1): app/testpmd: add GPU memory option for mbuf pools app/test-pmd/cmdline.c | 36 +++++++- app/test-pmd/config.c | 4 +- app/test-pmd/icmpecho.c | 2 +- app/test-pmd/meson.build | 3 + app/test-pmd/parameters.c | 15 +++- app/test-pmd/testpmd.c | 182 +++++++++++++++++++++++++++++++++++--- app/test-pmd/testpmd.h | 18 +++- 7 files changed, 240 insertions(+), 20 deletions(-) -- 2.17.1