<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 19, 2019 at 10:47 PM Subhashini Rao Beerisetty <<a href="mailto:subhashbeerisetty@gmail.com">subhashbeerisetty@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I’ve two Linux systems, I tried to measure how long<br>
wait_for_completion_interruptible_timeout() blocked after completion<br>
is signaled by complete() call. I noticed two different results in<br>
both systems.<br>
<br>
In one system I noticed this duration in between 10 to 60 micro<br>
seconds, where as in other system  it is in between 20 to 500 micro<br>
seconds. I’d like to know what factors can affect this latency? Also,<br>
is there any solution to reduce this latency?</blockquote><div dir="auto"><br></div><div dir="auto">This is a problem which is fixed by RT Linux patches.</div><div dir="auto">It is taking time as Linux is not RTOS and scheduler took time to put your task in running state which is expected and depends on many factors: such as load, interrupts and so on.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
<br>
Thanks,<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div></div>