1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Exploring EPICS performance/processing limits |
From: | "Marco A. Barra Montevechi Filho via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "Hu, Yong" <yhu at bnl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Thu, 6 Oct 2022 18:27:20 +0000 |
Hi, Hu! Thanks for the hint.
Since issue is that im trying to use a transform record to do several operations in sequence and im only using python to understand the IOC's capacity of processing several record values changes quickly, i think cothread is more of a diagnostics tool in this case than a fix to the problem. I did follow your instructions nonetheless and the results were somewhat similar to expected. Here is the script:
#!/usr/bin/python3
import cothread
from cothread.catools import caput
caput(["MOBICDTE:Backend:ImgChipNumberID",
"MOBICDTE:Backend:ImgChipNumberID",
"MOBICDTE:Backend:ImgChipNumberID",
"MOBICDTE:Backend:ImgChipNumberID"], [0,
1,
2,
3])The tcpflow results skip both "params": [["1","1"]] and "params": [["1", "2"]] commands: 127.000.000.001.55780-127.000.000.001.60000: {"id":"1", "method":"HS_ImgChipNumberID_Command", "params": [["1", "0"]], "jsonrpc": "2.0"} 127.000.000.001.55780-127.000.000.001.60000: {"id":"1", "method":"HS_ImgChipNumberID_Command", "params": [["0"]], "jsonrpc": "2.0"}
127.000.000.001.55780-127.000.000.001.60000: {"id":"1", "method":"HS_ImgChipNumberID_Command", "params": [["1", "3"]], "jsonrpc": "2.0"}
127.000.000.001.55780-127.000.000.001.60000: {"id":"1", "method":"HS_ImgChipNumberID_Command", "params": [["0"]], "jsonrpc": "2.0"}
And the camonitor didnt even show any signal. Nothing at all. Same as if i had just typed the camonitor command and did no operation at all with the PV: camonitor MOBICDTE:Backend:ImgChipNumberID MOBICDTE:Backend:ImgChipNumberID 2022-10-06 15:24:16.416637 3 READ INVALID
CA.Client.Exception...............................................
Warning: "Identical process variable names on multiple servers"
Context: "Channel: "MOBICDTE:Backend:ImgChipNumberID", Connecting to: 192.168.55.1:5064, Ignored: s-mgn-mob01-l.abtlus.org.br:5064"
Source File: ../cac.cpp line 1320
Current Time: Thu Oct 06 2022 15:26:07.987693022
..................................................................
From: Hu, Yong <yhu at bnl.gov>
Sent: 06 October 2022 10:33 To: Marco A. Barra Montevechi Filho <marco.filho at lnls.br>; tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: Re: Exploring EPICS performance/processing limits Hello Marco, From:
Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Marco A. Barra Montevechi Filho via Tech-talk <tech-talk at aps.anl.gov> Hello all.
I was monitoring the traffic with ´tcpflow -c -i <my_IP> port <my_PORT> | grep "message"´ and made a python script in the form:
for record in ["RECORD1", "RECORD2", "RECORD3", "RECORD4"]: epics.caput(record, VALUE) time.sleep(x) message2 message3 message4 VALUE message4 VALUE
Is this a PV processing time issue? Shouldnt the IOC be capable of dealing with time intervals smaller than this? Is there a way i can improve this behaviour without
setting sleep times between my caputs?
Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente. Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately. |