You are not logged in.

#1 2011-08-13 21:34:51

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Profiling KDE's startup?

A full KDE 4 desktop starts in about 15 seconds on my laptop. Openbox with KDE services, on the other hand, starts in roughly one second.

It would be nice if I could reduce that gap a bit, but I don't know what services are taking so long to start. Is there any way I can profile KDE's startup? That is, get a list of what programs are spawned by startkde, and how much time they take to execute (sort of like bootchart)?

Offline

#2 2011-08-13 21:55:37

MrCode
Member
Registered: 2010-02-06
Posts: 373

Re: Profiling KDE's startup?

You could try actually using bootchartd. big_smile

Offline

#3 2011-08-13 22:17:32

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Profiling KDE's startup?

D'oh! I am an idiot. Thank you. big_smile

Offline

#4 2011-08-13 23:07:08

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Profiling KDE's startup?

Well the answer is much as I suspected; plasma-desktop takes almost ten seconds to start, and is doing a lot of work during that time. I wonder what exactly it's doing.

Offline

#5 2011-08-15 07:22:25

adee
Member
From: The Moon
Registered: 2009-11-10
Posts: 110

Re: Profiling KDE's startup?

Heating up... it's plasma after all.

Offline

#6 2011-08-15 13:16:02

marvn
Member
From: Prague
Registered: 2010-01-05
Posts: 84

Re: Profiling KDE's startup?


core i5 4590, x86_64, nvidia 970

Offline

#7 2011-08-15 15:07:54

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Profiling KDE's startup?

Hmm... Thanks for the info, but considering the possibility for data destruction, I think I'll pass.

Offline

#8 2011-08-15 15:36:00

MrCode
Member
Registered: 2010-02-06
Posts: 373

Re: Profiling KDE's startup?

…not only that, but is plasma-desktop just waiting for I/O to complete (in which case e4rat could potentially do a lot of good), or is it using honest-to-goodness CPU time?

I apologize if this is way off…

Last edited by MrCode (2011-08-15 15:37:06)

Offline

#9 2011-08-15 16:13:23

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Profiling KDE's startup?

Looking at the chart, it's almost all CPU. It does do some disk IO but, as far as I can tell, not a whole lot.

Edit: here is the chart:


bootcharty.th.png

Come to think of it I'm not sure if CPU use masks disk I/O, so there could be continuous disk I/O with spikes of CPU usage.

Last edited by Gullible Jones (2011-08-15 16:16:32)

Offline

#10 2011-08-15 17:49:20

Lothium
Member
Registered: 2009-10-10
Posts: 192

Re: Profiling KDE's startup?

I use e4rat with KDE and I can tell you, that it speeds up the start of kde very very good! Without e4rat the start of KDE is slow as hell and with e4rat it is a lot faster (but with every KDE update I hope it gets faster).

Best regards!

Offline

#11 2011-08-15 19:19:11

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Profiling KDE's startup?

Well, thanks for the input... However, if the problem is that Plasma is using a ton of disk I/O, a specific tweak involving a specific filesystem is not a great solution.

(Which is why I've also brought this up on the KDE forum. Hopefully the developers there will have some useful input, or at least be able to improve the performance in future versions...)

Anyway for now I'd say that people who find KDE too sluggish should just abandon the Plasma desktop, and run a light window manager plus kdeinit. This gives you pretty much the full desktop's functionality, without the sluggishness (and without the dodginess of KWin).

Offline

Board footer

Powered by FluxBB