Skip to content

Commit b7e4e89

Browse files
authored
Merge pull request #1065 from darshan-hpc/yildiz/cli-stats-daos
ENH: add DAOS and DFS modules to job_stats and file_stats cli tools
2 parents 2f7099a + 62e1e08 commit b7e4e89

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

darshan-util/pydarshan/darshan/cli/file_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def setup_parser(parser: argparse.ArgumentParser):
295295
"-m",
296296
nargs="?",
297297
default="POSIX",
298-
choices=["POSIX", "MPI-IO", "STDIO"],
298+
choices=["POSIX", "MPI-IO", "STDIO", "DFS"],
299299
help="specify the Darshan module to generate file stats for (default: %(default)s)",
300300
)
301301
parser.add_argument(

darshan-util/pydarshan/darshan/cli/job_stats.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ def rich_print(df, mod, order_by):
143143
table.add_column("perf_by_slowest", f"[u i]{naturalsize(all_perf_by_slowest, binary=True, format='%.2f')}/s", **default_kwargs)
144144
table.add_column("time_by_slowest", f"[u i]{all_time_by_slowest:.2f} s", **default_kwargs)
145145
table.add_column("total_bytes", f"[u i]{naturalsize(all_total_bytes, binary=True, format='%.2f')}", **default_kwargs)
146-
table.add_column("total_files", f"[u i]{all_total_files}", **default_kwargs)
146+
if mod != "DAOS":
147+
table.add_column("total_files", f"[u i]{all_total_files}", **default_kwargs)
148+
else:
149+
table.add_column("total_objects", f"[u i]{all_total_files}", **default_kwargs)
147150
for column in table.columns:
148151
if column.header == order_by:
149152
column.style = column.header_style = column.footer_style = "bold cyan"
@@ -187,7 +190,7 @@ def setup_parser(parser: argparse.ArgumentParser):
187190
parser.add_argument(
188191
"--module", "-m",
189192
nargs='?', default='POSIX',
190-
choices=['POSIX', 'MPI-IO', 'STDIO'],
193+
choices=['POSIX', 'MPI-IO', 'STDIO', 'DFS', 'DAOS'],
191194
help="specify the Darshan module to generate job stats for (default: %(default)s)"
192195
)
193196
parser.add_argument(

darshan-util/pydarshan/docs/usage.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ordered according to some I/O metric.
5555

5656
Usage of the ``job_stats`` tool is described below. ::
5757

58-
usage: darshan job_stats [-h] [--log_paths_file LOG_PATHS_FILE] [--module [{POSIX,MPI-IO,STDIO}]]
58+
usage: darshan job_stats [-h] [--log_paths_file LOG_PATHS_FILE] [--module [{POSIX,MPI-IO,STDIO,DFS,DAOS}]]
5959
[--order_by [{perf_by_slowest,time_by_slowest,total_bytes,total_files}]] [--limit [LIMIT]]
6060
[--csv] [--exclude_names EXCLUDE_NAMES] [--include_names INCLUDE_NAMES]
6161
[log_paths [log_paths ...]]
@@ -69,7 +69,7 @@ Usage of the ``job_stats`` tool is described below. ::
6969
-h, --help show this help message and exit
7070
--log_paths_file LOG_PATHS_FILE
7171
specify the path to a manifest file listing Darshan log files
72-
--module [{POSIX,MPI-IO,STDIO}], -m [{POSIX,MPI-IO,STDIO}]
72+
--module [{POSIX,MPI-IO,STDIO,DFS,DAOS}], -m [{POSIX,MPI-IO,STDIO,DFS,DAOS}]
7373
specify the Darshan module to generate job stats for (default: POSIX)
7474
--order_by [{perf_by_slowest,time_by_slowest,total_bytes,total_files}], -o [{perf_by_slowest,time_by_slowest,total_bytes,total_files}]
7575
specify the I/O metric to order jobs by (default: total_bytes)
@@ -89,7 +89,7 @@ or use a manifest file in cases where many logs are to be analyzed at once.
8989

9090
Usage of the ``file_stats`` tool is described below. ::
9191

92-
usage: darshan file_stats [-h] [--log_paths_file LOG_PATHS_FILE] [--module [{POSIX,MPI-IO,STDIO}]]
92+
usage: darshan file_stats [-h] [--log_paths_file LOG_PATHS_FILE] [--module [{POSIX,MPI-IO,STDIO,DFS}]]
9393
[--order_by [{bytes_read,bytes_written,reads,writes,total_jobs}]] [--limit [LIMIT]] [--csv]
9494
[--exclude_names EXCLUDE_NAMES] [--include_names INCLUDE_NAMES]
9595
[log_paths [log_paths ...]]
@@ -103,7 +103,7 @@ Usage of the ``file_stats`` tool is described below. ::
103103
-h, --help show this help message and exit
104104
--log_paths_file LOG_PATHS_FILE
105105
specify the path to a manifest file listing Darshan log files
106-
--module [{POSIX,MPI-IO,STDIO}], -m [{POSIX,MPI-IO,STDIO}]
106+
--module [{POSIX,MPI-IO,STDIO,DFS}], -m [{POSIX,MPI-IO,STDIO,DFS}]
107107
specify the Darshan module to generate file stats for (default: POSIX)
108108
--order_by [{bytes_read,bytes_written,reads,writes,total_jobs}], -o [{bytes_read,bytes_written,reads,writes,total_jobs}]
109109
specify the I/O metric to order files by (default: bytes_read)

0 commit comments

Comments
 (0)