Very very slow

Kris Kennaway kris at obsecurity.org
Mon Sep 27 20:25:13 PDT 2004


On Mon, Sep 27, 2004 at 07:14:57PM -0500, Kevin D. Kinsey, DaleCo, S.P. wrote:
> Kris Kennaway wrote:
> 
> >On Mon, Sep 27, 2004 at 10:16:38AM +0200, Albert Shih wrote:
> > 
> >
> >>	32 sec to do
> >>
> >>cd /usr/src
> >>time find . -type f -print > /dev/null
> >>
> >>and on other computer I just need 0.8 sec to do that.
> >>   
> >>
> >
> >I don't believe that, unless you already have all of /usr/src in
> >cache.  32 seconds seems quite normal for searching and reading ~55000
> >directory entries (on the machine I just tried it took 42 seconds).
> >
> >Kris
> > 
> >
> 
> Hmm.  Didn't take that long here. 
> 
> Celeron 2.4, 768MB DDR, full src
> (enough to buildworld on 5.2.1-p3, anyway):
> 
> <kadmin at archangel> [/usr/src] [19:10]
> % sudo time find . -type f -print > /dev/null
> 
>        3.60 real         0.34 user         1.86 sys

I can only reproduce those kind of numbers when everything is already
cached:

> /usr/bin/time find /usr/src/ -type f -print > /dev/null
       45.28 real         0.30 user         1.51 sys
> /usr/bin/time find /usr/src/ -type f -print > /dev/null
        1.34 real         0.26 user         1.07 sys

If your system is quiet, /usr/src may still be cached from the last
nightly run of locate.updatedb.

Try running the test from single-user mode after the system has just
been rebooted.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040927/5e31e367/attachment.bin


More information about the freebsd-questions mailing list