From 5ed185955985b099b3bd7311b346f5945c0940a4 Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Sat, 18 Dec 2021 16:27:59 -0500 Subject: [PATCH] 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. test-parameters: trivial Signed-off-by: Patrick Farrell Change-Id: I7caddf9dfaf9ba5f2645d045d5a4a50562cc1b54 Reviewed-on: https://review.whamcloud.com/45888 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Sebastien Buisson Reviewed-by: Oleg Drokin --- lustre/llite/rw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/llite/rw.c b/lustre/llite/rw.c index 5bfd5d6..40b5a20 100644 --- a/lustre/llite/rw.c +++ b/lustre/llite/rw.c @@ -1695,9 +1695,11 @@ int ll_io_read_page(const struct lu_env *env, struct cl_io *io, * read pages */ CDEBUG(D_READA | (rc2 ? D_IOTRACE : 0), - DFID " %d pages read ahead at %lu, triggered by user read at %lu\n", + DFID " %d pages read ahead at %lu, triggered by user read at %lu, stride offset %lld, stride length %lld, stride bytes %lld\n", PFID(ll_inode2fid(inode)), rc2, ra_start_index, - vvp_index(vpg)); + vvp_index(vpg), ras->ras_stride_offset, + ras->ras_stride_length, ras->ras_stride_bytes); + } else if (vvp_index(vpg) == io_start_index && io_end_index - io_start_index > 0) { rc2 = ll_readpages(env, io, &queue->c2_qin, io_start_index + 1, -- 1.8.3.1