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  <20102011  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  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: StreamDevice slowdown
From: Eric Norum <[email protected]>
To: "[email protected] tech-talk" <[email protected]>, Dirk Zimoch <[email protected]>
Date: Sun, 26 Sep 2010 14:15:07 -0700
I'm encountering unexpected behaviour from ASYN/StreamDevice.   Data transfer gets slower and slower as a transaction proceeds.

Here's the waveform record that I'm trying to fill:
record(waveform, "$(P)capture")
{
    field(DESC, "Read out ADC capture buffer")
    field(DTYP, "stream")
    field(INP,  "@devtfb.proto capture $(PORT) 0")
    field(FTVL, "SHORT")
    field(NELM, 16777216)
}

And here's the StreamDevice protocol:
capture {
    InTerminator = "\xA5\x5A";
    out "Waveform?";
    in "%2r";
    ExtraInput = Ignore;
}



I added some diagnostics to the sending instrument to report the time after each 2^20 samples have been sent:

Here's how things progress.

The first 2^20 samples take 16.78 seconds to transfer from the instrument to the IOC.
The next 2^20 samples take 48.18 seconds.
The next 2^20 samples take 80.91 seconds.
The next 2^20 samples take 113.86 seconds.
The next 2^20 samples take 147.28 seconds.


This seems very strange.  Each block of 2^20 samples takes about 32 seconds longer to transfer than the previous.   It looks like there's some sort of 'strlen()' kind of operation happening that's taking longer and longer as the waveform contents fill.

Is this fixable?
-- 
Eric Norum
[email protected]



Replies:
RE: StreamDevice slowdown Mark Rivers
Re: StreamDevice slowdown Dirk Zimoch

Navigate by Date:
Prev: Rocket Engine control Akridge, Charles S. (MSFC-ES52)
Next: RE: StreamDevice slowdown Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Rocket Engine control Dirk Zimoch
Next: RE: StreamDevice slowdown Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 28 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·