From owner-freebsd-stable Tue May 26 10:16:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA07743 for freebsd-stable-outgoing; Tue, 26 May 1998 10:16:22 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA07633 for ; Tue, 26 May 1998 10:16:03 -0700 (PDT) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id MAA20027; Tue, 26 May 1998 12:14:23 -0500 (EST) (envelope-from toor) From: "John S. Dyson" Message-Id: <199805261714.MAA20027@dyson.iquest.net> Subject: Re: vnconfig + swap with sparse files In-Reply-To: <199805261116.NAA21948@labinfo.iet.unipi.it> from Luigi Rizzo at "May 26, 98 01:16:15 pm" To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Tue, 26 May 1998 12:14:22 -0500 (EST) Cc: dwmalone@maths.tcd.ie, dag-erli@ifi.uio.no, robert+freebsd@cyrus.watson.org, stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk > > > A sparse file cannot possibly work as swap since it does not have any > > > space allocate to it on the disk, and you *want* to allocate space on > > > the disk - where else are you going to swap out your data? > > > > Actually - it will work if you are swaping over NFS, (or at least did > > the last time I made swap files for our xterminals). Though I admit > > this is quite different. > > if i remember well there was a problem with sparse files and nfs as > well, and it was related to block sizes. > > My understanding of the problem was the following: > > If the swapper has to save only one page (4K) and the NFS blocksize > is 8K, the process involves reading an 8K block from the file, > "updating" the 4K half of interest, and writing back to the file. The > first read might return some kind of notification that the page did not > exist and somehow this caused problems. > > I may be totally wrong, or the problem might have been fixed (or it > could be fixed using 4K NFS blocks) > That code is a nightmare, and needs work. It might be better in -current, but is still a mess. John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message