Wiki update

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

Moderators: MattKingUSA, khz

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: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?
You can check with "mount | grep shm" to see if /dev/shm is available. I'm not sure if JACK tells you whether it is actually using it, but if it's available then it should.

For me "ls -alFh /dev/shm" shows a /dev/shm/jack-1000 "directory", that could be a good hint ;).
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 »

With the shm entry in the fstab he shows me this.

Code: Select all

 ~ $ ls -alFh /dev/shm
insgesamt 79M
drwxrwxrwt  2 root root  240  2. Jan 20:24 ./
drwxr-xr-x 18 root root 4,2K  2. Jan 10:40 ../
-rw-r--r--  1 daw  daw   79M  2. Jan 19:06 jack-1000-0
-rw-r--r--  1 daw  daw  1,2K  2. Jan 19:06 jack-1000-1
srwxr-xr-x  1 daw  daw     0  2. Jan 19:06 jack_default_1000_0=
-rwxr-xr-x  1 daw  daw    12  2. Jan 19:06 jack_sem.1000_default_a2j*
-rwxr-xr-x  1 daw  daw    12  2. Jan 19:06 jack_sem.1000_default_dbusapi*
-rwxr-xr-x  1 daw  daw    12  2. Jan 19:06 jack_sem.1000_default_freewheel*
-rwxr-xr-x  1 daw  daw    12  2. Jan 19:06 jack_sem.1000_default_qjackctl*
-rwxr-xr-x  1 daw  daw    12  2. Jan 19:07 jack_sem.1000_default_REAPER*
-rwxr-xr-x  1 daw  daw    12  2. Jan 19:06 jack_sem.1000_default_system*
-rw-rw-rw-  1 daw  daw   70K  2. Jan 10:41 jack-shm-registry
<EDIT>

Code: Select all

 ~ $ du -h /dev/shm/*
79M	/dev/shm/jack-1000-0
4,0K	/dev/shm/jack-1000-1
0	/dev/shm/jack_default_1000_0
4,0K	/dev/shm/jack_sem.1000_default_a2j
4,0K	/dev/shm/jack_sem.1000_default_dbusapi
4,0K	/dev/shm/jack_sem.1000_default_freewheel
4,0K	/dev/shm/jack_sem.1000_default_qjackctl
4,0K	/dev/shm/jack_sem.1000_default_REAPER
4,0K	/dev/shm/jack_sem.1000_default_system
72K	/dev/shm/jack-shm-registry

Code: Select all

 ~ $ df -h
shm             7,4G    155M  7,2G    3% /dev/shm
tmpfs           7,4G     12K  7,4G    1% /tmp
https://www.cyberciti.biz/tips/what-is- ... usage.html
https://superuser.com/a/1030777</EDIT>

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

Re: Wiki update

Post by Jack Winter »

khz wrote: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.
I'm not sure I understand, AFAIK this has nothing to do with gcc, swap space or something like that.

JACK needs to communicate between the client libs and the server and does this via iirc named pipes. This takes at the most a few megabytes. Probably there are some other apps using shm too, but I've never seen anything take up much space in /dev/shm. Sending it out over the network and back would probably be a bad idea..
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
Jack Winter
Established Member
Posts: 381
Joined: Sun May 28, 2017 3:52 pm

Re: Wiki update

Post by Jack Winter »

lilith wrote:I'll take it out completely. As stated somewhere else this is also better for SSD on the long-term.
I don't understand how it could have anything to do with your SSD.
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
Jack Winter
Established Member
Posts: 381
Joined: Sun May 28, 2017 3:52 pm

Re: Wiki update

Post by Jack Winter »

lilith wrote: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?
Yes, have a look with "ls /dev/shm"
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
Jack Winter
Established Member
Posts: 381
Joined: Sun May 28, 2017 3:52 pm

Re: Wiki update

Post by Jack Winter »

khz wrote:With the shm entry in the fstab he shows me this.

Code: Select all

 ~ $ ls -alFh /dev/shm
insgesamt 79M

What without the entry?[/quote]

Wow, that's quite a lot more than I see, still only 80MB..

Try without the fstab entry and I don't think it will change anything at all.
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
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 »

Jack Winter wrote:
lilith wrote:I'll take it out completely. As stated somewhere else this is also better for SSD on the long-term.
I don't understand how it could have anything to do with your SSD.
I suspect what lilith means is if you use RAM-backed storage instead of Disk-backed storage, that might reduce wear and tear on your SSD. So using tmpfs/SHM for transient data instead of your SSD is probably a good idea.
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 »

Jack Winter wrote:Try without the fstab entry and I don't think it will change anything at all.
Without fstab entry I get the same.

Code: Select all

 ~ $ ls -alFh /dev/shm
insgesamt 79M
drwxrwxrwt  2 root root  240  2. Jan 21:07 ./
drwxr-xr-x 18 root root 4,2K  2. Jan 21:03 ../
-rw-r--r--  1 daw  daw   79M  2. Jan 21:03 jack-1000-0
-rw-r--r--  1 daw  daw  1,2K  2. Jan 21:03 jack-1000-1
srwxr-xr-x  1 daw  daw     0  2. Jan 21:03 jack_default_1000_0=
-rwxr-xr-x  1 daw  daw    12  2. Jan 21:03 jack_sem.1000_default_a2j*
-rwxr-xr-x  1 daw  daw    12  2. Jan 21:07 jack_sem.1000_default_ardour*
-rwxr-xr-x  1 daw  daw    12  2. Jan 21:03 jack_sem.1000_default_dbusapi*
-rwxr-xr-x  1 daw  daw    12  2. Jan 21:03 jack_sem.1000_default_freewheel*
-rwxr-xr-x  1 daw  daw    12  2. Jan 21:03 jack_sem.1000_default_qjackctl*
-rwxr-xr-x  1 daw  daw    12  2. Jan 21:03 jack_sem.1000_default_system*
-rw-rw-rw-  1 daw  daw   70K  2. Jan 21:03 jack-shm-registry

Code: Select all

 ~ $ du -h /dev/shm/*
79M	/dev/shm/jack-1000-0
4,0K	/dev/shm/jack-1000-1
0	/dev/shm/jack_default_1000_0
4,0K	/dev/shm/jack_sem.1000_default_a2j
4,0K	/dev/shm/jack_sem.1000_default_ardour
4,0K	/dev/shm/jack_sem.1000_default_dbusapi
4,0K	/dev/shm/jack_sem.1000_default_freewheel
4,0K	/dev/shm/jack_sem.1000_default_qjackctl
4,0K	/dev/shm/jack_sem.1000_default_system
72K	/dev/shm/jack-shm-registry

Code: Select all

 ~ $ df -h
shm             5,9G    102M  5,8G    2% /dev/shm
What I have written is not necessary, yes.
. . . 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
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 »

raboof wrote:if you use RAM-backed storage instead of Disk-backed storage, that might reduce wear and tear on your SSD.
Yes. shm == RAM

Code: Select all

┌───────────┬──────────────┬────────────────┐
│ /dev/shm  │ always tmpfs │ Linux specific │
├───────────┼──────────────┼────────────────┤
│ /tmp      │ can be tmpfs │ FHS 1.0        │
├───────────┼──────────────┼────────────────┤
│ /var/tmp  │ never tmpfs  │ FHS 1.0        │
└───────────┴──────────────┴────────────────┘
?
. . . 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.
Jack Winter
Established Member
Posts: 381
Joined: Sun May 28, 2017 3:52 pm

Re: Wiki update

Post by Jack Winter »

raboof wrote:
Jack Winter wrote:I suspect what lilith means is if you use RAM-backed storage instead of Disk-backed storage, that might reduce wear and tear on your SSD. So using tmpfs/SHM for transient data instead of your SSD is probably a good idea.
Yes, but /dev/shm is a tmpfs even if you haven't mounted it so in fstab, it's automatic nowdays, and as all tmpfs by default it gets a maximum of half your ram. I just saw that steam also uses a few MB on it.

Or maybe it's systemd that mounts it automatically, and I've been misled by my system :) I haven't looked at this for years, back then I concluded that it was not an issue that really concerned me. Possibly after so many discussions on the subject I ought to read the kernel documentation again to refresh my memory :)

Still the beauty of using Linux is that we can all do as we want, and I suppose that there is no right way to do anything. Just trying to bring over the POV that this probably is not an issue for most people and that explicitly mounting it doesn't really offer any advantage than changing the max size available. I really don't know many apps that use it, and personally I've never seen it taking up much ram at all. YMMV and all that.
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
Jack Winter
Established Member
Posts: 381
Joined: Sun May 28, 2017 3:52 pm

Re: Wiki update

Post by Jack Winter »

khz wrote:

Code: Select all

 ~ $ df -h
shm             5,9G    102M  5,8G    2% /dev/shm
In fact you made it bigger with the entry in fstab :shock:
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 »

Jack processes in shm (RAM) is great.
Would be worth a mention in the WIKI,
shm is included by default. :-D
. . . 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
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 »

@https://wiki.linuxaudio.org/wiki/start? ... irqbalance
@realTimeConfigQuickScan script

add the entry "check if irqbalance is switched off"?
Disabling the irqbalance daemon >> https://access.redhat.com/documentation ... ss_binding
. . . 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
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 »

When I read the Reaper thread I asked myself why the wiki still mentions "hpet".
"tsc" is "only" mentioned in the FAQ: What about timers and timing ?.

Is there a reason for this?

So far I have always entered the hpet entries from the wiki.
But both

Code: Select all

cat /sys/devices/system/clocksource/clocksource0/current_clocksource
and

Code: Select all

cat /proc/cpuinfo |grep tsc
show me "tsc" https://en.wikipedia.org/wiki/Time_Stamp_Counter.
. . . 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
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 I understood it correctly we could not edit the wiki or anything else, there was some problem with the wiki.
Is the problem now solved by (*1)?

(*1) https://lists.linuxaudio.org/archives/l ... 02771.html
[LAA] A new year, a fresh start

Dear all,

First of all a happy 2020 (even though it's way past Epiphany)! So
what's the fresh start about? Well, registration of the linuxaudio.org
domain has been handed over to yours truly so if you need any DNS
changes regarding any linuxaudio.org subdomains then I can take care of
that now directly. Thanks Daniel James of 64 Studio for taking care of
the domain for so long!
Other part of the fresh start is that I migrated the web server to a new
cloud region which is faster and more performant. I just changed all the
DNS records so if you spot anything weird that just worked before then
please let me know! The mail server will follow this weekend so if mail
seems a bit flaky the coming weekend then you know what might cause it.

Best regards,

Jeremy
. . . 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.
Post Reply