Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
c96fae7a
Commit
c96fae7a
authored
Mar 13, 2014
by
Shane Snyder
Browse files
Timing change to enhance modeled darshan r/w times
parent
40ca3f13
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/workload/codes-darshan-io-wrkld.c
View file @
c96fae7a
...
...
@@ -1544,6 +1544,9 @@ static void calc_io_delays(
static
void
file_sanity_check
(
struct
darshan_file
*
file
,
struct
darshan_job
*
job
)
{
int64_t
ops_not_implemented
;
int64_t
ops_total
;
/* make sure we have log version 2.03 or greater */
if
(
strcmp
(
job
->
version_string
,
"2.03"
)
<
0
)
{
...
...
@@ -1577,6 +1580,14 @@ static void file_sanity_check(
file
->
counters
[
CP_POSIX_OPENS
]
+=
file
->
counters
[
CP_POSIX_FOPENS
];
file
->
counters
[
CP_POSIX_READS
]
+=
file
->
counters
[
CP_POSIX_FREADS
];
file
->
counters
[
CP_POSIX_WRITES
]
+=
file
->
counters
[
CP_POSIX_FWRITES
];
file
->
counters
[
CP_POSIX_SEEKS
]
+=
file
->
counters
[
CP_POSIX_FSEEKS
];
/* reduce total meta time by percentage of ops not currently implemented */
ops_not_implemented
=
file
->
counters
[
CP_POSIX_SEEKS
]
+
file
->
counters
[
CP_POSIX_STATS
]
+
file
->
counters
[
CP_POSIX_FSYNCS
];
ops_total
=
ops_not_implemented
+
(
2
*
file
->
counters
[
CP_POSIX_OPENS
])
+
file
->
counters
[
CP_POSIX_READS
]
+
file
->
counters
[
CP_POSIX_WRITES
];
file
->
fcounters
[
CP_F_POSIX_META_TIME
]
*=
(
1
-
((
double
)
ops_not_implemented
/
ops_total
));
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment