How many loopback devices in one machine?

Hi guys,

I have setup 10 jibris on one single machine using docker. I do this on a very high config, centos7 machine

My question is, at max, how many loopback devices can we create in one single bare-metal and a virtual machine?

32

They say here.
mount - How many loopback devices can Linux support? - Ask Ubuntu.

But I don’t know exactly. only quoting.

64 they mention here.

Are you talking about snd-aloop or loop?
jibri has nothing to do with loop

@emrah

Sorry for my noob question

So referencing the jitsi documentation, and some RnD, I came up with this

echo "options snd-aloop enable=1,1,1,1,1,1,1,1,1,1 index=0,1,2,3,4,5,6,7,8,9" > /etc/modprobe.d/alsa-loopback.conf
echo "snd_aloop" > /etc/modules-load.d/snd_aloop.conf
modprobe snd-aloop
lsmod | grep snd_aloop

So the number of devices configured above = the number of recorders we have. Am I right?

So what is the maximum number of these devices we can set ?

32
1 Like

You should check your kernel configuration

Alpine

$ grep SND_MAX /boot/config-lts
CONFIG_SND_MAX_CARDS=32

Ubuntu

$ grep SND_MAX /boot/config-$(uname -r)
CONFIG_SND_MAX_CARDS=32
2 Likes