From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 21 14:48:08 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CD22106566B for ; Sun, 21 Aug 2011 14:48:08 +0000 (UTC) (envelope-from joris.dedieu@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 2C15A8FC16 for ; Sun, 21 Aug 2011 14:48:08 +0000 (UTC) Received: by iye7 with SMTP id 7so16955192iye.17 for ; Sun, 21 Aug 2011 07:48:07 -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=tKjZ5b2S+IdgtYvfHnjTq/ZZ23hNP8+lvjEENeFOPOk=; b=bClurpqpDv4Y+cVcyP/21Y12xqugfkdiyuyF6hitGd/GRsvFxQyDkGATOmiaBsLiSC W+MzWNjI4AZP2QKFnEDMH8TJMaN+j778gydKfufIIDYi55CAcPCE7hk7BCJXlDJ/raOi 710hF0rvH2qABO22Hg4oCPjFq+bNcrX/+UF/w= MIME-Version: 1.0 Received: by 10.231.54.104 with SMTP id p40mr3668813ibg.39.1313936290803; Sun, 21 Aug 2011 07:18:10 -0700 (PDT) Received: by 10.231.37.76 with HTTP; Sun, 21 Aug 2011 07:18:10 -0700 (PDT) In-Reply-To: <20110821121509.GA27730@crane.none> References: <20110821121509.GA27730@crane.none> Date: Sun, 21 Aug 2011 16:18:10 +0200 Message-ID: From: joris dedieu To: kilian Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: Concurrent execution of rc-scripts with rcorder(8) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2011 14:48:08 -0000 2011/8/21 kilian : > 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! There is another implementation which had been posted here (maybe) some times ago. Maybe a good thing to compare. https://github.com/buganini/rcexecr Joris > > -kilian > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >