File pipewire.service.d-system-limits.conf of Package pipewire
[Unit]
Wants=pipewire-media-session.service
[Service]
NoNewPrivileges=false
# https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2279348.html
CapabilityBoundingSet=CAP_SYS_NICE CAP_DAC_READ_SEARCH CAP_SYS_CHROOT CAP_SETGID CAP_SETUID
AmbientCapabilities=CAP_SYS_NICE CAP_DAC_READ_SEARCH CAP_SYS_CHROOT CAP_SETGID CAP_SETUID
LimitMEMLOCK=4G
LimitAS=4G
MemoryMax=4G
LimitNOFILE=32768
LimitMSGQUEUE=1048576
LimitSIGPENDING=98304
LimitRTPRIO=46:49
RestrictRealtime=false
# these will only apply to the main thread
Nice=-14
CPUSchedulingPolicy=fifo
CPUSchedulingPriority=6
CPUSchedulingResetOnFork=false
IOSchedulingClass=1
IOSchedulingPriority=3
OOMScoreAdjust=-999
TimerSlackNSec=332