Send Tech-talk mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.aps.anl.gov_mailman_listinfo_tech-2Dtalk&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=TmOxd9LEM2p3Idbj7H58XVsFRnBlW4aab9p3yuHVBwI&e=
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tech-talk digest..."
Today's Topics:
1. Phoebus Alarm Server on CentOS 9? (William F Badgett Jr)
2. Re: Ways to know if instrument connected via TCP/IP through
StreamDevice has lost connection (Wang, Andrew)
3. Checking CPU and memory usage for an IOC (Wang, Andrew)
4. Re: Checking CPU and memory usage for an IOC (Simon Rose)
----------------------------------------------------------------------
Message: 1
Date: Mon, 12 Dec 2022 20:45:57 +0000
From: William F Badgett Jr <
[email protected]>
To: "
[email protected]" <
[email protected]>
Subject: Phoebus Alarm Server on CentOS 9?
Message-ID:
<DM6PR09MB5607749F6E24E2C4DC56D20ACAE29@DM6PR09MB5607.namprd09.prod.outlook.com>
Content-Type: text/plain; charset="iso-8859-1"
I'm trying to get the Phoebus alarm-server to run on CentOS 9 here, and it launches, connects to Kafka OK, but it cannot "see" the EPICS channel access PVs. From the command line before launching alarm-server, I can "caget" the variables, but in alarm-server
it shows "disconnected"
Java 13, CentOS 9 5.14.0-183.el9.x86_64
The alarm-server works fine on SL7 servers and can "see" EPICS IOCs
Ideas?
William Badgett
Accelerator Division Controls
Neutrino Division Operations
Fermi National Accelerator Lab
Kirk and Wilson Roads
BTE-214 Booster Tower East Room 214
Batavia, IL 60510 U.S.A.
[email protected]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.aps.anl.gov_pipermail_tech-2Dtalk_attachments_20221212_1bfe4994_attachment.html&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=3eGhPpS5OdvaS0XvqCBgfaeoUQq_mLMgiDk7pJ201Lg&e=
>
------------------------------
Message: 2
Date: Mon, 12 Dec 2022 22:11:28 +0000
From: "Wang, Andrew" <
[email protected]>
To: Mark Rivers <
[email protected]>, EPICS tech-talk
<
[email protected]>
Subject: Re: Ways to know if instrument connected via TCP/IP through
StreamDevice has lost connection
Message-ID:
<BY3PR09MB81945E11CD3D0BCAEAD923D282E29@BY3PR09MB8194.namprd09.prod.outlook.com>
Content-Type: text/plain; charset="us-ascii"
Mark,
This is extremely helpful. I will let you know if I have follow up questions.
Andy
________________________________
From: Mark Rivers <
[email protected]>
Sent: Thursday, December 8, 2022 6:51 PM
To: EPICS tech-talk <
[email protected]>; Wang, Andrew <
[email protected]>
Subject: Re: Ways to know if instrument connected via TCP/IP through StreamDevice has lost connection
Hi Andy,
> I feel like there is a better way than me trying to use a calcout record and check if any record has its STAT field set to COMM. Like, is it possible to monitor for connection status without needing to process a record whose device type is StreamDevice and
check its STAT field?
Yes, there is a better way.
First, you probably want to use this line in your startup script:
asynSetOption("$(PORT)",0, "disconnectOnReadTimeout", "Y")
That will cause the port to disconnect if there is a timeout. If you don't do that then the asyn won't know that the port is disconnected for a very long time on Linux, it will just keep giving "temporarily unavailable" messages.
In your startup script load an asyn record that is connected to that asyn port. Here is an example:
dbLoadRecords("$(ASYN)/db/asynRecord.db", "P=IOC:, R=asyn1, PORT=ARIES1, ADDR=0, OMAX=256, IMAX=256")
You can monitor the IOC:asyn1.CNCT field, which will either be "Connect" or "Disconnect".
Mark
________________________________
From: Tech-talk <
[email protected]> on behalf of Wang, Andrew via Tech-talk <
[email protected]>
Sent: Thursday, December 8, 2022 8:21 PM
To: EPICS tech-talk <
[email protected]>
Subject: Ways to know if instrument connected via TCP/IP through StreamDevice has lost connection
Hi all,
Basically, I was wondering if there is a better way to know if communication to an instrument has been lost. I understand that this can be done either by simplying looking at the IOC shell for disconnection errors or checking if the STAT field is set to COMM.
I was wondering if there is another method of determining if the instrument is still connected or not besides the two methods described above. Additionally, I would like to have a record called "is_instrument_connected", that holds a value like 1 to indicate
the instrument is connected and a 0 if it is not. I feel like there is a better way than me trying to use a calcout record and check if any record has its STAT field set to COMM. Like, is it possible to monitor for connection status without needing to process
a record whose device type is StreamDevice and check its STAT field?
Thank you,
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.aps.anl.gov_pipermail_tech-2Dtalk_attachments_20221212_b45bb99d_attachment.html&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=qHRQGiCsAbr5CzTlsinIOaUd77za3vna-MkxJba6PnQ&e=
>
------------------------------
Message: 3
Date: Mon, 12 Dec 2022 22:13:29 +0000
From: "Wang, Andrew" <
[email protected]>
To: EPICS tech-talk <
[email protected]>
Subject: Checking CPU and memory usage for an IOC
Message-ID:
<BY3PR09MB819412B9EC493B3E541D5D3582E29@BY3PR09MB8194.namprd09.prod.outlook.com>
Content-Type: text/plain; charset="iso-8859-1"
All,
This is a very general question, but I was curious if people here have been able to monitor CPU and memory usage of a particular IOC as it ran. If so, what was the approach you took to do so?
Thank you,
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.aps.anl.gov_pipermail_tech-2Dtalk_attachments_20221212_5583a2f7_attachment.html&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=o2V2mQkuVwXZJ3yMdBcydk4wFK5Nbo8K5JwBxHDBO3c&e=
>
------------------------------
Message: 4
Date: Mon, 12 Dec 2022 22:34:06 +0000
From: Simon Rose <
[email protected]>
To: "Wang, Andrew" <
[email protected]>, EPICS tech-talk
<
[email protected]>
Subject: Re: Checking CPU and memory usage for an IOC
Message-ID: <
[email protected]>
Content-Type: text/plain; charset="utf-8"
Hi Andy ?
There is the iocStats module that might do what you are looking for:
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_epics-2Dmodules_iocStats&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=MYLwjAZ7todFqhQxET171vSWJu04AIucD8Dxedy6Xkk&e=
.
In particular, there is a record that specifically monitors CPU usage:
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_epics-2Dmodules_iocStats_blob_master_iocAdmin_Db_ioc.template-23L130&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=epdhYOowPFxhHltfuC37GNBGq3BdE2xZctk9ug2iPww&e=
(as well as one for memory usage).
Cheers,
Simon
From: Tech-talk <
[email protected]> on behalf of "Wang, Andrew via Tech-talk" <
[email protected]>
Reply to: "Wang, Andrew" <
[email protected]>
Date: Monday, 12 December 2022 at 23:13
To: EPICS tech-talk <
[email protected]>
Subject: Checking CPU and memory usage for an IOC
All,
This is a very general question, but I was curious if people here have been able to monitor CPU and memory usage of a particular IOC as it ran. If so, what was the approach you took to do so?
Thank you,
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.aps.anl.gov_pipermail_tech-2Dtalk_attachments_20221212_16a75125_attachment.html&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=sp4klXWm9uVRgBpiCt_uDlrvYW-EkOfJxBivcgvfDfQ&e=
>
------------------------------
Subject: Digest Footer
_______________________________________________
Tech-talk mailing list
[email protected]
https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.aps.anl.gov_mailman_listinfo_tech-2Dtalk&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=TmOxd9LEM2p3Idbj7H58XVsFRnBlW4aab9p3yuHVBwI&e=
------------------------------
End of Tech-talk Digest, Vol 16, Issue 712
******************************************