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 09F2743354; Fri, 17 Nov 2023 14:05:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF63A40ED1; Fri, 17 Nov 2023 14:05:06 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id CD17D40648 for ; Fri, 17 Nov 2023 14:05:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700226305; x=1731762305; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=+ISshEVH754dDjRziPrNJEf5OTDeTMHIbuvEXYrm2GU=; b=G52SrRLnBuH1QaG+8x6ACUhmMrBIyVYXaci+5LmXt7Ttaj/tj0pCYy5x K4GJZiC3zssMrbkRoYQUGpf7x8cDJpS/EUDCttYtanjcpBZFFkENX5TNG t0nvBoGq5q+DG5oVaahltPFQPN/rCXYXG0wA3nXdMRPeone6Nnhn9JM8y voxlT7lus+4OLATIPxlsZQ7eeMfb6/L7odQ5OgVbgUWdGlKF3le7ajLMj TStryx9HCp9+f74tgPdUVCkLL5BIKdAi2tonL3JnSP0h5d0iT2RGLYunJ 8yUuV5dIOWkJNLpPX2QniGhfwM4DlzBSDhVLjZFHWpvRaleJjxeOw7FTv Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="422391273" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="422391273" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 05:05:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="794829746" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="794829746" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 17 Nov 2023 05:05:03 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Fri, 17 Nov 2023 05:05:02 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Fri, 17 Nov 2023 05:04:56 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.41) 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.2507.34; Fri, 17 Nov 2023 05:04:56 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DGPO7suiYddEnIRnU5pqQonaP+SDVDdJl6flYIw51J+x9OWLlF+VieglkhxE44kOy1InmV6sux0tWKx/zUtlQvvM8nAAkdHgvhqj5hLQ1u03p+vVoIPWH8VvWXIEamygF8faatByoVwx7F9LedJetdf3OOWk4mjFRPYRuNejcj6ef3Bm9mIhWw/jkerNPoozyIrEZw91Riq4NolC8YRU58xtdSsfKlq+KWItGHprvgXnsO1ZLDCPmAjbBawH2wKI4VWMoYwQ8rS8n3z7xKzhElF7urpbiy/iYqFPTnCJHK4oA3iCBBKiE5eUS6vvh6rkxUsP9VBrBmwmGAHZ3dkQzg== 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=SXM++xPh8L0W6EyHGSTeAosyJdMt754QJ+dDZMXYM34=; b=cU0QUCChM8TgmlbHMKwal5K57w0XQYEgw+No+CYI74uO3eiGKRnazSh14waWtTswDX+OX1Oj5AjXvgoGeOgP3EAQ+KRdiLhxZH/ACk4qNagItAu2QswyPQQriN260xZg2/ugxYyHGfIl53Jn8kg22zggDMEtskd1HXFEkwvKB+1inX/x33yYHpTQKvT4gmlNcD5wnozXSwF5xTXYKJ+2Pbhfl00/uEvdOtPuokieDzrMRXokn2zmJkla+vVHGqhCwIncnuD3kMBl+imBue7pqFcb8+GEjzRemR6DOM8E2Zmomu2ave1EdcPuwdT3D0AIPbYSpDEs84QDA6PYDtfgYg== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by DM4PR11MB8225.namprd11.prod.outlook.com (2603:10b6:8:188::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.21; Fri, 17 Nov 2023 13:04:54 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::4782:d54a:209d:cb49]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::4782:d54a:209d:cb49%7]) with mapi id 15.20.7002.021; Fri, 17 Nov 2023 13:04:54 +0000 Date: Fri, 17 Nov 2023 13:04:48 +0000 From: Bruce Richardson To: Dave Young CC: , Aaron Conole Subject: Re: [PATCH v3 5/7] Section 5: Appendix Message-ID: References: <20231103040202.2849-1-dave@youngcopy.com> <20231103040202.2849-6-dave@youngcopy.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: DUZPR01CA0064.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c2::17) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|DM4PR11MB8225:EE_ X-MS-Office365-Filtering-Correlation-Id: 1791ad5c-5805-4fc3-b110-08dbe76dca8d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b/rpoSC81sNtwS3gnd4sYfGKWfn4H3BYbRZuh/azi+XjUrC26u5eYAVYOSD+v2ddQbJAnSda91/OatSe470lmbcM6pkX9ag8pO8U1jFcY59b0Hyhoeu024kEOvK616ONyV03LysgZ54EkxaWL9UWx0Pg1hOU3TKW1C/CdyrcxJPDJNn2T+lmHyYtPyQiuZ9zysX9C9z4QSVrRisrpPgz10Xvyl8HUfUedy84wCijyFNXdcD10P2+EVDEnr410md3gFmPGR5d8lM995etuByiIOLZRNgNmy1ef09U8J0kQS/vE+9rMjfWKSFPfJJxY33hX47a34SbknkGWhkAgj8ybKSwHK9HHrYG0mjpnXJG+r+OeqOzO65s3fB3RbeOsQaFJF5lniTkUOziKBxmyFpx2BdamvZEITfU1gqHaQE25yZ648T9D2XO8V1mH6hsRUKOy0Ra2aBcNcq0DzJqcbcFK3XTJ5AnafRaWMC0pkRUTe6qcuukG58x/wdYgniSx5u8wK7jowhAfoHQpsg3LUIPwuxgDsOr8gxthg4Fhyr7voBX0li2NQ9xqMf1YoIy7x9g X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(346002)(136003)(39860400002)(366004)(396003)(230922051799003)(451199024)(1800799009)(186009)(64100799003)(66476007)(66556008)(6916009)(38100700002)(6506007)(66946007)(86362001)(82960400001)(83380400001)(26005)(6512007)(6666004)(2906002)(316002)(6486002)(8676002)(41300700001)(8936002)(4326008)(44832011)(478600001)(5660300002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?mke/1O1soJAPpYFuX6+CdbcEVqczAzQqqb7yuO7KXMsCtBCvGuTC2kOyhahb?= =?us-ascii?Q?O74uVaOE5PoEzSruSwKhwQKnomafkZfXvoqIQ2huD6tWykHi+/9AEKmMxTZC?= =?us-ascii?Q?Kzos2dBcdvgBGlrQDQdCatYv5wq5EssghU7W+UF0sBpHVbrdlERS5AOMImhE?= =?us-ascii?Q?BoJvRCntWCcztfIG5OHEwbFGDlvxXX3s51OVF9yKHItKKWW5UDCBxGJvl3LL?= =?us-ascii?Q?WV3ynyTxiFLBh5tPsh9MMyqDU10x8VQASs51pWctz1+GTuzIdZMkWsC5uuPt?= =?us-ascii?Q?1VoysrwofpAFmmvswI4rL0mD95W5n5OIDHDGWjcd9ahc3LtOvPSZobC7ibtz?= =?us-ascii?Q?eltg9RCr/O5Zc2gYxefEvoLQsW1+P6FRn8TtIVdyanKQ1mVf1X01z3/8BoFm?= =?us-ascii?Q?38GsIJD580DsoflE86hILnxQzl7uK8KoDQMFOuxDT7cTbwpYbox1Wofsk0nI?= =?us-ascii?Q?RQ1WMWQVImIqlb70ZPRAmdd65EVwPdmU72SbBf5tkmmxFFmFb0F9V0PnorBK?= =?us-ascii?Q?YQ6VpgFE80sjhtFClz+Q6fk06HnQxrg1PQsh+S+ab24gMyQrcGlzoHUV7rHH?= =?us-ascii?Q?2SM1PBSMH9yMCRiF812Xmj+xLPlakcw6FnIdJ+P2T/+fhNYPSmw8sHGVUaO5?= =?us-ascii?Q?gdXcWGbcCifd9mC98J8ptTVeN6mQ1YhqOxZoyboqR7nlVsUxdYoOV3+l32SO?= =?us-ascii?Q?6zPPCAUznPWgt4gn3BSRRnv2LgGeA7HhX91txIqNsWtnxdSMzhqJr6hfHAkS?= =?us-ascii?Q?oujV9fBifi0BARmnudEQRIPkx9CaQ+q0swNMuuL9syQe1idymVxwnNYoCZz8?= =?us-ascii?Q?hay+9W/fvCohdd+MtI9E5qNmipkFKiWqNM5dhor6APRz1MVBYRObULLpz0yT?= =?us-ascii?Q?zcIzxWyLeMB1XkIvzciaTvzGWUeTg91jVF41tQY1Hzy+NfW2xVjUPN33/wyt?= =?us-ascii?Q?ohDBrFThlCK2tYUbaY8Jc/9jjU71vq4c94aiAthSLAFPiP7mJAqckO+xEHuD?= =?us-ascii?Q?BQxZAU34El9t9swksQeDNeeGeXYFGs65PB6cCSFqlBUUjebHAq3IIT2KW5K+?= =?us-ascii?Q?uBbSdUBcPbeFbqSIkNY615appmrPU0wpidUthqNHvJpucuSQSVeGVYPD7gzL?= =?us-ascii?Q?liBNBvmTiVDYHXco79wumai3jz5iTiIwwLhHCWPOuFZMJTFezx+8XOrCEqXZ?= =?us-ascii?Q?AUEl/q4TVFb0V33+22GDBCeLd8bC0FMTeE6csvvIao7xG/y0xFMRiO4mZkid?= =?us-ascii?Q?I+pvlQcFV8yHW8Oxg94xdLJ3I8RZl+SyegeobAt2xfHW6b6Mmdf0jbqH6BRk?= =?us-ascii?Q?RSe3eZtytihucRC1TUMMgQPAK8xQRlEH05F1qot90EmR9swbjEw3M16yM1gH?= =?us-ascii?Q?/tM+mGrN/LKSaJ9q24166R/4hd07+V+GaPFVkLkRR6JrtksKDtbrK/oSe9Mv?= =?us-ascii?Q?mP8csQko0vnzPX2wdcMF4rQqHpC+WD7SCU/Mp2BT9VTGcTV22Gek4VocAlW+?= =?us-ascii?Q?xCEExzv1fFoS/527FG6Sk1jutWX84gB/yvtNfy9d04U+ZE0e1Q7sX2gcch0L?= =?us-ascii?Q?OgLm7gIFPpGtQUW3w0fcS0TT7yaRJnq5dVj+dr3J+Motyr6fHUbj3m+hHkyj?= =?us-ascii?Q?wA=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 1791ad5c-5805-4fc3-b110-08dbe76dca8d X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2023 13:04:54.1539 (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: PkCXyjD5gFskA4XXw2QWuejxe63VOIsqe8aEnV+Y7RwcTCllPMLO1TP4dhGaYwze+KzWuI+KUUmeMZAw0UnjxvOZTzlot+8uzxJ1N6pZzlA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB8225 X-OriginatorOrg: intel.com 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 On Wed, Nov 15, 2023 at 08:28:55PM -0500, Dave Young wrote: > Bruce, > Is the following Linux update correct per your feedback? > Linux > ----- > To run DPDK applications without root privileges on Linux, perform the > following steps: > 1. **Create a DPDK User Group**: Create a new user group for DPDK and > add the desired user to this group. > 2. **Set Up Hugepages**: Configure hugepages for the user. > 3. **Bind the NIC to a User-Space Driver**: Use the DPDK tool > ``dpdk-devbind.py`` to bind the NIC to a user-space driver like > ``vfio-pci`` or ``igb_uio`` These three steps don't need to be covered in the docs. We already described elsewhere about configuring hugepages and binding the device. Also, to run as non-root, I would expect there to be a user a/c already available on the system that the deployer of the app wants to use. > 4. **Adjust Permissions for Specific Files and Directories**: > > - VFIO entries in ``/dev``, such as ``/dev/vfio/``, where > is the VFIO group to which a device used by DPDK belongs. > - The hugepage mount directory, typically ``/dev/hugepages`` on many > distributions, or any alternative mount point configured by the user, > e.g., ``/mnt/huge``, ``/mnt/huge_1G``. > Note: Running DPDK as non-root on Linux requires IOMMU support > through vfio. This note needs to be explicitly called out to the top of the instructions. The list of files to change the permissions on is key. The action - changing permissions - is common between Linux and BSD, but the specific files to adjust will be different. > 5. **Run the DPDK Application**: Run the desired DPDK application as > the user who has been added to the DPDK group. > FreeBSD > ------- > - The userspace-io device files in ``/dev``, for example, > ``/dev/uio0``, ``/dev/uio1``, and so on > - The userspace contiguous memory device: ``/dev/contigmem`` Regards, /Bruce