Bug 1683420 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

With Fission, users and sites can open an unlimited number of content processes. Each content process might use WebGL and need its own X11 connection. However Linux has a system-wide limit (256) on the number of X11 connections shared by all X11 applications.

We want Firefox to be a polite X11 citizen and not open too many X11 connections that might cause the system to hit its limit (which can cause system-wide crashes or hangs). 

The ideal solution is WebGL remoting (bug 1638466), which will consolidate all WebGL X11 usage into one process. But WebGL remoting on Linux is blocked by some other Linux problems (like crash reporting bug 1678152 and Nouveau GPU crash bug 1671054). 

Until we have WebGL remoting on Linux, this bug proposes we limit the number of WebGL X11 connections open simultaneously. Jeff Gilbert said in email:

> I think we can keep the browser limited to
30ish webgl context-having-origins without any real issue. It's a
little bit of work, but pretty tractable.
>
> Auto-closing connections is useful too, but having forcible connection
reclamation is probably 90% as good as remote WebGL for Fission. (from
a User perspective)

See also bug 1673705 to auto-close unused WebGL X11 connections.
With Fission, users and sites can open an unlimited number of content processes. Each content process might use WebGL and need its own X11 connection. However Linux has a system-wide limit (256) on the number of X11 connections shared by all X11 applications.

We want Firefox to be a polite X11 citizen and not open too many X11 connections that might cause the system to hit its limit (which can cause system-wide crashes or hangs). 

The ideal solution is WebGL remoting (bug 1638466), which will consolidate all WebGL X11 usage into one process. But WebGL remoting on Linux is blocked by some other Linux problems (like crash reporting bug 1678152 and Nouveau GPU crash bug 1671054). 

Until we have WebGL remoting on Linux, this bug proposes we limit the number of WebGL X11 connections open simultaneously. Jeff Gilbert said in email:

> I think we can keep the browser limited to 30ish webgl context-having-origins without any real issue. It's a little bit of work, but pretty tractable.
>
> Auto-closing connections is useful too, but having forcible connection reclamation is probably 90% as good as remote WebGL for Fission. (from a User perspective)

See also bug 1673705 to auto-close unused WebGL X11 connections.

Back to Bug 1683420 Comment 0