deleting a playlist takes a very long time with version 0.19

Need help with MPD?
max
Forum team
Posts: 1128
Joined: January 15th, 2013, 3:43 pm

Re: deleting a playlist takes a very long time with version

Post by max »

Yes, this is meaningful, though all the overhead occurs in a code location where I wouldn't have expected it. I have one idea what it may be. Can you upload your MPD database file, so I can try to reproduce it over here?

tinub
Posts: 21
Joined: March 8th, 2016, 11:34 am

Re: deleting a playlist takes a very long time with version

Post by tinub »

sure i could, but according to my former uploading trials, i think that the upload limit is 256kB, while my database is 2.6MB.
so how can i upload?

tinub
Posts: 21
Joined: March 8th, 2016, 11:34 am

Re: deleting a playlist takes a very long time with version

Post by tinub »

i sent you the db by email. hope this is ok.

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

Re: deleting a playlist takes a very long time with version

Post by max »

Yes, got it. I had an idea, and your DB file confirms it. I may be able to write an optimization for this special case.

tinub
Posts: 21
Joined: March 8th, 2016, 11:34 am

Re: deleting a playlist takes a very long time with version

Post by tinub »

great!
i think it must be the playlist which is not deleted at once on an mpc clear, but on an entry-by-entry basis, which results in a non-linear increase of time when doing a delete-rearrange-delete-... sequence on a big playlist?

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

Re: deleting a playlist takes a very long time with version

Post by max »

No.

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

Re: deleting a playlist takes a very long time with version

Post by max »


tinub
Posts: 21
Joined: March 8th, 2016, 11:34 am

Re: deleting a playlist takes a very long time with version

Post by tinub »

i just installed the patch, and - it looks fine now!
thank you very much for the quick bugifx!!!!!!!!!!!!!!

there's one thing i don't understand:
with the 0.19.1 version i had before, mpd automatically started on boot.
now i installed the patched version over the existing 0.19.1, hoping that just the mpd file is replaced.
but neither does mpd start on boot, nor am i able to start it using /etc/init.d/mpd start
i first thought about a permission problem of /usr/bin/mpd, but this seems to be the same as before.

can you give me a hint on how to fix this?
thank you very much!

tinub
Posts: 21
Joined: March 8th, 2016, 11:34 am

Re: deleting a playlist takes a very long time with version

Post by tinub »

i think i found the reason why mpd does not start as a service:

the variable. pointing to the config file does not seem to be defined anymore after recompiling mpd, no idea why.
so the config file is not found any longer.
so the only workaround i found was to replace the variable by /etc/mpd.conf in the mpd.service file.

although this seems to be a dirty solution, it works at least ;-)

conta
Posts: 100
Joined: October 31st, 2013, 4:59 pm

Re: deleting a playlist takes a very long time with version

Post by conta »

Try it with this line:

Code: Select all

./configure --sysconfdir=/etc 
For me it works like this.
And sorry, if i misunderstood your problem and its something completely different. :)

tinub
Posts: 21
Joined: March 8th, 2016, 11:34 am

Re: deleting a playlist takes a very long time with version

Post by tinub »

ok, i checked this out:
- modified configure
- recompiled
- reinstalled
- changed /lib/systemd/System/mpd.service back to original
and mpd does not start anymore.

so i again replaced the Setting
ExecStart=/usr/bin/mpd --no-daemon $MPDCONF
with
ExecStart=/usr/bin/mpd --no-daemon /etc/mpd.conf

and it works again.

so for me, for the moment, this workaround is ok!

Post Reply