xpra icon
Bug tracker and wiki

Opened 3 weeks ago

Last modified 3 weeks ago

#2647 assigned task

Detecting or setting up MIT-SHM

Reported by: mviereck Owned by: Antoine Martin
Priority: major Milestone: 4.1
Component: server Version: 3.0.x
Keywords: Cc:

Description (last modified by Antoine Martin)

Coming from #2610

I found no way to allow memory sharing for MIT-SHM only. Docker only allows to share the entire IPC namespace/shared memory for all applications (Docker option --ipc=host).

That's a real shame!
As per ​Understanding the Linux Virtual Memory Manager: The filesystem comes in two variations called shm and tmpfs. They both share core functionality and mainly differ in what they are used for. shm is for use by the kernel for creating file backings for anonymous pages and for backing regions created by shmget().
We need shmget for xshm, so mounting a tmpfs may not be enough. I have not tried it.

So far I did not even found a hint where to look for MIT-SHM in the system.I would assume that lsipc -m should show it, but it does not.
If you can give me some hints where to look for the memory area or maybe even providing one to Xvfb and/or Xdummy, I might find a solution how to share it with a Docker container.

Ideally it would have a representation in the file system like e.g. /dev/shm/MIT-SHM.X20. It is easy to share files with a Docker container.

Change History (1)

comment:1 Changed 3 weeks ago by Antoine Martin

Description: modified (diff)
Milestone: 4.04.1
Status: newassigned
Note: See TracTickets for help on using tickets.