FTP transfer vs SMB transfer


Recommended Posts

Hi

After coming across a a snippet in the following thread where a user said he could transfer to the array faster with FTP I decided to give FTP to my server to transfer files a go, and found some interesting results.

 

http://lime-technology.com/forum/index.php?topic=28404.0

 

I copied a 1.09GB rarset consisting of 26 rar files each of 48,829KB in size to /user/TV_Shows

 

Using teracopy with no test option it took 53 seconds

 

If I use filezilla to queue the same files and then process them to the same location it takes 23-25 seconds, this is the same time if I drag and drop within the FTP client also.

 

I ran the test a few times to make sure I wasn't imagining things and the times were constant

 

I know filezillla uses two streams to send the files but can the same be achieved with teracopy or an alternative as this is quite a time saving?

 

I apologise now if this is old news that i didn't know about.

Link to comment

Sweet that was me!

 

FTP clients also have the option to split files into parts to do multi-part transfers which accelerate the speed even further for single file transfers, and this can be used in conjunction with multiple simultaneous file transfers.

 

That's beside the point though, I think that SMB sharing should just be handled better by unraid so that us windows users (I like to think the majority of us consumers are) have better experience with our unraid servers.

 

As someone who just bought 2 licenses at what I deem to be a high price I'm not very happy so far :( Maybe i'm just a noob and like everything linux this just seems to not work for us simple minded windows users.

Link to comment

You can enable file verification if the ftp server supports it I believe (checks md5 sums). Filezilla does multiple simultaneous file transfers (so it will copy part1, part2, part3, at the same time). Others do split parts, so part1 will be downloaded in  8 sections for example.

 

The different FTP clients I've used over the years are:

FlashFXP

Filezilla

CuteFTP

SmartFTP

Link to comment

This is definitely interesting ... I'll have to experiment a bit with it as well.

 

However ... unless you're writing to an unprotected array or a cache drive, I doubt it makes much difference, as even with SMB you can copy at 30-35MB/s, which is the max speed you're going to get anyway with writes to the protected array.  [usually -- I know Nokoff has some issue that's preventing this, and I don't see any "clues" in his other thread that jump out as to why ... hopefully another set of eyes will have an "ah hah" moment and help  :) ]

 

Nevertheless, it's certainly intriguing.  I'm anxious to see just how fast FTP transfers to the protected array will work.

 

Link to comment
  • 2 weeks later...

May be a bit off topic, but if you create a folder in your unraid with FileZilla, the permissions are 700 and the only way to correct them to 777 is through putty.  Permission changes through FileZilla (or Windows Explorer) don't stick.  It's been driving me crazy, copying with FileZilla to later find I can't access the folders.  Any suggestions?

Link to comment

I'm a big fan of Beyond Compare which can also copy multiple files at once (defaults to 1, can adjust in settings) and files are presented in a nested tree format.

 

If you're not going through a cached drive, transferring multiple files at once would likely introduce significant file fragmentation as well.

Link to comment
  • 1 month later...

@dgaschk

 

Sorry for the long delay, but still no go.  When Filezilla creates or copies a folder/file, its permissions are rwx for owner only, thus Windows cannot access them.  Still the only current solution is Midnight Commander to manually add permissions for group and others.  Here is my current go file, with your previous suggestion on the last line:

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &
# ftp adjustment to allow users to see files
cp /boot/vsftpd.conf /etc
#run notification app
installpkg /boot/packages/unraid_notify.tgz
# forum suggested b/c filezilla creating wrong permissions when copying files & folders
echo "local_umask=0000" >> /etc/vsftpd.conf

Link to comment
# vsftpd.conf for unRAID
#
write_enable=YES
connect_from_port_20=YES
#
# No anonymous logins
anonymous_enable=NO
#
# Allow local users to log in.
local_enable=YES
local_umask=077
local_root=/mnt
check_shell=NO
#
# All file ownership will be 'root'
guest_enable=YES
guest_username=root
anon_upload_enable=YES
anon_other_write_enable=YES
anon_mkdir_write_enable=YES
anon_world_readable_only=NO
#
# Logging to syslog
syslog_enable=YES
log_ftp_protocol=NO
xferlog_enable=NO
#
# Misc.
dirmessage_enable=NO
ls_recurse_enable=YES

Link to comment

# vsftpd.conf for unRAID
#
write_enable=YES
connect_from_port_20=YES
#
# No anonymous logins
anonymous_enable=NO
#
# Allow local users to log in.
local_enable=YES
local_umask=077
local_root=/mnt
check_shell=NO
#
# All file ownership will be 'root'
guest_enable=YES
guest_username=root
anon_upload_enable=YES
anon_other_write_enable=YES
anon_mkdir_write_enable=YES
anon_world_readable_only=NO
#
# Logging to syslog
syslog_enable=YES
log_ftp_protocol=NO
xferlog_enable=NO
#
# Misc.
dirmessage_enable=NO
ls_recurse_enable=YES

 

Change local_umask to 000. Why are you using a custom conf?

Link to comment

Change local_umask to 000. Why are you using a custom conf?

 

Without the custom conf I couldn't FTP in at all.  Still having the same problem.  Do you not have a custom conf & can you still FTP in?

 

Here is what I'm now working with.  Thanks for your help.

 

Go:

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &
# ftp adjustment to allow users to see files
cp /boot/vsftpd.conf /etc

 

vsftpd.conf:

# vsftpd.conf for unRAID
#
write_enable=YES
connect_from_port_20=YES
#
# No anonymous logins
anonymous_enable=NO
#
# Allow local users to log in.
local_enable=YES
local_umask=000
local_root=/mnt
check_shell=NO
#
# All file ownership will be 'root'
guest_enable=YES
guest_username=root
anon_upload_enable=YES
anon_other_write_enable=YES
anon_mkdir_write_enable=YES
anon_world_readable_only=NO
#
# Logging to syslog
syslog_enable=YES
log_ftp_protocol=NO
xferlog_enable=NO
#
# Misc.
dirmessage_enable=NO
ls_recurse_enable=YES

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.