You are not logged in.

#1 2026-08-18 16:53:38

ramibb
Member
Registered: 2014-12-26
Posts: 4

mpd-sacd compile issue

Hi everyone,

I would like to highlight a performance issue with the current AUR package configuration for the SACD-enabled MPD fork.

It builds MPD using Meson’s `buildtype=plain`. On low-power hardware, this can severely affect playback performance, particularly with large SACD ISO files stored on NFS. In my case, 4 GB ISO images would cause high CPU usage and audible dropouts.

Rebuilding MPD with:


--buildtype=debugoptimized -Db_ndebug=true


resolved the issue completely. The same files now play flawlessly over NFS.

My player is a Dell Wyse 3040 with an Intel Atom x5-Z8350 and 2 GB RAM, so this may be especially relevant to users running MPD on lightweight systems. It would be worth considering an optimized build type for the AUR package.

Last edited by ramibb (2026-08-18 16:55:02)

Offline

#2 2026-08-18 17:05:06

loqs
Member
Registered: 2014-03-06
Posts: 19,037

Re: mpd-sacd compile issue

Post a comment on https://aur.archlinux.org/packages/mpd-sacd so the AUR packages maintainer is aware of your suggestion.  The PKGBUILD as is appears to me to be following Meson Package Guidelines Using arch-meson wrapper script.

Offline

#3 2026-08-18 17:14:55

ramibb
Member
Registered: 2014-12-26
Posts: 4

Re: mpd-sacd compile issue

It's not the same credentials and I cannot register (503 Service Temporarily Unavailable).
Will try again another day
Thanks.

Offline

#4 2026-08-18 17:27:40

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,387

Re: mpd-sacd compile issue

Registering for aur is blocked atm due to recent mass malware attacks by newly created accounts.

The recommended buildtype for meson is plain because archlinux has its own optimization settings that are set through CFLAGS in makepkg.conf.

Using other buildtypes typically overwrites all those flags causing all kinds of issues.

EDIT
If your build system is the same (processortype) as the one that will run the package you can try replacing
-march=x86-64 -mtune=generic with -march=native which will use the optimizations supported by the processortype its build on .

Last edited by Lone_Wolf (2026-08-18 17:33:41)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2026-08-18 17:43:34

ramibb
Member
Registered: 2014-12-26
Posts: 4

Re: mpd-sacd compile issue

I understand the rationale for using `buildtype=plain` in Arch packages and am not asking you to change it without considering the distribution build flags.

For clarity, the problematic build is the current AUR package on Arch Linux. My successful build was compiled manually from the same SACD-enabled MPD fork on Ubuntu, using `--buildtype=debugoptimized -Db_ndebug=true`.

The result is reproducible on my Dell Wyse 3040 (Atom x5-Z8350, 2 GB RAM): with the AUR package, playback of large SACD ISO files over NFS causes sustained high CPU usage and audio dropouts. With my manual Ubuntu build, the same files, hardware, and network play flawlessly.

I cannot yet say whether the difference is Meson build type, the effective compiler flags, assertions, or another packaging difference. But the current AUR build does not work reliably for this use case, while the manual build does.

Offline

#6 2026-08-18 17:56:40

euromatlox
Member
Registered: 2017-02-10
Posts: 153

Re: mpd-sacd compile issue

Lone_Wolf wrote:

Registering for aur is blocked atm due to recent mass malware attacks by newly created accounts.

Is this current behavior related to this:

aur.archlinux.org responses to ping, but HTTP/S does not work...so no access to AUR content.

Browser says: ERR_CONNECTION_CLOSED

AUR helper says: request failed: URL : EOF

Hopefully just temporary server error or maintenance, but if not, please provide some more information. Thanks!

If some IP address ranges (like mine) blocked, what's the procedure for re-enabling ?

Last edited by euromatlox (2026-08-18 17:58:11)

Offline

#7 2026-08-18 20:25:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Offline

Board footer

Powered by FluxBB