Date: Fri, 10 Mar 2017 04:24:18 +0000 From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: maintainer-feedback requested: [Bug 217676] [DRI3] x11/libxshmfence: switch to /tmp for named shared memory mappings Message-ID: <bug-217676-7141-RCFkfQYZLF@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-217676-7141@https.bugs.freebsd.org/bugzilla/> References: <bug-217676-7141@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Jan Beich (mail not working) <jbeich@FreeBSD.org> has reassigned Bugzilla Automation <bugzilla@FreeBSD.org>'s request for maintainer-feedback to x11@FreeBSD.org: Bug 217676: [DRI3] x11/libxshmfence: switch to /tmp for named shared memory mappings https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217676 --- Description --- Created attachment 180684 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180684&action= =3Dedit v0 With DRI3 enabled Xserver may create a lot of temporary files under /var/tm= p. 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=20 /var/tmp/shmfd-HGV0zt root Xorg 36979 513 /var/tmp 1088 -rw------- 4 rw=20 /var/tmp/shmfd-yvrKri root Xorg 36979 514 /var/tmp 1091 -rw------- 4 rw=20 /var/tmp/shmfd-GB5BR6 root Xorg 36979 515 /var/tmp 1090 -rw------- 4 rw=20 /var/tmp/shmfd-Gn3rZg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217676-7141-RCFkfQYZLF>