From owner-freebsd-stable Mon May 25 11:19:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA06552 for freebsd-stable-outgoing; Mon, 25 May 1998 11:19:07 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA06030 for ; Mon, 25 May 1998 11:17:44 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from bilskirnir.ifi.uio.no (2602@bilskirnir.ifi.uio.no [129.240.64.135]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id UAA15650; Mon, 25 May 1998 20:17:38 +0200 (MET DST) Received: (from dag-erli@localhost) by bilskirnir.ifi.uio.no ; Mon, 25 May 1998 20:17:35 +0200 (MET DST) Mime-Version: 1.0 To: Robert Watson Cc: stable@FreeBSD.ORG Subject: Re: vnconfig + swap with sparse files References: Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-Stop-Spam: http://www.cauce.org From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 25 May 1998 20:17:26 +0200 In-Reply-To: Robert Watson's message of "Mon, 25 May 1998 11:34:27 -0400 (EDT)" Message-ID: Lines: 15 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk Robert Watson writes: > I rebooted to stop swapping on the file, and modified my creation program > to drop a \0 at the beginning of each block. Sure enough, starting > swapping this time worked fine. What you should have done in the first place was: # dd if=/dev/zero of=swapfile bs=1048576 count=128 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? -- Noone else has a .sig like this one. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message