From owner-freebsd-arch Mon Oct 7 14:33:18 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F25FC37B401 for ; Mon, 7 Oct 2002 14:33:16 -0700 (PDT) Received: from corbulon.video-collage.com (corbulon.video-collage.com [64.35.99.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CB8643E86 for ; Mon, 7 Oct 2002 14:33:16 -0700 (PDT) (envelope-from mi+mx@aldan.algebra.com) Received: from misha.murex.com (250-217.customer.cloud9.net [168.100.250.217]) by corbulon.video-collage.com (8.12.2/8.12.2) with ESMTP id g97LX91P068436 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL); Mon, 7 Oct 2002 17:33:11 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) X-Authentication-Warning: corbulon.video-collage.com: Host 250-217.customer.cloud9.net [168.100.250.217] claimed to be misha.murex.com Content-Type: text/plain; charset="koi8-u" From: Mikhail Teterin Organization: Virtual Estates, Inc. To: Peter Wemm Subject: Re: swapon some regular file Date: Mon, 7 Oct 2002 17:35:00 -0400 User-Agent: KMail/1.4.3 Cc: arch@FreeBSD.org References: <20021007212545.C363B2A88D@canning.wemm.org> In-Reply-To: <20021007212545.C363B2A88D@canning.wemm.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200210071735.00722.mi+mx@aldan.algebra.com> X-Scanned-By: MIMEDefang 2.15 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 07 October 2002 05:25 pm, Peter Wemm wrote: = Mikhail Teterin wrote: = > Currently, swapon(2) will only succeed if the argument vn_isdisk(9), = > or if it is an NFS-accessed file. = > = > Users wishing to swap onto a local regular file have to go through = > the vnconfig/mdconfig gimnastics. Is that intentional? = We can get away with it for swapping to a file over NFS because the = remote server does the translation, not us. I see. = In reality, what is required is some careful cut/paste of code from = vnode_pager to swap_pager to add the missing bits, and some care to = deal with the complications. = vnconfig/mdconfig work because that basically adds the logical -> = physical translation step. I'd just as soon not have to mess with this = though. I guess, the question is, will doing this directly to a file be faster? Otherwise, vnconfig/mdconfig is Ok, if not too good-looking... For users' convenience, the creation of the md or vn devices can be put into swapon(8)... -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message