From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 13 17:48:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1392516A4CE for ; Fri, 13 Feb 2004 17:48:17 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C60C943D31 for ; Fri, 13 Feb 2004 17:48:16 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.10/8.12.10) with ESMTP id i1E1ltDL031314; Fri, 13 Feb 2004 20:47:55 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i1E1lspF031309; Fri, 13 Feb 2004 20:47:54 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Fri, 13 Feb 2004 20:47:54 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Colin Percival In-Reply-To: <6.0.1.1.1.20040214014043.040c9d40@imap.sfu.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: FreeBSD Hackers Subject: Re: malloc backed md/mfs filesystem swapped? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2004 01:48:17 -0000 On Sat, 14 Feb 2004, Colin Percival wrote: > At 00:56 14/02/2004, Robert Watson wrote: > >If you > >have swap available, you pretty much always want to use swap-backing for > >memory disks -- if there's room in memory they will run as fast as > >malloc-backed, but you don't have to be as worried about the "Oh shoot, > >I'm out of room" case. > > Actually, there is one consideration: swap-backed memory disks have a > sector size equal to the machine page size. This will result in some > inflation in memory usage, and can confuse program which expect a sector > size of 512 bytes (for example, dd, which I plan on fixing but I haven't > gotten around to yet). One such application is Vinum, actually, which does not like using swap-backed storage nodes, although maybe I fixed that. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research