This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Improve the loading time with simple change in startkde.

Tags: None
(comma "," separated)
bigbruno
Registered Member
Posts
33
Karma
1
Tested on multiple computers. With Kubuntu and BigLinux distributions.

Replace in /usr/bin/startkde:

Code: Select all
LD_BIND_NOW=true /usr/lib/kde4/libexec/start_kdeinit_wrapper +kcminit_startup


By:

Code: Select all
if [ "`grep Hidden=false ~/.config/autostart/plasma-netbook.desktop`" = "" ]; then
    LD_BIND_NOW=true /usr/lib/kde4/libexec/start_kdeinit_wrapper +kcminit_startup +kwrapper4 plasma-desktop
else
    LD_BIND_NOW=true /usr/lib/kde4/libexec/start_kdeinit_wrapper +kcminit_startup +kwrapper4 plasma-netbook
fi


In my tests the average gain was 5 seconds to load KDE.
User avatar
rubentje1991
Registered Member
Posts
58
Karma
0
OS
Thanks for the tip....
Maybe I'll try this on my testing pc :)


using PCLinuxOS 2010.7 KDE Version
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
Interesting.

Just wanted to note that ~/.config is a directory value which can be reconfigured using a certain environment variable: $XDG_CONFIG_HOME

I it is set (and not empty) it points to the local config directory.
$HOME/.config is used as the default if it is unset or set to empty.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS
Didn't work for me (no time to inspect why though), but prebinding could be really beneficial to the startup process.


Image
bigbruno
Registered Member
Posts
33
Karma
1
I tested only on distributions Kubuntu, and BigLinux.

The most notable difference is only with the active ureadahead. I do not know how this change behaves in other distributions.
User avatar
sylvainsjc
Registered Member
Posts
22
Karma
0
OS
Well don't see any change in LinuxMint 9 Kde Edition (4.4.5) :-\

I have the package ureadahead
User avatar
sredna
Registered Member
Posts
225
Karma
1
OS
Appears to make some improvement here, on archlinux, but I have not tried to measure it.
rthomsen
Registered Member
Posts
17
Karma
0
OS
Great tip!
I can confirm a reduction in loading time of around 5 seconds.

I'm running KDE 4.8 on a LFS system.
deadeyes
Registered Member
Posts
34
Karma
0
Hi all,

I made this change as well on a Gentoo system.

I am not sure at what part I should get the time reduction.

In the past I had after logging in and after the little animation that a few seconds my desktop was not responding(at least the kde part) ( after a few seconds it was responding).
That seems to be solved now however I want to evaluate this further as my issue might not be happening all the time.

So I keep you guys posted.
rthomsen
Registered Member
Posts
17
Karma
0
OS
This tip breaks the taskbar thumbnails effect.
deadeyes
Registered Member
Posts
34
Karma
0
Sorry guys, I can't confirm if this acutally speeds up or not.
It seems that the problem I described earlier isn't occuring that often anymore however that might have to do with other things.
User avatar
manasij7479
Registered Member
Posts
52
Karma
0
OS
deadeyes wrote:In the past I had after logging in and after the little animation that a few seconds my desktop was not responding(at least the kde part) ( after a few seconds it was responding).
That seems to be solved now however I want to evaluate this further as my issue might not be happening all the time.

Same, for me.


Manasij Mukherjee @ Arch Linux | gcc-4.9.2 | Plasma 5.2
Neo2SHYAlien
Registered Member
Posts
1
Karma
0
OS
bigbruno wrote:Tested on multiple computers. With Kubuntu and BigLinux distributions.

Replace in /usr/bin/startkde:

Code: Select all
LD_BIND_NOW=true /usr/lib/kde4/libexec/start_kdeinit_wrapper +kcminit_startup


By:

Code: Select all
if [ "`grep Hidden=false ~/.config/autostart/plasma-netbook.desktop`" = "" ]; then
    LD_BIND_NOW=true /usr/lib/kde4/libexec/start_kdeinit_wrapper +kcminit_startup +kwrapper4 plasma-desktop
else
    LD_BIND_NOW=true /usr/lib/kde4/libexec/start_kdeinit_wrapper +kcminit_startup +kwrapper4 plasma-netbook
fi


In my tests the average gain was 5 seconds to load KDE.


For me with KDE 4.10.5 this works fine without issues. I just skip the IF/ELSE condition and replace my LD_BIND_NOW with the desktop string (the first one), because I use desktop PC. If you use netbook use the netbook string (the second one).

Thanks for the nice tuning 8) My KDE load time now is around 5sec


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot]