Whamcloud - gitweb
LU-15317 osc: Add RPC to iotrace 75/59075/2
authorPatrick Farrell <pfarrell@whamcloud.com>
Sat, 3 May 2025 01:38:53 +0000 (18:38 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 May 2025 07:30:36 +0000 (07:30 +0000)
commit45b717e92e7b81e594ab6365c4da95034a6f6511
tree62601b74583e014f1dfaeab13940955c6ba89c74
parent8a8c9818ca3eedbb2be22b0e4c0def9408f8f95d
LU-15317 osc: Add RPC to iotrace

Add RPCs to iotrace debugging.

To avoid creating too much debug output, this debug
ignores the possiblity that an RPC contains non-contiguous
extents.  Thus the eventual visualization will act as
though the RPC is a continuous whole.  I judge this to be
superior to the amount of log data and complexity of
capturing each extent separately.  If that level of detail
is needed, a higher debug level can be used.

Lustre-change: https://review.whamcloud.com/45894
Lustre-commit: 5cb722c384077dd2469763a4f70a72bed555c8db

Was-Change-Id: I6fe416ba44be5572f130704ba9d3e9b85d09c656

LU-15317 llite: Add COMPLETED iotrace messages

It's very useful to see how long an I/O call took.  There
are other ways to do this, but the goal is for iotrace to
provide all necessary information for basic I/O performance
analysis, so we add COMPLETED messages to iotrace.

Lustre-change: https://review.whamcloud.com/46484
Lustre-commit: d48b10cef36d74cc63cf6e9340f43a5cebd985de

Was-Change-Id: I17f52ebc87a31d5ba34f63dc8b6a279e83cd10ef

LU-15317 llite: Add FID to async ra iotrace

IOtrace log entries need to include the FID of the file
concerned.  Add this to async readahead.

Lustre-change: https://review.whamcloud.com/45912
Lustre-commit: 1f3ecfdbb4c765808a1d30677e0f67421fab6e0c

Was-Change-Id: I8d788969f29412ce88f1cafa229977f6efa20962

LU-15317 llite: Add strided readahead to iotrace

We need to capture some additional parameters to correctly
understand the behavior of strided readahead.  Add these
parameters to the existing iotrace message.

Lustre-change: https://review.whamcloud.com/45888
Lustre-commit: 5ed185955985b099b3bd7311b346f5945c0940a4

Was-Change-Id: I7caddf9dfaf9ba5f2645d045d5a4a50562cc1b54

LU-15317 llite: Make iotrace logging quieter

Most of the time, we don't read any pages with readahead,
since we're moving through the window and aren't ready to
read more yet.  That's important for readahead debug, but
there's no need to log it for iotrace.  (This matters
because without this change, this messsage is the large
majority of iotrace messages.)

Lustre-change: https://review.whamcloud.com/45887
Lustre-commit: a91b5d4a990c6a870774e1e856cc41f665a88854

Was-Change-Id: I58197acd1ef97c903320a2433ec1d5dcb0e46bd0

Test-parameters: trivial

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I6fe416ba44be5572f130704ba9d3e9b85d09c656
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59075
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c
lustre/llite/llite_mmap.c
lustre/llite/rw.c
lustre/osc/osc_request.c