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

Trying to speed the login time in kde

Tags: None
(comma "," separated)
User avatar
manchette
Registered Member
Posts
285
Karma
0
OS
Hello ;)

I'm wondering how i can have a quicker "boot" time, it actually takes me 2 minutes to have my desktop ready for use (when i hear the music from the kde desktop).
I'm not trying to understand in depth the boot sequence/process (boot / autologin/desktop) but i'm wondering which part of it i can optimize to have my pc ready for use (if possible). Is there anything i can do in kde to gain speed ? (nepomuk is already off)

i'm actually using
kde 4.9.2 "release 511"

Thanks ;)


Code: Select all
opensuse122:~ # systemd-analyze blame
 24310ms network.service
  7002ms nxserver.service
  6797ms systemd-modules-load.service
  5299ms systemd-vconsole-setup.service
  4740ms console-kit-log-system-start.service
  2454ms cycle.service
  2290ms avahi-daemon.service
  2286ms remount-rootfs.service
  2267ms localnet.service
  2251ms systemd-logind.service
  1921ms syslog.service
  1697ms udev.service                                                                                                                                                                                                                       
  1310ms fglrxrebuild.service                                                                                                                                                                                                               
  1294ms ntp.service                                                                                                                                                                                                                         
  1246ms apparmor.service                                                                                                                                                                                                                   
   714ms var-run.mount                                                                                                                                                                                                                       
   699ms var-lock.mount                                                                                                                                                                                                                     
   687ms media.mount                                                                                                                                                                                                                         
   680ms sys-kernel-debug.mount                                                                                                                                                                                                             
   665ms dev-hugepages.mount                                                                                                                                                                                                                 
   651ms systemd-tmpfiles-setup.service                                                                                                                                                                                                     
   651ms sys-kernel-security.mount                                                                                                                                                                                                           
   640ms dev-mqueue.mount                                                                                                                                                                                                                   
   629ms udev-root-symlink.service                                                                                                                                                                                                           
   613ms systemd-remount-api-vfs.service                                                                                                                                                                                                     
   491ms home.mount                                                                                                                                                                                                                         
   482ms vboxdrv.service                                                                                                                                                                                                                     
   450ms systemd-sysctl.service                                                                                                                                                                                                             
   357ms stockage3.mount                                                                                                                                                                                                                     
   337ms auditd.service                                                                                                                                                                                                                     
   329ms stockage2.mount                                                                                                                                                                                                                     
   274ms network-remotefs.service                                                                                                                                                                                                           
   250ms acpid.service                                                                                                                                                                                                                       
   139ms upower.service                                                                                                                                                                                                                     
   136ms rc-local.service                                                                                                                                                                                                                   
   127ms fbset.service                                                                                                                                                                                                                       
   125ms nxsensor.service                                                                                                                                                                                                                   
   124ms systemd-readahead-replay.service                                                                                                                                                                                                   
   120ms console-kit-daemon.service                                                                                                                                                                                                         
   115ms systemd-readahead-collect.service                                                                                                                                                                                                   
    81ms cpufreq.service                                                                                                                                                                                                                     
    62ms stockage1.mount
    58ms udev-trigger.service
    47ms udisks2.service
    43ms bluez-coldplug.service
    33ms sshd.service
    32ms rtkit-daemon.service
    30ms xdm.service
    29ms osvirtuels.mount
    29ms atieventsd.service
    27ms systemd-user-sessions.service
    19ms vboxballoonctrl-service.service
    16ms vboxautostart-service.service
    13ms vboxweb-service.service

opensuse122:~ # inxi -F
System:    Host: opensuse122 Kernel: 3.6.3-1-desktop i686 (32 bit)
           Desktop N/A Distro: openSUSE 12.2 (i586) VERSION = 12.2 CODENAME = Mantis
Machine:   Mobo: N/A model: P43Twins1600 Bios: American Megatrends version: P1.80 date: 09/03/2008
CPU:       Dual core Intel Core2 Duo CPU E8400 (-MCP-) cache: 6144 KB flags: (lm nx sse sse2 sse3 sse4_1 ssse3 vmx)
           Clock Speeds: 1: 2003.00 MHz 2: 3003.00 MHz
Graphics:  Card: Advanced Micro Devices [AMD] nee ATI RV770 [Radeon HD 4850]
           X.org: 1.12.3 driver: fglrx tty size: 237x70 Advanced Data: N/A for root
Audio:     Card-1: Advanced Micro Devices [AMD] nee ATI RV770 HDMI Audio [Radeon HD 4850/4870] driver: snd_hda_intel
           Card-2: Intel 82801JI (ICH10 Family) HD Audio Controller driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture ver: 1.0.25
Network:   Card: Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller driver: r8169
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: 00:19:66:a0:a6:a4
Drives:    HDD Total Size: 1640.4GB (37.5% used) 1: /dev/sda WDC_WD1600PD 160.0GB
           2: /dev/sdb WDC_WD1600PD 160.0GB 3: /dev/sdc ST3320620AS 320.1GB
           4: /dev/sdd SAMSUNG_HD103UJ 1000.2GB
Partition: ID: / size: 30G used: 27G (94%) fs: rootfs ID: / size: 30G used: 27G (94%) fs: ext4
           ID: /home size: 113G used: 27G (25%) fs: ext4 ID: swap-1 size: 3.23GB used: 0.00GB (0%) fs: swap
Sensors:   Error: You do not have the sensors app installed.
Info:      Processes: 202 Uptime: 1:22 Memory: 1256.1/3990.0MB Client: Shell inxi: 1.7.24




manchette, proud to be a member of KDE forums since 2008-Oct.
last openSUSE version : Leap 42.1... / Last Kde Plasma version : 5.0.xxx ...
User avatar
google01103
Manager
Posts
6668
Karma
25
have you considered hibernating or sleeping instead of shutting down?

you actually have 2 q's here - 1) optimizing the Linux boot and 2) optimizing the time till KDE is usable
- optimizing boot might be better asked on the openSUSE forum
- 10sec of boot are for NX server and Avahi daemon, are these needed?

when KDE starts are there a number of autostart processes? are you restoring the previous session?

I always thought installing a small ssd for the OS (everything but /home) would be a good solution


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25
have you seen:

For Boot:
"Optimizing a boot time, aka 2 second boot" http://lizards.opensuse.org/2012/07/26/ ... cond-boot/
"systemd Optimizations" http://freedesktop.org/wiki/Software/sy ... imizations
"Optimize Fedora Booting Process" http://bsriram.wordpress.com/2012/10/22 ... g-process/

For KDE:
"KDE rather slow to start" viewtopic.php?f=66&t=101038&start=15


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
manchette
Registered Member
Posts
285
Karma
0
OS
hi,

1- actually i need to find whereis set the auto login to be sure if the boot process is ok or not (i did nit tick the option in system config)
i've got no clue what avahi daemon is used for

2- i don't think i have autostart processes, though i'm not sure of this
yes i'm restoring the previous session, isn't this default ?

i'm going to check the links you gave thank you ;)

google01103 wrote:have you considered hibernating or sleeping instead of shutting down?

you actually have 2 q's here - 1) optimizing the Linux boot and 2) optimizing the time till KDE is usable
- optimizing boot might be better asked on the openSUSE forum
- 10sec of boot are for NX server and Avahi daemon, are these needed?

when KDE starts are there a number of autostart processes? are you restoring the previous session?

I always thought installing a small ssd for the OS (everything but /home) would be a good solution


manchette, proud to be a member of KDE forums since 2008-Oct.
last openSUSE version : Leap 42.1... / Last Kde Plasma version : 5.0.xxx ...
User avatar
google01103
Manager
Posts
6668
Karma
25
1) auto login - you mean bypass the KDE login?and automatically start your session, if so in systemsettings -> login manager -> convenience

2)
- restoring the previous session is convenient but will take longer because all the apps previously running will be automatically started. Widgets and system tray apps also are being loaded.
- autostart processes can be started in a multitude of places, check ~/.config/autostart and ~/.kde4/share/autostart , systemsettigns -> startup & shutdown -> autostart should display both


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
manchette
Registered Member
Posts
285
Karma
0
OS
hello,

about autologin i edited /etc/systemconfig/displaymanager
i may switch off avahi and postix daemons

i have almost nothing in autostart :
~/.config/autostart # ls
rundbus.desktop
~/.kde4/share/autostart> is empty

i'm gonna try to begin with an empty session to see what it actually does.


manchette, proud to be a member of KDE forums since 2008-Oct.
last openSUSE version : Leap 42.1... / Last Kde Plasma version : 5.0.xxx ...
User avatar
manchette
Registered Member
Posts
285
Karma
0
OS
i'm still reading the above links, i already gained more than 20 seconds disabling services ...


manchette, proud to be a member of KDE forums since 2008-Oct.
last openSUSE version : Leap 42.1... / Last Kde Plasma version : 5.0.xxx ...
User avatar
manchette
Registered Member
Posts
285
Karma
0
OS
i'm actually with this
systemd-analyze
Startup finished in 5659ms (kernel) + 30590ms (userspace) = 36250ms

which is quite better compared to previous 115secs !!

i'm disturbed by the fact i can't always see grub screen , how can i boot on a different kernel then ? (i've some tests to do skipping ram disk and turning off plymouth also)


manchette, proud to be a member of KDE forums since 2008-Oct.
last openSUSE version : Leap 42.1... / Last Kde Plasma version : 5.0.xxx ...
User avatar
google01103
Manager
Posts
6668
Karma
25
when you say "can't always see grub" is there any correlation to how you sign out? init 0 or halt or restart or shut down?

only time I don't see grub screen is when I hibernate

did you change boot loader in Yast or grub.conf or menu.lst ?

what do you mean by different kernel? desktop vrs default?

when done how about posting what you did to get the speed up


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
manchette
Registered Member
Posts
285
Karma
0
OS
sorry i did not update everyhting here, i changed the timeout in menu.lst to 1 second , but had forgottent about it, 5 seconds is better. Different kernels meant versions ( 3.5, 3.6 ...) of the desktop one.

from the boot process view point : in fact i stopped services in yast/runlevel or with systemctl according to what i'm not using :
postfix, avahi... i also follewed the uls you gave above, for example trying results with and without plymouth, or initrd.
I'm still trying the option without initrd And plymouth, this shall be great for without initrd "blame" shows that plymouth takes 16secs out of 40 (!)

from the gui viewpoint : i'm not there yet ;)


manchette, proud to be a member of KDE forums since 2008-Oct.
last openSUSE version : Leap 42.1... / Last Kde Plasma version : 5.0.xxx ...


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]