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 77485A0A0C; Tue, 3 Aug 2021 01:29:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0BD1740E32; Tue, 3 Aug 2021 01:29:32 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by mails.dpdk.org (Postfix) with ESMTP id 884E84069C for ; Tue, 3 Aug 2021 01:29:30 +0200 (CEST) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 172NQT7Q146599; Mon, 2 Aug 2021 19:29:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=UvLGrzhbJJDb/ysYvEb1lSB3Xu2Tl3ntEADPuhz6Kqo=; b=tIImHuHt1YLQtUFKU2sQ1ZvuU55GxtEX5M4MEdCC46wGy+I8PJHe9Mq3g6C60UGhbGim BhgEsF018j+KdGTSS+B+bId0kcH9UNQ9pY+W9G43Xj60Yuo4FIK0jqRsH7h5nZzBLp61 cDJZc2o8xGJY74IFBSN/s+XTU9+Qfb30vdXc2MVkC+6mzVoVnIza2R0eLxyxLva43Mu7 Toi9FhdlAVCp7I8QBQBAcKjKMov9db+ikz7HjDVx3oampKxV03KTyYNR09Yh4CV/J6fy Ef7ty97igt47tq1bKcv2m+M96WQaRdlUtOIQ3VNefNybKkHgDNGdSVxLiiKfUbXsF4j5 /A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3a5kjvjdg5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Aug 2021 19:29:26 -0400 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 172NS3hf154574; Mon, 2 Aug 2021 19:29:25 -0400 Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com with ESMTP id 3a5kjvjdfk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Aug 2021 19:29:25 -0400 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 172NHKTv032539; Mon, 2 Aug 2021 23:29:24 GMT Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by ppma03dal.us.ibm.com with ESMTP id 3a4x5cm831-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Aug 2021 23:29:24 +0000 Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 172NTN2842860848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 2 Aug 2021 23:29:23 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B9CAF124072; Mon, 2 Aug 2021 23:29:23 +0000 (GMT) Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 337EE124074; Mon, 2 Aug 2021 23:29:22 +0000 (GMT) Received: from Davids-MBP.randomparity.org (unknown [9.211.121.80]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 2 Aug 2021 23:29:21 +0000 (GMT) To: =?UTF-8?Q?Juraj_Linke=c5=a1?= , "thomas@monjalon.net" , "david.marchand@redhat.com" , "bruce.richardson@intel.com" , "Honnappa.Nagarahalli@arm.com" , "Ruifeng.Wang@arm.com" , "ferruh.yigit@intel.com" , "jerinjacobk@gmail.com" , "jerinj@marvell.com" , "stephen@networkplumber.org" , Piotr Kubaj Cc: "dev@dpdk.org" References: <1624964105-6525-1-git-send-email-juraj.linkes@pantheon.tech> <1626872655-27496-1-git-send-email-juraj.linkes@pantheon.tech> <8198751beeaf4a94acc951b1c1d4fba4@pantheon.tech> From: David Christensen Message-ID: Date: Mon, 2 Aug 2021 16:29:21 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <8198751beeaf4a94acc951b1c1d4fba4@pantheon.tech> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: N5SumR-lT8Dlvl8ffdJOSFpVPI14-vlT X-Proofpoint-GUID: ZccOXPG3fF9WphcNq33G6680eWqoFRvy X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-02_07:2021-08-02, 2021-08-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 phishscore=0 impostorscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 clxscore=1011 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108020146 Subject: Re: [dpdk-dev] [PATCH v5] build: optional NUMA and cpu counts detection 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 Sender: "dev" On 8/2/21 5:44 AM, Juraj Linkeš wrote: >> +if os.name == 'posix': >> + if os.path.isdir('/sys/devices/system/node'): >> + numa_nodes = glob.glob('/sys/devices/system/node/node*') >> + numa_nodes.sort() >> + print(int(os.path.basename(numa_nodes[-1])[4:]) + 1) >> + else: >> + subprocess.run(['sysctl', '-n', 'vm.ndomains'], check=False) >> + > > Bruce, David, Thomas, > > Is DPDK actually supported on Power9 FreeBSD? Is anyone using this combination? How can we address the open question of what exactly does sysctl -n vm.ndomains return on a Power9 FreeBSD system? Or should we just leave it as is? Or maybe add 1 to the output (as we do in other cases)? Not supported within IBM, but you can buy OpenPOWER boxes from 3rd parties such as Raptor Computing Systems so there may be customers using DPDK on POWER with FreeBSD that I don't track. Adding Piotr Kubaj who has commented on POWER/FreeBSD issues in this past. Dave