From owner-freebsd-stable@FreeBSD.ORG Thu Jun 12 02:24:51 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B40F51065672 for ; Thu, 12 Jun 2008 02:24:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by mx1.freebsd.org (Postfix) with ESMTP id 7F51B8FC14 for ; Thu, 12 Jun 2008 02:24:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so4096245rvf.43 for ; Wed, 11 Jun 2008 19:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=xmIemrNMsacqWHKpPhEV5rMq9wXvdr07eTk1jJiwd/U=; b=alKkenkTXqldgc7AExe2yF9Yq9EyH7CHPHJnyHsLapidWT+vse7QWNETuHObymDcvM 4Nfq2Ka/T9fFrPXQE9d30QFA2GsVN8qZlXCucMts2+XcdcijgMFNLD7ezUvSE8mSicb6 8P3Yhy6lrxd8w1HLGa6aJIK+6aHm2ohGGjGYk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=irSp0n8oLFOdeJW1f9yl9msZ81p2M9CpPNQ9LQEkVOeUd5dq0SiyYUCMegyaTF31hY oQxxOcZg3Fl1ukb6kzxeXz92lbllFR34bqB/H7dRUfk8/L3qGzxH9Qbd1pwvZImpnZoN Zf2NfeNoGHOhlqqka6noeTtR3tDMxEDnfvYx8= Received: by 10.141.88.3 with SMTP id q3mr524858rvl.3.1213237491087; Wed, 11 Jun 2008 19:24:51 -0700 (PDT) Received: by 10.141.70.11 with HTTP; Wed, 11 Jun 2008 19:24:24 -0700 (PDT) Message-ID: Date: Thu, 12 Jun 2008 10:24:24 +0800 From: "Adrian Chadd" Sender: adrian.chadd@gmail.com To: Paul In-Reply-To: <20080611173211.A899C1E9E@fep5.cogeco.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080611173211.A899C1E9E@fep5.cogeco.net> X-Google-Sender-Auth: 6ef4054d1c82bc36 Cc: freebsd-stable@freebsd.org Subject: Re: Areca Raid 6 ARC-1231 Raid 6 Slow LS Listing Performance on large directory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 02:24:51 -0000 2008/6/12 Paul : > 1) When I do a ls -lh on the raid 6 array with 6 disks in the array it takes > aver 16 seconds before it starts to display anything on the screen. > 2) While running a tar command on another shell, the time goes to 28 seconds > for the same list to start showing. > 3) When I do a ls (with no other options) it starts to list right away. > 4) When I do a ls -ln it displays right away as well pointing to the > slowdown being the mapping of the users in the db lookup. > > I have the same directory with the same number of files on a Raid 5 SCSI > partition on Freebsd 4.X and it only takes 2 seconds to start displaying the > list with the command ls -lh. > > Any ideas why it takes so long for this on Freebsd 7.0 stable? > > The partition this folder is on it /dev/da0s1f with a total size of 1.7T > and a usage of 63G > > Any suggestions or help on this would be greatly appreciated. Could you please do a couple of other tests, if you're able to? I've got a PR to look into this issue. Could you see if using a smaller password file makes the ls start/run quicker? Could you possibly run ls inside "truss" on both FreeBSD-4 and FreeBSD-7 and email me a snippet of the output (say, a few hundred lines) ? Something like: truss ls >foo 2>&1 Thanks, Adrian -- Adrian Chadd - adrian@freebsd.org