Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 1997 03:31:23 -0700
From:      David Greenman <dg@root.com>
To:        Paul Dekkers <psd@worldaccess.nl>
Cc:        "Jay D. Nelson" <jdn@qiv.com>, Shawn Ramsey <shawn@luke.cpl.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: FreeBSD is slower than Linux !? 
Message-ID:  <199708151031.DAA14879@implode.root.com>
In-Reply-To: Your message of "Thu, 14 Aug 1997 22:20:33 %2B0200." <Pine.LNX.3.96.970814221735.136B-100000@gromit.nev.ml.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
>>>> >	Linux	FreeBSD
>>>> >dd	2.61	4.95	dd if=/dev/zero of=/test bs=1024 count=5000

   The blocksize is critical to this benchmark. Try a larger blocksize:

[implode:dg] time dd if=/dev/zero of=/foo bs=1024 count=5000
5000+0 records in
5000+0 records out
5120000 bytes transferred in 2 secs (2560000 bytes/sec)
0.015u 0.915s 0:01.34 68.6% 74+271k 1+86io 3pf+0w
[implode:dg] time dd if=/dev/zero of=/foo bs=50k count=100
100+0 records in
100+0 records out
5120000 bytes transferred in 1 secs (5120000 bytes/sec)
0.000u 0.294s 0:00.51 56.8% 97+609k 0+85io 0pf+0w


   ...a much larger block size is nearly 3 times faster on a machine here.
This particular benchmark isn't really all that useful in any case since it
is sensitive to many different factors, not the least of which is the speed
of /dev/zero, which has not been optimized much in FreeBSD.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708151031.DAA14879>