From owner-freebsd-current@FreeBSD.ORG Wed Jul 20 11:43:22 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC5D216A41F for ; Wed, 20 Jul 2005 11:43:22 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A51843D48 for ; Wed, 20 Jul 2005 11:43:21 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j6KBhHp9054000; Wed, 20 Jul 2005 06:43:17 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <42DE38D3.8010606@centtech.com> Date: Wed, 20 Jul 2005 06:43:15 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050603 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Skylar Thompson References: <42DD64AB.3000605@centtech.com> <20050720040336.GA69292@quark.cs.earlham.edu> In-Reply-To: <20050720040336.GA69292@quark.cs.earlham.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/984/Tue Jul 19 04:16:09 2005 on mh1.centtech.com X-Virus-Status: Clean Cc: FreeBSD Current Subject: Re: mksnap_ffs takes 4-5 minutes? 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, 20 Jul 2005 11:43:23 -0000 Skylar Thompson wrote: > On Tue, Jul 19, 2005 at 03:38:03PM -0500, Eric Anderson wrote: > >>Last week, I tried making a snapshot of one of my NFS servers' >>partitions. I've done this one other machines before, with smaller >>barely used partitions, and it has always been relatively snappy. >> >>This time, when I ran mksnap_ffs, the command took nearly 5 minutes, in >>which time all NFS traffic was suspended, as well as all disk access on >>the machine. After reading in the FreeBSD Implementation book >>(McKusick), it claims it should be very very fast. >> >>Anyone know why it should take so long to do this snapshot? Is this >>expected normal behaviour, or should I expect faster snapshots? >> >>Here's some info on the filesystem: >>Filesystem 1K-blocks Used Avail Capacity iused ifree >>%iused Mounted on >>/dev/da1s1d 406234604 91799154 281936682 25% 1300303 51197103 >> 2% /scr03 >> >>/dev/da1s1d on /scr03 (ufs, NFS exported, local, soft-updates) > > > Does that filesystem have a lot of open files? I believe all busy inodes > have to be copied in the snapshot process. > It probably did, however I ran the same test on a filesystem even larger (15million used inodes, 229million inodes free), that took 30minutes, with no open files! Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology A lost ounce of gold may be found, a lost moment of time never. ------------------------------------------------------------------------