From owner-freebsd-questions@FreeBSD.ORG Sat Jun 24 18:33:20 2006 Return-Path: X-Original-To: freebsd-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 3624016A492 for ; Sat, 24 Jun 2006 18:33:20 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89ECB43D5D for ; Sat, 24 Jun 2006 18:33:19 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by nz-out-0102.google.com with SMTP id o1so1049547nzf for ; Sat, 24 Jun 2006 11:33:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Rr99yYo2bjeAWSYawU+wITuVVfH25bYhXtrTgkJEplfnDwEACt41nXpnhD21+clLYfvw4sMHMaIMdRQKgzxyNT0YaHF+CSevOkY1ptA5yIiBYWI22jnYlxXmPuogfO0LA+X1TjBoDspGA+/YvxHZZxOhyYAS0UyaOSKyCpE0D8I= Received: by 10.36.141.20 with SMTP id o20mr5574269nzd; Sat, 24 Jun 2006 11:33:18 -0700 (PDT) Received: by 10.36.12.11 with HTTP; Sat, 24 Jun 2006 11:33:18 -0700 (PDT) Message-ID: Date: Sat, 24 Jun 2006 11:33:18 -0700 From: "Nikolas Britton" To: "Dan Nelson" In-Reply-To: <20060624162747.GC83209@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060624023139.GA83209@dan.emsphone.com> <20060624162747.GC83209@dan.emsphone.com> Cc: FreeBSD Mailing List Subject: Re: help with 'tar|rsh tar' 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: Sat, 24 Jun 2006 18:33:20 -0000 On 6/24/06, Dan Nelson wrote: > In the last episode (Jun 24), Nikolas Britton said: > > On 6/23/06, Nikolas Britton wrote: > > > Thanks!, but I got rsh going. I first had to edit /etc/hosts.equiv, > > > after that I figured it out: > > > > > > tar cf - . | rsh 192.168.1.242 'cd /data; tar xpvf -' > > > > > > I was thinking tar -f as in file.tar but it's not, you have to cd > > > into the source directory you want to copy... anyways... I'm > > > getting around 30MB/s now... it should be in the 50-60MB/s range... > > > Good enough for now though. Thanks again... > > > > > > > hostA = P4 3GHz Prescott, Intel 82547EI GigE, FreeBSD 6.1/i386. > > hostB = Athlon64 3000, Marvell Yukon Lite GigE, FreeBSD 6.1/amd64. > > > > Anyone know why load is so high on hostA, is it because I used tar -v? > > top shows: > > > > CPU states: 0.0% user, 1.5% nice, 26.2% system, 61.4% interrupt, 10.9% idle > > That 61% interrupt looks bad, but I don't have any ideas. > > > PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND > > 18698 nbritton 1 130 20 1292K 832K RUN 171:46 28.12% rsh > > 18696 nbritton 1 -4 -20 1588K 1068K getblk 48:25 6.88% bsdtar > > Try raising the blocksize in tar. The default is 10K. This bumps it > to 64K: > > tar cbf 128 - . | ... > Using: tar cbf 256 - . | rsh ... tar xpbf 64 - Looks like that fixed the problems on hostA because hostB is now the problem. The GigE and RAID controller on hostB both sit on the same 33MHz/32-bit PCI bus (Asus A8R-MVP)... and that doesn't help... but those numbers should be closer to 50MB/s (((33x32)/10)/2 = 52.8MB/s). hostA: Load 0.62 0.58 0.58 42.4%Sys 18.3%Intr 4.9%User 0.0%Nice 34.3%Idl Disks ad0 da0 KB/t 0.00 124 tps 0 257 MB/s 0.00 31.20 % busy 0 30 hostB: Load 0.59 0.80 0.80 17.4%Sys 54.4%Intr 0.8%User 0.0%Nice 27.4%Idl Disks ad0 da0 KB/t 0.00 122 tps 0 255 MB/s 0.00 30.43 % busy 0 92 <<<--- Thanks again! -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/