From owner-freebsd-current@freebsd.org Mon Mar 12 07:30:30 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0349DF5079F for ; Mon, 12 Mar 2018 07:30:30 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6AC416C5D0 for ; Mon, 12 Mar 2018 07:30:28 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w2C7UI0A077469; Mon, 12 Mar 2018 00:30:19 -0700 (PDT) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w2C7UIcO077468; Mon, 12 Mar 2018 00:30:18 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201803120730.w2C7UIcO077468@pdx.rh.CN85.dnsmgr.net> Subject: Re: Speed up CD/DVD-based FreeBSD In-Reply-To: <20180312063526.263ab62d@freyja.zeit4.iv.bundesimmobilien.de> To: "O. Hartmann" Date: Mon, 12 Mar 2018 00:30:18 -0700 (PDT) CC: freebsd-current X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Mon, 12 Mar 2018 07:30:30 -0000 > We have a special case of running FreeBSD (actually a NanoBSD) from a CD/DVD. > The reason behind using a CD/DVD is to prevent manipulations. > > Now, after the GUI hass started, the system autologin a user and autostarts > Firefox. But starting Firefox takes ~ 5 - 7 minutes, while the operating system > takes 2 - 3 minutes. As you can imagine, this isn't quite a useful time. > > Is there a simple way, considering enough RAM in the box, to speed up the > process? Loading Firefox makes the DVD drive moving the head very often - I > assume this is the fact because I can hear the head scratiching around very > intense. > > Does FreeBSD bring tools/facilities onboard to achive what I'm requesting or do > I need an additional port/softwarepackage? Are you custom building this CD-rom image, or is it just a slightly modified stock FreeBSD distritbution with some scripts? One suggestion would be to run from a mfs /usr, including /usr/local, as a sample on how to do this take a look at /etc/rc.initdiskless that does this for /etc and /var when booting diskless. I suspect your slow down is shared library linking time, which would mean you might also solve this problem by building a staticly linked firefox binary. This would be much simpler to try out. -- Rod Grimes rgrimes@freebsd.org