NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Reduce CPU usage of PulseAudio on NetBSD



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

The simplest way to reduce >90% CPU usage to <1% on a NetBSD host is
the following set of two commands (assuming running daemon):

pacmd "unload-module module-oss"
pacmd "load-module module-oss mmap=0 device=/dev/audio"

In general there is an assumption of Linux-like feature to efficiently
poll(2) mmap'ed region. This operation is very slow on NetBSD.

This is a temporary walk-around, I will be looking for a permanent one.

Credit: mlelstv and medfly from #netbsd @ FreeNode.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWeej7AAoJEEuzCOmwLnZsBegP/0MisTeZQ8Xmn67yI7ijvDAi
EQKopIdmLpk3onKlU9xb8F5nXpTy9nzII2WnuDsAjlpPXauWx+AcdFMUZ/wlM/Fm
JwVVYv3mIkqOnsdRCM/UExgreCL3xo9khVPsMeBYGjhkTb9etLGXuRiw5T5Hh9sN
jV8+KWD/JuFYp1Ug0vYcX1VhJZK8uMQY6oFhh13JHDVUBjJ3UNVN+ZZMuh6YV4Is
SAqnLp8DJ0/DDmNsZSo+1l1l3Euh4+wE0IDlPs/FmW/+A5Fz6W2ff3145pVtXiYV
FQRAXTicE8OeupvT3UxWB+tzwJAyrY6gXaqYDMxouJ27v/RcCBAs5NWYnniCnam9
B9Wj1he3LvUKQjYMD6WkG6AHvRU5i3yvYqSajZIcsvJOKSGl+FlhTVnELXDnz5yL
zEKskH74LsStxDW+Q4u34Mh20lUrSzLsfy1byhIsL7ZdIbY8YbtcdzT+8yDdDw/e
kSYVbAeFqfazaDgOYqe4leqQpJ888Of4saoct8T2z0/RZWBJ1oRqoj/Lroopj9Hp
36t5awogZwtVW4Vq5sVmYRbFa8BSgr2H/YVxZokLwgHpdgBzH4b7AODIGkjPDkW4
6jhAagFDq3DbkAqaT+H/QE4/MZm0wvEQDsKgANYW/PdNEW5V+QD7eaeEz0nH57hh
Nh4Eeic/w0XUimCeQ02L
=+2Mi
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index