[winswitch] mmap acceleration with Docker

Timothy Hobbs timothy at hobbs.cz
Wed Oct 7 21:08:27 BST 2015


I have set the TMPDIR directory to a directory in the containers home 
directory which is shared between both the server and client. The client 
and server both claim that they are attached via mmap (see attached 
logs). However, when I look in the directory where the mmap allegedly 
resides, no mmap file is there. Is this a problem?

Tim

On 10/07/15 20:06, Antoine Martin wrote:
> On 07/10/15 23:18, Timothy Hobbs wrote:
>> I have tried to setup mmap acceleration for subuser, however, I
>> haven't been met with any success. I have described my trouble here
>> https://github.com/subuser-security/subuser/issues/214 . Any input
>> would be greatly appreciated :)
> http://xpra.org/trac/wiki/Usage/Docker
>
> Summary: the mmap file is created by the client and the server will try
> to find it in under the same path.
> You have some minimal control over the location where the file is
> created via $TMPDIR, and we can even provide a more specific override if
> you need one.
>
> Cheers
> Antoine
>> Tim
>> _______________________________________________
>> shifter-users mailing list
>> shifter-users at lists.devloop.org.uk
>> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users

-------------- next part --------------
2015-10-07 19:57:51,533 cannot use pycups for printing: No module named cups
2015-10-07 19:57:51,638 xpra gtk2 client version 0.15.5 (r10506)
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: i965
2015-10-07 19:57:51,934 PyOpenGL warning: missing accelerate module
2015-10-07 19:57:51,935 PyOpenGL warning: missing array format handlers: numeric, vbo, vbooffset
2015-10-07 19:57:51,935 OpenGL Version: 3.0 Mesa 10.6.5
2015-10-07 19:57:51,936 OpenGL support could not be enabled:
2015-10-07 19:57:51,936  vendor 'VMware, Inc.' is blacklisted!
2015-10-07 19:57:51,966 dbus setup error: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2015-10-07 19:57:51,984 detected keyboard: rules=evdev, model=pc105, layout=cz
2015-10-07 19:57:51,985 failed to get current desktop: unpack requires a string argument of length 4
2015-10-07 19:57:51,985 desktop size is 1280x800 with 1 screen(s):
2015-10-07 19:57:51,985   'unix:0.0' (336x210 mm - DPI: 96x96)
2015-10-07 19:57:51,985     eDP1 (260x160 mm - DPI: 125x127)
2015-10-07 19:57:52,281 mmap is enabled using 128MB area in /home/timothy/tmp/xpra.TtbVRf.mmap
2015-10-07 19:57:52,282 server: Linux debian stretch/sid , Xpra version 0.15.5 (r10506)
2015-10-07 19:57:52,285 Attached to :100 (press Control-C to detach)
-------------- next part --------------
$ docker logs ffe918bb1a75
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

X.Org X Server 1.17.2
Release Date: 2015-06-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.1.0 x86_64 Debian
Current Operating System: Linux service-subuser-xterm-xpra-server 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=79f5ee64-75f8-414c-87bf-896d1d0b3fa5 ro quiet
Build Date: 11 August 2015  10:51:15AM
xorg-server 2:1.17.2-1.1 (http://www.debian.org/support) 
Current version of pixman: 0.32.6
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/home/timothy/.xpra/Xorg.:100.log", Time: Wed Oct  7 19:57:50 2015
(++) Using config file: "/etc/xpra/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
2015-10-07 19:57:50,361 server uuid is fda3b98ebad44d4e9466a21a98e0d091
2015-10-07 19:57:50,549 cannot load dbus helper: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally without any error message
2015-10-07 19:57:50,650 xpra server version 0.15.5 (r10506)
2015-10-07 19:57:50,651 running with pid 1
2015-10-07 19:57:50,831 xpra is ready.
2015-10-07 19:57:51,967 New unix-domain connection received
2015-10-07 19:57:51,969 New unix-domain connection received
2015-10-07 19:57:51,969 Connection lost
2015-10-07 19:57:52,031 Handshake complete; enabling connection
2015-10-07 19:57:52,041 Python/Gtk2 Linux client version 0.15.5 connected from '116d62648f0320a72b1d' as 'timothy'
2015-10-07 19:57:52,042 mmap is enabled using 128MB area in /home/timothy/tmp/xpra.TtbVRf.mmap
2015-10-07 19:57:52,045 client root window size is 1280x800 with 1 displays:
2015-10-07 19:57:52,045   'unix:0.0' (336x210 mm - DPI: 96x96)
2015-10-07 19:57:52,045     eDP1 (260x160 mm - DPI: 125x127)
2015-10-07 19:57:52,207 server virtual display now set to 1280x800
2015-10-07 19:57:52,208 setting key repeat rate from client: 500ms delay / 50ms interval
2015-10-07 19:57:52,209 setting keymap: rules=evdev, model=pc105, layout=cz
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
2015-10-07 19:57:52,238 setting full keymap definition from client via xkbcomp
2015-10-07 19:57:52,312 DPI set to 15 x 19 (wanted 97 x 97)
2015-10-07 19:57:52,312  you may experience scaling problems, such as huge or small fonts, etc
2015-10-07 19:57:52,312  to fix this issue, try the dpi switch, or use a patched Xdummy driver


More information about the shifter-users mailing list