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)

enhancement
Not set
normal

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.
Component: Document Navigation → DOM
QA Contact: docshell → general
Hmm... We typically have at least two threads running already (UI thread and JS free() thread), no?
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.
(In reply to comment #2) > Also necko, and the JS "watchdog" thread, IIRC. And the HTML parser thread, soon, probably.
Straightforward first cut.
Assignee: nobody → jones.chris.g
Attachment #414178 - Flags: review?(bent.mozilla)
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
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: