EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Fwd: Re: streamdevice I/O Intr
From: Ralph Lange via Tech-talk <[email protected]>
To: Dirk Zimoch <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Fri, 30 Nov 2018 13:00:39 +0100
Hi Dirk,

Since this seems a viable solution - is it worth to be added to the streamDevice docs?

Cheers,
~Ralph


On Fri, 30 Nov 2018 at 11:05, Dirk Zimoch via Tech-talk <[email protected]> wrote:
 >> I [...] somehow got around it by setting ReadTimeOut and
 >> PollPeriod to half of the input rate:
 >> rdInputCont{
 >>     ReadTimeout = 10;
 >>     PollPeriod = 10;
 >>     in "%#s";
 >> }

Interesting. PollPeriod defines how often "I/O intr" records poll for
input if no other records read input. It defaults to ReadTimeout btw.

So if poll period is too long, some input may pile up and only gets
consumed when the next record reads input or flushes input before
writing. The default ReadTimeout and thus PollPeriod is 100 ms. Thus in
your case up to 6 input messages may be pending in this time. More if
processing the messages takes considerable time. That does not look too
much to me. So I still wonder why the input queue never gets empty.

Having a PollPeriod about half the expected input rate is definitely a
good idea, because it reduces latency (at the cost of CPU usage of
course). Otherwise you will see input in bursts.


References:
Fwd: Re: streamdevice I/O Intr William Kirstaedter via Tech-talk
Re: Fwd: Re: streamdevice I/O Intr Dirk Zimoch via Tech-talk

Navigate by Date:
Prev: Re: Fwd: Re: streamdevice I/O Intr William Kirstaedter via Tech-talk
Next: Re: Question about this mailing list Mark Rivers via Tech-talk
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Fwd: Re: streamdevice I/O Intr William Kirstaedter via Tech-talk
Next: Re: Fwd: Re: streamdevice I/O Intr Christoph Schroeder via Tech-talk
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 30 Nov 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·