From owner-freebsd-fs@FreeBSD.ORG Fri Aug 26 20:52:48 2011 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4B37106566C; Fri, 26 Aug 2011 20:52:48 +0000 (UTC) (envelope-from mckusick@mckusick.com) Received: from chez.mckusick.com (chez.mckusick.com [70.36.157.235]) by mx1.freebsd.org (Postfix) with ESMTP id 83F3D8FC14; Fri, 26 Aug 2011 20:52:48 +0000 (UTC) Received: from chez.mckusick.com (localhost [127.0.0.1]) by chez.mckusick.com (8.14.3/8.14.3) with ESMTP id p7QKqpen039191; Fri, 26 Aug 2011 13:52:51 -0700 (PDT) (envelope-from mckusick@chez.mckusick.com) Message-Id: <201108262052.p7QKqpen039191@chez.mckusick.com> To: lev@freebsd.org In-reply-to: <1963980291.20110826232758@serebryakov.spb.ru> Date: Fri, 26 Aug 2011 13:52:51 -0700 From: Kirk McKusick X-Spam-Status: No, score=0.0 required=5.0 tests=MISSING_MID, UNPARSEABLE_RELAY autolearn=failed version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on chez.mckusick.com Cc: fs@freebsd.org Subject: Re: Strange behaviour of UFS2+SU FS on FreeBSD 8-Stable: dreadful perofrmance for old data, excellent for new. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 20:52:48 -0000 > Date: Fri, 26 Aug 2011 23:27:58 +0400 > From: Lev Serebryakov > Organization: FreeBSD Project > To: Kirk McKusick > Cc: fs@freebsd.org > Subject: Re: Strange behaviour of UFS2+SU FS on FreeBSD 8-Stable: dreadful > perofrmance for old data, excellent for new. > > Hello, Kirk. > > You wrote 26 August 2011, 22:33:43: > > > If your old disk was full for a long time and had a lot of activity, > > the most recently created files are likely to have poor layout. > > Copying them should give them an improved layout now that much > > more space is available. Best is to copy one, then remove the=20 > > original copy. Copy the next one and remove its old copy, etc. > > Please let me know if this works, as if it does not, something > > is wrong with growfs. > > Ok, I'll write script for this monotonous work :) I could even copy > them one-by-one via other file system )copy out, delete, copy in). > Will it be better or not? > > -- > // Black Lion AKA Lev Serebryakov Given how much bigger your new filesystem has grown, copying out to another filesystem should not be necessary. However, it will likely be quicker to copy out to another filesystem as you will be using two spindles instead of seeking back and forth on one. But before doing all that work, try copying one file to ensure that you get the expected speedup. Kirk McKusick