From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 20 13:18:51 2012 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 C98331065676 for ; Wed, 20 Jun 2012 13:18:51 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 53A9B8FC12 for ; Wed, 20 Jun 2012 13:18:51 +0000 (UTC) Received: by eabm6 with SMTP id m6so2811815eab.13 for ; Wed, 20 Jun 2012 06:18:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=rALuY0+yWi8LbnVPV73MUiMTboU6XfmqCkFz4dZ4brQ=; b=MWEdLUiXhK9cdzcfaM2CqTWaNc6GLgDvaaBJNYIFjPZngLghdeZ8SN1FDfIHYvHWSH 5XGHaXknc4HW+7NNj0cNj6D81CotrIkrF+2G61RKhTG8ixjPeXgaWXI8F+uqwl+foE7g 2bikYKQVe34x73YWioTdiS2rPEeVKhN71mqeyTgpxF2jlPX4kirchNgOzemSFVp7ef8u zIcTeGlzCC8UHOGyNoBmEdo5u/aduMNEdGGc1wy00AVjxjKjjN056Fw8QTPsbL6IFvx5 aJSEWjBfzRQJY4JdnuMA9PSUSyDH3dukhOqdqcoiEijcbg5V9STgfbiQxVN3Mdvu5+gk kFbQ== Received: by 10.14.28.202 with SMTP id g50mr5169816eea.167.1340198330474; Wed, 20 Jun 2012 06:18:50 -0700 (PDT) Received: from [172.29.1.142] (altimet-gw.cs2.dp.wnet.ua. [217.20.178.249]) by mx.google.com with ESMTPS id q53sm90508216eef.8.2012.06.20.06.18.48 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Jun 2012 06:18:49 -0700 (PDT) Message-ID: <4FE1CD80.2060108@gmail.com> Date: Wed, 20 Jun 2012 16:17:52 +0300 From: Vitaly Magerya User-Agent: Thunderbird MIME-Version: 1.0 To: Mark Linimon References: <4FDF6177.5050608@unsane.co.uk> <4FDF6586.9060501@gentoo.org> <4FDFB166.2040709@FreeBSD.org> <4FDFB44D.9090308@gentoo.org> <4FE0ADCD.9010109@FreeBSD.org> <4FE0C123.8030301@gentoo.org> <4FE0F773.1080403@gentoo.org> <4FE100F9.2050009@funtoo.org> <20120620073920.GA5300@lonesome.com> In-Reply-To: <20120620073920.GA5300@lonesome.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Replacing rc(8) (Was: FreeBSD Boot Times) 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: Wed, 20 Jun 2012 13:18:52 -0000 Mark Linimon wrote: > fwiw, from previous discussions on FreeBSD boot time, ISTR that there > are other places where more time is spent. Some analysis to prove that > indeed the rc subsystem is the dominant term would be a good starting > place. While I don't want to proliferate this thread or advocate any kind of change, I want to address the sentiment that time spent in rc during boot is small or insignificant relative to the kernel time. The last time concurrent rc patches where proposed I measured boot time on my laptop (running 8.2-RELEASE i386 IIRC): out of 45 seconds from power on to login prompt, 20-25 where spent in rc, and parallel execution of it shaved off 7 seconds from boot time. I'm also seeing similar breakdown on VirtualBox: rc subsystem consistently takes about 40-50% of boot time. This is on a system with a static IP and where only sshd is started (even sendmail is disabled).