From owner-freebsd-current@FreeBSD.ORG Tue Oct 19 13:40:38 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0973510656A3 for ; Tue, 19 Oct 2010 13:40:38 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id BE0E68FC0C for ; Tue, 19 Oct 2010 13:40:37 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 9BFF219E02A; Tue, 19 Oct 2010 15:21:01 +0200 (CEST) Received: from [10.43.15.14] (cage.codelab.cz [94.124.105.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id A062E19E02E; Tue, 19 Oct 2010 15:20:59 +0200 (CEST) Message-ID: <4CBD9B39.1040101@quip.cz> Date: Tue, 19 Oct 2010 15:20:57 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: David Naylor References: <201010180943.37042.naylor.b.david@gmail.com> <20101018195125.GA46115@onelab2.iet.unipi.it> <201010190807.59491.naylor.b.david@gmail.com> In-Reply-To: <201010190807.59491.naylor.b.david@gmail.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: geom_sched usage X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2010 13:40:38 -0000 David Naylor wrote: > On Monday 18 October 2010 21:51:25 Luigi Rizzo wrote: [...] >>> - is there anyway to automatically attach gsched to a device on startup >>> (i.e. >>> >>> in rc.conf)? >> >> no, you have to build some script yourself. > > Would there be any interest in having a rc.d/ script? I would find it > conveniant to specify a single rc.conf line and get scheduling for all my > devices. PC-BSD might find such functionality useful. > > See attached for my first draft at such a script, I'm willing to hash it into > shape. [...] You can use `sysctl kern.disks` to find available disk devices in your rc script. Miroslav Lachman