Wiki update

How can I make this site better? Let me know what you'd like to see!

Moderators: MattKingUSA, khz

User avatar
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

Post by lilith »

Thanks, I downloaded the new version.
User avatar
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

Post by khz »

noedig wrote:

Code: Select all

lowlatency.linuxaudio.org      Linux Audio Low-Latency Performance How-To
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
So the lowlatency.linuxaudio homepage had dealt with the "tmpfs" / "shm" topic?
. . . FZ - Does humor belongs in Music?
. . 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.
User avatar
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

Post by lilith »

khz wrote:
noedig wrote:

Code: Select all

lowlatency.linuxaudio.org      Linux Audio Low-Latency Performance How-To
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
So the lowlatency.linuxaudio homepage had dealt with the "tmpfs" / "shm" topic?
I got the same warning with the old version.
User avatar
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

Post by khz »

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".
. . . FZ - Does humor belongs in Music?
. . 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.
User avatar
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

Post by lilith »

khz 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".
Exactly, so this needs to be changed in the script :D
User avatar
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

Post by khz »

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.
. . . FZ - Does humor belongs in Music?
. . 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.
User avatar
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

Post by raboof »

lilith wrote:
khz 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".
Exactly, so this needs to be changed in the script :D
What exactly do you think should be changed in the script? Could you propose a PR?
User avatar
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

Post by khz »

. . . FZ - Does humor belongs in Music?
. . 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.
User avatar
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

Post by lilith »

khz suggested to add the size of the RAM in the shm line in fstab:

Code: Select all

shm           /dev/shm     tmpfs         nodev,nosuid,noexec,size=7500M      0 0
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.
Jack Winter
Established Member
Posts: 381
Joined: Sun May 28, 2017 3:52 pm

Re: Wiki update

Post by Jack Winter »

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 8) For REAPER on Linux information: https://wiki.cockos.com/wiki/index.php/REAPER_for_Linux
User avatar
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

Post by lilith »

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..
Thanks, I'll change it to 4000M then. When I looked very little was used always.

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?
Jack Winter
Established Member
Posts: 381
Joined: Sun May 28, 2017 3:52 pm

Re: Wiki update

Post by Jack Winter »

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.. ;)
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 8) For REAPER on Linux information: https://wiki.cockos.com/wiki/index.php/REAPER_for_Linux
User avatar
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

Post by khz »

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
  • I don't care about the freedom of speech because I have nothing to say.
User avatar
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

Post by lilith »

I'll take it out completely. As stated somewhere else this is also better for SSD on the long-term.
User avatar
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

Post by lilith »

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.. ;)
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?
Post Reply