From owner-freebsd-fs@FreeBSD.ORG Tue Jul 10 13:20:49 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 92A0916A492 for ; Tue, 10 Jul 2007 13:20:49 +0000 (UTC) (envelope-from gore_jarold@yahoo.com) Received: from web63007.mail.re1.yahoo.com (web63007.mail.re1.yahoo.com [69.147.96.218]) by mx1.freebsd.org (Postfix) with SMTP id 4131C13C4B9 for ; Tue, 10 Jul 2007 13:20:48 +0000 (UTC) (envelope-from gore_jarold@yahoo.com) Received: (qmail 70263 invoked by uid 60001); 10 Jul 2007 13:20:47 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=QBva1wimUzsdFWHV+Mhr7j4zLTM4C95+t9WTRB7dJkLgiU/qSLG8vWvDQoku2AapP59KMbUcq7NhQrpeGmesdrgkRayHdcIT59zJNcrJ2L8b9/6qHODn36Rd8MNAk+Hr9JgkRBa6S3VNJwtX3AqEuiQMLyqZUEO9H3tMz2WnxeE=; X-YMail-OSG: P0ArORQVM1lpec4WxVBNWUjncjAXwwWIouP_6bDWPiULEN9nI3g1Q2p26.vZioH0u_odrhZrvYTXCOlobQXzkTB1cCPJxy_eTO9xDWPRS3eJIe4kQ0U.TCibIx8CEHes Received: from [71.63.232.32] by web63007.mail.re1.yahoo.com via HTTP; Tue, 10 Jul 2007 06:20:47 PDT Date: Tue, 10 Jul 2007 06:20:47 -0700 (PDT) From: Gore Jarold To: bv@wjv.com In-Reply-To: <20070710124050.GA2184@wjv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <774173.69403.qm@web63007.mail.re1.yahoo.com> Cc: freebsd-fs@freebsd.org Subject: Re: help needed - tuning a filesystem for rm and cp ? (MORE) 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: Tue, 10 Jul 2007 13:20:49 -0000 --- Bill Vermillion wrote: > > All else being equal, how do you optimize a system > for > > copying from one place to another on the same > mount > > point ? How do you optimize a system for fast > file > > deletion ? Are the two mutually exclusive ? > > I've not done this recently as I've not had to, but > when > you need to move files from one place to another > >on the same > filesystem< you don't have to copy them. > > Use cpio with the -pdlm arguments. This will make > hard links > from the original file locations to the new file > location. > Then you can just 'rm' the original directory > entries and the > new directory will be running just as the old one. > > -p is passthrough, -d makes directories as needed, > -l make links > but you must use the -p option, and -v is verbose. > I always > run this way as I like to see just exactly what is > going on. > > The big upside of this is that you only build > directories and > it does NOT move the files themselves. Thus both > the build new > directory and remove the old directories are going > to be much > faster than copying files. > > It can be quite fast. Just checking the man pages > for > FreeBSD's cpio, I see the flags have greatly > expanded, as I used to > just use the -pdlm flags on System V.3 systems I was > running. > You may have to go thorugh manual carefuly to make > sure of > the flags. Yes - this is exactly what I do for the copies. I already do exactly as you describe. So perhaps there is no further system tuning or optimization that can be done for my copy processes ? What about my 'rm' processes - is there any way to optimize/tune a system to do very fast file deletions ? ____________________________________________________________________________________ Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545469