[LU-15317] add iotrace debug Created: 06/Dec/21  Updated: 27/Jun/22  Resolved: 11/Jun/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Improvement Priority: Minor
Reporter: Patrick Farrell Assignee: Patrick Farrell
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-15571 iotrace debug mask causing interop te... Resolved
is related to LU-15367 Add ability for multiop to take input... Open
Rank (Obsolete): 9223372036854775807

 Description   

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).

Tracing is extremely difficult to do with any particular userspace tool - strace misses page faults entirely, and the perf tracing options vary from kernel to kernel.  And of course userspace tools are entirely incapable of telling you what Lustre did internally.

The right place for this information is the Lustre debug logs.  Unfortunately, the needed information is spread across a variety of debug flags, and is sometimes not logged at all.  The result is the only way to get this information is a very heavyweight mask of debug flags, and some things must be inferred from other messages or lack of messages.

Ideally, we would have a debug flag which hit a small set of messages which gave basic I/O tracing information, which can be used to understand the I/O pattern from userspace and show the basics of how Lustre handles it.  This needs to be a dedicated flag both for simplicity and to keep log lengths manageable.  Tracing I/O should not require wading through a huge mass of unrelated messages, and should not require huge log files.  A dedicated debug flag will accomplish this.



 Comments   
Comment by Gerrit Updater [ 06/Dec/21 ]

"Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45751
Subject: LU-15317 libcfs: Remove D_TTY
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8317690ae36918109594208811c3c6358fe46e18

Comment by Gerrit Updater [ 06/Dec/21 ]

"Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45752
Subject: LU-15317 llite: Add D_IOTRACE
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 7e8a54a0aacc1dd2c367e2e79447b5946c80cf7b

Comment by Gerrit Updater [ 18/Dec/21 ]

"Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45887
Subject: LU-15317 llite: Make iotrace logging quieter
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: f3fee0b3c7ac311a7efeb0ea86f2cd3bf4ea4464

Comment by Gerrit Updater [ 18/Dec/21 ]

"Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45888
Subject: LU-15317 llite: Add strided readahead to iotrace
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b3011d4315f77cbf2ff1381aea23396fc9f29470

Comment by Gerrit Updater [ 20/Dec/21 ]

"Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45894
Subject: LU-15317 osc: Add RPC to iotrace
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 11c2cc571ccad2187338433f6f83465196dfaa8a

Comment by Gerrit Updater [ 21/Dec/21 ]

"Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45912
Subject: LU-15317 llite: Add FID to async ra iotrace
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1c0f6d9fe3141efa5ea23a32d056411b74588ec2

Comment by Gerrit Updater [ 06/Jan/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45751/
Subject: LU-15317 libcfs: Remove D_TTY
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f9fe2977d184fbc8e345c4a77f4596d059b7d118

Comment by Gerrit Updater [ 06/Jan/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45752/
Subject: LU-15317 llite: Add D_IOTRACE
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 40d286e11138fc67f5e5d428072d1a1944686b27

Comment by Gerrit Updater [ 09/Feb/22 ]

"Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/46484
Subject: LU-15317 llite: Add COMPLETED iotrace messages
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1c90d638a8d7993f5cbd70680d33052e888da6c3

Comment by Gerrit Updater [ 11/Jun/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45887/
Subject: LU-15317 llite: Make iotrace logging quieter
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a91b5d4a990c6a870774e1e856cc41f665a88854

Comment by Gerrit Updater [ 11/Jun/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45888/
Subject: LU-15317 llite: Add strided readahead to iotrace
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 5ed185955985b099b3bd7311b346f5945c0940a4

Comment by Gerrit Updater [ 11/Jun/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45912/
Subject: LU-15317 llite: Add FID to async ra iotrace
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 1f3ecfdbb4c765808a1d30677e0f67421fab6e0c

Comment by Gerrit Updater [ 11/Jun/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46484/
Subject: LU-15317 llite: Add COMPLETED iotrace messages
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: d48b10cef36d74cc63cf6e9340f43a5cebd985de

Comment by Gerrit Updater [ 11/Jun/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45894/
Subject: LU-15317 osc: Add RPC to iotrace
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 5cb722c384077dd2469763a4f70a72bed555c8db

Comment by Peter Jones [ 11/Jun/22 ]

Landed for 2.16

Generated at Sat Feb 10 03:17:17 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.