You are not logged in.

#1 2011-03-19 12:47:43

ernetas
Member
Registered: 2011-03-13
Posts: 79

Always booting from hibernation image

Is it possible to make ArchLinux always boot from hibernation image? Considering so many services starting up during boot, I think that could boost my boot time a lot.

Offline

#2 2011-03-19 12:53:25

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Always booting from hibernation image

The gain is actually not that great, since many of the time consuming processes like loading modules still need to be done from hibernation. I think compiling a static kernel with built-in modules will be more effective than always resuming from hibernation.

Having said that, for what you want you could check out Tuxonice, it features stuff like a kiosk-mode, which means that you always boot from a preset hibernation image. Tuxonice requires a custom kernel, but here are prebuilt kernels like kernel26-pf available in private repos.


ᶘ ᵒᴥᵒᶅ

Offline

#3 2011-03-19 12:58:07

ernetas
Member
Registered: 2011-03-13
Posts: 79

Re: Always booting from hibernation image

Nice, thanks. Talking about built-in modules, I don't really need them, since the lag is not about the modules, but more about daemons like samba, cups, etc.

Offline

#4 2011-03-19 13:01:22

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Always booting from hibernation image

ernetas wrote:

Nice, thanks. Talking about built-in modules, I don't really need them, since the lag is not about the modules, but more about daemons like samba, cups, etc.

Right, but those also need to be loaded into memory like with a normal boot. Suspending to ram would help more here, so you could also consider using that instead.


ᶘ ᵒᴥᵒᶅ

Offline

#5 2011-03-20 08:52:01

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Always booting from hibernation image

I don't know how it is implemented but I imagine that reading the hibernate image could be sequential instead of random reads like starting different daemons which requires loading different libs all at once so on magnetic disks it is possible that it is much faster.


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

Board footer

Powered by FluxBB