<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 9:14 AM, Thomas H.P. Andersen <span dir="ltr"><<a href="mailto:phomes@gmail.com" target="_blank">phomes@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, May 6, 2013 at 4:07 PM, Tom Gundersen <<a href="mailto:teg@jklm.no">teg@jklm.no</a>> wrote:<br>
> On Mon, May 6, 2013 at 2:51 PM, Lennart Poettering<br>
> <<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>> wrote:<br>
>> On Mon, 06.05.13 14:00, Umut Tezduyar (<a href="mailto:umut@tezduyar.com">umut@tezduyar.com</a>) wrote:<br>
>>> Would you be interested in a patch that shows "Systemd + Generators" or<br>
>>> maybe only "Generators"?<br>
>><br>
>> Well, I guess it makes sense to show how much time is spent in the<br>
>> generators and how much time is spent in systemd's own unit file loading<br>
>> (especially given that the latter isn't particularly optimized yet...)<br>
><br>
> Maybe also split out the SELinux loading as that seems to take a lot of time?<br>
</div></div>Maybe a general "Security loading" to also include the case of using<br>
smack or ima?<br>
<br>
In main.c we have this. We could get the start time right after<br>
mount_setup_early and finish time after label_init?<br>
<br>
if (!skip_setup) {<br>
mount_setup_early();<br>
if (selinux_setup(&loaded_policy) < 0)<br>
goto finish;<br>
if (ima_setup() < 0)<br>
goto finish;<br>
if (smack_setup() < 0)<br>
goto finish;<br>
}<br>
<br>
if (label_init(NULL) < 0)<br>
goto finish;<br>
<br>
Umut, is this something you plan to work on? Otherwise I can prepare<br>
some patches.<br></blockquote><div style>Umut: Hi. I am not planning to measure anything other than generators at the moment. Please feel free to add stuff. You could also move the time keeping to manager_init if you want. Otherwise, I will send an updated patch tomorrow. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</div></div></blockquote></div><br></div></div>