Hi all, This patchset builds off of Kent Overstreet's timestats code to capture information about the amount of time we spend waiting for buffer, quota, and inode locks; as well as time spent in the scrub code. If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below. This has been running on the djcloud for months with no problems. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=contention-timestats --- Commits in this patchset: * xfs: present wait time statistics * xfs: present time stats for scrubbers * xfs: present timestats in json format * xfs: create debugfs uuid aliases --- fs/xfs/Kconfig | 8 ++ fs/xfs/Makefile | 1 fs/xfs/scrub/repair.c | 6 +- fs/xfs/scrub/scrub.c | 6 +- fs/xfs/scrub/stats.c | 136 +++++++++++++++++++++++++++++++++++++++++- fs/xfs/scrub/stats.h | 21 +----- fs/xfs/xfs_buf.c | 4 + fs/xfs/xfs_dquot.c | 11 +++ fs/xfs/xfs_dquot.h | 4 + fs/xfs/xfs_inode.c | 12 +++- fs/xfs/xfs_linux.h | 5 ++ fs/xfs/xfs_log.c | 9 +++ fs/xfs/xfs_mount.h | 14 ++++ fs/xfs/xfs_super.c | 17 +++++ fs/xfs/xfs_timestats.c | 156 ++++++++++++++++++++++++++++++++++++++++++++++++ fs/xfs/xfs_timestats.h | 37 +++++++++++ 16 files changed, 418 insertions(+), 29 deletions(-) create mode 100644 fs/xfs/xfs_timestats.c create mode 100644 fs/xfs/xfs_timestats.h