SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-05-31 17:46:24

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

systemd-analyze (startup fest)

Back, another thread! let check how fast we start our system.

systemd-analyze

Startup finished in 2.720s (kernel) + 7.223s (userspace) = 9.944s

If you're not doing restart now, remember for next time smile
"systemd-analyze" valid for systemd, others under the respective x distro commands.


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

Help fund CrunchBang, donate to the project!

#2 2015-05-31 17:49:10

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: systemd-analyze (startup fest)

[damo@cb-desktop ~]$ systemd-analyze
Startup finished in 1.222s (kernel) + 1.039s (userspace) = 2.262s

BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#3 2015-05-31 17:53:37

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: systemd-analyze (startup fest)

^ OMG!  Did you even get your finger off the "Power" button?


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4 2015-05-31 18:00:29

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: systemd-analyze (startup fest)

Hell yes damo! ]:D

Really can't remember my last time putting finger on Power button

I thought i was fast, hmm

Let check also wich to blame on startup too.

Last edited by Nili (2015-05-31 18:21:53)


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

#5 2015-05-31 18:06:36

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: systemd-analyze (startup fest)

empty@Arch ~ % systemd-analyze 
Startup finished in 2.199s (firmware) + 36ms (loader) + 3.410s (kernel) + 859ms (userspace) = 6.506s

Damn you, bloaty Arch kernel...
sad

Offline

#6 2015-05-31 18:14:29

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: systemd-analyze (startup fest)

root@jessie-container ~ # systemd-analyze 
Startup finished in 114ms (userspace) = 114ms

@damo: tongue

Offline

#7 2015-05-31 18:20:48

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: systemd-analyze (startup fest)

> systemd-analyze
Startup finished in 2.153s (firmware) + 3.139s (loader) + 2.084s (kernel) + 647ms (userspace) = 8.025s]

If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#8 2015-05-31 18:24:16

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: systemd-analyze (startup fest)

Using computers without full-disk encryption is nothing to be proud of.
--
But even with that it's still faster than any W1nðøwz3 machine.

Last edited by twoion (2015-05-31 18:25:48)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#9 2015-05-31 18:30:33

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: systemd-analyze (startup fest)

twoion wrote:

Using computers without full-disk encryption is nothing to be proud of.

http://xkcd.com/538/

Offline

#10 2015-05-31 18:39:43

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: systemd-analyze (startup fest)

twoion wrote:

Using computers without full-disk encryption is nothing to be proud of.
--
But even with that it's still faster than any W1nðøwz3 machine.

Actually, my /home partition is encrypted.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#11 2015-05-31 19:44:22

tknomanzr
#! Die Hard
From: Heavener, OK
Registered: 2014-12-09
Posts: 777

Re: systemd-analyze (startup fest)

Startup finished in 2.542s (kernel) + 805ms (userspace) = 3.347s
SSD's make the play-field fairly uneven, however.

Offline

#12 2015-05-31 19:57:21

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: systemd-analyze (startup fest)

I knew @HoaS would have some tricks up his sleeve big_smile

systemd-analyze blame shows a chunk of time being taken to mount 2 other partitions on the same drive, and 2 others on an SSD, so commenting them out in fstab now gives...

[damo@cb-desktop ~]$ systemd-analyze 
Startup finished in 1.205s (kernel) + 620ms (userspace) = 1.826s

Not bad for sidbang on a 2.5yr old desktop machine smile  O:)

(Now to restore the fstab items and get my home data back!...)

EDIT: I tried @HoaS's suggestion from another thread and used sysvinit as an alternative boot option in grub. With no investigation or tweaking, the boot time (from /var/log/dmesg) is about 0.4s(20%) slower than systemd.

How awful!

Last edited by damo (2015-05-31 22:04:16)


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#13 2015-05-31 21:45:47

KrunchTime
#! Die Hard
From: not where I belong
Registered: 2012-03-02
Posts: 3,264

Re: systemd-analyze (startup fest)

twoion wrote:

Using computers without full-disk encryption is nothing to be proud of.
--
But even with that it's still faster than any W1nðøwz3 machine.

You don't need full disk encryption and it's not worth the extra overhead.  You just need an encrypted partition to contain your sensitive files.


Linux User #586672
Come and Die -- Kyle Idleman

Offline

#14 2015-05-31 21:59:42

arnold
Member
Registered: 2014-10-22
Posts: 11

Re: systemd-analyze (startup fest)

How are some of you guys getting entries like firmware and loader etc? I only get kernel and userspace.


"Sometimes I wish I hadn't taken the blue pill" -Me

Offline

#15 2015-05-31 22:05:38

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: systemd-analyze (startup fest)

arnold wrote:

How are some of you guys getting entries like firmware and loader etc?.

UEFI wink

Offline

#16 2015-05-31 22:14:41

arnold
Member
Registered: 2014-10-22
Posts: 11

Re: systemd-analyze (startup fest)

Ahhh! Thanks


"Sometimes I wish I hadn't taken the blue pill" -Me

Offline

#17 2015-06-01 11:37:57

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: systemd-analyze (startup fest)

BunsenLabs

damo@bl-desktop:~$ systemd-analyze
Startup finished in 1.219s (kernel) + 458ms (userspace) = 1.677s

BL in VirtualBox VM, on the same hardware

[damo@bunsenlabs ~]$ systemd-analyze
Startup finished in 3.834s (kernel) + 6.374s (userspace) = 10.208s

Last edited by damo (2015-06-01 11:45:50)


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#18 2015-06-01 11:44:04

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: systemd-analyze (startup fest)

Let me shed some light on HoaS' startup time O:)  https://bbs.archlinux.org/viewtopic.php … 5#p1531895


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#19 2015-06-01 11:47:35

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: systemd-analyze (startup fest)

Unia wrote:

Let me shed some light on HoaS' startup time O:)  https://bbs.archlinux.org/viewtopic.php … 5#p1531895

Bad request. The link you followed is incorrect or outdated.


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#20 2015-06-01 13:40:12

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: systemd-analyze (startup fest)

Can i safely turn off "keyboard-setup.service" on startup? this is the only service that get 3sec on boot according to systemd-analyze blame


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

#21 2015-06-01 15:10:05

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: systemd-analyze (startup fest)

KrunchTime wrote:

You don't need full disk encryption and it's not worth the extra overhead.  You just need an encrypted partition to contain your sensitive files.

Oh, I disagree.

There is no significant overhead, even on slow computers. Maybe on a Pentium III you'll see a notable difference in disk I/O speed, but it doesn't matter on anything newer than that.

Next, what I need is probably left to me to decide. While it's not a realistic defense against teh supah creepy American spybots who haven't I hope found me out already, the risk of losing/getting your (mobile) machine stolen is real and sure as hell it'll prevent near 100% of people from looking at and even through my stuff, which is my priority. Besides, after my death certain files would strongly contribute to me being casted in the light of whatever is the opposite of 'saint'. I wouldn't like that.

Finally, any non-generic OS data is worth to be encrypted, /home and any other user data partitions, /etc for sensitive configuration (wireless network access passwords/certs, ssh config etc) and since you certainly do not know in minute detail what programs put below /var and /tmp (if it's not a tmpfs) these must be encrypted too in order to prevent /home from leaking. When e.g. hibernating/hybrid suspending, a memory image is written out to a place that most certainly is not in /home, so swap needs encryption too. Otherwise, just stop encrypting /home because it's useless. Considering the complexity of the task, the choices in terms of maintainability/simplicity, usefulness and security are pretty much encrypt everything or encrypt nothing.

I'm pretty opiniated on this, but I'm with the Encrypt All The Things faction.
--
To sum up: I don't care about this result:

 $ systemd-analyze
Startup finished in 15.893s (firmware) + 4.292s (loader) + 8.360s (kernel) + 6.934s (userspace) = 35.480s

Blaming things:

         12.841s updatedb.service
          5.034s man-db.service
          3.942s ufw.service
          2.542s netctl@wired\x2ddhcp.service
          2.392s lvm2-pvscan@254:0.service
          2.025s systemd-journald.service
          1.640s systemd-journal-flush.service
          1.259s xdm.service
          1.057s etckeeper.service

Last edited by twoion (2015-06-01 15:13:00)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#22 2015-06-01 17:04:56

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: systemd-analyze (startup fest)

damo wrote:
Unia wrote:

Let me shed some light on HoaS' startup time O:)  https://bbs.archlinux.org/viewtopic.php … 5#p1531895

Bad request. The link you followed is incorrect or outdated.

HoaS wrote:

Sorry, it was more in the way of a joke -- it's from a systemd-nspawn container wink

I guess it's in a closed forum section.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#23 2015-06-01 17:10:10

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: systemd-analyze (startup fest)

^ They keep those threads out of reach of the search engines ]:D

The time was from a Debian jessie systemd-nspawn container on my Arch system that I use to backport packages from sid & Experimental -- simples big_smile

Offline

#24 2015-06-01 17:18:43

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: systemd-analyze (startup fest)

Nili wrote:

Can i safely turn off "keyboard-setup.service" on startup? this is the only service that get 3sec on boot according to systemd-analyze blame

Yes -- Debian uses /etc/default/keyboard to set that up wink

However, it may not provide the improvement you might expect as `systemd-analyze blame` can be misleading.

Look at this instead:

systemd-analyze critical-chain

Or:

systemd-analyze plot > boot.svg

Then use inkscape to view boot.svg

And for the very curious there's always:

systemd-analyze dump

Offline

Be excellent to each other!

#25 2015-06-01 17:48:40

pingu
#! Junkie
Registered: 2014-12-05
Posts: 367

Re: systemd-analyze (startup fest)

arch on an hd

Startup finished in 2.931s (firmware) + 2.660s (loader) + 6.616s (kernel) + 19.515s (userspace) = 31.725s
$ systemd-analyze critical-chain                               :(
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character

graphical.target @19.440s
`-lxdm.service @19.436s
  `-systemd-user-sessions.service @19.256s +170ms
    `-remote-fs.target @19.254s
      `-remote-fs-pre.target @19.252s
        `-connman.service @18.147s +1.102s
          `-basic.target @15.611s
            `-sockets.target @15.609s
              `-dbus.socket @15.608s
                `-sysinit.target @15.606s
                  `-systemd-update-utmp.service @15.410s +193ms
                    `-systemd-tmpfiles-setup.service @13.740s +1.665s
                      `-systemd-journal-flush.service @10.774s +2.961s
                        `-systemd-journald.service @2.106s +8.665s
                          `-systemd-journald.socket @1.807s
                            `--.slice @1.739s

Wp0qTY0s.png

(thks, hoas, for the tips. I didnt' know  these features existed.)
too bad my main install, in an ssd, doesn't have systemd, but I swear it boots in less than 10s smile.

damo, are you using an ssd raid or something?
[video]https://www.youtube.com/watch?v=eULFf6F5Ri8[/video]

Last edited by pingu (2015-06-01 18:05:18)


"We don't merge kernel code just because user space was written by a retarded monkey on crack."
Linus f****g Trovalds

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo