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  2018  <20192020  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  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Uploading a file with SFTP from an EPICS driver - Issue fixed!
From: Mark Rivers via Tech-talk <[email protected]>
To: "'Johnson, Andrew N.'" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 19 Nov 2019 15:42:35 +0000

In my original post I also showed that using libssh2 with libssh2_sftp functions was just as slow as libcurl, 320 ms vs 120 ms using the curl command.

 

I have now fixed the performance of libssh2 by adding this line to xpsSFTPUpload.cpp

 

  setsockopt(sockFD, SOL_TCP, TCP_NODELAY, &one, sizeof(one));

 

 

This is the time before adding that line:

 

corvette:motorNewport/newportApp/src>../../../../bin/linux-x86_64/testSFTPUpload

Calling xpsSFTPUpload

Fingerprint: 89 36 E6 AF D0 11 C6 BA 21 CD 68 FC 26 0C 31 73 5C 4B CC 1A

xpsSFTPUpload returned status=0, elapsed time=0.326530

 

This is the time after adding that line:

 

corvette:motorNewport/newportApp/src>../../../../bin/linux-x86_64/testSFTPUpload

Calling xpsSFTPUpload

Fingerprint: 89 36 E6 AF D0 11 C6 BA 21 CD 68 FC 26 0C 31 73 5C 4B CC 1A

xpsSFTPUpload returned status=0, elapsed time=0.115006

 

 

So now curl, libcurl, and libssh2 all take about 120 ms.

 

Mark

 


References:
RE: Uploading a file with SFTP from an EPICS driver - Issue fixed! Mark Rivers via Tech-talk

Navigate by Date:
Prev: RE: Uploading a file with SFTP from an EPICS driver - Issue fixed! Mark Rivers via Tech-talk
Next: Re: EPICS server won't boot when there is no newline at the ending of st.cmd Johnson, Andrew N. 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  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Uploading a file with SFTP from an EPICS driver - Issue fixed! Mark Rivers via Tech-talk
Next: asynPortDriver: get all addresses for ASYN_MULTIDEVICE Dunning, Michael 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  2018  <20192020  2021  2022  2023  2024 
ANJ, 19 Nov 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·