From owner-freebsd-questions@FreeBSD.ORG Mon Jan 12 20:56:28 2004 Return-Path: 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 C02B816A4CE for ; Mon, 12 Jan 2004 20:56:28 -0800 (PST) Received: from mail.hitmedia.com (mail.hitmedia.com [205.162.11.163]) by mx1.FreeBSD.org (Postfix) with SMTP id BBEB543D1F for ; Mon, 12 Jan 2004 20:56:25 -0800 (PST) (envelope-from bsdlap@hitmedia.com) Received: (qmail 65886 invoked by uid 0); 13 Jan 2004 04:56:28 -0000 Date: Mon, 12 Jan 2004 20:56:28 -0800 From: BSD baby To: freebsd-questions@freebsd.org Message-ID: <20040113045628.GA65497@mail.hitmedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: if a file is used a lot, does it stay in a RAM cache? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2004 04:56:29 -0000 If a file is loaded off the hard drive a lot, does FreeBSD keep it in RAM? For my high-traffic website, Apache+PHP, I have a PHP file that I'm going to be including a LOT. The file is 3 megs, though. Takes a few unfortunate seconds to load into memory off of disk the first time. So - what would it take to keep it in RAM instead of being loaded off of hard drive every second of the day? Does FreeBSD do that automatically or do I need some kind of accelerator app? Thanks!