Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is initramfs speeding up boot?[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3595

PostPosted: Wed Jul 30, 2014 3:59 am    Post subject: Is initramfs speeding up boot?[SOLVED] Reply with quote

Hi, dear all,

Before I start to tweak, & possibly break everything, I beg 4 your opinion whether initramfs should speed up my boot or not.
My laptop is layout is quite simple, single ext4 partition.

Thks 4 ur attention.


Last edited by CaptainBlood on Wed Jul 30, 2014 4:16 am; edited 1 time in total
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Wed Jul 30, 2014 4:14 am    Post subject: Reply with quote

No an initramfs will most certainly not do so. At best it will have a negligible impact.

The reason for this is simple. An The initramfs must do things that are repeated during init, like populating /dev etc.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3595

PostPosted: Wed Jul 30, 2014 4:16 am    Post subject: Reply with quote

Thks Doc,

As the sun is rising here, you've already saved my day.
Still wondering what initramfs is good for? Self answering @ http://www.linuxfromscratch.org/blfs/view/cvs/postlfs/initramfs.html

Thks 4 ur attention, interest & support.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Wed Jul 30, 2014 6:41 am    Post subject: Reply with quote

The initramfs is only needed if the kernel cannot mount the root partition na(t)ively, for example with a RAID or encrypted system, or kernel modules that need special actions, or have a beautiful splash screen.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
netixen
n00b
n00b


Joined: 26 Sep 2013
Posts: 31

PostPosted: Wed Jul 30, 2014 3:56 pm    Post subject: Reply with quote

In my humble opinion initramfs is just an ugly hack. If you can live without it you can save yourself unnecessary complexity.
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Wed Jul 30, 2014 5:58 pm    Post subject: Reply with quote

CaptainBlood wrote:
Still wondering what initramfs is good for?


also explained here https://wiki.gentoo.org/wiki/Custom_Initramfs

netixen wrote:
In my humble opinion initramfs is just an ugly hack.


What's the alternative? Implementing stuff into the kernel, that can already done by userspace tools, is uglier by far.

Initramfs is dead simple, it's unfortunate that most people consider it a black box when it's really not...
Back to top
View user's profile Send private message
netixen
n00b
n00b


Joined: 26 Sep 2013
Posts: 31

PostPosted: Wed Jul 30, 2014 7:10 pm    Post subject: Reply with quote

frostschutz wrote:
What's the alternative? Implementing stuff into the kernel, that can already done by userspace tools, is uglier by far.

Initramfs is dead simple, it's unfortunate that most people consider it a black box when it's really not...


I agree it works and i have used initrd and later initramfs when they are really needed.
But I too like you prefer 'simple' and for systems like my personal workstation that don't need to support everything and the kitchen-sink -
boot manager > linux kernel > init is perfectly fine since i don't have RAID, encrypted root or need a networked file system at boot.

If you ask most users why they use initramfs they can't even tell you, most probably have a kernel with modules even thou their hardware rarely changes. Less use lvm because their distro does and will probably never really use it. And all that is fine for the regular user who wants everything to just work.
An "ugly hack" was probably a phrase too loaded for what is a tool to solve a specific need. I as a professional like to use the proper tool for the job and not hammer down on
stuff that is not a nail.
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Wed Jul 30, 2014 7:19 pm    Post subject: Reply with quote

netixen wrote:
boot manager > linux kernel > init is perfectly fine since i don't have RAID, encrypted root or need a networked file system at boot.


Sure, that's perfectly fine. But that's not how it works for everyone - I have RAID, LUKS and LVM and I'm very glad to be able to make my own Initramfs to handle it properly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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