From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAFEAC433DF for ; Thu, 28 May 2020 00:55:31 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 67AF5207CB for ; Thu, 28 May 2020 00:55:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel-com.20150623.gappssmtp.com header.i=@intel-com.20150623.gappssmtp.com header.b="jmlC2uEY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 67AF5207CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvdimm-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id C0EE01229706B; Wed, 27 May 2020 17:51:16 -0700 (PDT) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::635; helo=mail-ej1-x635.google.com; envelope-from=dan.j.williams@intel.com; receiver= Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D175D12297069 for ; Wed, 27 May 2020 17:51:13 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id z5so30240000ejb.3 for ; Wed, 27 May 2020 17:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/NqIapQj4M62zo7NAMqZ1WXDa5DQy4R8lLb8tN0P9/I=; b=jmlC2uEYMJxp3Ndg2n4Jc8tAGoiLXU5guSTAKk2zwKIsGHoWBTL6aNKskDb3TjqNb4 +X82xsb3nVPpHukjSUnQRVxPc4bHwDWc5FqOXfUjyBegtq1jdKYq+DsuVNwud0Ie408m MDddKH0gFgXP7t/lUWAiRVoyJJiknR45tz+zWPeyXekyWyaIrAPXh0TL5Pnn8ad70DxE nxV3xcaYSDRVDLPKctzIIvrO2QNG5kupe8ut/s3M8VagYAUMVFTjRh9U1VS1dsKelFqz RB8kGAjP5C2Q/zTXFBfqPw4IceNBH3x5KNcFQP9C4iLMtoyhdR2yxA485YXveKDDvp1L cOxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/NqIapQj4M62zo7NAMqZ1WXDa5DQy4R8lLb8tN0P9/I=; b=P/VFUbZ+m+w0/8rpJxl1U3iMLcCVqNjesKcpaZ/qOdibfV1F+qacgHP6nUZmpCKZRA /J5okiPmY7iqW9eoKGAcz1lf5GdAV6KILtg2rf4Hqh0wYzOXcVKxquyLY5YwxUTBdn3C seHsdlSXdWyCXWMk13AsUsisaQBrMREbJFqJLnfawbbVhS/+6CI4lSf/wa19AGD5343/ BjY6dcNSibRFSBbY0Jn6xLf9MdIzFtU+5bHgj+DzwhfqHkgIQTZduEnvWOYs4MyPQJ2g uF6uJbiflnHieDNpgmgx8xcKh+gAWrrAuBiFvYYoog5CO3m/idRxZBmuyu/khjgrowzz DSHg== X-Gm-Message-State: AOAM531j3ZCs+TekPoPPNHTGskKHRh0m89c2JO1bXsmmnfHaXopKbVKR 0ctQdP6O8EVblBBED647gfcXGXxbHnRei4K2KyXKUQ== X-Google-Smtp-Source: ABdhPJymJrNgUvg9FdZHtm1DONWdOyiN4v7MOZP9yHB8u9cpmKjtjqCd/4C8UZPeK/1+wkrxfL3N1id+Ip8wc+yn++0= X-Received: by 2002:a17:906:3597:: with SMTP id o23mr860338ejb.174.1590627325824; Wed, 27 May 2020 17:55:25 -0700 (PDT) MIME-Version: 1.0 References: <87d06swfr4.fsf@linux.ibm.com> In-Reply-To: From: Dan Williams Date: Wed, 27 May 2020 17:55:14 -0700 Message-ID: Subject: Re: Feedback requested: Exposing NVDIMM performance statistics in a generic way To: Vaibhav Jain Message-ID-Hash: YRL4JJPCMGCENR6A65NRWWQZCWBKY3PI X-Message-ID-Hash: YRL4JJPCMGCENR6A65NRWWQZCWBKY3PI X-MailFrom: dan.j.williams@intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: linux-nvdimm , "Aneesh Kumar K.V" , Alastair D'Silva X-Mailman-Version: 3.1.1 Precedence: list List-Id: "Linux-nvdimm developer list." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Wed, May 27, 2020 at 12:24 PM Dan Williams wrote: [..] > > This was done by adding two new dimm-ops callbacks that were > > implemented by the papr_scm implementation within libndctl. These > > callbacks are invoked by newly introduce code in 'util/json-smart.c' > > that format the returned stats from these new dimm-ops and transform > > them into a json-object to later presentation. I would request you to > > look at RFC patch-set[2] to understand the implementation details. > > I'm ok to add some stats to ndctl, but I want ndctl to be limited to > general statistics and not performance counters. Performance counters > and performance events should be abstracted through perf where > possible. Another aspect that helps common statistics is to expose them in sysfs. I'm going to go review your proposed ioctl mechanism, but I would hope that is reserved for multi-field command payloads that need to be sent as a unit rather than statistics retrieval that is amenable to a sysfs interface. _______________________________________________ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-leave@lists.01.org