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: RE: StreamDevice slowdown
From: "Mark Rivers" <[email protected]>
To: "Eric Norum" <[email protected]>, <[email protected]>, "Dirk Zimoch" <[email protected]>
Date: Sun, 26 Sep 2010 16:40:52 -0500
Have you turned on asynTrace in the low-level (TCP?) driver and sent the output to a file so it does not slow things down too much?  Can you see then what's on the wire?
 
Mark
 

________________________________

From: [email protected] on behalf of Eric Norum
Sent: Sun 9/26/2010 4:15 PM
To: [email protected] tech-talk; Dirk Zimoch
Subject: StreamDevice slowdown



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 Eric Norum
Re: StreamDevice slowdown Eric Norum
References:
StreamDevice slowdown Eric Norum

Navigate by Date:
Prev: StreamDevice slowdown Eric Norum
Next: Re: StreamDevice slowdown Eric Norum
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: StreamDevice slowdown Eric Norum
Next: Re: StreamDevice slowdown Eric Norum
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, 26 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·