We have collected the most relevant information on Pulseaudio Realtime-Scheduling. Open the URLs, which are collected below, and you will find all the info you are interested in.
Ubuntu Manpage: pulseaudio - The PulseAudio Sound System
https://manpages.ubuntu.com/manpages/xenial/man1/pulseaudio.1.html
Unfortunately this is a security risk on most systems, since PulseAudio runs as user process, and giving realtime scheduling privileges to a user process always comes with the risk that the user misuses it to lock up the system -- which is possible since making a process real-time effectively disables preemption.
Ubuntu Manpage: pulseaudio - The PulseAudio Sound System
https://manpages.ubuntu.com/manpages/focal/man1/pulseaudio.1.html
--realtime[=BOOL] Try to acquire a real-time scheduling for PulseAudio's I/O threads. This will only succeed if the calling user has a non-zero RLIMIT_RTPRIO resource limit set (on systems that support this), or rtkit is available and allows PulseAudio to enable real-time scheduling, or we are configured to be run as system daemon (see --system ...
pulseaudio(1) — pulseaudio — Debian buster — Debian …
https://manpages.debian.org/buster/pulseaudio/pulseaudio.1.en.html
Unfortunately this is a security risk on most systems, since PulseAudio runs as user process, and giving realtime scheduling privileges to a user process always comes with the risk that the user misuses it to lock up the system -- which is possible since making a process real-time effectively disables preemption.
pulseaudio - man pages section 1: User Commands
https://docs.oracle.com/cd/E88353_01/html/E37839/pulseaudio-1.html
Please note that enabling real-time scheduling is a security risk (see below). Group pulse-access: if PulseAudio is running as a system daemon (see --system above) access is granted to members of this group when they connect via AF_UNIX sockets. If PulseAudio is running as a user daemon this group has no meaning.
pulse-daemon: PulseAudio daemon configuration file - …
https://www.systutorials.com/docs/linux/man/5-pulse-daemon/
realtime-priority= The realtime priority to acquire, if realtime-scheduling is enabled. Note: JACK uses 10 by default, 9 for clients. Thus it is recommended to choose the PulseAudio real-time priorities lower. Some PulseAudio threads might choose a priority a little lower or higher than the specified value. Defaults to 5.
Now you know Pulseaudio Realtime-Scheduling
Now that you know Pulseaudio Realtime-Scheduling, we suggest that you familiarize yourself with information on similar questions.