<div><div style="font-size:1rem;color:rgb(49,49,49);word-spacing:1px" dir="auto">Thanks to @Peti Gömöri, I was able to identify these Port locks:</div><a href="https://gist.github.com/frankmullerl/008174c6594ca27584ac7f4e6724bee5" target="_blank" style="font-size:1rem;word-spacing:1px">https://gist.github.com/frankmullerl/008174c6594ca27584ac7f4e6724bee5</a><div style="color:rgb(49,49,49);word-spacing:1px" dir="auto"><br></div><div style="font-size:1rem;color:rgb(49,49,49);word-spacing:1px" dir="auto">Some of them are taking up to 6.7sec (<span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;white-space:pre-wrap;background-color:rgb(255,255,255);font-size:1rem">6707846 usec</span>) :-/</div><div style="color:rgb(49,49,49);word-spacing:1px" dir="auto"><br></div><div style="color:rgb(49,49,49);word-spacing:1px" dir="auto"><div style="font-size:1rem">My application is serving static images by calling file:sendfile/2 (<a href="https://erlang.org/doc/man/file.html#sendfile-2" target="_blank" style="font-size:1rem">https://erlang.org/doc/man/file.html#sendfile-2</a>).</div><div style="font-size:1rem" dir="auto"><br></div></div><div style="font-size:1rem;color:rgb(49,49,49);word-spacing:1px" dir="auto">Can someone please explain how I can avoid these locks or at least make their impact lesser?</div><div style="color:rgb(49,49,49);word-spacing:1px" dir="auto"><br></div><div style="font-size:1rem;color:rgb(49,49,49);word-spacing:1px" dir="auto">/Frank</div></div><div style="font-size:1rem;color:rgb(49,49,49);word-spacing:1px" dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Mon 30 dec. 2019 at 19:58, Frank Muller <<a href="mailto:frank.muller.erl@gmail.com">frank.muller.erl@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:rgb(49,49,49);word-spacing:1px" dir="auto"><font color="#24292e" face="-apple-system, system-ui, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji"><span style="font-size:0.875rem;background-color:rgb(255,255,255)">I was able to find out which lock is used by </span></font><span style="background-color:rgb(255,255,255)"><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace"><span style="white-space:pre-wrap;font-size:1rem">run_queue:</span></font></span></div><div style="color:rgb(49,49,49);word-spacing:1px" dir="auto"><a href="https://gist.github.com/frankmullerl/008174c6594ca27584ac7f4e6724bee5" style="font-size:1rem" target="_blank">https://gist.github.com/frankmullerl/008174c6594ca27584ac7f4e6724bee5</a></div><div style="color:rgb(49,49,49);word-spacing:1px" dir="auto"><br></div><div style="font-size:1rem;color:rgb(49,49,49);word-spacing:1px" dir="auto">Question: how can I check the lock behind <span style="background-color:rgb(255,255,255)"><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace"><span style="white-space:pre-wrap;font-size:1rem">#Port<app@127.0.0.1.19659> </span><span style="white-space:pre-wrap;font-size:1rem">for example?</span></font></span></div></div><div><div style="color:rgb(49,49,49);word-spacing:1px" dir="auto"><span style="background-color:rgb(255,255,255)"><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace"><span style="white-space:pre-wrap"><br></span></font></span></div><div style="color:rgb(49,49,49);word-spacing:1px" dir="auto"><span style="background-color:rgb(255,255,255)"><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace"><span style="white-space:pre-wrap;font-size:1rem">/Frank</span></font></span></div></div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi All<br></div><div dir="auto"><br></div><div dir="auto">My custom-made web server which only serves only static files (a la Hugo: <a href="https://gohugo.io/" target="_blank">https://gohugo.io/</a>) is showing this under LCNT:</div><div dir="auto"><a href="https://gist.github.com/frankmullerl/008174c6594ca27584ac7f4e6724bee5" target="_blank">https://gist.github.com/frankmullerl/008174c6594ca27584ac7f4e6724bee5</a></div><div dir="auto"><br></div><div dir="auto">Can someone explain how to dig further to understand what’s going on and why these Port locks are taking so much time?</div><div dir="auto"><br></div><div dir="auto">/Frank</div>
</blockquote></div></div>
</blockquote></div></div>