From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 003D6225E4006 for ; Thu, 22 Mar 2018 17:24:42 -0700 (PDT) Received: by mail-io0-x22b.google.com with SMTP id d5so13151420iob.9 for ; Thu, 22 Mar 2018 17:31:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180322150037.GD6955@twin.jikos.cz> References: <1520705944-6723-1-git-send-email-jix024@eng.ucsd.edu> <1520705944-6723-84-git-send-email-jix024@eng.ucsd.edu> <20180322150037.GD6955@twin.jikos.cz> From: Andiry Xu Date: Thu, 22 Mar 2018 17:31:13 -0700 Message-ID: Subject: Re: [RFC v2 83/83] Sysfs support. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: dsterba@suse.cz, Andiry Xu , Linux FS Devel , Linux Kernel Mailing List , "linux-nvdimm@lists.01.org" , Dan Williams , "Rudoff, Andy" , coughlan@redhat.com, Steven Swanson , Dave Chinner , Jan Kara , swhiteho@redhat.com, miklos@szeredi.hu, Jian Xu , Andiry Xu List-ID: On Thu, Mar 22, 2018 at 8:00 AM, David Sterba wrote: > 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. Thanks. I will try to switch to sysfs. Thanks, Andiry _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm