Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
c96fae7a
Commit
c96fae7a
authored
Mar 13, 2014
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timing change to enhance modeled darshan r/w times
parent
40ca3f13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/workload/codes-darshan-io-wrkld.c
src/workload/codes-darshan-io-wrkld.c
+11
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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