From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 8 03:42:16 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4AE1A16A407 for ; Mon, 8 Jan 2007 03:42:16 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id EDE6913C448 for ; Mon, 8 Jan 2007 03:42:15 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id l083UkOc015608; Sun, 7 Jan 2007 21:30:46 -0600 (CST) (envelope-from dan) Date: Sun, 7 Jan 2007 21:30:46 -0600 From: Dan Nelson To: David Gilbert Message-ID: <20070108033046.GA41724@dan.emsphone.com> References: <17825.44456.556954.545497@canoe.dclg.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17825.44456.556954.545497@canoe.dclg.ca> X-OS: FreeBSD 6.2-PRERELEASE User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-hackers@freebsd.org Subject: Re: dump reads more than restore writes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2007 03:42:16 -0000 In the last episode (Jan 07), David Gilbert said: > I've got a command line like the following: > > dump -0af - /dev/ad1s1g | restore -rf - > > ... and I'm watching gstat. ad1s1g is not mounted. The disk on which > the restore is running is also quiet (nobody using the disk). > > And gstat says that ad1 is consistently reading 31 to 37 megabytes > per second and ad2 (the restore disk) is consistently writing 10 to > 13 megabytes per second. This is over hours --- the figures never > catch up. If you have a lot of small files, dump may be rereading directory information. Dump has a cache option that can help, but make sure you also dump a snapshot (i.e. always use -L when using -C). -- Dan Nelson dnelson@allantgroup.com