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

Does compute pressure reflect OS-level speed limit changes due to throttling? #228

Open
brycepj opened this issue Jul 28, 2023 · 6 comments
Labels
isv-support Support indication from independent software vendors question Further information is requested V2

Comments

@brycepj
Copy link

brycepj commented Jul 28, 2023

I work on video conferencing software that is embedded within a much larger, CPU-intensive application. We frequently deal with performance and quality issues that can be traced back to speed-limit changes triggered by thermal throttling or power management.

Since the PressureObserver API currently only supports the 'cpu' source, my question is whether compute pressure is calculated in a way that would reflect these throttling effects. In other words, if the operating system adjusts speed limits due to thermal or power constraints, would these changes be reflected in the compute pressure?

While I'm excited for the prospect of using other pressure sources in the future, I'm interested to understand if the compute pressure metric effectively serves as a catch-all, inclusive of the impacts from OS-level changes. I would appreciate any insights or clarifications.

@brycepj brycepj changed the title Does Compute Pressure Reflect OS-Level Speed Limit Changes Due to Throttling? Does compute pressure reflect OS-level speed limit changes due to throttling? Jul 28, 2023
@anssiko anssiko added question Further information is requested V2 labels Aug 8, 2023
@anssiko
Copy link
Member

anssiko commented Aug 8, 2023

@brycepj, thanks for sharing your use case and questions. I'm hearing that you'd prefer a catch-all source that considers global thermal and power constraints? Would such a catch-all source be adequate or would your use cases in addition require processing unit-level insight?

We evolve this API based real-world use cases such as yours. Feel free to watch this repo and take part in related design discussions as they emerge. Thank you for your contributions.

I'll label this as "v2" to give it better visibility in our issue triage.

@brycepj
Copy link
Author

brycepj commented Aug 14, 2023

Thanks for your thoughtful response 🙇

Yes, I do think a catch-all source would be valuable. The primary uses we have at Slack for this feature are:

  • detecting when a device is not capable of a fully-featured experience, so that we can alert the user and/or gracefully degrade. If thermal and/or power-related throttling is happening, we almost always observe noticeable differences in a/v quality, as well as Slack's responsiveness. In this case, distinguishing between compute pressure and thermal/power-related pressure is not as important as detecting the system's overall capabilities.
  • diagnosing the source of problems based on user reports or support requests(after the fact). If we're able to identify that a user's device is the source of the problem based on a catch-all value (rather an a performance problem with Slack or Huddles), we're not going to spend as much time investigating, but rather provide helpful troubleshooting tips or information. So a catch-all value that flags that the system's capabilities were limited would help us make that decision quickly. In this case, distinguishing between thermal/power related throttling and CPU pressure would be helpful in providing the user more targeted help. But a catch-all source would still be an improvement if in fact compute pressure does not capture thermal or power-related throttling.

@kenchris
Copy link
Contributor

kenchris commented Aug 14, 2023

Since the PressureObserver API currently only supports the 'cpu' source, my question is whether compute pressure is calculated in a way that would reflect these throttling effects.

We recently added "thermals" as a source as well that it intended to reflect whether the system is being throttled or not. We did need to find the best way to implement this on different systems, as it is not always straight forward.

image

image

@brycepj
Copy link
Author

brycepj commented Aug 15, 2023

@anssiko @kenchris Thanks for the responses. We're very excited about developments here and eager to help however we can. For what it's worth, we're already experimenting with these APIs internally and will be expanding to Slack's customers in the coming weeks. If there's any information or data I can provide about our experience that would help you all, please do let me know.

@anssiko
Copy link
Member

anssiko commented Aug 16, 2023

@brycepj, thank you. The intent of the Origin Trial is exactly to collect real-world feedback from users of the API.

Please keep sharing your suggestions, feedback and questions in this issue, or open new issues as appropriate. I've scheduled time to discuss your feedback with the entire Working Group at our next f2f meeting that takes place mid-September.

@kenchris
Copy link
Contributor

@brycepj We are very happy that you are playing around with the API and giving up this feedback. We would like to know if we could mention this publicly, say on presentation slides, possible together with your company logo?

@kenchris kenchris added the isv-support Support indication from independent software vendors label Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
isv-support Support indication from independent software vendors question Further information is requested V2
Projects
None yet
Development

No branches or pull requests

3 participants