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 38766A0C47; Tue, 16 Nov 2021 19:54:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA78640141; Tue, 16 Nov 2021 19:54:35 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2076.outbound.protection.outlook.com [40.107.92.76]) by mails.dpdk.org (Postfix) with ESMTP id 053A140040 for ; Tue, 16 Nov 2021 19:54:34 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NIsvQauQAS6bOzJjMwDQk6Iu7wnMujWQz6iZBMKnD0w1tOFR+SAc4xYPEK3Zt3m6cbXFaRSAE/wAY01pa+NdM+YRNwVhcT2EmjOEKqIEMJnSb4xzYgunGZyZqJ2QIAbLHOWLZH03yUY5u7FLahyMoJtNvcwdmeAm36dTlZDt/NbxFdskjG1MmA0Sj84Na5flGsqTR7aXxnfg3OYFQSvsoX39NYbp5GrVVnAi7HdDDqB2oXU/LJluR624Zk7gn8TfbJRoqPh+YuJQHDUisnPtpptpWMP8Nat0Mtx2irAFsKZhLYlBNWECtVugCUjburFZD9dzTFRucsko+BdEAtVxUw== 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=f/Ygbc/h5SQR3VYrM+ff0Tk7SMc/WDWsEUhLovRx74M=; b=dt9d4jdnHGJCaxZLJpeB4Ny9WouGkLs2qrPAPwvIEr+hHIzCT6Yz6AgrnsulUz1HRnDnFpt3KcVgPLfQ9vg/qENAD5ksTb51TJJzQ1jiGaekbXrfD6sznMUCGvF9tLMF/HtJrQ5DG3Ji5um/5tlq8B/Dc9DsIoKICcfy9Xv7yowVIRC6KdrFsIee62h+kh4NtoVgONhNrlEyCqP0Um0Rk4+1ja0LZKxb8oYmmjF54LRsJbsRY2r8XpJ7OEiwkrSLBezRKXxR/Vi7/mazwJ9NKT/MfdJnWUEcOWF2Lhq2WSLQGH0MKxjkkXqMHJeFGEX5voxKEXTE/jXtX190P1Q3rA== 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=f/Ygbc/h5SQR3VYrM+ff0Tk7SMc/WDWsEUhLovRx74M=; b=J8GPM+OKp4AO4bp0UxaE30WU+t+794l/0xVrLSvQW0m/tt4JY9YQ1+ZVWnAjM6k/jxKvf/9unrIFoWdpVhTcoWwEJvsUclimzSksgG3t+H+PmNajWWv5f28qTJC17DLDdqNOC09AKRpKrW/qtORfXMvwUz6gTxsbMFBk6v3eppk/Mf6V55RtJj6dUVjAOJmMv6LfNjR4HzS3KqbgVTGCF8XRaBrVHyv4eTuvxRVZ0X+KM/KnJC05RYEzKmlkalzqDgi9B0Gmq9ygU/8zNMp1e3xC3Z9nNFVDZf/idZq04U3VeSASwwhfa7MeCZM7quD2OYV6FegmJz+WWCGJGhW/ng== Received: from BN9PR03CA0249.namprd03.prod.outlook.com (2603:10b6:408:ff::14) by CY4PR1201MB0086.namprd12.prod.outlook.com (2603:10b6:910:17::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.26; Tue, 16 Nov 2021 18:54:33 +0000 Received: from BN8NAM11FT048.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ff:cafe::7c) by BN9PR03CA0249.outlook.office365.com (2603:10b6:408:ff::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19 via Frontend Transport; Tue, 16 Nov 2021 18:54:33 +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 BN8NAM11FT048.mail.protection.outlook.com (10.13.177.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Tue, 16 Nov 2021 18:54:32 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 16 Nov 2021 18:54:29 +0000 From: To: CC: Elena Agostini Subject: [PATCH v3 0/1] app/testpmd: add GPU memory option for mbuf pools Date: Wed, 17 Nov 2021 03:04:58 +0000 Message-ID: <20211117030459.8274-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.6] 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: cda7da8e-3d70-484f-25c0-08d9a9328712 X-MS-TrafficTypeDiagnostic: CY4PR1201MB0086: 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: ptEzlKQczfqpGOrnuU6sOba6zY+eOTJMOlztmZV/SmSrRTPTw6WozOSHd3m2rEkeCGWVBRbB+yUswiS44XRS4pNqCGv6WmJUwS0kuFVjJX+qhf8gtktMS5YNhH1LF0Kf+9xMgER4414l+Pna3mmRamM7Mj/6nf++8sWIurORPk07uygpWIhoNeFypz7HNW3qmw0+khDdPJ8q2peXG+GUnyGysW1NkP7yhqrsHhY+q/ZEwvr6Rh+rnSKSIut2J8VLrD/ax8GEy45RdSn9zx9VOdJ9wboKC/1soTg1iP97zQZp78JfGo/LE01i5zpsCkEKFcGKGokHl4CTxtrXkZWSD+37QbJUS5JljvT+KgaH2vKvUNUYMDqHlYn7sg1b+yCizIqKapgr7EQsu4UucKQ+VRDq3G85Ra4edCv8vz9hD/5dVEUZwAbwxSxy5X7GVSyADeEJGzN44PlBbQJLhoi4QDfMgb6R8WFj+JY50U8BAyR9PDAwdCrlnb1G9Np9UWWOnLDptFoezcexXHFG22/EqN9pGqrh1eVL2qqx7nsPDW5lTU1vvzZDthhdzxpu7gaI3dH8+nGcXwNpPSkPR6BmWNc8VkC4KdnNpLEF6QHBwOELkIMjZwivkb5Qy/aEY+cj5JFvR78RkQRva3IEtQ2YtGtybT3b55fZ+VCvaKGnnD2udoyXOPdQQk6axysltIVRIV74pomR3R9fwHDqgutCJA== 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)(36840700001)(46966006)(5660300002)(4326008)(70586007)(7636003)(86362001)(316002)(36906005)(70206006)(336012)(16526019)(186003)(6286002)(55016002)(426003)(36860700001)(36756003)(26005)(8936002)(8676002)(6916009)(1076003)(107886003)(508600001)(7696005)(83380400001)(82310400003)(2876002)(47076005)(2906002)(6666004)(356005)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2021 18:54:32.7449 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cda7da8e-3d70-484f-25c0-08d9a9328712 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: BN8NAM11FT048.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1201MB0086 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: - Addressed reviews' comments Elena Agostini (1): app/testpmd: add GPU memory option for mbuf pools app/test-pmd/cmdline.c | 32 +++++++- app/test-pmd/config.c | 4 +- app/test-pmd/icmpecho.c | 2 +- app/test-pmd/meson.build | 2 +- app/test-pmd/parameters.c | 15 +++- app/test-pmd/testpmd.c | 167 +++++++++++++++++++++++++++++++++++--- app/test-pmd/testpmd.h | 16 +++- 7 files changed, 217 insertions(+), 21 deletions(-) -- 2.17.1