You are not logged in.

#1 2016-09-18 04:55:44

daguq
Member
Registered: 2016-09-13
Posts: 34

Booting the kernel faster

Here's my

 systemd-analyze
Startup finished in 4.029s (kernel) + 418ms (userspace) = 4.448s 

and my systemd-analyze critical-chain output

graphical.target @418ms
└─gdm.service @408ms +10ms
  └─systemd-user-sessions.service @403ms +2ms
    └─network.target @383ms
      └─NetworkManager.service @300ms +82ms
        └─dbus.service @223ms
          └─basic.target @201ms
            └─sockets.target @197ms
              └─dbus.socket @194ms
                └─sysinit.target @169ms
                  └─systemd-udev-trigger.service @102ms +62ms
                    └─system.slice @69ms
                      └─-.slice @61ms

From what I understand that , it is all related to the starting of services needed to run the GUI , not the services that were started with the kernel.
Any help on how I can further speed up the kernel boot process , will be appreciated smile

Offline

#2 2016-09-18 04:58:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Booting the kernel faster

You are booting in under 5 seconds and you want to speed it up? o_0


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-09-18 05:07:39

daguq
Member
Registered: 2016-09-13
Posts: 34

Re: Booting the kernel faster

I am actually testing how much farther can I go with the boot up process , faster it is , better !
"There are no two words in the English language more harmful than "good job"."

Offline

#4 2016-09-18 05:08:30

daguq
Member
Registered: 2016-09-13
Posts: 34

Re: Booting the kernel faster

jasonwryan wrote:

You are booting in under 5 seconds and you want to speed it up? o_0

I am actually testing how much farther can I go with the boot up process , faster it is , better !

Offline

#5 2016-09-18 06:03:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Booting the kernel faster

Don't expect to make too much in the way of perceptible gains at this point; you are essentially just ricing from here...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2016-09-18 09:14:15

DeadMetaler
Member
Registered: 2016-03-16
Posts: 42

Re: Booting the kernel faster

daguq wrote:

Here's my

 systemd-analyze
Startup finished in 4.029s (kernel) + 418ms (userspace) = 4.448s 

Booted from MBR or GPT?

Offline

#7 2016-09-18 09:43:12

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Booting the kernel faster

You could compile your own kernel, including only the modules that you actually use.

Offline

#8 2016-09-18 12:00:02

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Booting the kernel faster

Usually, with regular arch kernel, more time is spent loading the initramfs instead of the actual kernel. I think in your case systemd-analyze reports time spent loading both the kernel and initramfs in the "kernel" field.

See https://wiki.archlinux.org/index.php/Im … #Initramfs

Offline

#9 2016-09-18 18:30:54

daguq
Member
Registered: 2016-09-13
Posts: 34

Re: Booting the kernel faster

brebs wrote:

You could compile your own kernel, including only the modules that you actually use.

Exactly , I would like that . But how ?

Offline

#10 2016-09-18 18:51:37

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Booting the kernel faster


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#11 2016-09-21 05:01:47

infinarchy
Banned
Registered: 2016-09-19
Posts: 73

Re: Booting the kernel faster

empty

Last edited by infinarchy (2017-11-04 21:44:32)

Offline

#12 2016-09-22 20:45:13

baronmax
Member
From: Missouri, USA
Registered: 2012-04-22
Posts: 37

Re: Booting the kernel faster

There is a video on youtube about booting Linux in under 1 second, perhaps there's something to be learned from there.  He's talking about SoCs, but it's the same principles.


Intel 980x| 24GB RAM| Arch + Cinnamon/i3
Intel 2600K| 8GB RAM| Arch + Awesome/XFCE
Intel Q740| 6GB RAM| Arch + XFCE/Cinnamon
AMD Phenom x6 1090T| Ubuntu/Winblowz (gaming)

Offline

Board footer

Powered by FluxBB