You are not logged in.

#1 2021-04-17 22:48:24

mbc
Member
Registered: 2021-01-26
Posts: 17

[SOLVED] mpd.service not automatically configuring io_uring

I am unable to get mpd.service to configure io_uring.

It's my understanding in this thread https://bbs.archlinux.org/viewtopic.php?id=262306 that if mpd.service is running, io_uring would automatically be configured to use the needed memory.

However, when I run mpd.service as a user, I still get the error message:

mpd.service - Music Player Daemon
     Loaded: loaded (/usr/lib/systemd/user/mpd.service; disabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-04-17 14:58:42 PDT; 40min ago
TriggeredBy: ● mpd.socket
       Docs: man:mpd(1)
             man:mpd.conf(5)
   Main PID: 93124 (mpd)
      Tasks: 7 (limit: 19073)
     Memory: 16.3M
        CPU: 212ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/mpd.service
             └─93124 /usr/bin/mpd --no-daemon

Apr 17 14:58:42 arch systemd[750]: Starting Music Player Daemon...
Apr 17 14:58:42 arch mpd[93124]: Apr 17 14:58 : exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
Apr 17 14:58:42 arch mpd[93124]: Failed to initialize io_uring: io_uring_queue_init() failed: Cannot allocate memory
Apr 17 14:58:42 arch systemd[750]: Started Music Player Daemon.

I have checked  /usr/lib/systemd/user/mpd.service and confirmed that the line

LimitMEMLOCK=64M 

is present.

For the life of me, I cannot figure why this isn't working as expected. Any help would be appreciated.

Last edited by mbc (2021-04-18 17:06:08)

Offline

#2 2021-04-18 05:40:46

jocheem67
Member
Registered: 2009-11-09
Posts: 243

Re: [SOLVED] mpd.service not automatically configuring io_uring

Hi,

The linked thread states that you should configure /etc/security/limits.conf or etc/systemd/user.conf. I run mpd and I don´t think it has any consequences to not configure it. Am not certain though.

Offline

#3 2021-04-18 16:39:20

mbc
Member
Registered: 2021-01-26
Posts: 17

Re: [SOLVED] mpd.service not automatically configuring io_uring

Yeah, I'm aware I can configure those files. What I'm curious about is the part where the poster says that running mpd as a service should automatically configure it. On my system, that doesn't seem to be the case, and I'd like to know if I'm doing something wrong. I am running mpd.service as a user - could that be it?

Offline

#4 2021-04-18 16:54:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,668

Re: [SOLVED] mpd.service not automatically configuring io_uring

I'd say you definitely need to have the limits set higher earlier as an user service runs as your user and has the same limitations and cannot go over the limits defined on a system scale.

Offline

#5 2021-04-18 17:05:38

mbc
Member
Registered: 2021-01-26
Posts: 17

Re: [SOLVED] mpd.service not automatically configuring io_uring

V1del wrote:

I'd say you definitely need to have the limits set higher earlier as an user service runs as your user and has the same limitations and cannot go over the limits defined on a system scale.

This makes sense. Thank you so much. I'm going to consider this solved.

Offline

Board footer

Powered by FluxBB