From owner-freebsd-arch@FreeBSD.ORG Fri Aug 1 09:51:53 2003 Return-Path: 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 9FF7137B401; Fri, 1 Aug 2003 09:51:53 -0700 (PDT) Received: from HAL9000.homeunix.com (ip114.bella-vista.sfo.interquest.net [66.199.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id E275A43FBD; Fri, 1 Aug 2003 09:51:52 -0700 (PDT) (envelope-from das@freebsd.org) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.9) with ESMTP id h71GpoBG078178; Fri, 1 Aug 2003 09:51:50 -0700 (PDT) (envelope-from das@freebsd.org) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.9/Submit) id h71GpovP078177; Fri, 1 Aug 2003 09:51:50 -0700 (PDT) (envelope-from das@freebsd.org) Date: Fri, 1 Aug 2003 09:51:50 -0700 From: David Schultz To: Poul-Henning Kamp Message-ID: <20030801165150.GA78091@HAL9000.homeunix.com> Mail-Followup-To: Poul-Henning Kamp , Adrian Chadd , arch@freebsd.org References: <20030801083628.GB56492@skywalker.creative.net.au> <7147.1059729519@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7147.1059729519@critter.freebsd.dk> cc: arch@freebsd.org Subject: Re: headsup: swap_pager.c X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2003 16:51:53 -0000 On Fri, Aug 01, 2003, Poul-Henning Kamp wrote: > In message <20030801083628.GB56492@skywalker.creative.net.au>, Adrian Chadd wri > tes: > >On Fri, Aug 01, 2003, Poul-Henning Kamp wrote: > > > >> >Can you please describe how the interface between ccd(4) and the > >> >swap subsystem will work? I like this idea, but it isn't > >> >immediately obvious how you plan to implement striping based on > >> >load and dynamic addition and removal of swap space. > >> > >> ccdconfig -c ccd0 128 0 /dev/da0b /dev/da1b /dev/da2b > >> swapon /dev/ccd0 > > > >.. and if I want to add another swap device, will that work? > > Yes, but it will of course not be striped with the rest, it will > be laid out sequentially. > > And as a side effect you will not run into the NSWAP=4 limitation > any more. Aah, okay. That's both a small improvement and a small regression in one. The point of the static striping was to allow you to add swap devices and have them be automatically interleaved, so of course you can ``fix'' its limitations by removing it completely. I was kinda hoping you had a more flexible (albeit complex) plan in mind that would allow swap space to be striped on the fly based on disk load, free space on each disk, etc.