Skip to content
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

feat(hydro_deploy)!: Perf works over SSH #1313

Merged
merged 8 commits into from
Jul 29, 2024

Conversation

davidchuyaya
Copy link
Contributor

@davidchuyaya davidchuyaya commented Jun 19, 2024

See documentation on how to use in Notion.

Fix #1353

BREAKING CHANGE: changes some config arguments

hydroflow_plus_test/examples/perf_compute_pi.rs Outdated Show resolved Hide resolved
hydro_deploy/core/src/ssh.rs Outdated Show resolved Hide resolved
runtime
.block_on(session.disconnect(None, "", None))
.block_on(async move {
self.channel.write_all(&[b'\x03']).await.unwrap();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably move this into the block if we want perf data.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wdym?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only send the Ctrl-C and wait for the program to shutdown if we launched the program with perf; otherwise the default logic of just dropping the connection should be fine.

// Copy local binary to {output_file}.bins/home/{user}/hydro-{unique_name}
let output_file = perf.output_file.to_str().unwrap();
let local_binary = PathBuf::from(format!(
"{output_file}.bins/home/{user}/hydro-{unique_name}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of duplicating the path here can we concatenate binary_path?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, why are we creating local_binary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because the perf.data is linking to a binary it expects at that location (and was there on remote but is not there locally)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, so scripts that process perf data look at that file to find symbols and what not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, so if the file isn't there perf shows a bunch of unlabeled functions

@MingweiSamuel
Copy link
Member

rebased on latest

.gitignore Outdated Show resolved Hide resolved
@MingweiSamuel MingweiSamuel changed the title feat(hydro_deploy): Perf works over SSH feat(hydro_deploy)!: Perf works over SSH Jul 26, 2024
hydro_deploy/core/src/deployment.rs Show resolved Hide resolved
hydro_deploy/core/src/ssh.rs Show resolved Hide resolved
@MingweiSamuel MingweiSamuel merged commit 749a103 into hydro-project:main Jul 29, 2024
13 checks passed
@davidchuyaya davidchuyaya deleted the perf-ssh branch July 31, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hydro_deploy: indicatif crash
3 participants