News for hackers. Stuff that matters.
Re:Boot to Vim, Vim as PID 1 by marginalia_nu on Saturday April 22, 2023 @08:48AM (#35666104)
It's pretty fast though. I experimented with minimal sysv init setups a bit about 15-20 years ago. I got boot times of like 10-15 seconds. This was off mechanical hard drives. Your average system took minutes to boot back then. I'd guess modern hardware would boot basically in a second (after POST).
Re:Boot to Vim, Vim as PID 1 by amelius on Saturday April 22, 2023 @09:28AM (#35666421)
I wonder when we finally get lazy booting. I.e., services get initialized when they are actually being used.
Re:Boot to Vim, Vim as PID 1 by marginalia_nu on Saturday April 22, 2023 @10:13AM (#35666801)
I question whether there's any point to that. Would just make the system randomly and inexplicably sluggish until everything been fully initialized. That's a pretty miserable experience.
Re:Boot to Vim, Vim as PID 1 by amelius on Saturday April 22, 2023 @10:44AM (#35667055)
Why?

The system can still boot stuff in the background, even if it's not needed yet.

Re:Boot to Vim, Vim as PID 1 by marginalia_nu on Saturday April 22, 2023 @11:05AM (#35667280)
That makes stuff sluggish though. I have a laptop that does that. A full minute after it's at the desktop, it can't even render the mouse cursor smoothly, it's so busy doing stuff in the background.

I'd rather wait until its responsive than have this.

Re:Boot to Vim, Vim as PID 1 by qbasic_forever on Saturday April 22, 2023 @10:20AM (#35666853)
Pretty much every distro does this now, at least big distros like Ubuntu. Systemd did a ton of work to allow the entire init process to happen as lazily as possible with on demand socket, file and other unit activation. I don't think systemd gets enough respect for just how much it has massively improved booting into a ready machine.
Re:Boot to Vim, Vim as PID 1 by ktm5j on Saturday April 22, 2023 @12:26PM (#35668179)
I agree. I spent a lot of time working with systemd for work and was perfectly happy with it.
Re:Boot to Vim, Vim as PID 1 by chlorion on Saturday April 22, 2023 @07:41PM (#35671912)
Yeah, all systemd distros do this unless they for some reason are disabling it for specific services.

It makes a big difference too! I have used openrc and systemd on my desktop machine, and openrc by default is synchronous, it starts services one at a time and has to wait for each one to start before moving along. With systemd, it can start services asynchronously and in parallel! The difference in boot time is significant!

Openrc does support parallel startup but it's disabled by default because it can cause dead locks.

Re:Boot to Vim, Vim as PID 1 by pmalynin on Saturday April 22, 2023 @12:26PM (#35668180)
Thats how agents / daemons startup on iOS / macOS. They don't for the most part-up start up on boot or when a user-session is created -- but rather launchd will spawn them when it has to deliver the first message.