From owner-freebsd-performance@FreeBSD.ORG Mon Sep 8 18:05:10 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 8D4B016A4BF for ; Mon, 8 Sep 2003 18:05:10 -0700 (PDT) Received: from mail.chesapeake.net (chesapeake.net [208.142.252.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9690E43FE5 for ; Mon, 8 Sep 2003 18:05:09 -0700 (PDT) (envelope-from jroberson@chesapeake.net) Received: from localhost (jroberson@localhost) by mail.chesapeake.net (8.11.6/8.11.6) with ESMTP id h89150f01276; Mon, 8 Sep 2003 21:05:00 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Date: Mon, 8 Sep 2003 21:05:00 -0400 (EDT) From: Jeff Roberson To: Terry Lambert In-Reply-To: <3F5848A2.74AAF606@mindspring.com> Message-ID: <20030908210307.B12093-100000@mail.chesapeake.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: Tue, 09 Sep 2003 01:05:10 -0000 On Fri, 5 Sep 2003, Terry Lambert wrote: > 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. This is not accurate at all. Please see vfs_subr.c's vop_stdfsync(). We walk the dirty block head and flush those buffers that are dirty. > > 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 > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org" >