From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E1B5BA09DF; Wed, 2 Dec 2020 19:32:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 22D8AC9A8; Wed, 2 Dec 2020 19:32:46 +0100 (CET) Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by dpdk.org (Postfix) with ESMTP id BB3C0C99C for ; Wed, 2 Dec 2020 19:32:43 +0100 (CET) Received: by mail-pj1-f65.google.com with SMTP id iq13so1501605pjb.3 for ; Wed, 02 Dec 2020 10:32:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dk+QbPK0xB2yG3z40W/p8b1x+pLHQ0g0FRfFUJr4Daw=; b=xLPnslytgIq0ySIXxDTHzXFoHAJetBf9cNWbbd11nFuLb4+m7pqCAbXbu/LHfL7ZlG L+xgG5QAsjPT9ywZhibKzDlIePsSv4X3ZgTdgveAA/OGmPaZEcxnRFGsnu5dPLxICLkF PAaY4l4iOvay8B9LtFbQzK44ljuiZhjRCYKey8dHiBLzXPg9Ygyifkb9VPBYof2fm8K6 78ELITrZZNHuTZ5k5L91Jzin+enS7HyGoNlL2wHOtGgFHxhAZP4vSVoRnI02D7jvhpaQ f38SuisPryDhiQ3Uby+YuGKTnoe8UpzUL/DwKduXTDcHxQEXprLr2waNHRgJ62elU9fu mlPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dk+QbPK0xB2yG3z40W/p8b1x+pLHQ0g0FRfFUJr4Daw=; b=WfHPgN59P4tEbswnKgNT92QifB+gPRgVfYHdWh3Zh8FBbBKCwtp7bLINGWqxGIbNAl 5u9oAiyA9S3Uil8Cak8YitL1LXT72zYq1PBsBp47Dp3g3K1T0+CcQlJjQ2WqYyyfCCug Wqz5g9gzz12x+i5/Yuo6feN2PbAgUWBKLhc7hQmXS8rkwZURyrDsVpTxDMhk6vaJiKcF Iy24zHeTTvilBJp8VBGkDOVYCzTHN8Wv4S2bJCZvcy4v+/JYY1xZOkKr6IGqU2Qs17J5 P6fog7WO+BkCuECxk+J7rPDr03sbr0rDmpafJj77wObveb4eCHVyRGsXc9+FN1SVy7WW 0Hnw== X-Gm-Message-State: AOAM5306OkbcZhQ2JA0bb1tjTH0T4HHVdAHvKh/q733vj/G4aQFmY+ng HtD7FjKkve+Yxe91Oo9P3GhORA== X-Google-Smtp-Source: ABdhPJxI3aGzCSaDSeR+5NnQ2qLP+BQagTgUcyx2gpyJbUUIs3dLVA0k6wfAL7YUO7ioQ2td2duLiw== X-Received: by 2002:a17:90b:1b43:: with SMTP id nv3mr1102949pjb.67.1606933961768; Wed, 02 Dec 2020 10:32:41 -0800 (PST) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id v10sm327869pjr.47.2020.12.02.10.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 10:32:41 -0800 (PST) Date: Wed, 2 Dec 2020 10:32:37 -0800 From: Stephen Hemminger To: David Christensen Cc: dev@dpdk.org Message-ID: <20201202103237.270328b7@hermes.local> In-Reply-To: <20201202181959.13753-1-drc@linux.vnet.ibm.com> References: <20201202181959.13753-1-drc@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 1/1] usertools: show hugepages on POWER systems 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, 2 Dec 2020 10:19:59 -0800 David Christensen wrote: > The IBM PowerNV systems include NUMA nodes that don't have associated > CPUs or hugepage memory. Here is an example on an IBM AC922 system: > > $ lscpu > ... > NUMA node0 CPU(s): 0-63 > NUMA node8 CPU(s): 64-127 > NUMA node252 CPU(s): > ... > > $ numastat -m > ... > Node 0 Node 8 Node 252 > --------------- --------------- --------------- > MemTotal 126763.19 130785.06 0.00 > MemFree 119513.38 125294.44 0.00 > MemUsed 7249.81 5490.62 0.00 > ... > HugePages_Total 4.00 1734.00 0.00 > HugePages_Free 0.00 4.00 0.00 > HugePages_Surp 4.00 1730.00 0.00 > ... > > Modify dpdk-hugepages.py to test for the ../hugepages directory before > attempting to parse the hugepage entries. > > Signed-off-by: David Christensen Ok, but using continue avoids having to do so much indentation. if not os.path.exists(path): continue