Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Sep 2004 20:25:40 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz>
Cc:        Kris Kennaway <kris@obsecurity.org>
Subject:   Re: Very very slow
Message-ID:  <20040928032540.GA62632@xor.obsecurity.org>
In-Reply-To: <4158AD01.401@daleco.biz>
References:  <2D8BB15C7B5C214F81C32D3A83B32736013D46C8@idbexc01.americas.cpqcorp.net> <20040927081638.GA26247@math.jussieu.fr> <20040927184827.GB31494@xor.obsecurity.org> <4158AD01.401@daleco.biz>

next in thread | previous in thread | raw e-mail | index | archive | help

--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Sep 27, 2004 at 07:14:57PM -0500, Kevin D. Kinsey, DaleCo, S.P. wro=
te:
> Kris Kennaway wrote:
>=20
> >On Mon, Sep 27, 2004 at 10:16:38AM +0200, Albert Shih wrote:
> >=20
> >
> >>	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.
> >>  =20
> >>
> >
> >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
> >=20
> >
>=20
> Hmm.  Didn't take that long here.=20
>=20
> Celeron 2.4, 768MB DDR, full src
> (enough to buildworld on 5.2.1-p3, anyway):
>=20
> <kadmin@archangel> [/usr/src] [19:10]
> % sudo time find . -type f -print > /dev/null
>=20
>        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

--ZPt4rx8FFjLCG7dd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBWNmzWry0BWjoQKURAmtHAKCujwqIvf06cxAMkcE5VW+MFzfH4QCfWEIz
/JxLJxlMimaLbVGztL2B2bs=
=XPsu
-----END PGP SIGNATURE-----

--ZPt4rx8FFjLCG7dd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040928032540.GA62632>