Re: tracer_init_tracefs really slow
From: Steven Rostedt
Date: Wed Dec 09 2020 - 11:18:57 EST
On Wed, 09 Dec 2020 15:38:50 +0100
Lucas Stach <l.stach@xxxxxxxxxxxxxx> wrote:
> - trace_eval_init();
> -
> ... and this. Moving the trace_eval_init into its own initcall means it
> gets started before tracer_init_tracefs. As it holds the
> trace_event_sem while updating the eval maps, event_trace_init() then
> blocks further initcall execution when it tries to grab this semaphore
> a bit down the line, killing the parallelism we are trying to unlock
> here.
>
> With those 2 lines dropped, the change seems to work as intended and
> shaves ~830ms from the kernel boot time on this system.
Ah, the rationale to do that was so that it could start parsing earlier.
But you are right, if it's really slow, and is still parsing by the time we
start populating the tracefs directory, it will then cause that to block as
well.
OK, I wont move it into its own initcall and send a v2.
-- Steve