Skip to content

Commit 47a1a97

Browse files
author
Shane Snyder
committed
updated pydarshan to support DFS/DAOS heatmaps
1 parent b14c589 commit 47a1a97

File tree

7 files changed

+22
-20
lines changed

7 files changed

+22
-20
lines changed

darshan-util/pydarshan/darshan/report.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,9 @@ def read_all_heatmap_records(self):
608608
_nrecs_heatmap = {
609609
16592106915301738621: "heatmap:POSIX",
610610
3989511027826779520: "heatmap:STDIO",
611-
3668870418325792824: "heatmap:MPIIO"
611+
3668870418325792824: "heatmap:MPIIO",
612+
1597927878319380788: "heatmap:DFS",
613+
4131494093108637317: "heatmap:DAOS"
612614
}
613615

614616
def heatmap_rec_to_module_name(rec, nrecs=None):

darshan-util/pydarshan/darshan/tests/test_plot_exp_common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"log_path, mod, func, expected_xticklabels",
1515
[
1616
(
17-
"snyder_ior-DFS_id1057716-201712_11-8-64400-1922568413188514066_1.darshan",
17+
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
1818
"DFS",
1919
plot_access_histogram,
2020
["0-100", "101-1K", "1K-10K", "10K-100K", "100K-1M",
2121
"1M-4M", "4M-10M", "10M-100M", "100M-1G", "1G+"]
2222
),
2323
(
24-
"snyder_ior-DFS_id1057716-201712_11-8-64400-1922568413188514066_1.darshan",
24+
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
2525
"DAOS",
2626
plot_access_histogram,
2727
["0-100", "101-1K", "1K-10K", "10K-100K", "100K-1M",
@@ -79,13 +79,13 @@
7979
"1M-4M", "4M-10M", "10M-100M", "100M-1G", "1G+"],
8080
),
8181
(
82-
"snyder_ior-DFS_id1057716-201712_11-8-64400-1922568413188514066_1.darshan",
82+
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
8383
"DFS",
8484
plot_opcounts,
8585
['Read', 'Readx', 'Write', 'Writex', 'Open', 'GlobalOpen', 'Lookup', 'Get Size', 'Punch', 'Remove', 'Stat'],
8686
),
8787
(
88-
"snyder_ior-DFS_id1057716-201712_11-8-64400-1922568413188514066_1.darshan",
88+
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
8989
"DAOS",
9090
plot_opcounts,
9191
['ObjFetch', 'ObjUpdate', 'ObjOpen', 'ArrRead', 'ArrWrite', 'ArrOpen', 'KVGet', 'KVPut', 'KVOpen'],

darshan-util/pydarshan/darshan/tests/test_plot_io_cost.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@
5757
),
5858
),
5959
(
60-
"snyder_ior-DFS_id1057716-201712_11-8-64400-1922568413188514066_1.darshan",
60+
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
6161
pd.DataFrame(
6262
np.array([
63-
[0.0, 0.0, 0.0, 0.0],
64-
[0.0, 4.515051841e-06, 0.0, 0.0],
65-
[0.001456562, 0.002266062, 0.007923812, 0.0],
66-
[0.001492562, 0.002273217, 0.007910812, 0.0],
63+
[0.0, 0.0, 1.490116119e-08, 0.0],
64+
[0.0, 4.872679710e-06, 0.0, 0.0],
65+
[0.001452714, 0.001865715, 0.007635623, 0.0],
66+
[0.001490027, 0.001865178, 0.007622942, 0.0],
6767
]),
6868
["POSIX", "STDIO", "DFS", "DAOS"],
6969
["Read", "Write", "Meta", "Wait"],
@@ -101,8 +101,8 @@ def test_get_io_cost_df(logname, expected_df):
101101
[0.0, 1111.0],
102102
),
103103
(
104-
"snyder_ior-DFS_id1057716-201712_11-8-64400-1922568413188514066_1.darshan",
105-
[0.0, 0.80276728],
104+
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
105+
[0.0, 0.75089884],
106106
),
107107
],
108108
)
@@ -134,9 +134,9 @@ def test_plot_io_cost_ylims(logname, expected_ylims):
134134
['0', '156', '312', '468', '624', '780'],
135135
),
136136
(
137-
"snyder_ior-DFS_id1057716-201712_11-8-64400-1922568413188514066_1.darshan",
138-
[0.0 , 0.16055346, 0.32110691, 0.48166037, 0.64221382, 0.80276728],
139-
['0.0000' , '0.1606', '0.3211', '0.4817', '0.6422', '0.8028'],
137+
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
138+
[0.0 , 0.15017977, 0.30035954, 0.4505393 , 0.60071907, 0.75089884],
139+
['0.0000', '0.1502', '0.3004', '0.4505', '0.6007', '0.7509'],
140140
),
141141
],
142142
)

darshan-util/pydarshan/darshan/tests/test_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_dfs_daos_posix_match():
8181
# backend should produce matching counters where
8282
# comparable data fields exist
8383
posix_ior_report = darshan.DarshanReport(get_log_path("snyder_ior-POSIX_id1057716-202103_11-8-64415-6936117869459351096_1.darshan"))
84-
dfs_ior_report = darshan.DarshanReport(get_log_path("snyder_ior-DFS_id1057716-201712_11-8-64400-1922568413188514066_1.darshan"))
84+
dfs_ior_report = darshan.DarshanReport(get_log_path("snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan"))
8585
posix_ior_report.mod_read_all_records("POSIX")
8686
dfs_ior_report.mod_read_all_records("DFS")
8787
dfs_ior_report.mod_read_all_records("DAOS")

darshan-util/pydarshan/darshan/tests/test_summary.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def test_metadata_table(self, log_path, expected_df):
494494
2,
495495
),
496496
(
497-
"snyder_ior-DFS_id1057716-201712_11-8-64400-1922568413188514066_1.darshan",
497+
"snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan",
498498
pd.DataFrame(
499499
index=[
500500
"Log Filename", "Runtime Library Version", "Log Format Version",
@@ -503,9 +503,9 @@ def test_metadata_table(self, log_path, expected_df):
503503
"DFS (ver=1)", "DAOS (ver=1)"
504504
],
505505
data=[
506-
["snyder_ior-DFS_id1057716-201712_11-8-64400-1922568413188514066_1.darshan"], ["3.4.7"], ["3.41"],
507-
["0.07 KiB"], ["0.07 KiB"], ["0.05 KiB"],
508-
["0.17 KiB"], ["0.39 KiB"],
506+
["snyder_ior-DFS_id1069383-23981_11-11-71996-14940917661149127511_1.darshan"], ["3.4.7"], ["3.41"],
507+
["0.08 KiB"], ["0.07 KiB"], ["1.09 KiB"],
508+
["0.17 KiB"], ["0.40 KiB"],
509509
],
510510
),
511511
0,

0 commit comments

Comments
 (0)