From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 6 09:31:46 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 163FA8DE for ; Tue, 6 Nov 2012 09:31:46 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id 5FD548FC18 for ; Tue, 6 Nov 2012 09:31:45 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id qA69P6XZ018241; Tue, 6 Nov 2012 10:25:06 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id qA69P5if018238; Tue, 6 Nov 2012 10:25:05 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 6 Nov 2012 10:25:05 +0100 (CET) From: Wojciech Puchar To: Yuri Subject: Re: pgbench performance is lagging compared to Linux and DragonflyBSD? In-Reply-To: <50980ADD.4010402@rawbw.com> Message-ID: References: <50980ADD.4010402@rawbw.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Tue, 06 Nov 2012 10:25:06 +0100 (CET) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 09:31:46 -0000 > some serious system issue. > > It looks like the DragonflyBSD folks made a goal to do well on pgbench and > got to the level of ~88% of linux with 80 clients. It's just bad that anyone judge and (even worse) modify/tune operating system to do well in SINGLE benchmark running basically single program doing few repetitive things. Linux is tuned to win in benchmark and it does, while having disastrous performance in normal unix style usage - multiple different programs doing multiple different things for multiple different users - in the same time. This is a case with at least 99% of users. The less than 1% that have so heavy load that needs separete machine dedicated to single program doing one thing - could use linux (if it REALLY will be better in production workload ) or even better - use some dedicated hardware just for this, if it exist. Does machine that is dedicated to run single program need OS at all? In such "benchmark" FreeBSD with UFS wins hands down and that's the reason i use it. Still it is interesting WHY FreeBSD is slower in that special case, and if improvements on general behaviour can be found then it's nice to do them. I tried dragonflybsd some time ago and it's performance on normal usage is disastrous. Seems like Matthew Dillion years after splitting from FreeBSD because "the algorithms used in FreeBSD were plain wrong" - cannot do this better but still waste time and still at all cost want to prove he can. Tuning operating system for single benchmark is an example of that childish behaviour.