forked from anza-xyz/agave
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add profile option to net scripts (solana-labs#25624)
* add image option to cloud CreateInstaces * add script to install perf * add profile option to gce.sh * add profile option for net.sh start * Revert "add image option to cloud CreateInstaces" This reverts commit fd63991. * remove imageName from gce.sh * fix for gce.sh * add comments on permissions setup * remove profile option for gce.sh * remove short arg
- Loading branch information
1 parent
4031a37
commit cd01c1a
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# perf setup | ||
# | ||
set -ex | ||
|
||
[[ $(uname) = Linux ]] || exit 1 | ||
[[ $USER = root ]] || exit 1 | ||
|
||
# install perf | ||
apt-get --assume-yes install linux-tools-common linux-tools-generic "linux-tools-$(uname -r)" | ||
|
||
# setup permissions | ||
# Impose no scope and access restrictions on using perf_events performance monitoring | ||
echo -1 | tee /proc/sys/kernel/perf_event_paranoid | ||
# Allow recording kernel reference relocation symbol to avoid skewing symbol resolution if relocation was used | ||
echo 0 | tee /proc/sys/kernel/kptr_restrict |