From owner-freebsd-current@FreeBSD.ORG Thu May 17 03:18:47 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 D795B106566C for ; Thu, 17 May 2012 03:18:47 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6C7698FC0C for ; Thu, 17 May 2012 03:18:47 +0000 (UTC) Received: by werg1 with SMTP id g1so1147750wer.13 for ; Wed, 16 May 2012 20:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; bh=mPX1aKP4Yyz5OISsUxiD6cRSKiTw/0OjvGYz/D3/gAg=; b=oLTjE4fFE+uTxBQMCkL76izqvoEtkAh6mzEpcTTfq7bmtXUd1DNzq3crckIeAidERx cUKqygsgKQMZZ2jDEcXuX0seUev0PMaPcPRxTUPc2lC+415awS5xgKPQvliGPqVhvKuo N62L4VowwN8CDC4UY7Ia4O0fCwkt1S72ttH9nle+r7Y+zAZj79hOq2TQFSu/GuzP7xNM mUmqalnAr6rsrNwJSqXNL3u89X7bJYDqb9GGlA7EJZ3jt7UEsLb8tYNlLk+um2olBw0e GxYeOqZDXpH/UVLAIRN2iWRHMqlkLe9pZBKq8LXdFrnDDOCyquCrTEf01c+KU+O/FhoZ mSUw== MIME-Version: 1.0 Received: by 10.180.82.136 with SMTP id i8mr13786224wiy.19.1337224726232; Wed, 16 May 2012 20:18:46 -0700 (PDT) Received: by 10.180.24.5 with HTTP; Wed, 16 May 2012 20:18:46 -0700 (PDT) Date: Wed, 16 May 2012 23:18:46 -0400 Message-ID: From: "b. f." To: freebsd-current@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Peter Jeremy Subject: Re: "make delete-old" performance. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2012 03:18:47 -0000 > I recently ran "make delete-old" on a -current box and felt it was > rather slow. That prompted me to do some more careful experiments. > > On one box where I have both 8-stable and 9-stable available, there > was a ~30x slowdown (based on 5 runs, ignoring the first). I don't > have a -current world on that box so I can't directly compare but on > another pair of fairly similar boxes, I get a ~180x slowdown between > 8-stable and -current (and that figure is probably optimistic since > the -current box was idle whereas the 8-stable box was fairly busy). > > I realise that "make delete-old" isn't something you nede to do every > day but going from sub-second to multi-minute duration is quite > noticable. Can anyone suggest what has caused the change? The slowdown is probably due - at least in part - to two factors: - the list of files to be checked for removal has grown substantially, because missing entries for old knobs and new entries for new knobs have been added; and - a new (and slower) method of checking was added in: http://svnweb.FreeBSD.org/base?view=revision&revision=220255 because the old method broke down with the size of the new lists of files. Some changes could be made to lessen the affect of the latter. b.