WICG / WICG/cpu-performance

CPU hot plugging

Open
#18 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
37
Forks
7
PR merge metrics
No merged PRs in 30d

Description

In its present form, this API assumes that CPU information (i.e., the CPU model and number of cores) does not change with time. This is not necessarily true, in the presence of CPU hot plugging, which amounts to adding or removing processing units, physically or virtually, while the computer system remains operational. Virtualization platforms typically offer this functionality, but an operating system may also arbitrarily decide to enable or disable CPU units, so that the reported number of logical cores changes.

If CPU information changes, it is probably expected that the value reported by navigator.cpuPerformance may also change.

Furthermore, if CPU hot plugging represents a significant use case, maybe it makes sense to add some observer to this API, similarly to what the Compute Pressure API does.

I am opening this here for discussion.
[This was first mentioned by Sangwhan Moon here.]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the issue discussion and the linked Blink-dev thread about CPU hot plugging. Determine whether navigator.cpuPerformance should reflect changing CPU information and whether an observer is needed; the issue is done when the API behavior and any observer requirement are decided.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.