From owner-freebsd-current@FreeBSD.ORG Wed May 30 03:27:24 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 62D741065677 for ; Wed, 30 May 2012 03:27:24 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (host-122-100-2-194.octopus.com.au [122.100.2.194]) by mx1.freebsd.org (Postfix) with ESMTP id 363F68FC0A for ; Wed, 30 May 2012 03:27:21 +0000 (UTC) Received: from server.rulingia.com (c220-239-254-65.belrs5.nsw.optusnet.com.au [220.239.254.65]) by vps.rulingia.com (8.14.5/8.14.5) with ESMTP id q4U3R9e0057266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 30 May 2012 13:27:10 +1000 (EST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.5/8.14.5) with ESMTP id q4U3R3wj023069 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 May 2012 13:27:03 +1000 (EST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.5/8.14.5/Submit) id q4U3R3w5023068; Wed, 30 May 2012 13:27:03 +1000 (EST) (envelope-from peter) Date: Wed, 30 May 2012 13:27:03 +1000 From: Peter Jeremy To: Dmitry Marakasov Message-ID: <20120530032703.GA99357@server.rulingia.com> References: <20120527140541.GL2987@hades.panopticon> <20120528094427.GE2675@aspire.rulingia.com> <20120528195542.GB85856@hades.panopticon> <20120528200403.GB15356@server.rulingia.com> <20120528221825.GB38860@hades.panopticon> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <20120528221825.GB38860@hades.panopticon> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org Subject: Re: OptionalObsoleteFiles.inc completeness X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2012 03:27:24 -0000 --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2012-May-29 02:18:25 +0400, Dmitry Marakasov wrote: >* Peter Jeremy (peter@rulingia.com) wrote: >> My experience is that it now takes about 2=BD minutes on 10.x with warm >> caches, compared to less than 1 second on 8.x. > >Now =3D after applying my patch or after changing system? Which knobs >were enabled? "Now" as in -current as against 8.x. But, that 2=BD mins was wrong, sorry. I recalled "150s" but actually checking, it's really 1:50 (100s). It occurred to me that was an oldish -current (r235127) so I updated to r236183 and the time dropped to 107s. Since this is an oldish P4, I tried a UP kernel and that reduced it to 96s. Your patch made no noticable change (ministat reported no difference with 95% confidence). The system is amd64 with no MK_* knobs defined. >Then you should try to profile it - my script basically runs >delete-old delete-old-libs for every knob (131 of them), and it >hadn't taken more than 4 seconds even once. I've done some investigating and the problem is that "xargs -n1" fork()/exec()s /bin/echo on each file (and there are 5538 files for me). Changing this to "tr ' ' '\n'" reduces "make delete-old" runtime to 1.75s - which is much nicer. I've checked a variety of other systems running 8.x & 9.x and the 97s seems to be anomalously long so I'll do some more investigating. --=20 Peter Jeremy --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/Fk4cACgkQ/opHv/APuIc2CwCfTCRGnAQdfyLaPPezvwRmH42q LRgAniwAUVjbXZIddW/AOgTlhH7ETja+ =M2/y -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3--