Re: Optimizing boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Apr 29, 2014 at 06:28:42PM -0400, Toyam Cox wrote:
> On Tue, Apr 29, 2014 at 6:17 PM, Jan Alexander Steffens <
> jan.steffens@xxxxxxxxx> wrote:
> 
> > On Wed, Apr 30, 2014 at 12:06 AM, Toyam Cox
> > <csupercomputergeek@xxxxxxxxx> wrote:
> > > Hello,
> > >
> > > I want to have a sub-30 second boot time, so as to make it possible for
> > me
> > > to power down my computer and power back up at a moment's notice. Right
> > > now, I have a (according to my watch) ~35 second boot time. I used
> > > systemd-analyze, and discovered that NetworkManager.service is running
> > for
> > > 12 seconds of that time! Also, polkit.service runs quite a while after
> > > everything else, but that is less important.
> > >
> > > How do I optimize NetworkManager.service to shorten boot times,
> > especially
> > > as I don't need a network first-thing?
> > >
> > > --
> > > - Toyam
> >
> > Are you using a display manager? If not (getty), add a snippet for
> > getty@.service to use Type=simple instead of Type=idle (making it
> > start ASAP) and add "quiet" to the kernel command line so boot
> > messages are suppressed. This will allow you to log in with getty
> > while the system is still booting.
> >
> 
> 
> I'm using LXDM, my attempt to be lightweight with a GUI. Would Type=simple
> still work with LXDM? I notice it starts relatively soon in the boot
> process, meaning I'd need to figure out getting polkit to start even
> sooner, but is it an option?
> 
> -- 
> - Toyam

LXDM is separate from getty. Getty runs on a TTY and prompts the user for a
username. LXDM is a display manager, it runs on the X server and also prompts
the user for a username and password. I doubt changing settings for one will
affect the other. (Even though getty should by default run on all 6 initially
available TTYs. Correct me if I'm wrong.)

If you really want to speed up boot times you might want to consider cutting
down on the Display Manager as it is not essential to using a DE/WM with X
server. But in the end, because LXDM is supposedly so lightweight, and I
presume that you count starting X and running a DE/WM a part of the boot
process, you might not get any speed advantage.

In the end, it really is a matter of what you consider a "booted" machine. I
can get from halted and powered off to getty in under or around 20 seconds, a
few seconds to log in, a few more for X server and under a second for i3wm (Yes
it's lightning speed.) and I can be "booted" into a graphical environment in
around 30 seconds.

Attachment: pgphZKP7ZoDGy.pgp
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux