From owner-freebsd-questions@freebsd.org Wed Jun 21 21:04:02 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AA8AED98FE8 for ; Wed, 21 Jun 2017 21:04:02 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.20.71]) by mx1.freebsd.org (Postfix) with ESMTP id 88C0B7E4C7 for ; Wed, 21 Jun 2017 21:04:02 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 0CB89CB8CE1; Wed, 21 Jun 2017 16:04:00 -0500 (CDT) Received: from 128.135.52.6 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Wed, 21 Jun 2017 16:04:00 -0500 (CDT) Message-ID: <18281.128.135.52.6.1498079040.squirrel@cosmo.uchicago.edu> In-Reply-To: <3a2eabbe-1bef-5c56-f7af-8f054baa87e5@tundraware.com> References: <45657887-638e-bb6d-c318-7046fdea1ca6@tundraware.com> <41839.128.135.52.6.1498062473.squirrel@cosmo.uchicago.edu> <3a2eabbe-1bef-5c56-f7af-8f054baa87e5@tundraware.com> Date: Wed, 21 Jun 2017 16:04:00 -0500 (CDT) Subject: Re: FreeBSD and Linux SSD Write Speeds From: "Valeri Galtsev" To: "Tim Daneliuk" Cc: "FreeBSD Mailing List" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2017 21:04:02 -0000 On Wed, June 21, 2017 1:33 pm, Tim Daneliuk wrote: > On 06/21/2017 11:27 AM, Valeri Galtsev wrote: >> sync; date; dd if=/dev/zero of=foo bs=8M count=512; sync; date > > So I just did this: > > sync; date; dd if=/dev/zero of=foo bs=8M count=1024; sync; date > > And got this: > > Linux: > > Wed Jun 21 13:30:22 CDT 2017 > 1024+0 records in > 1024+0 records out > 8589934592 bytes (8.6 GB, 8.0 GiB) copied, 33.523 s, 256 MB/s > Wed Jun 21 13:30:57 CDT 2017 > > > FreeBSD: > > Wed Jun 21 13:28:23 CDT 2017 > 1024+0 records in > 1024+0 records out > 8589934592 bytes transferred in 46.508336 secs (184696666 bytes/sec) > Wed Jun 21 13:29:10 CDT 2017 > > So ... still a pretty big disparity It is. > > I don't want to test against a raw device or partition because that's > not how these systems get used. My FreeBSD FS is UFS and maybe that > simply is not as efficient on an SSD as ext4. OK, at least it is not zfs on FreeBSD: zfs has its reasons to be slower. As others mentioned, it can be one or more of: particular two devices performance difference; less than optimal parameters of UFS; UFS itself being not that "shiny" compared ext4 ( I somehow discount the difference in scheduler, process switching, etc...) Oh, well... I feel like devoting some time to experimenting too: curiosity ;-) Valeri > > This isn't a big deal, just an eyebrow raiser for me. I've used FreeBSD > as a production OS since 2.x and have always found it to be consistently > quicker and have a smaller footprint than Linux. This was just a > surprise. > > -- > ---------------------------------------------------------------------------- > Tim Daneliuk tundra@tundraware.com > PGP Key: http://www.tundraware.com/PGP/ > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++