<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000">I won't pretend I have special knowledge here; I've never looked at logging performance before in QF/n. It could be Windows file IO, or maybe there's something unintentionally silly happening in QF's internals.</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">To investigate, you could write your own LogFactory implementation and integrate some profiling into it. The interface is pretty simple.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 14, 2019 at 1:55 PM xmoon 2000 <<a href="mailto:xmoon2000@googlemail.com">xmoon2000@googlemail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Grant,<br>
<br>
In your opinion, should QuickFix be able to write to its own log<br>
without causing latencies, if as in my code snippet, I do nothing<br>
except return from FromApp WITHOUT calling<br>
Crack.<br>
<br>
For approx 20m messages per day?<br>
<br>
On Tue, 14 May 2019 at 15:42, Grant Birchmeier<br>
<<a href="mailto:gbirchmeier@connamara.com" target="_blank">gbirchmeier@connamara.com</a>> wrote:<br>
><br>
> Is this latency causing performance problems other than the logging delay? Is the delay constant, or does it only occur when there's a huge influx of messages? (Would it get worse than 500ms if the high-traffic continued?)<br>
><br>
><br>
> On Tue, May 14, 2019 at 9:14 AM xmoon 2000 <<a href="mailto:xmoon2000@googlemail.com" target="_blank">xmoon2000@googlemail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I get about 20 million records via QuickFix .NET in c# per day.<br>
>><br>
>> I have done a pcapture and can see that the tag52 and WireShark times<br>
>> are close - so latency is not from transmission.<br>
>><br>
>> In my app I have stripped everything out (see FromApp below).So that I<br>
>> do nothing with the data - I just allow QuickFix engine to write fix<br>
>> messages to log on my SSD.<br>
>><br>
>> BUT I can see latencies of 500ms between QuickFix log time and tag52 time.<br>
>><br>
>> What might be causing this? Is writing to SSD so slow? Or is it<br>
>> because several other apps are reading this log file?<br>
>><br>
>> public void FromApp(QuickFix.Message msg, SessionID sessionID)<br>
>> {<br>
>> return;<br>
>><br>
>> try<br>
>> {<br>
>> Crack(msg, sessionID);<br>
>> }<br>
>> catch (Exception ex)<br>
>> {<br>
>> Console.WriteLine("==Cracker exception==");<br>
>> Console.WriteLine(ex.ToString());<br>
>> Console.WriteLine(ex.StackTrace);<br>
>> }<br>
>> }<br>
>> _______________________________________________<br>
>> Quickfixn mailing list<br>
>> <a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
>> <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
><br>
><br>
><br>
> --<br>
> Grant Birchmeier<br>
> Connamara Systems, LLC<br>
> Made-To-Measure Trading Solutions.<br>
> Exactly what you need. No more. No less.<br>
> <a href="http://connamara.com" rel="noreferrer" target="_blank">http://connamara.com</a><br>
> _______________________________________________<br>
> Quickfixn mailing list<br>
> <a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
> <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div><font size="2"><span style="background-color:rgb(0,0,0)"><span style="background-color:rgb(255,255,255)">Grant Birchmeier</span></span></font><font size="2"><font color="#3333ff"><br></font></font></div><div><font size="2"><b><font color="#3333ff"><span style="background-color:rgb(255,204,51)"><span style="background-color:rgb(255,204,102)"><span style="background-color:rgb(255,204,153)"><span style="background-color:rgb(255,255,255)"><span style="background-color:rgb(255,204,0)">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font size="2"><b>Made-To-Measure Trading Solutions.</b></font></div><div><font size="2">Exactly what you need. No more. No less.</font><font size="2"><b><font color="#3333ff"><br></font></b></font></div><div><font size="2"><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div></div>