Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Windows vs. Ubuntu @Transferring Files

  1. #1
    Join Date
    Feb 2010
    Location
    In My Food Forest
    Beans
    9,318

    Windows vs. Ubuntu @Transferring Files

    Is there a conf file I need to mess with on my Ubuntu machines to make them transfer at the same speed as Windows? I have never been able to get Ubuntu to transfer at more than 3MB/s while transferring files between two Ubuntu machines, yet I started a transfer using Windows to Ubuntu machines and it maxed out at 100Mb/s. As you can see in the screenshot, I had a file transfer going between the two ubuntu machines, then through in the transfer from the Windows machine.

    I know hardware isn't the issue here, so I am wondering what must be changed to keep up with the non-ubuntu machine.
    Attached Images Attached Images
    Cheers & Beers, uRock
    [SIGPIC][/SIGPIC]

  2. #2
    Join Date
    Jul 2012
    Location
    Vancouver, Canada
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Windows vs. Ubuntu @Transferring Files

    How are you setting the shared folder? Is it with Samba on the Ubuntu machine or a Windows share on the Windows machine? (which is the host machine).
    Also, is the partition you are transferring the files to, formated NTFS?

    To explain:
    Sabma server can be fine tuned to achieve much better speeds than the default settings.
    The configuration file is smb.conf and there is a lot of online info and manuals with specific directions on that. I can provide some links if you need and if that is the case.

    More important - When Ubuntu is transferring files to an NTFS drive, it uses a special ntfs process that serves ALL ntfs requests and as a result is quite slow. Typical transfer between two Ubuntu machines (formatted Ext4 for example is 30% or more faster than Windows on a single large file).

    But you are describing a speed difference in a factor of 30! which is way too much. So I would suggest also to look at the network driver Ubuntu uses. could be that tye default setting is hurting the transfer speed.

  3. #3
    Join Date
    Feb 2010
    Location
    In My Food Forest
    Beans
    9,318

    Re: Windows vs. Ubuntu @Transferring Files

    The host machine is ubuntu with a shared NTFS drive. The transfers I was doing last night were uploading files from other machines on the network. The Windows 7 machine topped out at 100 Mb/s and the ubuntu upload was around 15Mb/s(less than 2MB/s) for the ubuntu to ubuntu upload.

    When I was running the ubutu to ubuntu upload last night I was using a wireless connection. By trying to uplooad with a wired connection with the same uploading host, the speed increased to 5MB/s (45Mb/s). While that is much faster, it still isn't comparable to the upload from the Windows machine.

    The links you mentioned sound great and I would like to check them out.


    Thanks!
    Attached Images Attached Images
    Cheers & Beers, uRock
    [SIGPIC][/SIGPIC]

  4. #4
    Join Date
    Jul 2012
    Location
    Vancouver, Canada
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Windows vs. Ubuntu @Transferring Files

    As I mentioned, using Ubuntu with NTFS formatted drive will be noticeably slower than with EXT4 formatted drive due to the single ntfs process that will run (you can check the process list during the copy and you will see it and how much it takes of the CPU time).

    Having TWO Ubuntu machine do that at the same time - doubles the delay, and that would be one reason for the slow transfer speed you experience.
    Until you switch the drives on both machines to EXT4 you wont be able to do much about that problem.

    As for Samba, here are some links discussing parameters you can tweak to improve the transfer speed:
    http://oreilly.com/openbook/samba/book/appb_02.html

    Some examples:
    http://www.randombugs.com/linux/spee...der-linux.html

    Mounting options:
    http://ubuntuforums.org/showthread.php?t=1213688

    There are many other links on the web about speeding up and fine tuning Samba.

    Hope that helps.

  5. #5
    Join Date
    Jul 2012
    Location
    Vancouver, Canada
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Windows vs. Ubuntu @Transferring Files

    Here another link the summarizes some of the Samba options to tweak. Also, very important - the logging level (see at the bottom). If you reduce it to a minimum you will save a lot of time on the transfer!

    https://calomel.org/samba_optimize.html

  6. #6
    Join Date
    Feb 2010
    Location
    In My Food Forest
    Beans
    9,318

    Re: Windows vs. Ubuntu @Transferring Files

    Thanks for the links. I will make up a diagram, which may be more helpful in the explanation of my setup, the next time I get a chance to fire up PacketTracer.
    Cheers & Beers, uRock
    [SIGPIC][/SIGPIC]

  7. #7
    Join Date
    Sep 2006
    Location
    Allentown, PA; USA
    Beans
    511
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Windows vs. Ubuntu @Transferring Files

    Make sure, if the partition is in fstab, that you do not have "sync" in the options field. That REALLY bogs down vfat and ntfs transfers.

    my options for my ntfs partition are as follows:

    defaults,recover,compreession,noatime,shortname=wi nnt,windows_names,uid=1000,gid=1000 0 0

  8. #8
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Windows vs. Ubuntu @Transferring Files

    Hi uRock.

    I can easily get 9GB/s on a 100Mb/s network, connecting a 10.04 server with a 10.04 desktop.

    By any chance the Ubuntu's have different versions, or maybe different samba versions?

    Regards.

  9. #9
    Join Date
    Feb 2010
    Location
    In My Food Forest
    Beans
    9,318

    Re: Windows vs. Ubuntu @Transferring Files

    Quote Originally Posted by papibe View Post
    Hi uRock.

    I can easily get 9GB/s on a 100Mb/s network, connecting a 10.04 server with a 10.04 desktop.

    By any chance the Ubuntu's have different versions, or maybe different samba versions?

    Regards.
    I have been having this problem with multiple machines with ubuntu over the past few years. I haven't got into checking things out yet. Still winding down from a long day at work.
    Cheers & Beers, uRock
    [SIGPIC][/SIGPIC]

  10. #10
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Windows vs. Ubuntu @Transferring Files

    I see.

    Have you test the raw network transfer rate? (using iperf for instance).

    After checking the graph, it looks like the the copy can't hold fast ethernet speeds and is defaulting to 10Mb/s.

    Just a thought.
    Regards.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •