Date: Fri, 10 Mar 2017 04:24:18 +0000 From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217676] [DRI3] x11/libxshmfence: switch to /tmp for named shared memory mappings Message-ID: <bug-217676-7141@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217676 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@FreeBSD.org Reporter: jbeich@FreeBSD.org Assignee: x11@FreeBSD.org Flags: maintainer-feedback?(x11@FreeBSD.org) 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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217676-7141>