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

Have pyperformance run run pyperf system tune #229

Open
kmod opened this issue Aug 16, 2022 · 5 comments
Open

Have pyperformance run run pyperf system tune #229

kmod opened this issue Aug 16, 2022 · 5 comments

Comments

@kmod
Copy link
Contributor

kmod commented Aug 16, 2022

I was surprised to learn today that pyperformance run does not call pyperf system tune -- I guess I had assumed that this was included in pyperformance's responsibilities. It looks like support was added to run it for pyperformance compile but not for pyperformance run so I'm not sure what is intended.

I'd like to propose that pyperformance run and pyperformance compile have the same behavior with respect to tuning the system, with my personal preference being that they should both tune the system. What do you all think?

@mdboom
Copy link
Contributor

mdboom commented Aug 17, 2022

I think this a good idea, with the caveat that there is a way to opt-out (compile has a --no-tune flag). There are places where it won't work (e.g. when the user doesn't have sudo, certain kinds of containers).

My other pet peeve about it (that maybe we could fix while we are in there), is that it doesn't reverse the effects afterward (pyperf system reset).

@ericsnowcurrently
Copy link
Member

+1 to making pyperformance run match pyperformance compile as closely as possible, including calling pyperf system tune.

My other pet peeve about it (that maybe we could fix while we are in there), is that it doesn't reverse the effects afterward (pyperf system reset).

+1 for fixing that, whether here or in a separate issue/PR.

@methane
Copy link
Member

methane commented Aug 22, 2022

pyperf system tune needs root but pyperformance run doesn't.
So I like current separation.

@kmod
Copy link
Contributor Author

kmod commented Aug 22, 2022

What about making pyperformance run throw an error if it's run on an untuned system? Maybe with an argument to disable that behavior. It kind of feels like this case is failure mode with no visible indication, you just have bad results at the end.

@abbriggs
Copy link

abbriggs commented Dec 6, 2022

FWIW, pyperf system tune does not support Windows (understandably so - automatic system tuning is logistically difficult on Windows), so an opt-out of some sort for tuning on pyperformance run would be necessary.

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

5 participants