perf(nsys): reduce CPU-side overhead in profiling defaults#3311
Draft
dingqingy-nv wants to merge 3 commits intoNVIDIA-NeMo:mainfrom
Draft
perf(nsys): reduce CPU-side overhead in profiling defaults#3311dingqingy-nv wants to merge 3 commits intoNVIDIA-NeMo:mainfrom
dingqingy-nv wants to merge 3 commits intoNVIDIA-NeMo:mainfrom
Conversation
Override nemo_run's default nsys_extra_args to disable CPU context-switch tracing (--cpuctxsw=none), backtrace collection (--backtrace=none), and CUDA graph node tracing (remove --cuda-graph-trace=node). These flags eliminate unnecessary CPU-side activity during GPU profiling. Signed-off-by: Dingqing Yang <dingqingy@nvidia.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Dingqing Yang <dingqingy@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Signed-off-by: Dingqing Yang <dingqingy@nvidia.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Dingqing Yang <dingqingy@nvidia.com>
Contributor
Author
|
Let's treat this as an test PR. If getting less profiling overhead, we can raise a PR directly to nemo run and close this |
Instead of hardcoding the full nsys_extra_args list, filter out --cuda-graph-trace and append --cpuctxsw=none and --backtrace=none to the existing nemo_run defaults. This preserves forward compatibility with future nemo_run default changes. Signed-off-by: Dingqing Yang <dingqingy@nvidia.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Dingqing Yang <dingqingy@nvidia.com>
This file contains hidden or 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
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.
Summary
nsys_extra_argsto disable CPU context-switch tracing (--cpuctxsw=none), backtrace collection (--backtrace=none), and remove CUDA graph node tracing (--cuda-graph-trace=node)NsysPluginimplementations (recipes + perf scripts) and the interactive launch scriptChanges vs nemo_run defaults
--cpuctxswprocess-tree(nsys default)none--backtraceauto(nsys default)none--cuda-graph-tracenodeSince
-s none(disable CPU sampling) is already set by nemo_run,--backtrace=noneis defensive — there are no CPU samples to attach backtraces to.--cpuctxsw=noneis the main win, stopping OS thread scheduling trace collection that was active by default.Test plan
.nsys-repfilesnsys_extra_argsuser override still works (user args take precedence)🤖 Generated with Claude Code