1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Typical Gigabit Speeds w/ Samba

Discussion in 'Networking' started by tinusb, Feb 7, 2010.

  1. tinusb

    tinusb New Member

    Messages:
    10
    Thanks Received:
    0
    Hi all!

    I've got a FreeBSD 7 server with Samba and SATAII drives [tho it only runs at SATA-150 for some reason!]. Also, there is a 1Gbit NIC and also on my PC on the network.

    What is TYPICAL copy speeds I should be getting from the FreeBSD machine to my machine - I'm running Win7. I'm getting 11.2MB/sec. Is that good or not?

    Thank you for the help!
    Tinus :stud
     
  2. Alt

    Alt New Member

    Messages:
    726
    Thanks Received:
    79
    Its about 100 mbit/s (some part is taken for tcp and ethernet frames)
     
  3. dennylin93

    dennylin93 New Member

    Messages:
    784
    Thanks Received:
    104
    You might be limited by disk IO. Try running benchmarks/netperf or a similar benchmark.
     
  4. trev

    trev New Member

    Messages:
    364
    Thanks Received:
    45
    To/from Sun Fire E2900 server with twelve dual-core UltraSPARC IV+ CPUs and 96GB of memory, I get 40 Mbps with a white box Phenom 9550 and 4GB of memory with FreeBSD 7.3-STABLE and an Intel Gigabit card (em0).
     
  5. mk

    mk New Member

    Messages:
    300
    Thanks Received:
    16
    you get 40 mbit out of 1000 mbit link?
     
  6. aragon

    aragon New Member

    Messages:
    2,031
    Thanks Received:
    252
    That sounds like 100 Mbit/sec speeds. Are you sure all parts of your network are gigabit?
     
  7. volatilevoid

    volatilevoid New Member

    Messages:
    173
    Thanks Received:
    20
    My personal experience with older FreeBSD releases is that Samba on BSD wasn't as fast as the Linux version, but that may have changed. If your network is fully compatible with GbE, I'd try to tune Samba a bit. Your hard disks should be able to handle more bandwidth.
     
  8. tinusb

    tinusb New Member

    Messages:
    10
    Thanks Received:
    0
    Hi all!

    Thank you for the replies. Yes I am sure that all hardware are gigabit... seems like somehow the freebsd box just refuses to 'make' the card run at gigabit speed. It identifies as 1000TX, but when media is plugged in, it only runs at 100TX.

    But seems like this is the least of my problems... just did an upgrade to FreeBSD 8.0-stable --- and my whole system crashed... unable to mount root, etc. etc. etc. ---- so busy reinstalling to 7.2-stable i386 - unfortunately I don't have the amd64 image with me now, and I need to get the system up and running - run a media server, so it's a heartache without any music! hehehe :)

    I will get back to the topic above, once the system is up and running.

    Just out of interest sake, I've tried to enable jumbo frames '-mtu 9000' but no luck --- does not want to accept '9000'. --- switch supports it, but don't know whether the NIC does.

    Tinus
     
  9. volatilevoid

    volatilevoid New Member

    Messages:
    173
    Thanks Received:
    20
    Which card?

    Are you also sure all your cables are GbE capable?
     
  10. tinusb

    tinusb New Member

    Messages:
    10
    Thanks Received:
    0
    Yip.
     
  11. Savagedlight

    Savagedlight Member

    Messages:
    360
    Thanks Received:
    76
    Quoting a post I made in another thread which should hopefully be helpfull to you. Start with the quoted part, and if that doesn't help, check the rest of the post. :)
    Remember to # /usr/local/etc/rc.d/smbd restart to apply the changes.

    My transfer speeds doubled when I enabled these options.
     
  12. aragon

    aragon New Member

    Messages:
    2,031
    Thanks Received:
    252
    This is the first problem you need to solve. What NIC is this? What switch is it plugging into? Have you tried setting a mediatype manually?
     
  13. jalla

    jalla New Member

    Messages:
    374
    Thanks Received:
    75
    Note that it's mtu 9000 not -mtu 9000
    Anyway, the manpage for your nic driver will tell you if jumbo frames are supported.
     
  14. tinusb

    tinusb New Member

    Messages:
    10
    Thanks Received:
    0
    Still The Same

    Hi all!

    Sorry for the late reply, I've been out of town.

    A bit of an update. After the crashing of my system, I reinstalled FreeBSD 7.2. Then suddenly the copy speed went up to 65 megabyte/sec, then drops to 35meg/sec and then eventually end up doing about 1meg/sec.

    Here's a copy of the dmesg of the network cards:

    Code:
    re1: <RealTek 8169/8169S/8169SB(L)/8110S/8110SB(L) Gigabit Ethernet> port 0xe800-0xe8ff mem 0xfebffc00-0xfebffcff irq 16 at device 0.0 on pci3
    re1: Chip rev. 0x10000000
    re1: MAC rev. 0x00000000
    


    and

    Code:
    re0: <RealTek 8168/8168B/8168C/8168CP/8168D/8111B/8111C/8111CP PCIe Gigabit Ethernet> port 0xd800-0xd8ff mem 
    0xfdfff000-0xfdffffff,0xfdfe0000-0xfdfeffff irq 17 at device 0.0 on pci2
    re0: Using 1 MSI messages
    re0: Chip rev. 0x3c000000
    re0: MAC rev. 0x00400000
    


    I've also tried ammending the 'smb.conf' file with the suggestion, but seems like the bug is still there. If I restart the samba service, it appears to be running again normally, for a couple of seconds, and then it slows down again.

    The swith I used, is a normal 8-port planet switch. I've temporarily exchanged the switch for a ProCurve 1810G switch, but seems like there's no real difference between the switches.

    I also do suspect maybe my onboard LAN [motherboard is an ASUS - can't remember specific model now], because the planet switch detected the link as 100mbit, after resetting the switch, it detected it at 1gbit.

    Tinus