[Bug 217676] [DRI3] x11/libxshmfence: switch to /tmp for named shared memory mappings

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 10 04:24:19 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217676

            Bug ID: 217676
           Summary: [DRI3] x11/libxshmfence: switch to /tmp for named
                    shared memory mappings
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11 at FreeBSD.org
          Reporter: jbeich at FreeBSD.org
          Assignee: x11 at FreeBSD.org
             Flags: maintainer-feedback?(x11 at FreeBSD.org)

Created attachment 180684
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180684&action=edit
v0

With DRI3 enabled Xserver may create a lot of temporary files under /var/tmp.
Per hier(7) /var/tmp has to be persistent across reboots. However, Xserver
fails to clean up temporary files on its own. On the other hand /tmp can use
tmpfs(5) for faster access, mimicking /dev/shm on Linux.

$ ls -l /var/tmp/shm*
-rw-------  1 root  wheel     4B Mar 10 13:18 /var/tmp/shmfd-BguYGR
-rw-------  1 root  wheel     4B Mar 10 13:18 /var/tmp/shmfd-GB5BR6
-rw-------  1 root  wheel     4B Mar 10 13:18 /var/tmp/shmfd-Gn3rZg
-rw-------  1 root  wheel     4B Mar 10 13:18 /var/tmp/shmfd-HGV0zt
-rw-------  1 root  wheel     4B Mar 10 13:18 /var/tmp/shmfd-KRLyPk
-rw-------  1 root  wheel     4B Mar 10 13:18 /var/tmp/shmfd-YvGU8y
-rw-------  1 root  wheel     4B Mar 10 13:18 /var/tmp/shmfd-nLoJJ6
-rw-------  1 root  wheel     4B Mar 10 13:18 /var/tmp/shmfd-sUaud9
-rw-------  1 root  wheel     4B Mar 10 13:18 /var/tmp/shmfd-vTOEKK
-rw-------  1 root  wheel     4B Mar 10 13:18 /var/tmp/shmfd-yvrKri

$ fstat /var/tmp/shm*
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
root     Xorg       36979  512 /var/tmp   1087 -rw-------       4 rw 
/var/tmp/shmfd-HGV0zt
root     Xorg       36979  513 /var/tmp   1088 -rw-------       4 rw 
/var/tmp/shmfd-yvrKri
root     Xorg       36979  514 /var/tmp   1091 -rw-------       4 rw 
/var/tmp/shmfd-GB5BR6
root     Xorg       36979  515 /var/tmp   1090 -rw-------       4 rw 
/var/tmp/shmfd-Gn3rZg

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-x11 mailing list