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

Thread: Interesting fact about Samba

  1. #1
    Join Date
    Jun 2008
    Beans
    138

    Interesting fact about Samba

    I have been using samba for my windows share with the assumption this was faster than sftp.

    Interesting fact: on my systems at least sftp is faster than samba shares.
    Site:http://timszaboblog.com - Linux / Web Development / Ecommerce

  2. #2
    Join Date
    Feb 2009
    Location
    Trinidad and Tobago
    Beans
    340
    Distro
    Ubuntu Development Release

    Re: Interesting fact about Samba

    wat? i sense something is missing here.

    Are you transferring a large file, or a lot of small files?
    The above post definitely does not contain any sarcasm at all.

  3. #3
    Join Date
    Jun 2008
    Beans
    138

    Re: Interesting fact about Samba

    I would be interested in someone elses results.

    I expected the encryption to be the bottle neck.
    Site:http://timszaboblog.com - Linux / Web Development / Ecommerce

  4. #4
    Join Date
    Feb 2009
    Location
    Trinidad and Tobago
    Beans
    340
    Distro
    Ubuntu Development Release

    Re: Interesting fact about Samba

    Not that, FTP is incredibly inefficient at beginning and ending transfers. I doubt the encryption has a large effect.. (also, afaik, samba is encrypted too)
    The above post definitely does not contain any sarcasm at all.

  5. #5
    Join Date
    Feb 2009
    Location
    USA
    Beans
    3,186

    Re: Interesting fact about Samba

    Samba (and the whole windows thins) runs a lot of overhead. And Encryption is not a problem so long as you have a fast CPU.

    The type of the transfer would make a bigger difference, do you do one large file or many small ones.

  6. #6
    Join Date
    Apr 2011
    Beans
    23

    Re: Interesting fact about Samba

    I have a disk plugged into my router, mounted as a samba share, and am very disappointed with the transfer speeds.
    Usually less than 6 MB/sec for large files...

  7. #7
    Join Date
    Mar 2007
    Location
    Portsmouth, UK
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Interesting fact about Samba

    Quote Originally Posted by PhillyPhil View Post
    I have a disk plugged into my router, mounted as a samba share, and am very disappointed with the transfer speeds.
    Usually less than 6 MB/sec for large files...
    On a home router, that's not uncommon; a decent switch connected to the router will give far greater performance. It it's a GB switch, then far and above.

    Quote Originally Posted by timZZ View Post
    I would be interested in someone elses results
    Samba is marginally slower than a direct SCP, on my machines.

  8. #8
    Join Date
    Apr 2011
    Beans
    23

    Re: Interesting fact about Samba

    Quote Originally Posted by Grenage View Post
    On a home router, that's not uncommon; a decent switch connected to the router will give far greater performance. It it's a GB switch, then far and above.
    My "router" is a switch/broadband router combined in a single unit, from my ISP. The disk and the computer that has root access to the disk are both connected to the router with an ethernet cable.

    So my router/switch is what's causing the slow transfer speeds? (It can't possibly be the disks or cables at either end.)
    I'm amazed that it can't do much, much better than that...

  9. #9
    Join Date
    Mar 2007
    Location
    Portsmouth, UK
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Interesting fact about Samba

    Quote Originally Posted by PhillyPhil View Post
    My "router" is a switch/broadband router combined in a single unit, from my ISP. The disk and the computer that has root access to the disk are both connected to the router with an ethernet cable.

    So my router/switch is what's causing the slow transfer speeds? (It can't possibly be the disks or cables at either end.)
    I'm amazed that it can't do much, much better than that...
    Many home gateways can't; the ISPs are more interested in reliable internet connections than local transfers. I had an old 10/100 netgear router that wouldn't top 5.5MB/s; I would have just bought a switch to connect to it, but it was so unreliable I ended up replacing it.

  10. #10
    Join Date
    Dec 2007
    Location
    Chicago
    Beans
    Hidden!

    Re: Interesting fact about Samba

    Quote Originally Posted by PhillyPhil View Post
    My "router" is a switch/broadband router combined in a single unit, from my ISP. The disk and the computer that has root access to the disk are both connected to the router with an ethernet cable.

    So my router/switch is what's causing the slow transfer speeds? (It can't possibly be the disks or cables at either end.)
    I'm amazed that it can't do much, much better than that...
    Slow router speeds are generally only towards the WAN. Your LAN speeds should be just fine. There are a few issues with samaba and file transfer speeds. You'll most likely need to tweak samba to get better results.

    You can look into adding

    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

    to the global section of your smb.conf file. You might need to tweak the buffer setting to improve performance.
    Hey, you created me. I didn't create some loser alter-ego to make myself feel better. Take some responsibility! -Tyler Durden, Fight Club

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
  •