From owner-freebsd-questions@FreeBSD.ORG Wed Aug 17 20:33:18 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA72216A41F for ; Wed, 17 Aug 2005 20:33:18 +0000 (GMT) (envelope-from feenberg@nber.org) Received: from mail1.nber.org (mail1.nber.org [66.251.72.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33D4043D55 for ; Wed, 17 Aug 2005 20:33:17 +0000 (GMT) (envelope-from feenberg@nber.org) Received: from mail1 (root@localhost) by mail1.nber.org (8.12.8/8.12.8) with SMTP id j7HKX7Os007611 for ; Wed, 17 Aug 2005 16:33:07 -0400 Received: from nber6.nber.org (nber6.nber.org [66.251.72.76]) by mail1.nber.org (8.12.8/8.12.8) with ESMTP id j7HKW8JM007527; Wed, 17 Aug 2005 16:32:08 -0400 Date: Wed, 17 Aug 2005 16:32:08 -0400 (EDT) From: Daniel Feenberg To: questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Mohan Ramanujan , Alex Aminoff Subject: Re: Making UFS snapshots X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2005 20:33:18 -0000 I notice on this list that Garance Drosehn reports making a snapshot of a 4 gigabyte filesystem in less than one second. We have a 859 gigabyte filesystem and snapshots take about 75 minutes to complete. Once done they appear to be exactly as advertised. Since we don't yet have any actual files on the filesystem, we anticipated snapshots would be near instantaneous. Even if time were linear in gross filesystem size it should still be done in a minute or so. During this time any other activity referencing (even reads) that filesystem is blocked. Drive activity is continuous all during the 75 minutes, but cpu usage is only a few percent. The filesystem is on 4 300 gigabyte Maxtor SATA drives with a 3ware 9500S-8 controller in raid-5 mode and using the FreeBSD supplied driver. Another poster suggested reducing the number of inodes. Using "tunefs -f" to increase the average file size from 16K to 64K reduced the time to create a snapshot to 45 minutes. The snapshot size doesn't change. The mdconfig and mounting the memory device take only a fraction of a second - it is only making the snapshot file that takes so long. This is with FreeBSD 5.4 Release #0 (right off the distribution disk, no additional software). Is there likely a problem with our setup, or should we give up on the plan of nightly snapshots? Is this a product of Raid 5, 3ware, super-linearity or to be expected? Thanks Daniel Feenberg National Bureau of Economic Research feenberg isat nber dotte org 617-588-0343