1 |
On Wednesday 17 November 2010 20:10:54 Yohan Pereira wrote: |
2 |
> On Thursday 18 Nov 2010 1:17:09 am Alan McKinnon wrote: |
3 |
> > Let's compare then. My system is 4 minutes to re-index everything from |
4 |
> > scratch. How long does your take and how big is your filesystem? |
5 |
> |
6 |
> time updatedb |
7 |
> real 1m35.163s |
8 |
> user 0m0.815s |
9 |
> sys 0m2.454s |
10 |
> |
11 |
> this was the first time i ran it after installation. i had uinstalled |
12 |
> slocate prior to this. |
13 |
> |
14 |
> PRUNEPATHS="/tmp /var/tmp /root/.ccache /media/stuff/backup/gentoo32" |
15 |
> |
16 |
> the last folder is my 32bit chroot. |
17 |
> and i got arround 225 gb of data. i tried running a few qurries .. seems to |
18 |
> have indexed everything |
19 |
> |
20 |
> also after this i tried deleting /var/lib/mlocate/mlocate.db and then |
21 |
> running updatedb and it hardly took a second. |
22 |
> |
23 |
> time updatedb |
24 |
> |
25 |
> real 0m0.367s |
26 |
> user 0m0.193s |
27 |
> sys 0m0.167s |
28 |
> |
29 |
> weird indeed. |
30 |
|
31 |
I can't be doing this right ... |
32 |
|
33 |
I removed /var/lib/mlocate/mlocate.db, the ran updatebd: |
34 |
|
35 |
# time -p updatedb |
36 |
real 113.22 |
37 |
user 0.62 |
38 |
sys 8.00 |
39 |
|
40 |
Then removed it again and run it again: |
41 |
|
42 |
# time updatedb |
43 |
|
44 |
real 0m1.063s |
45 |
user 0m0.162s |
46 |
sys 0m0.896s |
47 |
|
48 |
Why is the second time so much faster? The size of the derived db was the |
49 |
same on both occasions. |
50 |
-- |
51 |
Regards, |
52 |
Mick |