mpd slow to load large library

Need help with MPD?
Post Reply
hejops
Posts: 3
Joined: March 9th, 2015, 3:39 pm

mpd slow to load large library

Post by hejops »

My library contains about 80k tracks and upon login, it takes mpd about 2-3 minutes to start. The database is 18.1 MB large. Will max_command_list_size and max_output_buffer_size reduce the time it takes to start up, or is this just an inevitability I have to live with?

Cheers.

max
Forum team
Posts: 977
Joined: January 15th, 2013, 3:43 pm

Re: mpd slow to load large library

Post by max »

I say it is impossible for these settings to reduce startup time, because they affect only the MPD protocol and the playback engine, but not MPD's startup process.

I have only 34k songs, and my database is 1.2 MB. Restarting MPD is nearly seemless, only a small "pop". I wonder why your database file is 15x larger when you have only twice as many songs?

But maybe you should read this first: http://www.musicpd.org/help/

hejops
Posts: 3
Joined: March 9th, 2015, 3:39 pm

Re: mpd slow to load large library

Post by hejops »

Oh I see. Hmm, I don't know why my database file is that large honestly. My corresponding cmus library (which is just a list of complete filenames) is 11 MB.

Just checked that mpd version is 0.18.7. Perhaps I'll update it and see if it fares better.

Rasi
Forum team
Posts: 141
Joined: January 16th, 2013, 7:29 pm

Re: mpd slow to load large library

Post by Rasi »

hejops: lemme guess, you tagged your files with beets?

loving_it
Posts: 13
Joined: June 21st, 2013, 5:38 pm

Re: mpd slow to load large library

Post by loving_it »

I have just over 38K 'songs' and the mpd database is 13 MB. It's probably large because the library consists mostly of classical music, which tends, if you adapt the standard Artist/Album/Song scheme for classical purposes, to involve very long filenames:

Code: Select all

ls Music/Verdi\,\ Giuseppe/Don\ Carlo\ \(1886\ Modena\ version\)\ -\ Galina\ Gorchakova\,\ Dmitri\ Hvorostovsky\,\ Richard\ Margison\,\ Olga\ Borodina\,\ Roberto\ Scandiuzzi\,\ Robert\ Lloyd\,\ Chorus\ \&\ Orchestra\ of\ the\ Royal\ Opera\ House\ Covent\ Garden\,\ Bernard\ Haitink/
101 - ATTO PRIMO --- Su, cacciator!.flac                117 - La Regina!.flac                                 304 - Giustizia!.flac
102 - Fontainebleau! Foresta immensa e solitaria!.flac  201 - Io vengo a domandar grazia mia Regina.flac      305 - Ah! sii maledetto, sospetto fatale.flac
103 - Io la vidi e al suo sorriso.flac                  202 - Il Re!.flac                                     306 - Pietà! perdon! per la rea che si pente.flac
104 - Il suon del corno alfin nel bosco tace.flac       203 - Non piangar, mia compagna.flac                  307 - O don fatale.flac
105 - Al mio piè, perché.flac                           204 - Restate!.flac                                   308 - Son io, mio Carlo.flac
106 - Di qual amor, di quantardor.flac                  205 - Signor, di Fiandra arrivo.flac                  309 - Per me giunto è il di supremo.flac
107 - Al fedel chora viene, o signora.flac              206 - Osò lo sguardo tuo penetrar il mio soglio.flac  310 - O Carlo, ascolta.flac
108 - Lora fatale è suonata!.flac                       207 - ATTO TERZO --- Preludio.flac                    311 - Mio Carlo, a te la spada io rendo!.flac
109 - Inni di festa lieti echeggiate.flac               208 - A mezzanotte, ai giardin della Regina.flac      312 - ATTO QUINTO --- Tu che le vanità.flac
110 - Il glorioso Re di Francia, il grande Enrico.flac  209 - Al mio furor sfuggitte invano.flac              313 - Francia, nobile suol, si caro ai miei verdanni!.flac
111 - ATTO SECONDO --- Carlo il sommo Imperatore.flac   210 - Spuntato ecco il di desultanza.flac             314 - E dessa!.flac
112 - Al chiostro di San Giusto ove finì la vita.flac   211 - Sire, no, lora estrema.flac                     315 - Ma lassù ci vedremo in un mondo migliore.flac
113 - E lui! desso! lInfante!.flac                      212 - Sire! egli è tempo chio viva!.flac              316 - Si, per sempre!.flac
114 - Dio, che nellalma infodere.flac                   301 - ATTO QUATTRO --- Ella giammai mamò!.flac        cue-a50fca0c.txt
115 - Sotto ai folti, immensi abeti.flac                302 - Il Grande Inquisitor!.flac                      cue-c80ed111.txt
116 - Nei giardin del bello.flac                        303 - Nellispano suol mai leresia dominò.flac         cue-cd124410.txt
Nonetheless mpd and its clients are impressively responsive and fluid, except occasionally when a client is communicating via wi-fi.

(added: mpd version 0.18.7; clients are current stable gmpc, cantata & mpdroid)

hejops
Posts: 3
Joined: March 9th, 2015, 3:39 pm

Re: mpd slow to load large library

Post by hejops »

Nope. About 1/4 was done in iTunes, the rest when I moved to foobar.

I still haven't gotten around to upgrading mpd successfully since it fails to recognise pulse when I tried on a VM. But that's a story for another day.

I also haven't rechecked the startup time to see if it might've decreased (I think it might have, but I honestly don't know). Nonetheless I'm quite satisfied with mpd as is. I'll post again when I have more time to mess with mpd.

Thanks.

Post Reply