EldoS | Feel safer!

Software components for data protection, secure storage and transfer

FTP (w/o SSL) upload speed

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#15976
Posted: 03/05/2011 10:26:09
by Dmitry  (Basic support level)
Joined: 03/05/2011
Posts: 4

I'm evaluating FTPS component and testing upload speed to regular FTP servers (its most important thing for my application).
I was playing with FTPBufferSize property (setting it to 256, 4096, 16384) but was not able to get higher upload speed than 60% of FileZilla's speed on same servers with same files.
Under "upload speed" I mean TotalFileSize / ElapsedTime.
It takes ~1m35s to upload file with FileZilla and ~2m50s to upload same file with SecureBlackbox FTPS.

I am using regular FTP protocol, with SSL completely disabled, so it is not encryption / compression problem.

Is there anything else I can do to speed up FTP uploads?
I need roughly same upload speed as with FileZilla, that's what I was going to buy this component for.

Thank you for answers in advance.
#15977
Posted: 03/05/2011 10:38:18
by Eugene Mayevski (EldoS Corp.)

Buffer size must be 1-4 Mb for transfer to be fast. Also you need to realize, that no managed implementation will be faster, than optimized native C++ code.


Sincerely yours
Eugene Mayevski
#15978
Posted: 03/05/2011 10:48:01
by Dmitry  (Basic support level)
Joined: 03/05/2011
Posts: 4

Atm I have ADSL connection with low upload speed (60Kbytes/s).
Does such transfer speed really require native implementation of FTP component to fully utilize available bandwidth ?
#15979
Posted: 03/05/2011 11:14:29
by Eugene Mayevski (EldoS Corp.)

As said, unmanaged code will always be faster than the corresponding managed one.


Sincerely yours
Eugene Mayevski
#15980
Posted: 03/05/2011 11:38:47
by Dmitry  (Basic support level)
Joined: 03/05/2011
Posts: 4

So you mean what it is not possible to achieve better upload speed using SecureBlackbox FTPS component ?
#15981
Posted: 03/05/2011 11:54:08
by Eugene Mayevski (EldoS Corp.)

And not just SecureBlackbox, but any managed component. The question is whether speed is the main factor to consider when choosing the solution. If it is, go with unmanaged code.


Sincerely yours
Eugene Mayevski
#15982
Posted: 03/05/2011 12:09:01
by Dmitry  (Basic support level)
Joined: 03/05/2011
Posts: 4

It is :(
So far I was using libcurl (it is native C library, with managed wrapper), but it has even worse upload performance on win32 for some reason (even its pure native code console tool shows same numbers, but its WAY better on *nix).
Customers were asking me: why FileZilla's upload speed is that higher. That's why I'm looking for better solution.

And btw it is still strange imo, on such low transfer speeds code performance should not be bottleneck, network connection speed should be.

Thanks for answers anyway, I'll think about it and decide what to do further.
#15983
Posted: 03/05/2011 12:36:28
by Eugene Mayevski (EldoS Corp.)

If you called libcurl from managed code, than it was marshaling that caused a slowdown. Pure .NET managed code would probably be faster, than marshaling data.


Sincerely yours
Eugene Mayevski
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 1108 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!