xfs
[Top] [All Lists]

TAKE - sysctl for zeroing stats

Subject: TAKE - sysctl for zeroing stats
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Wed, 22 May 2002 14:31:31 -0500
Sender: owner-linux-xfs@xxxxxxxxxxx
Careful what you ask for[1]... jaytee casually asked if there was
a way to zero the XFS statistics.  There wasn't, but now there is:

echo 1 > /proc/sys/vm/pagebuf/stats_clear
echo 1 > /proc/sys/fs/xfs/stats_clear 

will do the trick if you have procfs enabled.  Probably only useful
for people doing profiling.

[1] Unfortunately, this "ask and ye shall receive" method does not work
    for the Red Hat 7.3 installer, sorry!


Date:  Wed May 22 12:16:43 PDT 2002
Workarea:  
stout.americas.sgi.com:/localhome/src/sandeen/2.4.x-xfs/workarea-testing

The following file(s) were checked into:
  bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs


Modid:  2.4.x-xfs:slinx:119918a
linux/fs/xfs/linux/xfs_sysctl.h - 1.2
        - Add proc entry for clearing xfs stats
          Remove xfs_refcache_resize_proc_handler prototype, not needed

linux/fs/xfs/linux/xfs_sysctl.c - 1.2
        - Add proc entry & handler for clearing xfs stats
          Make xfs_refcache_resize_proc_handler static
          Check return value of proc_doulongvec_minmax before
          proceeding in xfs_refcache_resize_proc_handler

linux/fs/xfs/pagebuf/page_buf.c - 1.24
        - Add proc entry & handler for clearing pagebuf stats
          Minor reformatting

linux/fs/xfs/pagebuf/page_buf_internal.h - 1.5
        - Add proc entry for clearing pagebuf stats



<Prev in Thread] Current Thread [Next in Thread>
  • TAKE - sysctl for zeroing stats, Eric Sandeen <=