Whamcloud - gitweb
LU-879 mds: Add a few rename stats under /proc
authorwangdi <di.wang@whamcloud.com>
Fri, 16 Dec 2011 01:19:31 +0000 (17:19 -0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 29 Mar 2012 18:09:04 +0000 (14:09 -0400)
commitd06acf0e3d1074fd663e16c0e9a58630c4c5d1d9
treea4b989aa5d0f9f86263d51bd4db1e8207bc439ec
parent3cfc250aef8b02b6536233ca009ebabf57b070b3
LU-879 mds: Add a few rename stats under /proc

1. Add samedir_rename in /proc/fs/lustre/mds/lustre-MDT0000/stats
to collect stats of same dir rename.
2. Add crossdir_rename in /proc/fs/lustre/mds/lustre-MDT0000/stats
to collect stats of cross dir rename.
3. Add /proc/fs/lustre/mds/lustre-MDT0000/rename_stats(YAML format)
to collect stats of rename stats happened on different size
directories.
The size of directories under which files are being removed.
With these patches, it will find out how many renames take place
in the same directory compared to how many renames are between
So during DNE implementation, we can know how rename may be
affected by DNE remote directories and large striped directories.

Signed-off-by: Wang Di <di.wang@whamcloud.com>
Change-Id: I4452ce196802c5724607455e0a9b4b372b06f159
Reviewed-on: http://review.whamcloud.com/1878
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lprocfs_status.h
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lproc.c
lustre/mdt/mdt_reint.c