From owner-freebsd-current@FreeBSD.ORG Wed Jul 20 13:05:49 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 DBBF416A41F; Wed, 20 Jul 2005 13:05:49 +0000 (GMT) (envelope-from riggs@rrr.de) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4947743D4C; Wed, 20 Jul 2005 13:05:34 +0000 (GMT) (envelope-from riggs@rrr.de) Received: from mail.m-online.net (svr20.m-online.net [192.168.3.148]) by mail-out.m-online.net (Postfix) with ESMTP id EA25EFCB1; Wed, 20 Jul 2005 15:05:32 +0200 (CEST) Received: from marvin.riggiland.au (ppp-62-245-162-72.mnet-online.de [62.245.162.72]) by mail.m-online.net (Postfix) with ESMTP id 5C936C6C83; Wed, 20 Jul 2005 15:05:31 +0200 (CEST) Received: from marvin.riggiland.au (localhost [127.0.0.1]) by marvin.riggiland.au (8.13.3/8.13.3) with ESMTP id j6KD5R1D066474; Wed, 20 Jul 2005 15:05:28 +0200 (CEST) (envelope-from riggs@marvin.riggiland.au) Received: (from riggs@localhost) by marvin.riggiland.au (8.13.3/8.13.3/Submit) id j6KD5PSX066473; Wed, 20 Jul 2005 15:05:25 +0200 (CEST) (envelope-from riggs) Date: Wed, 20 Jul 2005 15:05:23 +0200 From: "Thomas E. Zander" To: Eric Anderson Message-ID: <20050720130523.GT782@marvin.riggiland.au> References: <42DD64AB.3000605@centtech.com> <20050720094830.GR782@marvin.riggiland.au> <42DE3C1F.9070704@centtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <42DE3C1F.9070704@centtech.com> Organization: Chaotic X-PGP-KeyID: 0xC85996CD X-PGP-URI: http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0xC85996CD X-PGP-Fingerprint: 4F59 75B4 4CE3 3B00 BC61 5400 8DD4 8929 C859 96CD X-Mailer: Marvin Mail (Build 1121863362) X-Operating-System: FreeBSD 5.4-STABLE Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org 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 13:05:50 -0000 Hi, On Wed, 20. Jul 2005, at 6:57 -0500, Eric Anderson wrote according to [Re: mksnap_ffs takes 4-5 minutes?]: > A 2tb filesystem with the standard newfs options takes about 30 minutes > to mksnap.. That's unusable really, because the filesystem is suspended > for so long. Even empty 2tb filesystems take forever, so it's related > to the amount of inodes. > > How can we make this snappier? For the moment we can workaround by setting inode density appropriately when creating the fs. However this is only feasible if you know what your users are going to do with the fs; it also doesn't help when you *need* a large fs containing many small files. In the long run, dynamic inode (de)allocation would be nice to have. Also...what about the 'preparation' time for snapping? IIRC McKusick said that the lion's share of snapping time is used to delay pending transactions before actually doing the snap. There are quite some scenarios in which you can be certain that there is no file opened for writing, so a snap could be taken immediately. Would it be feasible to implement this feature? Or am I completely wrong? Riggs -- - "[...] I talked to the computer at great length and -- explained my view of the Universe to it" said Marvin. --- And what happened?" pressed Ford. ---- "It committed suicide." said Marvin.