EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: autosave V4.1 and caRepeater
From: Andrew Johnson <[email protected]>
To: Tim Mooney <[email protected]>
Cc: Aladwan Ahed <[email protected]>, "'[email protected]'" <[email protected]>, [email protected]
Date: Fri, 21 Oct 2005 15:34:24 -0500
Tim Mooney wrote:
I have not been able to figure out why this problem apparently
goes away when autosave's status PV's are loaded.  Autosave calls
ca_context_create() regardless of whether or not status PV's exist,
and it makes CA connections to lots of PV's in any case.

It must be the save_restore thread that's issuing the fork()
call, since this thread does all of save_restore's CA work.

No, it's the Channel Access library that's calling fork() to create the caRepeater when it finds that there isn't one running at the time. The fork() has nothing to do with threads/tasks (which are the same thing) inside the IOC.


My guess to what's happening is that asking save/restore to load the status PVs is sufficient to change the startup of the various threads sufficiently that the video server hasn't got around to opening that device before CA gets as far as spawning off the caRepeater.

This problem is therefor nothing to do with autosave at all, it should be possible to tickle it by doing some other startup operation instead. The current best solution is, as Jeff has explained, to load caRepeater before starting the IOC.

- Andrew
--
English probably arose from Normans trying to pick up Saxon girls.

References:
Re: autosave V4.1 and caRepeater Tim Mooney

Navigate by Date:
Prev: Re: autosave V4.1 and caRepeater Tim Mooney
Next: RE: autosave V4.1 and caRepeater Aladwan Ahed
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: autosave V4.1 and caRepeater Tim Mooney
Next: RE: autosave V4.1 and caRepeater Aladwan Ahed
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·