--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: forked-daapd: scans whole DB on startup which takes ages
- From: Tino Keitel <tino.keitel+debbugs@tikei.de>
- Date: Sun, 04 Mar 2012 11:21:48 +0100
- Message-id: <20120304102148.12593.45133.reportbug@mac.home>
Package: forked-daapd
Version: 0.19gcd-2
Severity: normal
Hi,
whenever I start forked-daapd it takes several minutes until it gets usable.
When I start it using the command
$ forked -f -d 4 -D db,scan,config
I see thousands of lines like this:
db: Running query 'SELECT f.id, f.db_timestamp FROM files f WHERE f.path =
'/home/storage2/mp3/music/Tomte/Hinter all diesen Fenstern/08 -
Insecuritate.mp3';'
It looks like it scans the whole library. There is no high disk usage or CPU
load during this, but it takes a view minutes. Forked-daapd does not react
to ctrl-C or SIGTERM for a while in that situation. When I try to access
forked-daapd using rhythmbox, it takes ~30 seconds to get the available
music.
I expect forked-daapd to be instantly ready when nothing was changed in the
library, and only scan files that changed since the last DB update, which
should be fast enough. I also expect forked-daapd to respond to SIGTERM
within a few seconds.
Regards,
Tino
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.3.0-rc5-00066-g500dd23 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages forked-daapd depends on:
ii adduser 3.113+nmu1
ii avahi-daemon 0.6.30-6
ii libantlr3c-3.2-0 3.2-2
ii libasound2 1.0.25-2
ii libavahi-client3 0.6.30-6
ii libavahi-common3 0.6.30-6
ii libavcodec53 5:0.10-0.1
ii libavformat53 5:0.10-0.1
ii libavl1 0.3.5-3
ii libavutil51 5:0.10-0.1
ii libblocksruntime0 0.1-1
ii libc6 2.13-27
ii libconfuse0 2.7-4
ii libdispatch0 0~svn197-3
ii libflac8 1.2.1-6
ii libgcrypt11 1.5.0-3
ii libgpg-error0 1.10-3
ii libmxml1 2.6-2
ii libplist1 1.8-1
ii libsqlite3-0 3.7.10-1
ii libswscale2 5:0.10-0.1
ii libtag1c2a 1.7-2
ii libtagc0 1.7-2
ii libtre5 0.8.0-2
ii libunistring0 0.9.3-5
ii psmisc 22.16-1
ii zlib1g 1:1.2.6.dfsg-2
forked-daapd recommends no packages.
forked-daapd suggests no packages.
-- Configuration Files:
/etc/forked-daapd.conf changed [not included]
-- no debconf information
--- End Message ---