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: iocInit and vxstats
From: Al-Adwan Ahed <[email protected]>
To: [email protected]
Date: Tue, 15 Mar 2005 16:11:28 +0100

Hello Tech-Talk,

 

Vxstats has provoked somehow the following problem which I don't fully understand, that's why I put it here, so someone hopefully can clarify it.

 

Vxstats spawn a cpuUsage task, at the initialization of this task (iocInit-device support), it waits (SECONDS_TO_BURN = 5 * SysClkRateGet() ) and measure CPU load and use that as reference for further measurements (I think).

 

Some how, only in 2 iocs out of 140, the TSdriver which exactly comes after the device support initialization in iocInit don't initialize properly. When TSdriver don't initialize properly, the channels time stamp are not synchronized with the unix server (soft timing slave mode).

 

The problem disappear if I don't load vxstats :), when I set SECONDS_TO_BURN to zero, when I increase sysClkRate :(, when I introduce a delay on devVxsats.c just before spawning the task, or when I insert that delay inside iocInit just after the device support init and before the TSdriver init.

 

If you look inside iocInit.c, you will find that there are some delays introduced between tasks initialization.

The questions here, Is there an explanation for that? On what basis these delays - inside iocInit - was introduced (duration wise and location wise)? Well it be better if it was done in a regular manner (a delay after each task init)?

 

On the other hand, vxstats has a bundle of additional files (SLib, PVS, rdbls, vx_stats, ioc_stats, rdbapplist, tsSubr) that has either unneeded functions by devVxstats or are already part of iocCore, is it clear for any one what is the need for these fiels?

 

I use vxstats-SNS, EPICS 3.13.9, vxWorks 5.5, MV5100.

 

Cheers,

Ahed

 

###########################################

# Ahed Aladwan                            #

# SLS Controls / Paul Scherrer Institute  #

# WSLA/208, 5232 Villigen PSI Switzerland #

# Tel:+41 56 310 4594                     #

# Fax:+41 56 310 4413                     #

# www.psi.ch                                                             #

# http://people.web.psi.ch/adwan/                   #

#################################################

ì


Navigate by Date:
Prev: RE: dm and edm problems with CA gateway Kenneth Evans, Jr.
Next: drvAscii Allan Honey
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: drvEpvxi.c (epvxiResman) & 3.14... Laznovsky, Michael
Next: drvAscii Allan Honey
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 ·