<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<font face="monospace">Hi,<br>
<br>
Maybe the overall log_level prevents the logging, see <br>
<a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/2.4.x/benchmark.html#param_loglevel">https://opensips.org/html/docs/modules/2.4.x/benchmark.html#param_loglevel</a><br>
<br>
Be sure that the benchmark log_level is below (or equal) to the
overall log_level<br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 5/30/23 6:22 PM, Li Cai wrote:<br>
</div>
<blockquote type="cite"
cite="mid:SA1PR09MB8000069D1016EA0774B246968E4B9@SA1PR09MB8000.namprd09.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to use Benchmark tool to
investigate a database performance issue on OpenSIPs v2.4.6,
but no matter what the configurations I tried, I can’t see the
log printed out by Benchmark.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here are the scripts I’m using:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">loadmodule "benchmark.so"<o:p></o:p></p>
<p class="MsoNormal">modparam("benchmark", "enable", 1)<o:p></o:p></p>
<p class="MsoNormal">modparam("benchmark", "granularity", 1)
# To make the benchmark enabled for every call<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">…..<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Route {<o:p></o:p></p>
<p class="MsoNormal">……<o:p></o:p></p>
<p class="MsoNormal">bm_start_timer("test");<o:p></o:p></p>
<p class="MsoNormal"> cache_store("sql:1st-mysql",
"$tU-$fU-ru", "$ru", 43200);<o:p></o:p></p>
<p class="MsoNormal">bm_log_timer("test");<o:p></o:p></p>
<p class="MsoNormal"> cache_store("sql:1st-mysql",
"$tU-$fU-tu", "$tu", 43200);<o:p></o:p></p>
<p class="MsoNormal">bm_log_timer("test");<o:p></o:p></p>
<p class="MsoNormal">……..<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any idea will be highly appreciated. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Li<o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>