Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 1997 08:52:54 -0500 (CDT)
From:      Guy Helmer <ghelmer@cs.iastate.edu>
To:        Paul Dekkers <psd@worldaccess.nl>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: FreeBSD is slower than Linux !?
Message-ID:  <Pine.HPP.3.96.970814084638.28465A-100000@popeye.cs.iastate.edu>
In-Reply-To: <Pine.LNX.3.96.970814003604.104A-100000@gromit.nev.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Aug 1997, Paul Dekkers wrote:

> I did some speed tests and I'd like to hear some reaction about this.
> 
> 	Linux	FreeBSD
> dd	2.61	4.95	dd if=/dev/zero of=/test bs=1024 count=5000
> gzip	12.50	11.01	gzip -9 test
> gunzip	3.86	8.12
> sync	4.21	0.9	-> So it seems FreeBSD writes everything to 
> 			   disk directly?! WHY? This makes FreeBSD
> 			   much slower!

This begs the question as to whether you repeated these tests several
times; "update" may have sync'ed the disks during the gunzip, for
example...

> unzips	4.45	41.92	decompress the sendmail distr
> compil	353.79	371.87	compile sendmail (makesendmail)

As others have stated, this is likely due to the synchronous metadata
updates that are the default behavior in FreeBSD.  One pays for the
security of ordered, committed writes to inodes and directories with a
loss of speed...

Guy Helmer, Computer Science Graduate Student - ghelmer@cs.iastate.edu
Iowa State University               http://www.cs.iastate.edu/~ghelmer
Research Assistant, Scalable Computing Laboratory, Ames Laboratory




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.HPP.3.96.970814084638.28465A-100000>