Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel on usb stick
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
aych
Guru
Guru


Joined: 20 May 2004
Posts: 304

PostPosted: Sun Jul 12, 2009 11:25 pm    Post subject: kernel on usb stick Reply with quote

Just wondering if anyone has any insight onto the effect of placing the kernel on a usb key? would I experience an increase or decrease in bootimes in that case? It probably reads slightly slower than a hard drive but there is no seek time.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sun Jul 12, 2009 11:35 pm    Post subject: Reply with quote

I presume you mean the entire contents of /boot, not just the kernel?

Once the kernel actually loads, it wouldn't slow down the boot process at all, but it wouldn't make it the least bit faster either; the kernel is read just once at boot and loaded into ram.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
aych
Guru
Guru


Joined: 20 May 2004
Posts: 304

PostPosted: Mon Jul 13, 2009 6:57 am    Post subject: Reply with quote

yes, I meant the entire contents of /boot. I am planning to do a software raid 0
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Mon Jul 13, 2009 9:17 pm    Post subject: Reply with quote

Loading the kernel from the USB key will be slow. Because while most boards support boot from USB these days, they tend to do it in the (simpler) USB 1 mode, at a very low transfer rate <1MB/s. So if your kernel is 5MB because you compiled in a lot of drivers and added an initramfs, loading the kernel image alone will take over 5 seconds.

Once it's loaded the boot process will continue normally. If your root filesystem was actually stored on USB as well, it would again slow down since the Linux kernel takes some time to detect USB devices, so you'd have to wait another couple of seconds until you can actually mount the root partition.

So you will lose between 5-10 seconds when booting from USB, compared to booting from a faster media.

If you boot often this may become a nuisance. However if you're the type who boots once a day and then just lets the machine run, there'll be no difference at all, since once the kernel is loaded from USB, it no longer affects how the system runs at all.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum