[systemd-devel] startup performance

Lennart Poettering lennart at poettering.net
Tue Oct 9 13:20:23 PDT 2012


On Tue, 09.10.12 14:55, Allmeroth, Robert (robert.allmeroth at harman.com) wrote:

heya,

> If I do the modprobe on console it's much faster than from within systemd.
> The measurements show that the call to
> int kmod_setup(void) {
>   ...
>   return wait_for_terminate_and_warn(cmdline[0], pid);
> }
> consumes nearly exactly 1 second.
> [    4.990000] <30>systemd[1]: TIME: after exec_spawn: usec: 4990072
> [    5.910000] <30>systemd[1]: TIME: after kmod setup: usec: 5918865
> 
> Since in the end waitid() is called blocking, my only guess is that this function sets up a timer which runs at minimum 1 second.
> (We currently use eglibc from code sourcery)

Umm. We directly call into libkmod for this since a long long
time. Please update your installation to something more recent.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list