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 03BE0457CE; Tue, 20 Aug 2024 11:41:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 943F84026C; Tue, 20 Aug 2024 11:41:18 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by mails.dpdk.org (Postfix) with ESMTP id C85AA400D6 for ; Tue, 20 Aug 2024 11:41:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724146877; x=1755682877; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=i9ZF6RzAjf+NHILyQa6ICboZdf07YE278E1BDMCVW3E=; b=bWG+eQ7ylisd8mEEkwUrbmulRLINqCjCw/n7TXCD3YDRhQeERoXC45KA nQGYiqazAyl7e07wjx61XmtqNVuNDsq02ai+wsJzgoVpMGAbWVGRXSOJp /RwZZ0dZnZy094nOTqvHODUOlRuBhRjFdaFvjmEVd3qlvmwDpfqIfNjj2 3K3omfwd5LdGF9SQPYqbQ8S2Zc5cfb52LsPrGETzhPoSIhJEgNApC+Lcy Sv4/8Kgr+zef8kr7UIPM7wlFAS4m2r9i2t0TiKDf+BtdfMIbYtlChQ3tc GFHEEdGJghBx9G+yo2x0OwXqsWLagTR7ld63Ku9PFjgLUQKuele99r5kf Q==; X-CSE-ConnectionGUID: VzYkYQ5rSM+uBwrt+qbWrQ== X-CSE-MsgGUID: m63WOe8kQpyxhu3Mbu/dtA== X-IronPort-AV: E=McAfee;i="6700,10204,11169"; a="22570594" X-IronPort-AV: E=Sophos;i="6.10,161,1719903600"; d="scan'208";a="22570594" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2024 02:41:15 -0700 X-CSE-ConnectionGUID: r3tYBMdoS6mfZXbSvETm4g== X-CSE-MsgGUID: fywNIAqyR52PlJlXFUQQPg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,161,1719903600"; d="scan'208";a="83875765" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmviesa002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 20 Aug 2024 02:41:13 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 20 Aug 2024 02:41:12 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 20 Aug 2024 02:41:11 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Tue, 20 Aug 2024 02:41:11 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.172) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 20 Aug 2024 02:41:11 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=efcz2LfCsCp0HjljqxSYwUZ24OfjI4FbbA6stYBxWAuKk1eK8su14GJyQmHaKiECyOAAl8P70Bh6KQaw9+Eo/JY+n4pHf01kbanTNi2HaielyYhyORnx2ta4Q4ogbVZO1XebHVfDaMTBd5z5VknIQMX6cd6JjiI+w0bQwUOW0lfOiKSgeIlRXD0y4WlowM0yefk3ueHMt91H7sDDzkcyCXgh9R9lOk6sqABryc3ypFG6zRCEcoJvs1wVe2xqRWKXnw7bzcUhkdZkM3rnYNjDnc99gdywJBfksmMxOvgqlUpdTPXxAFvYd4cvLNYUVriD0molNpjIy1NYAWO6IOqpyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ql+lvA2paGxveI2SlASVuWVvDVRd5pkBnW+RHZaks4A=; b=ghU0Gj8QWN1oKKL1seu8wjgAvOyt6Cy78In3EcnJNhZ0OqjlzRZNMXX2L1hmGwQkCHNs17yx5GS2z7mDBkjjtOiwH4WYTwa6pD0uhr+NKtQc5nzHLeEkbGWSZIvxlhBp/24QTERQwOvhiWxiTNf/dZyoZwP8wDzVkdM9KeF8aeXCZG0109MTLtLAG7WJ8N7pX/90yDbHafPtHoWFJ9wywPX6SylErkiBOf+Pn4zR8n0+FNvdO3kzn2jaGzhXGSSv9hyCb7fRk9s49s1e94R6HGUiYatJ/6eLmtkrsgw6WCFJCCIYrb1ytSYvYEJ/ORF/iGoyBtX9VoKoFBp/xrn6uQ== 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 DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) by SJ0PR11MB5103.namprd11.prod.outlook.com (2603:10b6:a03:2d3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Tue, 20 Aug 2024 09:41:02 +0000 Received: from DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a]) by DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a%7]) with mapi id 15.20.7897.014; Tue, 20 Aug 2024 09:41:01 +0000 Message-ID: Date: Tue, 20 Aug 2024 11:40:54 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/4] usertools/dpdk-devbind: print NUMA node To: Robin Jarry , CC: References: <7dd3a055-d2ce-4dd9-b9df-ae95e69d4417@intel.com> Content-Language: en-US From: "Burakov, Anatoly" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR07CA0025.eurprd07.prod.outlook.com (2603:10a6:208:ac::38) To PH7PR11MB6498.namprd11.prod.outlook.com (2603:10b6:510:1f1::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6502:EE_|SJ0PR11MB5103:EE_ X-MS-Office365-Filtering-Correlation-Id: e900bafe-03bd-4701-d12a-08dcc0fc32f3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?a0EyODJqK2tFWjhObGI2NTZSQnEvVHA0M2ZpQXdZOUtNc2IxNVEzRWQ3bTBG?= =?utf-8?B?aC9qTHdpT1NzYTZXUExsYThvS3NsWURROFVsOVE1ZWZQWmM5NkxyRnRyQjFz?= =?utf-8?B?OGtMM1Zuait0dlR3NDlBS0pVcVN3dXNhbWFVd1hza1ZmbW1xQ2o4V0tLc3dR?= =?utf-8?B?MW1CZ1ZmU2hJYWRSQ3pONkdrUHZ6OFpHY1RJNXBqSEI3MFQ4cFJxbHJXRGhT?= =?utf-8?B?UEU1TEt4Qko4dW1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GN0ZF?= =?utf-8?B?MGNScDUrR3hRVEpXN09ya2Q3b2hRU0RydXRCWUdMVUVHcnR6R0JBOWdzQ0hz?= =?utf-8?B?ZzY1UmtxMVJmS1VtWG9YZlNwaXhVMUtscEJncUgvMU1zT2QybldQcTNyRHFH?= =?utf-8?B?T1dodmJzQ0d3dUpWYUoxV2lkMVZzN3B0djhLME1tSUNVS2hhcnJKVVB4bU5k?= =?utf-8?B?SU1sNHFFK0w3Ym1KVjlYZGloUG4yUlJDMDBTcWxTcGNQYWQ3eno1Q3ZMWm16?= =?utf-8?B?U1VqSXJCcG85d1Y2Vmh4MFlWZ2xSNVBlMlg0bGJRdkhtT0xob09XNjJXTEs5?= =?utf-8?B?andzWUNUQ1lDUVlaUXZhZzZsbkhEODBTM0hrWWd1bTJIWVg0djdyTGpWRXpi?= =?utf-8?B?VjhaVVhsZ2pNWlNwcERpaEVtNzIrc0NCNFFGcXVVQWdYVFVva0FQMmVCTHBZ?= =?utf-8?B?U2ovRFdXR1ZtMUZqdmJ6ZXlXY21GT2lMWjFlYWtCRyt3dUNtT0ZFT3dFOVdm?= =?utf-8?B?N2UyTUtTdTRhdkxrL25kT3lSVjk0QS9Uc1g3ZmNEMFRKYUNaNm9wd3JDamhT?= =?utf-8?B?V1luM1FPOU1XdW9nUktjV2tScWxaTTZYbXplT2N4MVE3RlpYZ2tGZWRNSXQy?= =?utf-8?Q?wJ69YJ2SYwZLk7taVI=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB6502.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cGFlMkZDYStqY1hpbkY3RDFOY3gvdDlhaFRwSHVsWlhzNU9Hb1VjMklkRUhG?= =?utf-8?B?R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U3BDdjN2SUxvc0lL?= =?utf-8?B?Uy83Zk9JdFJiZm96RXk0bFY1c2E5QjBibVUxQmFOR0xmT0pTbEhQanN1NDc3?= =?utf-8?B?Qk9lYlAzWnFsZTA4bWN2SGEzcTNRVXJ3U2Z6aW52TTIrakJUYXZKTm85TTZy?= =?utf-8?B?V1FzbGZYVHRXc3FQSDBnSVRSaUNXSjJXdkZoSjl3WEhONE5MOWtXUWhzQWRK?= =?utf-8?B?N2xTSTNxMHN3SU81aXY3SkhOc1FhemV1bGtZMGtWYVpuZjFhTXkrenl0UWpn?= =?utf-8?B?eVlKbmk2ODNiMmxpZFRBajNZU3VRdmgwTkRWbnNnS1B6MlI0NmRXSENJWWYz?= =?utf-8?B?MkE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: e900bafe-03bd-4701-d12a-08dcc0fc32f3 X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB6498.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 09:41:01.1259 (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: aWOZ5OgiJK97n8Zbz0GZk3hCzzgZkvwHFUb8DIEF0sV054uahvpxVLV0cTqa4M9PT82wKE/BcFA6Ze+g/IdEWBjLypgW5LD5NxdewaKR0Qs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5103 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 8/20/2024 11:28 AM, Robin Jarry wrote: > Burakov, Anatoly, Aug 20, 2024 at 11:08: >> Rewriting this one would take a bit more time because unlike working >> with hugepages or sysfs CPU layouts, I'm not familiar enough with all >> of the specifics this script does, so I'd have to learn it more. I can >> try though, if you think it's worth the effort? > > If you have better things to do. It is probably not worth the effort. > This script is partially redundant with driverctl: > > https://gitlab.com/driverctl/driverctl > > I guess we cannot completely get rid of it but it is also OK not to > invest too much into it :) > I have heard about driverctl for a long time in context of devbind, and I quickly tried it out just now, and IMO while the *functionality* is there, the usability of devbind is IMO far more friendly: - it filters by device types that are of interest to us (driverctl just lists all pci devices) - it prints out user-friendly names, not just PCI addresses - it lists loaded drivers, but not alternatives etc. like devbind does - I didn't test this, but I suspect it would allow overriding driver for an active NIC - after my changes, devbind displays NUMA socket, driverctl doesn't :) What we maybe can do for e.g. next release (currently I do have better things to do if I can help it), is to make devbind a wrapper around driverctl? This way, we can still keep the usability bells and whistles we have, but drop the driver overriding code and leave it to driverctl? It seems like that would be a good compromise, with the only downside being that we'll depend on driverctl being installed. -- Thanks, Anatoly