Wiki update
Moderators: MattKingUSA, khz
- khz
- Established Member
- Posts: 1648
- Joined: Thu Apr 17, 2008 6:29 am
- Location: German
- Has thanked: 42 times
- Been thanked: 92 times
Re: Wiki update
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
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
- I don't care about the freedom of speech because I have nothing to say.
- lilith
- Established Member
- Posts: 1698
- Joined: Fri May 27, 2016 11:41 pm
- Location: bLACK fOREST
- Has thanked: 117 times
- Been thanked: 57 times
- Contact:
Re: Wiki update
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
- khz
- Established Member
- Posts: 1648
- Joined: Thu Apr 17, 2008 6:29 am
- Location: German
- Has thanked: 42 times
- Been thanked: 92 times
Re: Wiki update
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".
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".
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
- I don't care about the freedom of speech because I have nothing to say.
- lilith
- Established Member
- Posts: 1698
- Joined: Fri May 27, 2016 11:41 pm
- Location: bLACK fOREST
- Has thanked: 117 times
- Been thanked: 57 times
- Contact:
Re: Wiki update
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".
- khz
- Established Member
- Posts: 1648
- Joined: Thu Apr 17, 2008 6:29 am
- Location: German
- Has thanked: 42 times
- Been thanked: 92 times
Re: Wiki update
If what I wrote is true. I have found very little in the intenet on this subject. That surprises me.
I don't have any current links on this topic and of us audio users we are the only two who may have entered this entry in the fstab?
EDIT: Added "size=7500M" to shm.
I don't have any current links on this topic and of us audio users we are the only two who may have entered this entry in the fstab?
EDIT: Added "size=7500M" to shm.
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
- I don't care about the freedom of speech because I have nothing to say.
- raboof
- Established Member
- Posts: 1855
- Joined: Tue Apr 08, 2008 11:58 am
- Location: Deventer, NL
- Has thanked: 50 times
- Been thanked: 74 times
- Contact:
Re: Wiki update
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".
- khz
- Established Member
- Posts: 1648
- Joined: Thu Apr 17, 2008 6:29 am
- Location: German
- Has thanked: 42 times
- Been thanked: 92 times
Re: Wiki update
Code: Select all
mount | grep shm
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
- I don't care about the freedom of speech because I have nothing to say.
- lilith
- Established Member
- Posts: 1698
- Joined: Fri May 27, 2016 11:41 pm
- Location: bLACK fOREST
- Has thanked: 117 times
- Been thanked: 57 times
- Contact:
Re: Wiki update
khz suggested to add the size of the RAM in the shm line in fstab:
I forgot the M after 7500 and the result was that Jack didn't start, even Chromium and Firefox didn't start. There where some IO errors shown. After adding the M all is working fine again. Crazy how this affects things.
Code: Select all
shm /dev/shm tmpfs nodev,nosuid,noexec,size=7500M 0 0
-
- Established Member
- Posts: 381
- Joined: Sun May 28, 2017 3:52 pm
Re: Wiki update
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..
Reaper/KDE/Archlinux. i7-2600k/16GB + i7-4700HQ/16GB, RME Multiface/Babyface, Behringer X32, WA273-EQ, 2 x WA-412, ADL-600, Tegeler TRC, etc For REAPER on Linux information: https://wiki.cockos.com/wiki/index.php/REAPER_for_Linux
- lilith
- Established Member
- Posts: 1698
- Joined: Fri May 27, 2016 11:41 pm
- Location: bLACK fOREST
- Has thanked: 117 times
- Been thanked: 57 times
- Contact:
Re: Wiki update
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..
e.g. now:
tmpfs 7,4G 188M 7,2G 3% /dev/shm
BTW: When is it used or what are the criteria when shm is used and when normal RAM?
-
- Established Member
- Posts: 381
- Joined: Sun May 28, 2017 3:52 pm
Re: Wiki update
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..
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..
Reaper/KDE/Archlinux. i7-2600k/16GB + i7-4700HQ/16GB, RME Multiface/Babyface, Behringer X32, WA273-EQ, 2 x WA-412, ADL-600, Tegeler TRC, etc For REAPER on Linux information: https://wiki.cockos.com/wiki/index.php/REAPER_for_Linux
- khz
- Established Member
- Posts: 1648
- Joined: Thu Apr 17, 2008 6:29 am
- Location: German
- Has thanked: 42 times
- Been thanked: 92 times
Re: Wiki update
I have "size" in the fstab to define the maximum RAM usage. The gcc can also occupy 512 GB RAM. I'm wondering if internet RAM wouldn't be the better solution https://www.cs.swarthmore.edu/~newhall/nswap2L.html.
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
- I don't care about the freedom of speech because I have nothing to say.
- lilith
- Established Member
- Posts: 1698
- Joined: Fri May 27, 2016 11:41 pm
- Location: bLACK fOREST
- Has thanked: 117 times
- Been thanked: 57 times
- Contact:
Re: Wiki update
I'll take it out completely. As stated somewhere else this is also better for SSD on the long-term.
- lilith
- Established Member
- Posts: 1698
- Joined: Fri May 27, 2016 11:41 pm
- Location: bLACK fOREST
- Has thanked: 117 times
- Been thanked: 57 times
- Contact:
Re: Wiki update
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..