From nobody Wed Aug 17 01:04:07 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M6qY15Ctpz4YTcn for ; Wed, 17 Aug 2022 01:04:21 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx0.riseup.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M6qY053WZz3BpN for ; Wed, 17 Aug 2022 01:04:20 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4M6qXz4t7Yz9swb for ; Wed, 17 Aug 2022 01:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1660698259; bh=rFRjDGN2dOSk5F6fG9j0Ub3OVLW3xmrE7BExjEpF3ns=; h=Subject:From:To:Date:In-Reply-To:References:From; b=hB3wmWZvRhHpSgjbmGbklW/U7T3IHUF+NZwjWAsfrELR0QPQG751y3FsWip1jM0nh A0aIgqxoHDk/KNHLud+I6cAo/wPFpDuuks+TTuFulMr1ZkUauDt3NDnmPqUBdHUFH7 bPTAb+xvSuhOSGUdUI7ergSDOxzIPWyCRTksDaQI= X-Riseup-User-ID: C7A89AA9EFF858EEC93D38C480746A43D88FAA1F51B9CC1C75C003DD2CCF3D08 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4M6qXz0VLFz5vW6 for ; Wed, 17 Aug 2022 01:04:18 +0000 (UTC) Message-ID: <62bc3208799efbb5d6cb4f9f8251716466146a7f.camel@riseup.net> Subject: Re: How fast can I get FBSD to boot? From: Ralf Mardorf To: questions@freebsd.org Date: Wed, 17 Aug 2022 03:04:07 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Rspamd-Queue-Id: 4M6qY053WZz3BpN X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=hB3wmWZv; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (mx1.freebsd.org: domain of ralf-mardorf@riseup.net designates 198.252.153.6 as permitted sender) smtp.mailfrom=ralf-mardorf@riseup.net X-Spamd-Result: default: False [-3.10 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; R_SPF_ALLOW(-0.20)[+a:mx0.riseup.net:c]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[198.252.153.6:from]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[riseup.net:+]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[riseup.net:dkim]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, 2022-08-16 at 15:06 -0400, Alejandro Imass wrote: > Thank you all for your suggestions=C2=A0and taking time to respond=C2=A0t= o this > thread! >=20 > The Linux distro I have in mind is Tiny Core Linux, it boots really > fast and it's around 10MB in size. Hi, if you are in favour of FreeBSD consider to test BusyBox with FreeBSD. Tiny Core Linux is probably way faster than my bloated Arch Linux (not using BusyBox) desktop install. I don't care about the startup time, since the machine is usually up 24/7. Probably systemd is faster than using init scripts. [rocketmouse@archlinux ~]$ systemd-analyze Startup finished in 2.653s (kernel) + 4.006s (userspace) =3D 6.660s=20 graphical.target reached after 3.619s in userspace. [rocketmouse@archlinux ~]$ systemd-analyze blame | head 11min 38.519s fstrim.service 1.727s dev-sdc1.device 1.419s man-db.service 1.162s udisks2.service 696ms systemd-hwdb-update.service 614ms ldconfig.service 504ms systemd-random-seed.service 445ms systemd-udev-trigger.service 428ms accounts-daemon.service 389ms alice-dhcp.service This is with a slow dual-core CPU and a bloated (realtime-patched) kernel. The patch isn't the issue, but the kernel contains trillions of modules I never ever will need, hence I could compile without those modules. Right now I see that I even don't need all started services. One of the slow services is udisks2.service, I guess I don't need it, since I'm mounting by command line, not by mouse click. [rocketmouse@archlinux ~]$ hwinfo --cpu --memory | grep -eModel -eSize | gr= ep -v Main| sort -u Memory Size: 15 GB Model: 6.60.3 "Intel(R) Celeron(R) CPU G1840 @ 2.80GHz" Regards, Ralf