From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 1 01:14:28 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8BD137B401 for ; Fri, 1 Aug 2003 01:14:28 -0700 (PDT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1222143F93 for ; Fri, 1 Aug 2003 01:14:27 -0700 (PDT) (envelope-from mail23@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.9/8.12.9) with ESMTP id h718F3rQ067070; Fri, 1 Aug 2003 10:15:04 +0200 (CEST) (envelope-from bulk@ei.bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.12.9/8.12.9/Submit) id h718F3dj067069; Fri, 1 Aug 2003 10:15:03 +0200 (CEST) Date: Fri, 1 Aug 2003 10:15:03 +0200 From: Ruben de Groot To: mh Message-ID: <20030801081503.GA66987@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , mh , freebsd-hackers@freebsd.org References: <200307311219.h6VCJLVG053962@spider.deepcore.dk> <3F29D164.6090904@nerim.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F29D164.6090904@nerim.net> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org Subject: Re: Ultra ATA card doesn't seem to provide Ultra speeds. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2003 08:14:29 -0000 On Fri, Aug 01, 2003 at 04:33:08AM +0200, mh typed: > Soeren Schmidt wrote: > > >It seems Buckie wrote: > > > > > >>I ran a dd: > >>dd if=/dev/ad1 of=/dev/zero ibs=8192 > >> > >>OH, you need to output to /dev/null NOT /dev/zero :) > >> > >> > It doesn't matter as far as cdevsw entry for zero-device write leads > to null_write() in /usr/src/sys/dev/null.c > > I was testing the memory to memory copy through a driver using /dev/null > and /dev/zero and with > dd if=/dev/zero of=/dev/null > I get till 4.2Gb/s. Is it a maximum for memory throughout + cpu > work ? (2.4GHz Laptop with SDRAM) The following comparison is probably bogus, but can anybody explain the huge difference? 1) FreeBSD 4.8-STABLE, 2x 1Ghz PIII, 512MB Memory bsdbox> dd if=/dev/zero of=/dev/null bs=1m count=10000 10000+0 records in 10000+0 records out 10485760000 bytes transferred in 23.482885 secs (446527758 bytes/sec) 2) Linux 2.4.21, 1x 2.6Ghz PIV, 512 MB Memory linbox> dd if=/dev/zero of=/dev/null bs=1M count=10000 10000+0 records in 10000+0 records out 10485760000 bytes transferred in 0.308408 seconds (33999639291 bytes/sec) -Ruben > Varying the bs parameter from 512 to 65536, I get a linear progression > until bs=65536 (previous throughout) but the relative throughout is > lower for bs=1024. Someone could explain? > > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"