From owner-freebsd-hackers@FreeBSD.ORG Sat May 18 11:59:16 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0B2DF381 for ; Sat, 18 May 2013 11:59:16 +0000 (UTC) (envelope-from florent@peterschmitt.fr) Received: from peterschmitt.fr (peterschmitt.fr [5.135.177.31]) by mx1.freebsd.org (Postfix) with ESMTP id CCAE5DCD for ; Sat, 18 May 2013 11:59:15 +0000 (UTC) Received: from [192.168.0.130] (4ab54-4-88-163-248-31.fbx.proxad.net [88.163.248.31]) by peterschmitt.fr (Postfix) with ESMTPSA id 7F2A778A7 for ; Sat, 18 May 2013 13:59:22 +0200 (CEST) Message-ID: <51976D13.4010604@peterschmitt.fr> Date: Sat, 18 May 2013 13:59:15 +0200 From: Florent Peterschmitt User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: blogbench and write-open serialization References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: florent+FreeBSD-hackers@peterschmitt.fr List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 May 2013 11:59:16 -0000 Le 18/05/2013 06:04, Ivan Voras a écrit : > During the BSDCan & DevSummit I got interested in finding out why > blogbench is so slow on FreeBSD. After talking to jhb, it looked like > one of the reasons might be that opening files with O_RDWR or O_WRONLY > (anything opening the file for writing) is serialized. > > To check this, I've written a small test program, which I've run on > CentOS 6.3 and FreeBSD 10-HEAD on the same hardware. Here are the results: > > https://wiki.freebsd.org/Benchmarking/OpenCloseBenchmark > > Conclusions: > > * Linux opens and closes files much faster than FreeBSD > * Linux does not serialize write-open operations, while FreeBSD does > * Even with O_RDONLY, FreeBSD is much slower in opening (and closing) files. > > I'd welcome a review of these results and comments. Hi, I'm no able to say anything about that (because I've no idea of how does Linux or FreeBSD works ), but could it be a problem from filesystem ? Everytime I had UFS I found the entire system very slow when doing some I/O (many little freezes), and with ZFS it's globally much better.