The FreeBSD init system just takes a looooong time and although I am just running it in a VM right now when I actually use FreeBSD for desktop usage the bootup time might be a problem. When windows took too long to boot I would end up doing nothing productive. It breaks the flow. I am gonna use the OpenRC or Runit systems but I was just wondering is it possible to make the time even shorter like clear Linux? (I know this goes against the forum rules but I am just curious)
startx
the same, immediately operational GUI (x11-wm/cwm)I noticed a probably important difference between booting a Windows 10 box (boss laptop HP EliteBook) and …
Heck a fast boot time is not a bad thing for servers because in a failure case, the services are up and running quicker.
This is my position also, even for my home desktops, but I acknowledge others have different needs.And I ABSOLUTELY don't care if the OS takes 10 or even 30 seconds longer to boot, as long as it comes up reliable and predictable/reproducible.
An OS booting and being reliable and predictable/reproducible, that goes without saying as it's the entire point of an OS booting...And I ABSOLUTELY don't care if the OS takes 10 or even 30 seconds longer to boot, as long as it comes up reliable and predictable/reproducible.
To add to that: That duration can be adjusted via autoboot_delay="10" in boot/loader.conf where the unit is seconds.It wait 10sec to show you the menu.
How would one go about doing that if the boot menu is disabled/skipped entirely? Does it involve booting a Live system, mounting the FS and setting some magic flag somewhere before booting?You can turn it off completely if you want. But it's going to make booting to single user mode, or selecting a different kernel or BE a little more challenging.
This is my loader.conf. I changed the UEFI bootorder to start directly freebsd. As you can see: The loader.efi is still the biggest chunk. At least 50% of the time is the loader.efi with an autoboot_delay of 1.kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
cryptodev_load="YES"
zfs_load="YES"
autoboot_delay=1
efi_max_resolution="1680x1050"
#hw.syscons.disable=1
screen.depth=8
nextboot(8) is quite useful in that case.How would one go about doing that if the boot menu is disabled/skipped entirely? Does it involve booting a Live system, mounting the FS and setting some magic flag somewhere before booting?
How would one go about doing that if the boot menu is disabled/skipped entirely? Does it involve booting a Live system, mounting the FS and setting some magic flag somewhere before booting?
I'm asking for a friend.
gpart show
=> 40 1953525088 ada0 GPT (932G)
40 409600 1 efi (200M)
409640 1953115488 2 freebsd-zfs (931G)
=> 34 1953525101 ada1 GPT (932G)
34 2014 - free - (1.0M)
2048 204800 1 efi (100M)
206848 4194304 2 linux-data (2.0G)
4401152 1949123983 3 !ca7d7ccb-63ed-4c53-861c-1742536059cc (929G) (encrypted luks)
=> 34 976773101 ada2 GPT (466G)
34 2014 - free - (1.0M)
2048 4194304 1 efi (2.0G)
4196352 962221696 2 ms-basic-data (459G)
966418048 384 - free - (192K)
966418432 1187840 3 ms-recovery (580M)
967606272 4096 - free - (2.0M)
967610368 1054720 4 ms-recovery (515M)
968665088 2048 - free - (1.0M)
968667136 1814528 5 ms-recovery (886M)
970481664 4194304 6 linux-data (2.0G)
974675968 204800 7 efi (100M)
974880768 32768 8 ms-reserved (16M)
974913536 204800 9 efi (100M)
975118336 1654799 - free - (808M)
inxi -F
System:
Host: Hammerhead Kernel: FreeBSD 13.1-RELEASE amd64 bits: 64
Console: pty pts/1 OS: FreeBSD 13.1-RELEASE
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: N/A
Mobo: ASUSTeK model: ROG STRIX B550-F GAMING v: Rev X.0x
serial: xxxxxxxxxxxxxxxxx UEFI: American Megatrends v: 2201 rev: 5.17
date: 04/07/2021
CPU:
Info: 16-core model: AMD Ryzen 7 3700X bits: 64 type: MCP MCM cache:
L2: 4 MiB note: check
Speed (MHz): 3593 min/max: N/A cores: No OS support for core speeds.
Graphics:
Device-1: AMD Curacao PRO [Radeon R7 370 / R9 270/370 OEM] driver: vgapci
Device-2: HD Pro Webcam C920 type: USB driver: N/A
Display: server: X.Org 1.20.14 driver: loaded: modesetting unloaded: vesa
resolution: 1: 1680x1050~60Hz 2: 1680x1050~60Hz
OpenGL: renderer: AMD Radeon HD 8800 Series (PITCAIRN DRM 3.35.0
13.1-RELEASE LLVM 13.0.1)
v: 4.6 Mesa 21.3.8
Audio:
Device-1: AMD Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000
Series]
driver: none
Device-2: AMD Starship/Matisse HD Audio driver: hdac
Sound Server-1: OSS v: 2009061500 running: yes
Sound Server-2: PulseAudio v: 14.2 running: yes
Network:
Device-1: Intel I350 Gigabit Network driver: igb
IF: igb0 state: no carrier speed: N/A duplex: N/A mac: a0:36:9f:00:82:3e
Device-2: Intel I350 Gigabit Network driver: igb
IF: igb1 state: active speed: 1000baseT duplex: full-duplex
mac: a0:36:9f:00:82:3f
Bluetooth:
Device-1: CSR8510 A10 type: USB driver: N/A
Report: No OS support. Is a comparable bluetooth tool available?
RAID:
Device-1: zroot type: zfs status: ONLINE level: linear raw: size: 928 GiB
free: 866 GiB zfs-fs: size: 899.25 GiB free: 807.91 GiB
Components: Online: 1:
Drives:
Local Storage: total: raw: 2.27 TiB usable: 4.06 TiB used: 58.29 GiB (1.4%)
ID-1: /dev/ada0 vendor: Samsung model: SSD 870 EVO 1TB SVT02B6Q
size: 931.51 GiB scheme: GPT
ID-2: /dev/ada1 vendor: Samsung model: SSD 860 EVO 1TB RVT03B6Q
size: 931.51 GiB scheme: GPT
ID-3: /dev/ada2 vendor: Samsung model: SSD 850 EVO 500GB EMT03B6Q
size: 465.76 GiB scheme: GPT
Partition:
ID-1: / size: 821.9 GiB used: 13.99 GiB (1.7%) fs: zfs
logical: zroot/ROOT/default
ID-2: /tmp size: 809.32 GiB used: 1.41 GiB (0.2%) fs: zfs
logical: zroot/tmp
ID-3: /usr/home size: 815.44 GiB used: 7.53 GiB (0.9%) fs: zfs
logical: zroot/usr/home
ID-4: /var/log size: 807.91 GiB used: 965 KiB (0.0%) fs: zfs
logical: zroot/var/log
ID-5: /var/tmp size: 807.91 GiB used: 24 KiB (0.0%) fs: zfs
logical: zroot/var/tmp
Swap:
ID-1: swap-1 type: partition size: 32 GiB used: 0 KiB (0.0%)
dev: /dev/zvol/zroot/swap
Sensors:
System Temperatures: cpu: 42.1 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 118 Uptime: 53m Memory: 31.88 GiB used: 4.65 GiB (14.6%)
Shell: Bash inxi: 3.3.11
./stackcollapse-tslog.pl < ts.log | sh supercollapse.sh | head -n20
67470759036 interp_init
57309920784 BIOS
22762042776 317 /sbin/rtsol
14855929380 autoload_font
12667152157 _sleep
12463797132 kvprintf
11232296208 cons_probe
7637027724 1180 sleep
4526271000 hammer_time;DELAY
3826980900 343 sleep
3822667308 344 sleep
3668996087 kernel
2970714456 179 kldload
2337738912 472 /etc/rc.d/netif
2087294112 VFS_MOUNT zfs
1693931652 twiddle
1623312576 DEVICE_ATTACH atkbd;DELAY
1425531960 1294 /etc/rc.d/zfsd
996503509 1030 /etc/rc.d/devmatch
987635592 efipart_readwrite