Whamcloud - gitweb
LU-15317 llite: Add D_IOTRACE
authorPatrick Farrell <pfarrell@whamcloud.com>
Wed, 15 Dec 2021 17:07:59 +0000 (12:07 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 14 Jan 2022 07:07:39 +0000 (07:07 +0000)
commit321429093c8635e22c85e11d20c582cf5170496e
treedf1416ce072eeafdbd5579e0d00f6081f906c3fe
parente82f26f665a9a2d974b9038e5371a0792c0cb07c
LU-15317 llite: Add D_IOTRACE

In looking in to performance problems, it's very important
to be able to trace the I/O patterns from userspace in to
Lustre, and also understand the key basics of how Lustre
handles that I/O (readahead, RPC generation).

This is best done with a dedicated debug flag - No
userspace tool can provide all this information, and
existing debug flags collect a huge number of unrelated
pieces of, well, debug information.

The goal is for customers to be able to quickly gather log
files of a reasonable size which contain the necessary
information and which can easily be interpreted by
engineering.  This is not possible if the information is
spread out across a number of heavyweight debug flags.

This is a first pass at adding the flag and the debug
required to track basic data I/O.  One significant
omission in the first patch is RPC generation - I have not
decided how best to do that yet.  That will be added in a
future patch.

lustre-change: https://review.whamcloud.com/#/c/45752/
lustre-commit: e77ef62eb25195ddc4ef63c75dbe7342ddb2b3f5 (tbd)

test-parameters: trivial

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I0ed003ec1488e1c267b194c871f64b34f6dc6025
Reviewed-on: https://review.whamcloud.com/45864
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/include/uapi/linux/lnet/libcfs_debug.h
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_mmap.c
lustre/llite/rw.c