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
0dcf6a53
Commit
0dcf6a53
authored
Sep 11, 2018
by
Misbah Mubarak
Committed by
Neil McGlohon
Sep 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding debug statements for bw tracking
parent
4e12bff0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
20 deletions
+36
-20
src/network-workloads/model-net-mpi-replay.c
src/network-workloads/model-net-mpi-replay.c
+18
-7
src/networks/model-net/dragonfly-plus.C
src/networks/model-net/dragonfly-plus.C
+18
-13
No files found.
src/network-workloads/model-net-mpi-replay.c
View file @
0dcf6a53
...
...
@@ -56,7 +56,7 @@ static int wrkld_id;
static
int
num_net_traces
=
0
;
static
int
priority_type
=
0
;
static
int
num_dumpi_traces
=
0
;
static
int64_t
EAGER_THRESHOLD
=
8192
;
static
int64_t
EAGER_THRESHOLD
=
INT_MAX
;
static
long
num_ops
=
0
;
static
int
upper_threshold
=
1048576
;
...
...
@@ -1557,7 +1557,7 @@ static void codes_exec_mpi_send(nw_state* s,
bf
->
c3
=
0
;
bf
->
c1
=
0
;
bf
->
c4
=
0
;
char
prio
[
12
];
if
(
priority_type
==
0
)
{
...
...
@@ -1813,10 +1813,22 @@ static void send_ack_back(nw_state* s, tw_bf * bf, nw_message * m, tw_lp * lp, m
remote_m
.
fwd
.
matched_req
=
matched_req
;
char
prio
[
12
];
if
(
s
->
app_id
==
0
)
strcpy
(
prio
,
"high"
);
else
if
(
s
->
app_id
==
1
)
strcpy
(
prio
,
"medium"
);
if
(
priority_type
==
0
)
{
if
(
s
->
app_id
==
0
)
strcpy
(
prio
,
"high"
);
else
if
(
s
->
app_id
==
1
)
strcpy
(
prio
,
"medium"
);
}
else
if
(
priority_type
==
1
)
{
if
(
mpi_op
->
tag
==
COL_TAG
)
{
strcpy
(
prio
,
"high"
);
}
else
strcpy
(
prio
,
"medium"
);
}
else
tw_error
(
TW_LOC
,
"
\n
Invalid app id"
);
...
...
@@ -2058,7 +2070,6 @@ void nw_test_init(nw_state* s, tw_lp* lp)
s
->
app_id
=
lid
.
job
;
s
->
local_rank
=
lid
.
rank
;
double
overhead
;
int
rc
=
configuration_get_value_double
(
&
config
,
"PARAMS"
,
"self_msg_overhead"
,
NULL
,
&
overhead
);
...
...
src/networks/model-net/dragonfly-plus.C
View file @
0dcf6a53
...
...
@@ -31,6 +31,7 @@
#include <cortex/topology.h>
#endif
#define DEBUG_QOS 1
#define DUMP_CONNECTIONS 0
#define PRINT_CONFIG 1
#define T_ID 1
...
...
@@ -1406,18 +1407,17 @@ void router_plus_setup(router_state *r, tw_lp *lp)
assert
(
router_type_map
[
r
->
router_id
]
==
LEAF
);
// printf("%lu: %i is a LEAF\n",lp->gid, r->router_id);
}
if
(
r
->
router_id
==
0
)
{
#if DEBUG_QOS == 1
char
rtr_bw_log
[
128
];
sprintf
(
rtr_bw_log
,
"router-bw-tracker"
);
dragonfly_rtr_bw_log
=
fopen
(
rtr_bw_log
,
"w+"
);
sprintf
(
rtr_bw_log
,
"router-bw-tracker-%d"
,
g_tw_mynode
);
if
(
dragonfly_rtr_bw_log
==
NULL
)
{
dragonfly_rtr_bw_log
=
fopen
(
rtr_bw_log
,
"w+"
);
if
(
dragonfly_rtr_bw_log
!=
NULL
)
fprintf
(
dragonfly_rtr_bw_log
,
"
\n
router-id time-stamp port-id qos-level bw-consumed qos-status qos-data busy-time"
);
}
}
#endif
r
->
connMan
=
&
connManagerList
[
r
->
router_id
];
r
->
gc_usage
=
(
int
*
)
calloc
(
p
->
num_global_connections
,
sizeof
(
int
));
...
...
@@ -1609,12 +1609,17 @@ void issue_rtr_bw_monitor_event(router_state * s, tw_bf * bf, terminal_plus_mess
for
(
int
k
=
0
;
k
<
num_qos_levels
;
k
++
)
{
int
bw_consumed
=
get_rtr_bandwidth_consumption
(
s
,
k
,
j
);
if
(
s
->
router_id
==
0
)
#if DEBUG_QOS == 1
if
(
dragonfly_rtr_bw_log
!=
NULL
)
{
fprintf
(
dragonfly_rtr_bw_log
,
"
\n
%d %f %d %d %d %d %d %f"
,
s
->
router_id
,
tw_now
(
lp
),
j
,
k
,
bw_consumed
,
s
->
qos_status
[
j
][
k
],
s
->
qos_data
[
j
][
k
],
s
->
busy_time_sample
[
j
]);
if
(
s
->
qos_data
[
j
][
k
]
>
0
)
{
fprintf
(
dragonfly_rtr_bw_log
,
"
\n
%d %f %d %d %d %d %d %f"
,
s
->
router_id
,
tw_now
(
lp
),
j
,
k
,
bw_consumed
,
s
->
qos_status
[
j
][
k
],
s
->
qos_data
[
j
][
k
],
s
->
busy_time_sample
[
j
]);
}
}
#endif
}
}
for
(
int
j
=
0
;
j
<
s
->
params
->
radix
;
j
++
)
...
...
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