From owner-freebsd-performance@FreeBSD.ORG Fri Sep 5 01:27:34 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B30B116A4BF for ; Fri, 5 Sep 2003 01:27:34 -0700 (PDT) Received: from firecrest.mail.pas.earthlink.net (firecrest.mail.pas.earthlink.net [207.217.121.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D05643F93 for ; Fri, 5 Sep 2003 01:27:34 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-2ivfjg5.dialup.mindspring.com ([165.247.206.5] helo=mindspring.com) by firecrest.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19vBwH-0000MW-00; Fri, 05 Sep 2003 01:27:29 -0700 Message-ID: <3F5848A2.74AAF606@mindspring.com> Date: Fri, 05 Sep 2003 01:26:10 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Sean Chittenden References: <20030904220709.GR37152@nasby.net> <20030904224156.GD75041@perrin.nxad.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a42c1063ce8e83d3f1b0b243854b6ce92c350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: freebsd-performance@FreeBSD.ORG cc: "Jim C. Nasby" Subject: Re: Best disk caching method (and PGSQL performance) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2003 08:27:34 -0000 Sean Chittenden wrote: > > Also, has anyone played with the other fsync options? > > FreeBSD only supports the default fsync option. And as the comments point out, it lacks the introspection to know dirty pages from clean ones, so all pages that are in core and associated with the object are written, not just the dirty ones. Avoid this, if possible. It would be nice if there were an fcntl that would F_SYNCRANGE or something similar, so the applicaion could hint the range it wanted written to the kernel. -- Terry