<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:14pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 14pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<meta content="text/html; charset=UTF-8">
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:14pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p>Dear <span>Håkan</span>,</p>
<p><br>
</p>
<p>thank you very much for the reply. The explanation makes sense.</p>
<p><br>
</p>
<p>This is the EB command for the DAQ already running:</p>
<p><br>
</p>
<p></p>
<div><span style="font-size:10pt">../drasi/bin/lwrocmerge \</span><br>
<span style="font-size:10pt"> --label=EB \</span><br>
<span style="font-size:10pt"> --port=7000 \</span><br>
<span style="font-size:10pt"> --merge-mode=event \</span><br>
<span style="font-size:10pt"> --server=trans \</span><br>
<span style="font-size:10pt"> --server=stream,flush=1 \</span><br>
<span style="font-size:10pt"> --buf=size=500Mi \</span><br>
<span style="font-size:10pt"> --max-ev-size=1Mi \</span><br>
<span style="font-size:10pt"> --eb-master=rio4l-2 \</span><br>
<span style="font-size:10pt"> --drasi=rio4l-2 \</span><br>
<span style="font-size:10pt"> --file-writer \</span><br>
<span style="font-size:10pt"> "$@"</span></div>
<br>
<p></p>
<p>So, the only difference is the name "rio4l-2" in the old system vs. "rio4l-1" in the new system. And the port number "7000" vs. "8000". If "--server=trans" implicitly assumes a standard port, then this will be the same for both commands.<br>
</p>
<p><br>
</p>
Is there somewhere an illustration/explanation how exactly LWROCMERGE and M_READ_MEB work together? This would help a lot.<br>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Best greetings</p>
<p>Günter<br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> subexp-daq <subexp-daq-bounces@lists.chalmers.se> im Auftrag von Håkan T Johansson <f96hajo@chalmers.se><br>
<b>Gesendet:</b> Montag, 13. Mai 2024 17:24:19<br>
<b>An:</b> Discuss use of Nurdlib, TRLO II, drasi and UCESB.<br>
<b>Betreff:</b> Re: [subexp-daq] problem when running two DAQs in parallel on one server</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="PlainText"><br>
Possily, your second EB has not started if the first is already running, <br>
the<br>
<br>
--server=trans and --server=stream,...<br>
<br>
lines below use the default ports. And if already in use by the first <br>
process, it cannot start. Try to add port=...<br>
<br>
> ../drasi/bin/lwrocmerge \<br>
> --label=EB \<br>
> --port=8000 \<br>
> --merge-mode=event \<br>
> --server=trans \<br>
> --server=stream,flush=1 \<br>
> --buf=size=500Mi \<br>
> --max-ev-size=1Mi \<br>
> --eb-master=rio4l-1 \<br>
> --drasi=rio4l-1 \<br>
> --file-writer \<br>
> "$@"<br>
<br>
Cheers,<br>
Håkan<br>
<br>
> <br>
> However, it seems that something is missing because the DAQ fails at startup:<br>
> <br>
> <br>
> Executing 'main'.<br>
> CPUS: 1<br>
> delay: 1<br>
> 10: lwroc_hostname_util.c:109: Host 'lyserv' known as 192.168.1.1 (port: 8000).<br>
> Message not logged - thread has no error buffer yet...<br>
> CPUS: 1<br>
> delay: 1<br>
> 10: lwroc_hostname_util.c:109: Host 'lyserv' known as 192.168.1.1 (port: 8000).<br>
> Message not logged - thread has no error buffer yet...<br>
> HOST: RIO4L-1<br>
> Token: 21301afe (21301afe:21301afe) [/mbsusr/mbsdaq/.drasi_tokens/blub]<br>
> 10: lwroc_hostname_util.c:460: Own address: 192.168.1.71/255.255.255.0 (eth1).<br>
> cfg: 'master,@0x02,fctime=10,ctime=300' => 33554432<br>
> 10: lwroc_data_pipe.c:146: Data buffer READOUT_PIPE, fmt LMD, size 209715200 = 0x0c800000, 3 consumers.<br>
> 10: lwroc_triva_readout.c:66: Silence TRIVA (HALT)<br>
> 10: lwroc_net_io.c:169: Started server on port 56583 (data port 34116).<br>
> 10: lwroc_net_trans.c:1808: [stream:9003] Started stream server on port 9003, data 56265.<br>
> client union size: 244 240 188 508 640 204 204 => 640<br>
> 10: lwroc_udp_awaken_hints.c:159: UDP awaken hints file: /tmp/drasi.u1001/drasi.hints.u1001.RIO4L-1:56583<br>
> 10: lwroc_main.c:706: Log message rate limit not in effect.<br>
> 10: lwroc_readout.c:112: call readout_init...<br>
> 10: lwroc_thread_util.c:118: This is the triva control thread!<br>
> 10: lwroc_thread_util.c:118: This is the net io thread!<br>
> 10: lwroc_thread_util.c:118: This is the slow_async thread!<br>
> 10: lwroc_thread_util.c:118: This is the data server thread!<br>
> 8: lwroc_message_wait.c:86: Waited 1 seconds for msg client.<br>
> 8: lwroc_triva_state.c:414: Waited 1 seconds for initial slave and EB connection(s):<br>
> 8: lwroc_triva_state.c:422: [EB lyserv:8000] (state 0)<br>
> 10: lwroc_message_internal.c:485: Message client connected!<br>
> 8: lwroc_triva_state.c:414: Waited 5 seconds for initial slave and EB connection(s):<br>
> 8: lwroc_triva_state.c:422: [EB lyserv:8000] (state 0)<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 8: lwroc_triva_state.c:414: Waited 10 seconds for initial slave and EB connection(s):<br>
> 8: lwroc_triva_state.c:422: [EB lyserv:8000] (state 0)<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 8: lwroc_triva_state.c:414: Waited 20 seconds for initial slave and EB connection(s):<br>
> 8: lwroc_triva_state.c:422: [EB lyserv:8000] (state 0)<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 8: lwroc_triva_state.c:414: Waited 40 seconds for initial slave and EB connection(s):<br>
> 8: lwroc_triva_state.c:422: [EB lyserv:8000] (state 0)<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> 10: lwroc_net_outgoing.c:383: [revlink: lyserv:8000] Timeout waiting for outgoing link establishment.<br>
> ^C8: lwroc_main.c:105: SIGINT received.<br>
> 10: lwroc_thread_util.c:62: Set terminate first! (main)<br>
> 10: lwroc_thread_util.c:82: main thread done! (Next term: data server)<br>
> 10: lwroc_thread_util.c:82: data server thread done! (Next term: slow_async)<br>
> 10: lwroc_thread_util.c:82: slow_async thread done! (Next term: net io)<br>
> 10: lwroc_thread_util.c:82: net io thread done! (Next term: triva control)<br>
> Performing hardware cleanup (TRIVA HALT, RESET)...<br>
> <br>
> I would really appreciate if you could give me a hint what is going on. Many thanks!<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> Best greetings<br>
> <br>
> Günter<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
></div>
</span></font></div>
</div>
</body>
</html>