[LU-17471] Add symlink /proc/fs/lustre/osd-*/*/brw_stats to from /proc/fs/lustre/osd-ldiskfs/*/brw_stats to /sys/kernel/debug/lustre/osd-*/*/brw_stats Created: 26/Jan/24  Updated: 02/Feb/24

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Hongchao Zhang Assignee: Hongchao Zhang
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
is related to LU-11850 Relocating /proc/fs/lustre/ost to /sy... In Progress
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Add symlink at /proc/fs/lustre/osd-//brw_stats to /sys/kernel/debug/lustre/osd-//brw_stats
to the compatible issue of the previous tools that are still using the old proc entry



 Comments   
Comment by Gerrit Updater [ 26/Jan/24 ]

"Hongchao Zhang <hongchao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53829
Subject: LU-17471 osd: add symlink for brw_stats
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 828af49c895de3deea4c7e3f8c6d12ab89eb5a3b

Comment by James A Simmons [ 26/Jan/24 ]

Adding a symlink into proc is a big no no. Lets complete the LU-11850 work instead. Its made good progress the last few days.

Comment by James A Simmons [ 26/Jan/24 ]

Looking at the brw_stats we have:

snapshot_time:            1706282708.388344346 secs.nsecs
start_time:               1706235995.333903347 secs.nsecs
elapsed_time:             46713.054440999 secs.nsecs

                          read      |     write
pages per bulk r/w     rpcs  % cum % |  rpcs        % cum %

                          read      |     write
discontiguous pages    rpcs  % cum % |  rpcs        % cum %

                          read      |     write
discontiguous blocks   rpcs  % cum % |  rpcs        % cum %

                          read      |     write
disk fragmented I/Os   ios   % cum % |  ios         % cum %

                          read      |     write
disk I/Os in flight    ios   % cum % |  ios         % cum %

                          read      |     write
I/O time (1/1000s)     ios   % cum % |  ios         % cum %

                          read      |     write
disk I/O size          ios   % cum % |  ios         % cum %

                          read      |     write
block maps msec        maps  % cum % |  maps        % cum %

How should this look for a proper YAML format?

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