From owner-freebsd-hackers Fri Jul 12 22:23:32 2002 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 8B55637B400 for ; Fri, 12 Jul 2002 22:23:31 -0700 (PDT) Received: from HAL9000.wox.org (12-233-156-170.client.attbi.com [12.233.156.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27CBA43E3B for ; Fri, 12 Jul 2002 22:23:31 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.wox.org (localhost [127.0.0.1]) by HAL9000.wox.org (8.12.3/8.12.3) with ESMTP id g6D5Ndf3000829; Fri, 12 Jul 2002 22:23:44 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.wox.org (8.12.3/8.12.3/Submit) id g6D5NbUk000828; Fri, 12 Jul 2002 22:23:37 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Fri, 12 Jul 2002 22:23:37 -0700 From: David Schultz To: Sean Kelly Cc: hackers@FreeBSD.ORG Subject: Re: swapoff? Message-ID: <20020713052337.GA662@HAL9000.wox.org> Mail-Followup-To: Sean Kelly , hackers@FreeBSD.ORG References: <20020713040247.GA82181@edgemaster.zombie.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020713040247.GA82181@edgemaster.zombie.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Sean Kelly : > My familiarity with the "workings" of FreeBSD is still pretty minimal. Are > there certain reasons that there currently is no way to stop paging to a > device/file? I imagine the implementation of this would be complicated, as it is in Linux. You'd have to prevent further allocations on the swap device, then figure out where to evict the pages already allocated on the device. You also have to be able to back out if you run out of space to put things in the process. Maybe someone who is familiar with the race conditions involved will implement it some day, but swapoff would only occasionally be useful... at least until everyone is using hot-swappable swap. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message