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

Compute Pressure API #255

Closed
rniwa opened this issue Sep 14, 2023 · 3 comments
Closed

Compute Pressure API #255

rniwa opened this issue Sep 14, 2023 · 3 comments
Labels
concerns: device independence Proposal is hardware- or OS-specific, in a way that may risk the device independence of the Web concerns: privacy This proposal may cause privacy risk if implemented from: Google Proposed, edited, or co-edited by Google. from: Intel Proposed, edited, or co-edited by Intel. position: oppose venue: W3C Devices and Sensors WG

Comments

@rniwa
Copy link
Member

rniwa commented Sep 14, 2023

WebKittens

@achristensen07 @youennf @rniwa

Title of the spec

Compute Pressure Level 1

URL to the spec

https://w3c.github.io/compute-pressure/

URL to the spec's repository

https://github.com/w3c/compute-pressure/

Issue Tracker URL

https://github.com/w3c/compute-pressure/issues

Explainer URL

https://github.com/w3c/compute-pressure

TAG Design Review URL

No response

Mozilla standards-positions issue URL

No response

WebKit Bugzilla URL

No response

Radar URL

No response

Description

[Proposal for] a new API that conveys the utilization of system resources, initially focusing on CPU resources (v1) with the plan to add other resources such as GPU resources in the future (post v1).

@rniwa
Copy link
Member Author

rniwa commented Sep 14, 2023

From https://lists.webkit.org/pipermail/webkit-dev/2021-May/031848.html, we do not support this proposal for the reasons including but not limited
to:

  1. CPU utilization isn't something which can be easily computed or reasoned on asymmetric multi-core CPUs, not to mention the dynamic adjustment of CPU frequency further complicates the matter.
  2. Whether the system itself is under a heavy CPU load or not should not have any bearing on how much CPU time a website is entitled to use because the background CPU utilization may spontaneously change, and the reason of a high or a low CPU utilization may depend on what the website is doing; e.g. a daemon which wakes up in a response to a network request or some file access.
  3. The proposal as it currently stands seems to allow a side channel communication between different top-level origins (i.e. bypasses storage partitioning). A possible attack may involve busy looping or doing some heavy computation in one origin and then observing that CPU utilization goes up in another.

@rniwa
Copy link
Member Author

rniwa commented Sep 15, 2023

I suggest we add the label position: oppose 7 days from now for the reasons stated above.

@jyasskin
Copy link

When possible, it'd be good for standards-positions requests to cc the feature's proponents so they can address any possible factual mistakes. In this case, I believe that's at least @kenchris and @arskama.

On (3), the proponents presented some mitigations to the PING at TPAC, which @pes10k reviewed at w3c/compute-pressure#197 (comment).

@annevk annevk added concerns: privacy This proposal may cause privacy risk if implemented concerns: device independence Proposal is hardware- or OS-specific, in a way that may risk the device independence of the Web from: Google Proposed, edited, or co-edited by Google. from: Intel Proposed, edited, or co-edited by Intel. venue: W3C Devices and Sensors WG labels Sep 19, 2023
@annevk annevk closed this as completed Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concerns: device independence Proposal is hardware- or OS-specific, in a way that may risk the device independence of the Web concerns: privacy This proposal may cause privacy risk if implemented from: Google Proposed, edited, or co-edited by Google. from: Intel Proposed, edited, or co-edited by Intel. position: oppose venue: W3C Devices and Sensors WG
Projects
None yet
Development

No branches or pull requests

3 participants