Apparently, though unproven, at 22:10 on Wednesday 17 November 2010, Yohan Pereira did opine thusly:
> On Thursday 18 Nov 2010 1:17:09 am Alan McKinnon wrote: > > Let's compare then. My system is 4 minutes to re-index everything from > > scratch. How long does your take and how big is your filesystem? > > time updatedb > real 1m35.163s > user 0m0.815s > sys 0m2.454s > > this was the first time i ran it after installation. i had uinstalled > slocate prior to this. You must also delete the old slocate.db as you do not know for certain whether it does or does not affect the initial run of mlocate's updatedb > PRUNEPATHS="/tmp /var/tmp /root/.ccache /media/stuff/backup/gentoo32" > > the last folder is my 32bit chroot. > and i got arround 225 gb of data. i tried running a few qurries .. seems to > have indexed everything > > also after this i tried deleting /var/lib/mlocate/mlocate.db and then > running updatedb and it hardly took a second. > > time updatedb > > real 0m0.367s > user 0m0.193s > sys 0m0.167s > > weird indeed. Not at all weird. The db is probably less than 100M. It's probably in your kernel's fs cache, especially as you implied you deleted the file then ran updatedb immediately. Rather delete the db, reboot, then run updatedb -- alan dot mckinnon at gmail dot com