Closed
Bug 530636
Opened 15 years ago
Closed 13 years ago
Workers: Number of backing OS threads should be chosen dynamically based on HW concurrency
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: cjones, Assigned: cjones)
References
Details
Attachments
(1 file)
A reasonable choice might be |concurrency-1| --- so e.g. a machine with 16 HW threads would have 15 OS threads allocated to the Worker pool.
Updated•15 years ago
|
Component: Document Navigation → DOM
QA Contact: docshell → general
Comment 1•15 years ago
|
||
Hmm... We typically have at least two threads running already (UI thread and JS free() thread), no?
Assignee | ||
Comment 2•15 years ago
|
||
Also necko, and the JS "watchdog" thread, IIRC. But this bug only deals with the number of threads allocated to workers; if we're worried about degrading performance of other threads, we should perhaps allocate |concurrency - #expected often-running threads|. I had "#expected often-running threads == 1" in comment 0, but you're right in pointing out that that may be too simplistic. Probably need hard data to set this knob correctly.
Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> Also necko, and the JS "watchdog" thread, IIRC.
And the HTML parser thread, soon, probably.
Assignee | ||
Comment 4•15 years ago
|
||
Straightforward first cut.
Assignee: nobody → jones.chris.g
Attachment #414178 -
Flags: review?(bent.mozilla)
Assignee | ||
Updated•15 years ago
|
Attachment #414178 -
Flags: review?(bent.mozilla)
We've opted to let each worker have its own thread now.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•