Whamcloud - gitweb
LU-15317 llite: Add strided readahead to iotrace
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 4 Mar 2022 15:32:35 +0000 (10:32 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Mar 2022 17:18:04 +0000 (17:18 +0000)
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

Lustre-change: https://review.whamcloud.com/45888/
Lustre-commit: d09c4ccd93175470088835a414a7be19638b1e4c (tbd)

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I7caddf9dfaf9ba5f2645d045d5a4a50562cc1b54
Reviewed-on: https://review.whamcloud.com/46701
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/rw.c

index a362b17..dc9976d 100644 (file)
@@ -1683,9 +1683,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,