When tracing I/O to WiredTiger recordsdata, like with strace -y, the filenames don’t give the gathering title:
strace -yy -e hint=pwrite64 -s100 -fqT -p $(pgrep -d, mongod)
[pid 237] pwrite64(15, " 2 6314kK 201300211204300percent202265table:collection-2fb69242-1b95-4a08-9939-23172e5ea178+ 22numRecords 3 "..., 512, 200576) = 512 <0.000179>
[pid 238] pwrite64(69, " 10 ` 2 74 1 20 22521375t1 5201214(350i*%214377377337303300207200247' 2_id 6 test1 2marker 7 Franck "..., 4096, 4096) = 4096 <0.000053>
[pid 238] pwrite64(69, " t @ 2 6 1 20 22B3123261 5 8*350i*%214377377337303300207200207200201344t374361U "..., 4096, 8192) = 4096 <0.000034>
[pid 238] pwrite64(69, " 002 n 1 1 20 V335F251 34236532200317300337300200200 "..., 4096, 12288) = 4096 <0.000028>
[pid 238] pwrite64(69, " 9 21 1 1 20 m/3023061 3423653220034237300317300342/30034237300200201212342o300 304Oencryption=(keyid=,title=),block"..., 4096, 16384) = 4096 <0.000022>
[pid 238] pwrite64(37, " 5 322 4 74 1 20 )1=201 P202FZid Z204<353316272256317E17240nK233X~2336Zuid Z 343260304B2303743424232373364310231o271$'256A344d233223L244225"..., 4096, 20480) = 4096 <0.000069>
[pid 238] pwrite64(37, " 6 E 2 6 1 20 p31422401 5 8*350i*%F377377337302300205345E37737733730020720420134420<340351 "..., 4096, 24576) = 4096 <0.000057>
[pid 238] pwrite64(37, " 003 v 1 1 20 364'AB1 34236532200342/300337300200200 "..., 4096, 28672) = 4096 <0.000083>
[pid 238] pwrite64(37, " 003 v 1 1 20 210201f2311 3423653220031730034237300200201207342o300 304Gencryption=(keyid=,title=),block_metad"..., 4096, 32768) = 4096 <0.000012>
[pid 238] pwrite64(36, " 5 3201 4 74 1 20 3y3413321 5201214(350i*%F377377337302300s200300202302 3_id H 5id 20 4^v252=334206IR272320264246v35327.5uid"..., 4096, 20480) = 4096 <0.000051>
[pid 238] pwrite64(36, " 6 E 2 6 1 20 241yx341 5 8*350i*%F377377337302300205345E377377337300207204201344332341X303 "..., 4096, 24576) = 4096 <0.000085>
[pid 238] pwrite64(36, " 003 v 1 1 20 364'AB1 34236532200342/300337300200200 "..., 4096, 28672) = 4096 <0.000027>
[pid 238] pwrite64(36, " 003 v 1 1 20 d3230Y1 3423653220031730034237300200201207342o300 304Oencryption=(keyid=,title=),block_metad"..., 4096, 32768) = 4096 <0.000041>
[pid 238] pwrite64(5, " 10 '1 6 74 1 20 333122473631 P202FZid Z204<353316272256317E17240nK233X~2336Zuid Z 343260304B2303743424232373364310231o271$'256A344d233223L244225"..., 4096, 4096) = 4096 <0.000026>
[pid 238] pwrite64(5, " t E 2 6 1 20 34321367&1 5 8*350i*$374377377337303300205345217377377337277207200201344363247251333 "..., 4096, 8192) = 4096 <0.000271>
[pid 238] pwrite64(5, " 002 n 1 1 20 V335F251 34236532200317300337300200200 "..., 4096, 12288) = 4096 <0.000055>
[pid 238] pwrite64(5, " 9 21 1 1 20 H224$3051 3423653220034237300317300342/30034237300200201212342o300 304Gencryption=(keyid=,title=),block"..., 4096, 16384) = 4096 <0.000127>
[pid 238] pwrite64(49, " 10 P2 6 74 1 20 2432222643461 5201214(350i*$374377377337303300c200300f246 3_id H 5id 20 4243,2762057376F244205zr343216216f3765uid"..., 4096, 4096) = 4096 <0.000124>
[pid 238] pwrite64(49, " t E 2 6 1 20 254722001 5 8*350i*$374377377337303300207345217377377337300207200201344346264rc "..., 4096, 8192) = 4096 <0.000058>
[pid 238] pwrite64(49, " 002 n 1 1 20 V335F251 34236532200317300337300200200 "..., 4096, 12288) = 4096 <0.000085>
[pid 238] pwrite64(49, " 9 21 1 1 20 305232373241 3423653220034237300317300342/30034237300200201212342o300 304Oencryption=(keyid=,title=),block"..., 4096, 16384) = 4096 <0.000010>
[pid 238] pwrite64(41, " v 34533 H 74 1 317@3352341 %350i*$335377377337301200235] 2op 2 n 2ns 1 3o 35 2msg 17 initiatin"..., 8192, 20480) = 8192 <0.000038>
[pid 238] pwrite64(41, " f 004 2 6 1 20 27722402001 5 8 207204202344234335 217 "..., 4096, 28672) = 4096 <0.000027>
[pid 238] pwrite64(41, " 004 f 1 1 20 ^2453353431 34236532200342/30034217300200200 "..., 4096, 32768) = 4096 <0.000017>
[pid 238] pwrite64(41, " = 25 1 1 20 3722572713741 34236532200342o30031730031730034237300342177300317300200201215342217300 304jencryption=(keyid=,title=),b"..., 4096, 36864) = 4096 <0.000009>
[pid 238] pwrite64(24, " 10 s 2 74 1 20 ?330w81 5201200207G 2_id 30 oplogTruncateAfterPoint 21oplogTruncateAfter"..., 4096, 4096) = 4096 <0.000137>
[pid 238] pwrite64(24, " t 004 2 6 1 20 271p261a1 5 8 2072002013448w267377 "..., 4096, 8192) = 4096 <0.000087>
[pid 238] pwrite64(24, " 002 n 1 1 20 V335F251 34236532200317300337300200200 "..., 4096, 12288) = 4096 <0.000102>
[pid 238] pwrite64(24, " 9 21 1 1 20 20320633-1 3423653220034237300317300342/30034237300200201212342o300 304Mencryption=(keyid=,title=),block"..., 4096, 16384) = 4096 <0.000074>
[pid 238] pwrite64(18, " v a5 34 74 1 20 256dT3701 Itable:_mdb_catalog257+ 22numRecords 22 22dataSize 36334 "..., 4096, 20480) = 4096 <0.000064>
[pid 238] pwrite64(18, " f 004 2 6 1 20 W24310:1 5 8 207204201344370TDn "..., 4096, 24576) = 4096 <0.000014>
[pid 238] pwrite64(18, " 003 v 1 1 20 364'AB1 34236532200342/300337300200200 "..., 4096, 28672) = 4096 <0.000047>
[pid 238] pwrite64(18, " 003 v 1 1 20 34265ch1 3423653220031730034237300200201215342o300 3045encryption=(keyid=,title=),block_metad"..., 4096, 32768) = 4096 <0.000027>
[pid 238] pwrite64(16, " 10 hn 24 74 1 20 :92242301 005203201212350i*$335377377337303200214x350i*$33537737733730330021201207200301=350i*$335377377337304350i*$335377377337303203j1 3md 306"..., 4096, 4096) = 4096 <0.000129>
[pid 238] pwrite64(16, " t M 2 6 1 20 31333Y2211 5 8~350i*$33537737733730330020734525637737733727734525637737733730020020020720020134423022430372 "..., 4096, 8192) = 4096 <0.000046>
[pid 238] pwrite64(16, " 002 n 1 1 20 V335F251 34236532200317300337300200200 "..., 4096, 12288) = 4096 <0.000023>
[pid 238] pwrite64(16, " 9 21 1 1 20 $jAb1 3423653220034237300317300342/30034237300200201212342o300 305230encryption=(keyid=,title=),block"..., 4096, 16384) = 4096 <0.000062>
[pid 238] pwrite64(15, "200 )300374y 204207202 "..., 13568, 201088) = 13568 <0.000091>
[pid 238] pwrite64(13, " 33 24n f 74 1 p Y232Q~1 Ycolgroup:_mdb_catalog 200300^app_metadata=(formatVersion=1),ass"..., 28672, 4096) = 28672 <0.000034>
[pid 238] pwrite64(13, " 34 5m ( 74 1 p 253|333*1 341file:collection-af1de828-88d4-462d-8163-138c3e6a94de.wt 200304213"..., 28672, 102400) = 28672 <0.000184>
[pid 238] pwrite64(13, " 35 *b l 74 1 p 002pLs1 315file:index-679f8d22-1c9e-4852-8909-903c3809d2b4.wt 200304305acces"..., 28672, 131072) = 28672 <0.000018>
[pid 238] pwrite64(13, " 36 o 6 6 1 20 352=F3611 5 8 300212207200207344~Qz31Ifile:collection-af8 300212207230207344*333k5file:index-678"..., 4096, 32768) = 4096 <0.000046>
[pid 238] pwrite64(13, " : 22 1 1 20 22622302301 34236532200317300342_3003431o300342277300200200 "..., 4096, 36864) = 4096 <0.000027>
[pid 238] pwrite64(13, " @ 30 1 1 20 }c245(1 342365322003421773003173003422173003422773003432O3003421773002002012373432357300 305Hencryption=(keyid=,title="..., 4096, 40960) = 4096 <0.000124>
[pid 238] pwrite64(64, "WiredTiger model stringnWiredTiger 12.0.0: (November 15, 2024)nWiredTiger versionnmajor=12,minor=0"..., 1471, 0) = 1471 <0.000048>
[pid 238] pwrite64(15, "200 D37633222 2002013432361@200 "..., 128, 214656) = 128 <0.000029>
Here’s a fast script to run with mongosh that will get the URI for all collections:
