systemnd: configure LimitMEMLOCK for io_uring
The io_uring buffer is allocated as memlocked memory, as MPD needs to be able to lock memory.
This commit is contained in:
parent
068006ebd7
commit
c031f9aa5d
|
@ -16,6 +16,9 @@ ExecStart=@prefix@/bin/mpd --no-daemon
|
|||
LimitRTPRIO=40
|
||||
LimitRTTIME=infinity
|
||||
|
||||
# for io_uring
|
||||
LimitMEMLOCK=64M
|
||||
|
||||
# disallow writing to /usr, /bin, /sbin, ...
|
||||
ProtectSystem=yes
|
||||
|
||||
|
|
|
@ -16,6 +16,9 @@ ExecStart=@prefix@/bin/mpd --no-daemon
|
|||
LimitRTPRIO=40
|
||||
LimitRTTIME=infinity
|
||||
|
||||
# for io_uring
|
||||
LimitMEMLOCK=64M
|
||||
|
||||
# disallow writing to /usr, /bin, /sbin, ...
|
||||
ProtectSystem=yes
|
||||
|
||||
|
|
Loading…
Reference in New Issue