Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maestro-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maestro
maestro-core
Commits
6335b735
Commit
6335b735
authored
2 years ago
by
Ali Mohammed
Browse files
Options
Downloads
Patches
Plain Diff
update numa node of thread teams
parent
debeafb3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
maestro/thread_team.c
+8
-7
8 additions, 7 deletions
maestro/thread_team.c
with
8 additions
and
7 deletions
maestro/thread_team.c
+
8
−
7
View file @
6335b735
...
...
@@ -53,7 +53,7 @@ erl_thread_team_bind_and_update_numa(struct erl_thread_team_ctx *ctx)
#ifdef HAVE_NUMA
/**update numa node*/
int
numa_node
=
numa_node_of_cpu
(
mstro_numa_get_cpu
(
void
));
int
numa_node
=
numa_node_of_cpu
(
mstro_numa_get_cpu
());
ctx
->
numa_node
=
numa_node
;
#endif
...
...
@@ -70,6 +70,13 @@ erl_thread_team_threadfun(void *closure)
char
threadid
[
TID_LEN
];
struct
erl_thread_team_ctx
*
ctx
=
(
struct
erl_thread_team_ctx
*
)
closure
;
/*check thread pinning and update ctx numa*/
mstro_status
status
=
erl_thread_team_bind_and_update_numa
(
ctx
);
if
(
status
!=
MSTRO_OK
)
{
WARN
(
"Failed to pin the thread
\n
"
);
}
int
n
=
snprintf
(
threadid
,
TID_LEN
,
"%s-H-%d-%zu"
,
ctx
->
tidprefix
,
ctx
->
numa_node
,
ctx
->
id
);
if
(
n
>=
TID_LEN
)
{
...
...
@@ -85,12 +92,6 @@ erl_thread_team_threadfun(void *closure)
}
DEBUG
(
"%s handler thread %zu running
\n
"
,
ctx
->
tidprefix
,
ctx
->
id
);
/*check thread pinning*/
s
=
erl_thread_team_bind_and_update_numa
(
ctx
);
if
(
s
!=
MSTRO_OK
)
{
WARN
(
"Failed to pin the thread
\n
"
);
}
INFO
(
"Running on CPU: %d
\n
"
,
mstro_numa_get_cpu
());
do
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment