Subject: pipe performance [was: CVS commit: basesrc (fwd)]
To: None <netbsd-help@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: netbsd-help
Date: 01/21/2000 03:00:02
[Please keep me in the CC:, I'm not on this list!]

Hi,

I saw the commit below, and maybe you can help me with some performance
tuning... I have a bootfloppy that I use to install gzipped disk images
via FTP. I install them with:

ftp -o "|gunzip|dd bs=1m progress=1 of=/dev/rwd0d" ftp://install@${host}/rwd0d.gz

When the image is written to disk, I get stats from FTP saying that it
pulled at around 600kb/s, which seems very slow, given that the NIC and
FTP server can do 100MBd (and do, in other configurations). This is with
a NetBSD 1.4.1 kernel. The disk can't be the problem either, it's a Maxtor
92048D8 IDE disk (in a PIII-500, i.e. i386). 

Any hints on how to get this a bit faster?


 - Hubert

-- 
NetBSD - Better for your uptime than Viagra

---------- Forwarded message ----------
Date: Thu, 20 Jan 2000 15:33:42 -0800 (PST)
From: Havard Eidnes <he@netbsd.org>
To: source-changes@netbsd.org
Subject: CVS commit: basesrc


Module Name:	basesrc
Committed By:	he
Date:		Thu Jan 20 23:33:42 UTC 2000

Modified Files:
	basesrc/distrib/notes/sparc [netbsd-1-4]: install

Log Message:
Pull up revision 1.21 (requested by pk):
  Reduce block size in dd command to 4K; this should make the
  blocking factor OK when reading from a pipe.


To generate a diff of this commit:
cvs rdiff -r1.19.2.1 -r1.19.2.2 basesrc/distrib/notes/sparc/install

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.