You are not logged in.

#1 2013-04-01 02:47:21

pablox
Member
From: /home/chile/santiago/
Registered: 2008-05-14
Posts: 183
Website

Slow startup with dkms.service

Since I enabled dkms:

~ ❯❯❯ systemd-analyze blame
 13990ms dhcpcd@eno1.service
   566ms dkms.service
   394ms systemd-fsck@dev-disk-by\x2duuid-b4c9f713\x2df86d\x2d42da\x2d98d2\x2dff4dd5f5386c.service
   257ms systemd-logind.service
   207ms systemd-fsck@dev-disk-by\x2duuid-6ac81a6d\x2da948\x2d441f\x2d94a5\x2d51e2ee7980cd.service
   188ms systemd-vconsole-setup.service
   173ms dev-mqueue.mount
   172ms sys-kernel-debug.mount
   172ms systemd-user-sessions.service
   168ms systemd-sysctl.service
   167ms systemd-udevd.service
   166ms sys-kernel-config.mount
   165ms systemd-remount-fs.service
   163ms dev-hugepages.mount
   160ms tmp.mount
   131ms home.mount
    96ms systemd-udev-trigger.service
    69ms systemd-tmpfiles-setup.service
    63ms systemd-journal-flush.service
    51ms dev-disk-by\x2duuid-7bb6c9d3\x2dcc24\x2d49b1\x2db732\x2d40ce126157ad.swap
    34ms systemd-random-seed-load.service
    22ms var.mount
    16ms alsa-restore.service
     1ms systemd-tmpfiles-clean.service

Yes, I know says dhcpcd is taking more time, but I'm seeing the boot stop for a while (2 or 3 seconds) on dkms service before clearing the screen showing log screen. My guess is that dhcpcd is working on "parallel" so it's actually not stopping the boot process, but dkms it is.

Note: I'm using the service because I'm using the catalyst drivers.


Geeks & Linux Atelier
An eye for an eye ... ends in making everybody blind -- Mahatma Gandhi
dotfiles

Offline

#2 2013-05-22 23:11:13

ackalker
Member
Registered: 2012-11-27
Posts: 201

Re: Slow startup with dkms.service

On my system, I'm seeing:

 7.446s dkms.service

much longer even than on yours.
From a cursory look at /usr/lib/systemd/scripts/dkms (which is what dkms.service runs) I can't say what would cause it to run that long when there are no new modules to compile.
Is there anyone who can tell us why this is?

EDIT: I can see two possible reasons:

1: From looking into it some more, when the file /etc/default/dkms contains the line:

LOAD=yes

(which it does by default) then dkms.service will try to load (i.e. modprobe) all modules marked as installed by dkms when it starts, in your case this includes the modules for your graphics card. That could take wildly varying amounts of time, depending on the specific set of modules involved.
If your dkms modules consist of only "device drivers" (which should normally be loaded automatically by the kernel/udev when it finds the hardware anyway), and any remaining dkms modules are not essential for booting, perhaps you could shave some milliseconds off your boot time by setting LOAD=no, so dkms.service doesn't waste time trying to (re)load them.

2: In my system log, there appears to be a "time-warp" of no less than 13 seconds into the future (caused by chronyd adjusting my clock) right in the middle of loading the dkms installed modules. I guess it is possible that systemd-analyze doesn't particularly like that kind of thing and reports wrong run times as a result. It doesn't completely explain why the run time is 'only' about 7.5 and not > 13 seconds, though.

Last edited by ackalker (2013-05-23 00:05:28)

Offline

Board footer

Powered by FluxBB