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

hydo_deploy: general access to GCP perf-image VM image #1354

Closed
MingweiSamuel opened this issue Jul 17, 2024 · 3 comments
Closed

hydo_deploy: general access to GCP perf-image VM image #1354

MingweiSamuel opened this issue Jul 17, 2024 · 3 comments

Comments

@MingweiSamuel
Copy link
Member

MingweiSamuel commented Jul 17, 2024

Should require minimal user setup

https://www.notion.so/hydro-project/perf-Measuring-CPU-usage-6135b6ce56a94af38eeeba0a55deef9c

Should be able to just run the commands instead of needing to maintain a whole separate image? (Does this need a reboot? - will test)

sudo apt install -y linux-perf
echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
echo 0 | sudo tee /proc/sys/kernel/kptr_restrict

and/or (needs reboot?)

sudo sh -c 'echo kernel.perf_event_paranoid=-1 > /etc/sysctl.d/local.conf'
sudo sh -c 'echo kernel.kptr_restrict=0 >> /etc/sysctl.d/local.conf'
@MingweiSamuel
Copy link
Member Author

Former doens't seem to need reboot

@MingweiSamuel MingweiSamuel changed the title Hydro deploy general access to GCP perf-image VM image hydo_deploy: general access to GCP perf-image VM image Jul 17, 2024
@davidchuyaya
Copy link
Contributor

I believe the 1st command sets the flags and the 2nd command tells the system to set the flags on a restart (reboot required), so you should run the 1st if you're starting a VM to run perf, and run the 2nd if you're creating a VM image that you'll later boot up to run perf

@MingweiSamuel
Copy link
Member Author

Sorta fixed in #1313, startup script runs the 1st command to avoid needing David's specific image. Custom images will need the second command

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

No branches or pull requests

2 participants