From owner-freebsd-performance@FreeBSD.ORG Fri Apr 16 09:38:50 2004 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 40F6F16A4CE for ; Fri, 16 Apr 2004 09:38:50 -0700 (PDT) Received: from flake.decibel.org (flake.decibel.org [66.143.173.58]) by mx1.FreeBSD.org (Postfix) with SMTP id BAC0843D55 for ; Fri, 16 Apr 2004 09:38:49 -0700 (PDT) (envelope-from decibel@decibel.org) Received: (qmail 49974 invoked by uid 1001); 16 Apr 2004 16:38:45 -0000 Date: Fri, 16 Apr 2004 11:38:45 -0500 From: "Jim C. Nasby" To: freebsd-performance@freebsd.org Message-ID: <20040416163845.GG87362@nasby.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 4.9-RELEASE-p3 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.6i Subject: How does disk caching work? 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, 16 Apr 2004 16:38:50 -0000 Is there a document anywhere that describes in detail how FreeBSD handles disk caching? I've read Matt Dillon's description of the VM system, but it deals mostly with programs, other than vague statements such as 'FreeBSD uses all available memory for disk caching'. I think I know how caching memory mapped IO works for the most part, since it should be treated just like program data, but what about files that aren't memory mapped? What impact is there as pages move from active to inactive to cache to free? What role do wired and buffer pages play? -- Jim C. Nasby, Database Consultant jim@nasby.net Member: Triangle Fraternity, Sports Car Club of America Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?"