<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">I wonder if anybody here have tried perf command with nginx service. While the service is up, I ran a wrk command from another computer as below</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<span class="gmail-comment-copy"><code>./wrk -t1 -c100 -d200s <a href="http://10.1.1.130">http://10.1.1.130</a></code></span> <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">On the server, the nginx process is 100% and then I attached perf command like</div><div class="gmail_default" style="font-family:tahoma,sans-serif"></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<pre><code>$ sudo perf record -e instructions:u --branch-filter any,u -o perf.data -p 32594
^C[ perf record: Woken up 465 times to write data ]
[ perf record: Captured and wrote 117.326 MB perf.data (284800 samples) ]</code></pre>
</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Now, when I check the buildid-list, I don't see any sign for the nginx binary</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<pre><code>$ sudo perf buildid-list -i perf.data
3a2171019937a2070663f3b6419330223bd64e96 [kernel.kallsyms]
b5381a457906d279073822a5ceb24c4bfef94ddb /lib/x86_64-linux-gnu/<a href="http://libc-2.23.so">libc-2.23.so</a>
ce17e023542265fc11d9bc8f534bb4f070493d30 /lib/x86_64-linux-gnu/<a href="http://libpthread-2.23.so">libpthread-2.23.so</a>
631c69f65c00d3e6d3ee6108202e9c323a21ce28 [vdso]</code></pre>
</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Any idea to more investigation?<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br clear="all"></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="tahoma,sans-serif">Regards,<br>Mahmood</font><br><br><br></div></div></div></div>