[winswitch] Where is the mmap file created?

Antoine Martin antoine at nagafix.co.uk
Wed Apr 7 08:29:59 BST 2021


On 07/04/2021 01:47, Vinícius dos Santos Oliveira via shifter-users wrote:
> I'm running a xpra server in a container where only whitelisted files
> are shared between guest and host. I'd like to use the mmap mode as
> both are really running in the same computer, but I'm failing to use
> --mmap=yes.
> 
> I'm failing to find where the server creates mmap files. Setting the
> XPRA_MMAP_DIR env seems to have no effect. I don't find any created
> files in the directory I point it to.
> 
> Any hints on how to make this setup work?
$ xpra -h | grep mmap=
    --mmap=yes|no|mmap-filename

So you can use:
xpra start --mmap=/the/server/path
xpra attach --mmap=/the/client/path

And make sure that both paths resolve to the shared area where mmap
files can be created.

This may well require changes to the IPC settings in your container tool
to allow mmapped files. YMMV.
The difference in performance is huge, so it is worth doing.

Cheers,
Antoine


> --
> Vinícius dos Santos Oliveira
> https://vinipsmaker.github.io/



More information about the shifter-users mailing list