From owner-freebsd-current@freebsd.org Mon Mar 12 08:00:31 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 30536F524AE for ; Mon, 12 Mar 2018 08:00:31 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 888D26DBF0 for ; Mon, 12 Mar 2018 08:00:30 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: by mail-lf0-x229.google.com with SMTP id h127-v6so21701979lfg.12 for ; Mon, 12 Mar 2018 01:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HTYwtN7KsjpAv4EyatJPIpGWQkfUhiFtcFBDoEtFjA0=; b=KZE7yGud0quavCFr2/n9mXSui5LTBPiTHj+CpwpH2axZ7bPlK/5OC3odB/Ig9X4e1y mXIKQR0k0V6fk6bmvA7I6/uCFZgw0KBlDz8lnu19WWK8lVlQ30jh5ZMZ6Qm/btRgD/Ki cL93TiHJRyN7eeE1DUBoBhE6DLiNwkM1czTcIIpGESznB4VpgLRbWmocEIuepeEmyKaD h2H7s7wAJJUxRZI862EWbCP7LyI2stiAz/zDndzgDs6DMg/mO8lRxikZbumpxDczW9QT ExhMig5PTG//ZiNV9VTZsBV2YlTSf3cY+TOHfnvBw4GwWKLGIFimnI1YEa0UoOggHbCb hcow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HTYwtN7KsjpAv4EyatJPIpGWQkfUhiFtcFBDoEtFjA0=; b=X77g0VAGAHa4U90eo7vuozZ33IX0DuYr7bSV+h2450AyZ07v30qrMFiG4OZfnWI91O mXQpkRoJqxzj02vAjTOI5sZPziPZEtHaXbcy5jl4FfX/kJVysef6OZahx2laRvUeHnqN 6xfbWSKfVyLWRPFPpws4sN6UxnQOaPtMWxpz3c5QJ3WZ66BV3rI2Th3jNiY9/7YfatQ8 KNJizqbh3NASVaULn7utcPCmSzjSMkxehwVxj4hHbhqk0jST4kCSJMJyYEdKxZcVFPhf 3liCMrOxFEQDMpzySQLNGUMf62w/FC/1nFmTxqALk7w1yO+gJwW5RCjcYnlGtvyx6Bar O46A== X-Gm-Message-State: AElRT7GowGxkxKkTICJd9tlW7DFdJu9ZqtL2AgzcXZ7ZdLR3iYxnzHEj zdEqKzwZbo5XejMR5kTkmZQg9DBnFlb+04fZzQc= X-Google-Smtp-Source: AG47ELvbC01SnRp8MBUXL/3jZeh1GcUPHs5BbbDhCkLCkN/5Cj0abb7Fm+8Oc02NXu1aIfs7nAbLuM/V2B+q6ZsHR5Q= X-Received: by 2002:a19:20cb:: with SMTP id g194-v6mr4181953lfg.101.1520841629069; Mon, 12 Mar 2018 01:00:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.3.10 with HTTP; Mon, 12 Mar 2018 01:00:28 -0700 (PDT) In-Reply-To: <201803120730.w2C7UIcO077468@pdx.rh.CN85.dnsmgr.net> References: <20180312063526.263ab62d@freyja.zeit4.iv.bundesimmobilien.de> <201803120730.w2C7UIcO077468@pdx.rh.CN85.dnsmgr.net> From: Andreas Nilsson Date: Mon, 12 Mar 2018 09:00:28 +0100 Message-ID: Subject: Re: Speed up CD/DVD-based FreeBSD To: "Rodney W. Grimes" Cc: "O. Hartmann" , freebsd-current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 08:00:31 -0000 On Mon, Mar 12, 2018 at 8:30 AM, Rodney W. Grimes < freebsd-rwg@pdx.rh.cn85.dnsmgr.net> wrote: > > 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 > Hello, doesn't nanoBSD run in ro-mode per default, ie it should be somewhat tamper proof as is, even installed on disk. If running from optical drive is important, I would have a closer look on how pcbsd/trueos sets up their install-discs ( or at least used to, haven't tried one in a while ) where they basically load the entire file system into ram from a compressed image on the optical disc. Best regards Andreas