From owner-freebsd-rc@FreeBSD.ORG Sun Aug 21 13:54:16 2011 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88DEB106564A for ; Sun, 21 Aug 2011 13:54:16 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id 54DDC8FC0A for ; Sun, 21 Aug 2011 13:54:16 +0000 (UTC) Received: by iye7 with SMTP id 7so16843342iye.17 for ; Sun, 21 Aug 2011 06:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xImnMDsVZPqAesnWMX3PLOWK3yqN5D+sKksbZZa2tgw=; b=PCb9ehDaSlTwPs4JWZhP0nwe3mVGMzQBIK1qE1KxzNY03QkY6Af8q1UrZ5vHtOORKF +OrhwE7qzkogXuo/UZCdzjD3NudvD8/MR3O2lnDCo6esjXyaNeENFW8fmdE/ZXLvq9zh rZ9P5QRuoXrq7RlGIfMmwoUOeYm796J3Is6rc= MIME-Version: 1.0 Received: by 10.42.79.206 with SMTP id s14mr1726333ick.348.1313934855764; Sun, 21 Aug 2011 06:54:15 -0700 (PDT) Received: by 10.231.182.77 with HTTP; Sun, 21 Aug 2011 06:54:15 -0700 (PDT) Received: by 10.231.182.77 with HTTP; Sun, 21 Aug 2011 06:54:15 -0700 (PDT) In-Reply-To: <20110821121509.GA27730@crane.none> References: <20110821121509.GA27730@crane.none> Date: Sun, 21 Aug 2011 14:54:15 +0100 Message-ID: From: Chris Rees To: kilian Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, "freebsd-rc@freebsd.org" Subject: Re: Concurrent execution of rc-scripts with rcorder(8) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2011 13:54:16 -0000 On 21 Aug 2011 13:39, "kilian" wrote: > > Hello, > > the idea to start services concurrently during boot isn't new and the > question why FreeBSD doesn't do it has popped up on the forum and > mailing list occasionally. So, why not give it a shot? > > rcorder(8) is normally used during boot to bring the rc-scripts into a > particular order, so when they are executed linearly by /etc/rc, all > constraints will be satisfied. I modified rcorder(8) to enable it to > run rc-scripts concurrently, while keeping track of the constraints as > rc-scripts start and finish. You can find the code at > https://github.com/kil/rcorder. As it works now, it will fall back to the > current mode of execution if anything goes wrong. So, if worst comes to > worst, booting takes a bit longer. > > If you feel brave, give it a try (Actually, not too much bravery is needed: > on all boots of my machine it worked perfectly every time.) > > I haven't done any measurements yet on how large the speedup is, but booting > feels a bit faster with it. Also, there probably is room for improvement. > Any ideas and feedback are very welcome! > > -kilian > I might suggest moving this to rc@. I'll try it later, looks interesting. Chris