-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Share IPC namespace of X server and container to allow MIT-SHM #257
Comments
Does this mean that this option "--hostipc sets docker run option --ipc=host. Allows MIT-SHM / shared memory. Disables IPC namespacing." does not work currently or only not with xpra? From your experience: Could this be the cause for 3-4% CPU usage on idle, when using xpra on top of x11? |
If you set option
I am not sure. You could just try out with and without |
I did a check here, xpra is at about 0,3% CPU usage if idle, next to many other background processes. |
@mviereck xpra v3.0.9-r26127 from Endeavour repo. That might explain alot. |
Some first tests with |
Recent beta/master introduces new options to run some X servers in containers of image x11docker/xserver. The setup consists of three parts:
This allows to share IPC namespace of X server container with the targeted GUI container.
A possible issue remains: IPC namespace is not shared with host Xorg to preserve container isolation. This might cause MIT-SHM issues of Xephyr or xpra client. Though, in current test runs no graphical glitches nor error messages has been seen. @totaam Does the xpra client use MIT-SHM to communicate with the X server it appears on? Can this be influenced with environment variable |
xpra uses GTK to mediate most of the communications with the client's display (ie: X11 server). This should not matter when the client uses OpenGL acceleration: https://github.com/Xpra-org/xpra/blob/master/docs/Usage/Client-OpenGL.md since this will use a different mechanism for uploading texture data to the GPU.
No. |
Thank you for the insights! x11docker introduces two new options In cases where xpra client or Xephyr run in container with access to host X (that reports to provide So far, I consider this ticket finally as solved after about 2 years since the first discussion at xpra.org. :-) |
Currently x11docker disables X extension
MIT-SHM
that would allow shared memory between X and its clients.This can cause some performance loss.
Antoine suggested some possible solutions: https://xpra.org/trac/ticket/2647 (Now Xpra-org/xpra#2647)
With the help of
nsenter
it might work to run e.g.Xvfb
in the same IPC namespace as the container. In that case x11docker could allowMIT-SHM
and might get a slight performance boost especially with option--xpra
.The text was updated successfully, but these errors were encountered: