-
Notifications
You must be signed in to change notification settings - Fork 34
Upload Perfetto traces to manifold on mesh exit #252
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
Open
thomasywang
wants to merge
6
commits into
pytorch-labs:main
Choose a base branch
from
thomasywang:export-D76433475
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+612
−346
Conversation
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
This pull request was exported from Phabricator. Differential Revision: D76433475 |
Summary: The simulator event loop can end up in a state where it loops without ever yielding execution back to the tokio runtime causing other tasks to starve. We will fix this by adding a yield Differential Revision: D76433473
Summary: Instead of wrapping the records in an Option<Arc<Mutex>> to be shared between the SimnetHandle and the Simnet and moved out when requested, we can just have the Simnet fully own the records and return them when the event loop is completed Differential Revision: D76433476
Summary: Previously we relied on matching a hardcoded abstract name for a unix socket to determine if the message was sent by the client. This does not work in non-linux. What we will do instead is determine if a message was sent by the client based on whether or not the src proxy address is different than the local proxy address. To make this work we do need to remove our logic for using an egress sender (which is currently unused) to send a forward message to the other proxy which then forwards it to the actual recipient and will just send directly to the recipient. That is if the controller is sending the client a message instead of going from controller -> client_proxy -> client we will go directly from controller -> client. This is because client doesn't actually run in a separate process anymore and doesn't actually have a separate proxy, and if we were to set this up this would require more work because we would also need some way to configure it such that only one proxy sends events to the event loop whereas all other proxy forwards messages to that proxy. We can file a follow up task if need be but in the meantime this diff solves our problems very simply without creating any new problems Differential Revision: D76526071
Summary: We have been treating the entire message send & recv as a single event but this doesn't really make sense since each of these should have their own duration (sending -> in flight -> receiving), and they happen on different processes (This will matter in the next diff when we render our events onto Perfetto). Differential Revision: D76433477
This pull request was exported from Phabricator. Differential Revision: D76433475 |
thomasywang
pushed a commit
to thomasywang/monarch-1
that referenced
this pull request
Jun 12, 2025
Summary: Pull Request resolved: pytorch-labs#252 We want our Perfetto trace JSON be uploaded to Manifold so that we can view them in the browser Differential Revision: D76433475
0a97b86
to
1975e1f
Compare
Summary: The frontend simulator outputs events as perfetto traces. We will do the same Differential Revision: D76433474
Summary: Pull Request resolved: pytorch-labs#252 We want our Perfetto trace JSON be uploaded to Manifold so that we can view them in the browser Differential Revision: D76433475
This pull request was exported from Phabricator. Differential Revision: D76433475 |
1975e1f
to
2732426
Compare
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: We want our Perfetto trace JSON be uploaded to Manifold so that we can view them in the browser
Differential Revision: D76433475