-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools: add numasched: trace task switch between NUMA #4396
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rtoax
requested review from
brendangregg,
goldshtn and
davemarchevsky
as code owners
December 15, 2022 04:35
Rtoax
force-pushed
the
patch-38-tools-numasched
branch
from
December 19, 2022 07:41
15a7bc3
to
6a9ee98
Compare
Rtoax
force-pushed
the
patch-38-tools-numasched
branch
2 times, most recently
from
January 1, 2023 08:21
b0846eb
to
8adbbff
Compare
Rtoax
requested review from
yonghong-song
and removed request for
brendangregg,
davemarchevsky and
goldshtn
January 17, 2023 07:50
Rtoax
force-pushed
the
patch-38-tools-numasched
branch
from
February 10, 2023 14:29
8adbbff
to
35843f5
Compare
Rebase to master! |
Rtoax
force-pushed
the
patch-38-tools-numasched
branch
from
August 22, 2023 00:48
35843f5
to
c564ca7
Compare
Rebase to master. |
Rtoax
force-pushed
the
patch-38-tools-numasched
branch
from
October 3, 2023 08:04
c564ca7
to
d2ce0c8
Compare
Rtoax
force-pushed
the
patch-38-tools-numasched
branch
3 times, most recently
from
November 6, 2023 00:56
fd8a130
to
1976374
Compare
Tasks frequently switch between NUMA, often resulting in poor performance. programs running on the same NUMA will have better performance (usually at the memory level). If processes are migrating between different CPUs and these CPUs belong to different NUMAs, this tool provides an effective means of tracing to optimize the program or configuration. For example: Terminal 1: $ numactl --hardware available: 4 nodes (0-3) node 0 cpus: 0 - 23 node 1 cpus: 24 - 47 node 2 cpus: 48 - 71 node 3 cpus: 72 - 95 Terminal 2: $ sudo ./numasched.py Tracing task NUMA switch... TIME PID SRC_NID DST_NID COMM Terminal 3: $ taskset -c 1 yes >/dev/null & $ taskset -p 0x1000000 $(pidof yes) $ taskset -p 0x1000000000000 $(pidof yes) Then, Terminal 2: $ sudo ./numasched.py Tracing task NUMA switch... TIME PID TID SRC_NID DST_NID COMM 20:55:35 355842 355842 0 -> 1 b'yes' 20:55:50 355842 355842 1 -> 2 b'yes' Signed-off-by: Rong Tao <[email protected]>
Rtoax
force-pushed
the
patch-38-tools-numasched
branch
from
January 8, 2025 06:05
1976374
to
ebc6e01
Compare
Rebase to master. |
LGTM. As a followup, could you add a link for the new tool to the README.md? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tasks frequently switch between NUMA, often resulting in poor performance.
programs running on the same NUMA will have better performance (usually at the memory level). If processes are migrating between different CPUs and these CPUs belong to different NUMAs, this tool provides an effective means of tracing to optimize the program or configuration.
For example:
Terminal 1:
Terminal 2:
Terminal 3:
Then, Terminal 2: