ctaggart / rusty-vscode

Rust + VSCode + RustyCode on a Docker Image
MIT License
4 stars 3 forks source link

xpra missing lz4 for better performance #4

Closed ctaggart closed 8 years ago

ctaggart commented 8 years ago

This is with 0.0.2.

vscode@vscode-demo:~$ xpra stop
Error: no encryption libraries could be loaded
 pycrypto is not available: No module named Crypto
 python-cryptography is not available: No module named cryptography.hazmat.backends
Warning: zlib is the only compressor enabled
 install and enable lzo or lz4 support for better performance
server requested disconnect: server shutdown
xpra at :100 has exited.
vscode@vscode-demo:~$ xpra --version
xpra v0.17.1
ctaggart commented 8 years ago

Here was the build for 0.0.2: https://travis-ci.org/ctaggart/rusty-vscode/builds/128710523

I'm a little confused because there are lots of references to installed lz4.

Setting up liblz4-1:amd64 (0.0~r122-2) ...

Perhaps it isn't enabled by default.

ctaggart commented 8 years ago

xpra start --help shows:

    --compressors=COMPRESSORS
                        The packet compressors to enable. Default: lz4, lzo,
                        zlib.

Sounds like they are all enabled by default.

ctaggart commented 8 years ago

It looks like lz4 can make it much much faster. https://www.xpra.org/trac/wiki/PacketEncoding

https://packages.debian.org/jessie/liblz4-1

ctaggart commented 8 years ago

From Antoine Martin on the mailing list

Those instructions include "--no-install-recommends", which is a bad idea as this will skip important things like python-lz4.

Cheers Antoine

The travis build definitely shows python-lz4 being installed. However, one or more of these may be causing the issue. I'll try dropping --no-install-recommends until I really now what not to install.

https://travis-ci.org/ctaggart/rusty-vscode/builds/128710523#L332-L337

Recommended packages:
  dbus libegl1-mesa-drivers libgl1-mesa-dri libglib2.0-data xdg-user-dirs
  hicolor-icon-theme libgtk2.0-bin va-driver-all va-driver xml-core file
  python-cryptography gstreamer1.0-plugins-base gstreamer1.0-plugins-good
  gstreamer1.0-plugins-ugly python-gst-1.0 python-opencv v4l2loopback-dkms
  openssh-client ssh-askpass python-lzo websockify xfonts-base xauth