From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0069.outbound.protection.outlook.com [104.47.38.69]) by dpdk.org (Postfix) with ESMTP id 331B068F7 for ; Tue, 25 Apr 2017 12:19:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=X+R9cxnK6GY3hTmwwQJUONI1v6L8TNv4Xj5ZDkpY97E=; b=ljrUgMoN3Xn87+RfJcz2RLWQZH9RA6xlQbIPS4SBZeZ6Dq6F1Hkb/emqRkkE+99TJY4Ej2z2WdF8XFNM+w2ebynvpH+Quyg2nJluAQmuTHZ5PRe759YxRMEcPjiFsNuQqfbi4vpy2gq3xptL/HTBQztDjGTo2/vErYQ1KHK8Eys= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from [10.0.0.75] (31.172.191.173) by BN6PR07MB3505.namprd07.prod.outlook.com (10.161.153.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13; Tue, 25 Apr 2017 10:19:56 +0000 To: Thomas Monjalon References: <1490962860-11567-1-git-send-email-Andriy.Berestovskyy@caviumnetworks.com> <1810447.5BRUVpxoUJ@xps> Cc: dev@dpdk.org From: Andriy Berestovskyy Message-ID: Date: Tue, 25 Apr 2017 12:19:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1810447.5BRUVpxoUJ@xps> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: AM5PR0701CA0066.eurprd07.prod.outlook.com (10.169.145.156) To BN6PR07MB3505.namprd07.prod.outlook.com (10.161.153.33) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 841448b0-2313-4ed5-1893-08d48bc49f1b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BN6PR07MB3505; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3505; 3:QOB80IG3fJAik8ng1kdLaBXgj0PMA/57481n2ojKQDlJ6ds8tSuWjupkY88zc0qdLierQVBD1PVWxBY0HIoRSTps3aDaUfd+aJjR0vsV2cCk7VgWGoKiKQ49pnE1BjWXgruyuVuv1jTTY38yloZsLWqqkEe8nA2Q9bJGpski7dY3Mwo2KrwMQ7FPgMVmeWXLQMDEw3TGCPIgg6Wqbtgyf50mD3F0iu9WGZg46sydwUajQPNpOYlZd8Yk5by6Tso/WnQ/tOMtyi+ckpCepi+cPik1J/oyhEgKZhbKCSPlvKusYCSeNWsxvBVebcE1QaUz7kOiOnJn4vpqQj66HQrWKw==; 25:1MJnl8hZ7nfnSAi6XLcBHMhSfA2l92H/mxLY44MVbKmPB7Hh/KtXgce7DR3HDK0JRHm+I525S/jGEWOoUU0UBOd5AFgM7P6rh69C0EWPGNhHKSfiuGe85/wV45Zy1ZRkrX/DPg61H1uXQiBJSv6u8N4AqpATHIrMexqYk1amqi1RlN53RNq5xu9Db2sVQjByoLz+8p+F8UrbuIeTGErPI8LnJR3sIkqU16MoKZbVRermZtdel8mE4KGP7sVkw2kvbHQsP43e7sG2BXS28u/jHQfE3q/wzT9icl91pEepBxiKcFAtu6y0BPtJzuSJMCb2uFbcmicSUbGP1CmzgbLaJeUcC0iMlGZdq81XthgDGi+DlI/I1EBbpCqvqN6SN+H2TeB2YDAUux+fyX5OmqjsKDEzbSQHROPkUUPXTIyENKvFwEv5Zkm1nz5t0deohFL4TXtFSpbFUKXnaBlJGqRd5w== X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3505; 31:RC0/+QacAhiNi7XkN2NTaPbdBspAJIyDP4vL79zE3v6TLS6BqxwPlsE4qbewL7zuTtoXCfun+1BV9VJwHOgTCMHeq00wFhqBiqnMu3+BL4EB4OZQsODe4or9JrA/FAQThYFQAg+hSH/UW4ujhA/QZCxK6VVDes1ktJp96UodQFzfa20QraAvlXwKHattMMkapKNFnsOdZiumh4/7U93rJ4mplRNzHMNYbrBGpVdyYwM/Rup5NLVkvdht9GdqfEc0mSwPhBBenM7JQRyPMoCtXg==; 20:+ITOfXllpWFvtGsyXfltVjGlPfu77SL6do9E6vFQVekABq1QdLcUIOQZ5+bNQ1cpLfuhNTcf7JSUIPx3lDNpwiTtPvrLpaRB7ABbJFbGe14Kvaw9QTpUk/oWrpd/VAJ8GpOFYZRYBCRJ44aON+fgZt5qZA+AJ92Jy7GsTZa/1r2MWJN8+ZvpG4mPiJSsioyIMxdwU2aab4qhDJzCP2jNy6i4xYTpKp1AIORIH0SChYVEfidKk2jIfP8sh5o6o9cSBhOdDt+W7kLmtMkgxSGs0Lg0mcxEeDIL8zH3MOm51f92TxGsfvc4dDGLPz4M7Su0LIc5uH/D+2avG1xETkQt96liX5Qo1p5rlq3UL0fY82ra7uKvyrEYrN/6J8gzwfKZKorNFSaLhDrrQM64vRWETmVzSWp1sPdYMnAJwce/8Lvl4cyVfvzkWJX4IG6bLVhCSYBMo4tQb3ANQ3MDcpN1dlBFd8Hi5N0xUm+bPXXuaFhBQxNjQRHf4ifPxfxhlXyg7I+tPMR31CaFANg45ePZIkuLxkbp5V5JzYnZvsJsdVuqDPMHO5/uDpnt/1ofqGg/Lnb3Tc6RDNZ8S/yPhINzqF1AqYrbBkNGeti1EAm+0us= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123555025)(20161123564025)(6072148); SRVR:BN6PR07MB3505; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB3505; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3505; 4:rzR8CvHVGOq/gzsDwJdCejJ/meL8w5gqJjIVlUjibMZmZp7qmpMrLAnkYSgzgoUf+MgHS2E77ywzTSkRo747IWoqrtMwrH6FOTj7DSRDE6N4a+KWTUe5Hl80XtEDJ3xhF3d9LksCoZwhEWU2ng4j6Kx+F6qsYwuOTIcLXXnCP1li1wpvpAZlkqFfR1UIGpVawRUpoNE7IjoGK+d/h3rGhgDdwZbUihzhzmYgODnLaJIO5L++L+4ojgLlYtpmOROSwMFsVUBatfyDFzDVlEvJGXk0mxAywH6eI3puz02HU9RDcTP90Ap/HSVzWmes+XFSSbeE7ZXjn3j/IHIdVUyejfr7ar5hERAkHC/0fW200AUttS4G9oQTMBqpY6Zg6So8x1Udrpb5Hq4muTWokQBqJ8AST+4ZljvVCVg+9deVYA9ahHv/D7MxKc5OROwb4JT22MQJGnAt3sfa4GWU+PmzyOm4nzl4PWd5l6UM0AioE0wmieONadPxFtdbF4WwlQX4jvZkLTqGyelyrVg+kJwIaS/Fs5xcQCyhyf+DWKEkcLHYUcQe7oFqmadsZnvBTR03zAj/rAdkS7LDC6Ki0A0S7vzrokUwXfBP0XsMhpZBSzbtLUw2GSZrS4LwVR5qOcDSReTt/NQSKb8V1HbgcXil326Lov+pgbou8ZrV4WQmIuxJiOV5Tf2hseWhawCMbn6Y X-Forefront-PRVS: 0288CD37D9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(39410400002)(39840400002)(39400400002)(39850400002)(39450400003)(24454002)(230700001)(53546009)(110136004)(38730400002)(90366009)(23746002)(33646002)(5660300001)(25786009)(77096006)(8676002)(65826007)(4326008)(6246003)(6486002)(42186005)(83506001)(31686004)(81166006)(189998001)(50986999)(53936002)(4001350100001)(65956001)(66066001)(47776003)(65806001)(31696002)(2950100002)(305945005)(42882006)(6916009)(229853002)(54356999)(50466002)(7736002)(2906002)(76176999)(6666003)(3846002)(64126003)(6116002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3505; H:[10.0.0.75]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN6PR07MB3505; 23:RsvDDWE0GviUQ3VY7yF15w96xvfYOaJW1KNN0?= =?Windows-1252?Q?j0V5MRes6vqh82TtNTitn5bEaqcORdx6Ed+fo8Mzt/DPPjwJ01znwSbV?= =?Windows-1252?Q?rofR6Wo9WjS9J1uImGWez5vc8PVBpvpVG/ehxvacv4OA/Z54amwooER9?= =?Windows-1252?Q?q4agtSSxbtf8x1VImn5WVZGFoX35BboguqsqS5FmO5FQ4iuwSm179WDR?= =?Windows-1252?Q?lEAOuRNsVKYCdMu5rI5gbFnKwpvUThaTcf7xIJXly1x2/JpgsigXUfq+?= =?Windows-1252?Q?qro5ON5wqYbNGe9xqMW8yhTOV8kIV9bMxrDFXUJPe1DuH6md7WICCeBz?= =?Windows-1252?Q?MMVUgoTvRG5erLUqJb+hhwjIpZdRXhS+aePKKqlS2RrkkdyQ6r/ja+u0?= =?Windows-1252?Q?5BZ+kfI26ZFVhb72T88zEMNp5p+xmVLCmfcJ6DKATgfbKFdEXwrZ2NPf?= =?Windows-1252?Q?qOWtp30T6IjuGIX37TCp62Yr+z6+4aQ8NA4LMNM79hMgDeXfU6RM2uK8?= =?Windows-1252?Q?lfZqNujSeee4Xb48SfEEnN0bvnEV+FEqzkC+qzPgXTdKCvSjW1VCsrb1?= =?Windows-1252?Q?Iav4CD1E9wJV0J4a4kIz4tNRMgWHT0R10yBC3Xn17YvK+9JclO0ZwYEr?= =?Windows-1252?Q?Z/gcPld/Ec5jN+w1hapFWZ7WQ4Fnwjs9hqCvroWSZIDLeP/hJAEm33pW?= =?Windows-1252?Q?22g60jGbnhvouCdgY+7gWCUmzwcU/FgV3anduRRNY2olbVADzInVKNsv?= =?Windows-1252?Q?8ea/wMH7iHBf1H2wnXxBivuHQ1VVbGaATRv6mo6xhg39K2PG4MkH3mHs?= =?Windows-1252?Q?xL1Fo+oSRqSum9EhzSvWQP3xS7SnF6xrsG5r4tjR1HTRMiG2BhAanP1B?= =?Windows-1252?Q?xQAeeMzTr2nEA6hZci/7BXLdyuszox5Q8FkIPenQPatHlInOJ4xMK2dI?= =?Windows-1252?Q?FQ3pJsr9QWQYt2flXQBiBIN3/cchOlpU9kDAB5eMHZYEucTbEUudriWw?= =?Windows-1252?Q?KYrGvS8VVvLXV1YQm75W8EIA8IoSfDcTxNhaQnJspc9+xLzi/JTEKlpX?= =?Windows-1252?Q?ZTn3sbR+iRuzYjy0i/yK4cfg/dJV8j3gOlJJOrg+gxAHztce4pGSMvRH?= =?Windows-1252?Q?IVvGpXgGOnVSYRL4N0UCu7PFuYF/FPEc14NdyPXvf5M16hpxXeb3Z2JL?= =?Windows-1252?Q?BtFPYic+zqtBcaW2dqbM5eFC5PR6fNof+1ZjBamTqpo3JRgVfWp1chNe?= =?Windows-1252?Q?qZmUf5CcQRlXLQVGneVFDPg0Jft08I+Lqe2qPxb2BEpj+uo5O9pkW5Rj?= =?Windows-1252?Q?JjDCq6vDY23folxyRfEixuNG+xtleQutb6d3K7/OE+IQjKgoRRhwug0B?= =?Windows-1252?Q?YCJIsSfPPvdFhPH0xTPfXerO8ptAUIXUQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3505; 6:hHSNfITqqFbW5AA04TMcF0zbNSy7ej5Z1sTPVjh2gb20rWNOEJxBdyMa31B24L+oJZJLf+Mjg9xeTBG9xo92XRj0WpN5dX0AYHEuOHLvQ+ndRxzjRFYcEDZNP20AFnvzg7RK1E12Ush+gWFphsvaXM/yjZEqdlVggoskGsQKrS2hjI9Z5i6tJEmQPQIkbIsZmENjFMzJTaKnKcKRqCLxdUrXcmExRg7zT+qiC/lLfMxktQsxo0N7azDQY16pYi69XUBoyn4gmiL3TUeOZ1tgXir5pvfdOL/Cd2EyjzbtQLVzcZmRGu3mbvcxeZ//Pb/EQMg3T5hiwVQm45XcpnDka9FfpmPuEHb0FV+6B9qxugV03+F9fnXbA2NQaTGJwlDrC8mYCTy0d4SnTn7OIWswNXF1vESjHiWHRS1NQ8nn+JoVaSH+yF4z3Imoh4SPlNWzPbPghI31rJu0CAura9R5dHGMzHOiozFC9CiEOZU0J4OcPlFqaAqO2YqYjpbVhKYm0faTkuzSx2bKkUxr27b76A==; 5:NVZXV0KocnyaRjinvGyTWLhe37S1iX6Vv9Tgqti6H4luzDa2+/lTaaq6nqPSwyhlcWzC572FsNZjImNaPyCCjxehGOzffvmk2616doYpz6DfE66JVl98o0VmWIgmZqp3EV9iqmaLuBLWTysGQPvYDw==; 24:N4h3HBILFBmzjrAZtzJBOL4rGiZZyOXI7v0U9UXkyHiNi/Fa2BsgiMF2O/bvDHh3Jp2yZq4EwJzwXJ6RIcEUK+MKtM4oj7/923JwktKYCSc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3505; 7:EOhyz0FLKtFLSKSymyr7Fkz3/IWY9HHYQ0fKlfvKzmDZJ6A5IjHW5Mk+gKzbFy9e/noo/vdyr35LxF8TdINw+JmELHmetMEvmxRDogdeUVcXpAwor/IS1AlAxfDTj6yMGhicutlsEVb1Oj9NQNLmoDoRYCNfD51ugPqPl9DgJelTi0WlHQI/ACnJKJmEIhcH/P/dB/aDHFSzztXsYIzQEWNBRfsOjjlRxn77UDxx9M0R5vI0D2UDuMqKpDAggaFSyakkMPc45WDheOcJiiKTt126BNXDOH7oLlC7tkM4hmwB1MbneQHJ14FZq9wGnpq3SZzvi0XPXcrtL2v8EdA4KQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2017 10:19:56.0573 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3505 Subject: Re: [dpdk-dev] [PATCH] usertools: use /sys/devices/system/cpu for CPU layout script X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2017 10:19:58 -0000 Hi, On 25.04.2017 10:48, Thomas Monjalon wrote: > Do you think it is really a good idea to keep and maintain this script > in DPDK? It was intentionnally not exported in "make install". > I think it is a bit out of scope, and I wonder which alternatives > do we have? I know hwloc/lstopo, but there are probably others. hwloc does not work on my target, but you are right, there are a variety of tools for that. For example, I prefer numactl (option -H) because it also allows to do many useful things, like bind CPUs to one node and memory allocations to another. At the moment the script is just like the lscpu, which is preinstalled on Ubuntu and mentioned in the documentation alongside with the cpu_layout. We could try to make the script more useful, for example, show which NIC is on which NUMA node. Still, it will be just a subset of functionality of tools like hwloc... Regards, Andriy