From owner-freebsd-questions@FreeBSD.ORG Tue Sep 28 03:25:13 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A335D16A4CF for ; Tue, 28 Sep 2004 03:25:13 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 744D643D41 for ; Tue, 28 Sep 2004 03:25:13 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 4BE8251385; Mon, 27 Sep 2004 20:25:40 -0700 (PDT) Date: Mon, 27 Sep 2004 20:25:40 -0700 From: Kris Kennaway To: "Kevin D. Kinsey, DaleCo, S.P." Message-ID: <20040928032540.GA62632@xor.obsecurity.org> References: <2D8BB15C7B5C214F81C32D3A83B32736013D46C8@idbexc01.americas.cpqcorp.net> <20040927081638.GA26247@math.jussieu.fr> <20040927184827.GB31494@xor.obsecurity.org> <4158AD01.401@daleco.biz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <4158AD01.401@daleco.biz> User-Agent: Mutt/1.4.2.1i cc: "Sheets, Jason \(OZ CEEDR\)" cc: Albert Shih cc: freebsd-questions@freebsd.org cc: Kris Kennaway Subject: Re: Very very slow X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 03:25:13 -0000 --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 > [/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--