Received: by 10.213.65.68 with SMTP id h4csp766670imn; Thu, 22 Mar 2018 08:07:51 -0700 (PDT) X-Google-Smtp-Source: AG47ELt90oHE6ffbh18mF2Fw5bLSbFp16eWyr8ZDmROrBkgDhvO93Z1WY2glJYVZsAJ803NW6YUH X-Received: by 2002:a17:902:780d:: with SMTP id p13-v6mr24222627pll.281.1521731271165; Thu, 22 Mar 2018 08:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521731271; cv=none; d=google.com; s=arc-20160816; b=DxFGKwLsMkKszRs3WOV8prz5i2EuKlaiRhXuKGYgpI/y+upHtewb03IPa8TVdZidqo fmNo4RBxfc62qmszdrPYRyw1VB1J2gvMYL7vnj3l8tJtkD/b/GPCJ1N6QNYejoXdk5lh f29bknGOyawrbjXrp3kaELRpxc5voagOh79j7ukBZ+gFI147JIgbaHJiHYRB6plhygfm klvr91+V5ctFEh1SRGqR0p7fzYt2v1GJ8UefKv2dy7/WUD0IXMGHoSMFmQ7j6QnYgPXj f/cAC2UN5sWnp8Zs6gRr/MR2ZDlFZPSmdr8E+hBCpwPaaOukm8hYhVQtpKP4iMiyyWqw x18Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=QsJe4vgzg/gtDkpv399lBNv4f6VcPVTyKP/3JeHpUMs=; b=OtiJ6u3UQ54sQ89+fsAm6boPprCg9TbjVrmkFoUauGoz0Q3Bm5ZlB/MfFmgaQ7bG1W 8Jwre35oMGHtbPKQsUx8NiyGrpoxOJpQolBdC1DUElzXIM8KGxVda3tFnrIvhOBPNqya H+Eg6lxZeQpwXNefSAI+ded8uDh0gD/w/w0yFyxHt16mLgDwZn58dti6sJSpc+HCSryR q35H4QrPK2GS6QzuA506DKIstVAX8coznxljA78iIRm8TPuga95fqYUZ/1CF33Yw7QHa ps7RDV+pWrCuCKAwFZev6pEHwhBKqRSTPvBsKZhMpW9HzPPsqw3BbAoR/7I5lsPuAYPd UiEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u21si4573557pgo.100.2018.03.22.08.07.31; Thu, 22 Mar 2018 08:07:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753285AbeCVPDG (ORCPT + 99 others); Thu, 22 Mar 2018 11:03:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:48691 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751899AbeCVPDE (ORCPT ); Thu, 22 Mar 2018 11:03:04 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id F3E08AF19; Thu, 22 Mar 2018 15:03:02 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id C225FDA99B; Thu, 22 Mar 2018 16:00:37 +0100 (CET) Date: Thu, 22 Mar 2018 16:00:37 +0100 From: David Sterba To: Andiry Xu Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, dan.j.williams@intel.com, andy.rudoff@intel.com, coughlan@redhat.com, swanson@cs.ucsd.edu, david@fromorbit.com, jack@suse.com, swhiteho@redhat.com, miklos@szeredi.hu, andiry.xu@gmail.com, Andiry Xu Subject: Re: [RFC v2 83/83] Sysfs support. Message-ID: <20180322150037.GD6955@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Andiry Xu , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, dan.j.williams@intel.com, andy.rudoff@intel.com, coughlan@redhat.com, swanson@cs.ucsd.edu, david@fromorbit.com, jack@suse.com, swhiteho@redhat.com, miklos@szeredi.hu, andiry.xu@gmail.com, Andiry Xu References: <1520705944-6723-1-git-send-email-jix024@eng.ucsd.edu> <1520705944-6723-84-git-send-email-jix024@eng.ucsd.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520705944-6723-84-git-send-email-jix024@eng.ucsd.edu> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 10, 2018 at 10:19:04AM -0800, Andiry Xu wrote: > From: Andiry Xu > > Sysfs support allows user to get/post information of running NOVA instance. > After mount, NOVA creates four entries under proc directory > /proc/fs/nova/pmem#/: > > timing_stats IO_stats allocator gc > > Show NOVA file operation timing statistics: > cat /proc/fs/NOVA/pmem#/timing_stats > > Clear timing statistics: > echo 1 > /proc/fs/NOVA/pmem#/timing_stats > > Show NOVA I/O statistics: > cat /proc/fs/NOVA/pmem#/IO_stats > > Clear I/O statistics: > echo 1 > /proc/fs/NOVA/pmem#/IO_stats > > Show NOVA allocator information: > cat /proc/fs/NOVA/pmem#/allocator > > Manual garbage collection: > echo #inode_number > /proc/fs/NOVA/pmem#/gc IIRC no new entries should be added to /proc, /sys is supposed to be used. I can't find it documented though, so you'd better check with sysfs people.