Wiki update

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

Moderators: khz, MattKingUSA

User avatar
lilith
Established Member
Posts: 862
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Contact:

Re: Wiki update

Postby lilith » Mon Dec 31, 2018 2:22 pm

Thanks, I downloaded the new version.
https://soundcloud.com/lilith_93

_____________________________
Debian 9 (XFCE) & KXStudio repos

User avatar
khz
Established Member
Posts: 1033
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: Wiki update

Postby khz » Mon Dec 31, 2018 2:26 pm

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: 862
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Contact:

Re: Wiki update

Postby lilith » Mon Dec 31, 2018 2:30 pm

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.
https://soundcloud.com/lilith_93

_____________________________
Debian 9 (XFCE) & KXStudio repos

User avatar
khz
Established Member
Posts: 1033
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: Wiki update

Postby khz » Mon Dec 31, 2018 2:50 pm

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: 862
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Contact:

Re: Wiki update

Postby lilith » Mon Dec 31, 2018 3:03 pm

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
https://soundcloud.com/lilith_93

_____________________________
Debian 9 (XFCE) & KXStudio repos

User avatar
khz
Established Member
Posts: 1033
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: Wiki update

Postby khz » Mon Dec 31, 2018 3:18 pm

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: 1610
Joined: Tue Apr 08, 2008 11:58 am
Location: Deventer, NL
Contact:

Re: Wiki update

Postby raboof » Mon Dec 31, 2018 4:37 pm

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: 1033
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: Wiki update

Postby khz » Mon Dec 31, 2018 5:01 pm

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: 862
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Contact:

Re: Wiki update

Postby lilith » Wed Jan 02, 2019 1:44 pm

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.
https://soundcloud.com/lilith_93

_____________________________
Debian 9 (XFCE) & KXStudio repos

Jack Winter
Established Member
Posts: 368
Joined: Sun May 28, 2017 3:52 pm

Re: Wiki update

Postby Jack Winter » Wed Jan 02, 2019 2:38 pm

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: 862
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Contact:

Re: Wiki update

Postby lilith » Wed Jan 02, 2019 2:44 pm

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?
https://soundcloud.com/lilith_93

_____________________________
Debian 9 (XFCE) & KXStudio repos

Jack Winter
Established Member
Posts: 368
Joined: Sun May 28, 2017 3:52 pm

Re: Wiki update

Postby Jack Winter » Wed Jan 02, 2019 3:14 pm

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: 1033
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: Wiki update

Postby khz » Wed Jan 02, 2019 3:19 pm

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: 862
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Contact:

Re: Wiki update

Postby lilith » Wed Jan 02, 2019 3:22 pm

I'll take it out completely. As stated somewhere else this is also better for SSD on the long-term.
https://soundcloud.com/lilith_93

_____________________________
Debian 9 (XFCE) & KXStudio repos

User avatar
lilith
Established Member
Posts: 862
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Contact:

Re: Wiki update

Postby lilith » Wed Jan 02, 2019 4:35 pm

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?
https://soundcloud.com/lilith_93

_____________________________
Debian 9 (XFCE) & KXStudio repos


Return to “Suggestion Box”

Who is online

Users browsing this forum: No registered users and 1 guest