[Webkit-unassigned] [Bug 263074] New: WebAudio: Limit the number of realtime audio threads, and constrain their runtime

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 12 08:40:04 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=263074

            Bug ID: 263074
           Summary: WebAudio: Limit the number of realtime audio threads,
                    and constrain their runtime
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jer.noble at apple.com

In 268047 at main, RemoteAudioDestinationProxy threads were made to run in realtime mode, thereby avoiding audible stutters and dropouts in periods of high thread contention. However realtime threads come at a cost, and creating too many realtime threads is problematic from a kernel scheduling perspective. In some degenerate cases, sites can create many, many AudioContexts, each with their own realtime thread. Long term, this should be fixed via bug #263073, by coalescing compatable threads together. Until then, limit the number of concurrent realtime audio threads that can be created to 3, and adopt threading APIs (on Darwin OSs, for now) to constrain the runtime of these threads such that, when exceeded, the scheduler will demote the priority and runtime class of the thread to normal values.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231012/f84d8df5/attachment.htm>


More information about the webkit-unassigned mailing list