From owner-freebsd-questions@FreeBSD.ORG Sun Apr 9 02:58:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0BAE16A400 for ; Sun, 9 Apr 2006 02:58:14 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CF2143D45 for ; Sun, 9 Apr 2006 02:58:14 +0000 (GMT) (envelope-from joao.barros@gmail.com) Received: by xproxy.gmail.com with SMTP id s15so449345wxc for ; Sat, 08 Apr 2006 19:58:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R9fWjNkLNauYkvN43D+TbhqvrZ0ErENAOJo/SnUP/WI/MmF7tLBOxAnVdj90qDLKcTdp/SQ64tZBx/7VQ2cWZI44OVxZgJ8mUAj52q5AM//CGxP3RygstVEAcGPFHXVvgB7q9Y+law7rJ4bKKCsx5IMED0gRAlycb1PKRLoU9Sg= Received: by 10.70.83.19 with SMTP id g19mr3662955wxb; Sat, 08 Apr 2006 19:58:13 -0700 (PDT) Received: by 10.70.35.2 with HTTP; Sat, 8 Apr 2006 19:58:13 -0700 (PDT) Message-ID: <70e8236f0604081958y4fb58189wfd08510c60ae5abe@mail.gmail.com> Date: Sun, 9 Apr 2006 03:58:13 +0100 From: "Joao Barros" To: "Kris Kennaway" In-Reply-To: <20060330205858.GA21147@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <442B2FC6.9040001@123.com.sv> <20060330011834.GA84658@xor.obsecurity.org> <442BF0BB.8010504@123.com.sv> <20060330202145.GA17856@xor.obsecurity.org> <20060330205858.GA21147@xor.obsecurity.org> Cc: Miguel , freebsd-questions@freebsd.org, usleepless@gmail.com Subject: Re: terrible performance in 6.1beta4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 02:58:14 -0000 On 3/30/06, Kris Kennaway wrote: > Actually I seem to recall that on Linux with default settings fsync() > lies and does not actually sync data before returning, so maybe it's > worth turning off on FreeBSD too if you're comfortable with the > implications of this. > A few months ago I installed a syslog server with syslog-ng inserting the events to postgresql. Since I had 5000+ events per second coming in postgresql was my bottleneck and I had to disable fsync (Even then it would get very slow sometimes). This was on a CentOS 4.2 running kernel 2.6.9-22.0.1.ELsmp This to say, I don't know for sure if Linux is lying or not on fsync, but even on Linux, turning fsync off makes a big difference. In my case if data was lost there was no damage hence my choice to keeping it off -- Joao Barros