Re: Wiki update
Posted: Mon Dec 31, 2018 2:22 pm
Thanks, I downloaded the new version.
noedig wrote:Code: Select all
lowlatency.linuxaudio.org Linux Audio Low-Latency Performance How-To
So the lowlatency.linuxaudio homepage had dealt with the "tmpfs" / "shm" topic?lilith@realTimeConfigQuickScan wrote:Code: Select all
** Warning: no tmpfs partition mounted on /tmp For more information, see: - http://wiki.linuxaudio.org/wiki/system_configuration#tmpfs - http://lowlatency.linuxaudio.org
I got the same warning with the old version.khz wrote:noedig wrote:Code: Select all
lowlatency.linuxaudio.org Linux Audio Low-Latency Performance How-To
So the lowlatency.linuxaudio homepage had dealt with the "tmpfs" / "shm" topic?lilith@realTimeConfigQuickScan wrote:Code: Select all
** Warning: no tmpfs partition mounted on /tmp For more information, see: - http://wiki.linuxaudio.org/wiki/system_configuration#tmpfs - http://lowlatency.linuxaudio.org
Exactly, so this needs to be changed in the scriptkhz wrote:As far as I remember you had both entries ("shm/tmpfs") in /etc/fstab and later removed the "tmpfs" entry.
If so: Logical because the script searches for "tmpfs" and you only entered "shm".
Only adding the "shm" entry is correct . According to jack Homepage jack uses "shm".
What exactly do you think should be changed in the script? Could you propose a PR?lilith wrote:Exactly, so this needs to be changed in the scriptkhz wrote:As far as I remember you had both entries ("shm/tmpfs") in /etc/fstab and later removed the "tmpfs" entry.
If so: Logical because the script searches for "tmpfs" and you only entered "shm".
Only adding the "shm" entry is correct . According to jack Homepage jack uses "shm".
Code: Select all
mount | grep shm
Code: Select all
shm /dev/shm tmpfs nodev,nosuid,noexec,size=7500M 0 0
Thanks, I'll change it to 4000M then. When I looked very little was used always.Jack Winter wrote:FWIW & IIRC /dev/shm defaults to half of your ram as do the other tmpfs that you have mounted. Changing this is probably mostly useful if you want to limit how much an app can use, not that I've ever seen one actually using much at all. If you don't need to either make it smaller nor bigger then it's probably easier to leave it out of fstab altogether..
If I don't have any entry in fstab it is still used as it is in the kernel by default? Can this be checked somehow?Jack Winter wrote:JACK uses it by default and it was added as a config option for the kernel back in 2.x.
IIRC, back then JACK used /tmp, but was changed to use /dev/shm when that became a standard feature of the kernel. IMO there really isn't any reason at all to bother with this, unless you really are paranoid and would want to make sure that no malicious application starves you of RAM, but if so then you really ought to do the same with all your tmpfs mounts too..