From owner-freebsd-current@FreeBSD.ORG Thu Jul 17 22:41:20 2008 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 B86161065672 for ; Thu, 17 Jul 2008 22:41:20 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id 1AB248FC14 for ; Thu, 17 Jul 2008 22:41:20 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 9780 invoked by uid 399); 17 Jul 2008 22:41:15 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 17 Jul 2008 22:41:15 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <487FCA89.2010308@FreeBSD.org> Date: Thu, 17 Jul 2008 15:41:13 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.14 (X11/20080606) MIME-Version: 1.0 To: David Naylor References: <200807172056.08835.naylor.b.david@gmail.com> In-Reply-To: <200807172056.08835.naylor.b.david@gmail.com> X-Enigmail-Version: 0.95.6 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: rc improvements (wanted?) 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: Thu, 17 Jul 2008 22:41:20 -0000 There is a list specifically for discussing rc-related stuff, freebsd-rc@freebsd.org, FYI. I have a lot of questions which are not intended to be critical in anyway, it's just important to think about stuff carefully before making changes to the boot stuff. You might want to reformulate a post that has the answers to the questions below and start again on the -rc list, but that's your choice. David Naylor wrote: > Hi, > > A while back I worked on an "improvement" for rc. Most of the work was in > recoding rcorder. > > The 'improvements' in rcorder: > * Add -e -i commands (allows simplification of rc by removing need for > early_late checks) Can you explain how you accomplished this? > * Add stagnation or parallel support (all scripts in a stage can be executed > concurrently without conflict) How are you defining stages? Is this the "minimal change in the rc scripts" you're referring to below? > * Marginal speed increase (irrelevant since previous version is fast enough > [unless one is worried about milliseconds on start-up time]) Faster is better. > The main reason for this work was to increase start-up time (on the userland > side) by running as many scripts concurrently as possible. How are you running the scripts concurrently, and the key question, have you actually benchmarked your changes to demonstrate that they result in statistically significant changes. > This approach > allows only a minimal change in the rc scripts (there is a more efficient > method but that would mean moving most of the controlling logic into a > binary). When you say "controlling logic" are you referring to what /etc/rc does currently? Replacing rc with a binary is not out of the question, but we'd need pretty clear evidence that it's the right thing to do first. > I am eager to continue with developing the above if the FreeBSD project (and > developers) want such a change? Or alternatively I could pass on the work > already done to someone interested. Posting a URL where people could examine your work would be useful. > [[Side note: I stopped short of actually field testing the concurrent changes > to rc (rcorder and the simplifications to rc scripts works]] Ok, that answers one of my questions. The last question I had off the top of my head is whether or not you've tested all this stuff on shutdown too. hth, Doug -- This .signature sanitized for your protection