TurnKey Linux Virtual Appliance Library

File Server: Samba Performance Issues

Hi guys, 

Last night, I installed the file server iso on an HP Xeon xw6200 with 4GB of Ram (proper single os installation, not a VM one), but I'm having serious performance issues: I tried to move a 100Mb file from a windows machine to the file server and it's taking 40 mins to complete the transfer... It took me 7mins to download the File Server ISO from the internet! :)

Are there any settings I need to tweak to achieve a more acceptable performance? 

Thanks! 

 

 

 

Jeremy's picture

Not sure, my fileserver works fine with no tweak

Although mine is not really standard. I'm using Proxmox (Debian based) as the Hypervisor. I installed to KVM from ISO then converted it to an OpenVZ template (Proxmox provides both KVM and OpenVZ). Beyond the conversion process and basic initial setup etc, it has no mods. It is sharing files and folders with a number of other machines (both virtual and physical) no worries.

I can pull a 700MB file from the server to my (old) Dell laptop over 'b' (54Mbps) wifi a few rooms away and it completes in about 3 or 4 minutes.

I would suspect some sort of hardware issue/incompatability. Perhaps the networking drivers are a little flakey? That'd be my guess. Find out what chip it uses and let google help find out if its problematic with Ubuntu 8.04 (basis of TKL).

Other possibilities off the top of my head are network congestion, improperly configured router and damaged or poorly connecting cables. A simple ping may assist diagnosing that.

Check your Card Settings

In my experience, network performance sucks if the network cards negotiate improperly (one is at 100Mbps while the connected port is at 1G, or if one is Full-Duplex while the connected port is at Half-Duplex). You can use ethtool to investigate the card settings and you might have to use the switch's management tool to investigate the setting of the connected port.

You can fix it by ensuring that both ends of the link are set identically (both at 1G Full-Duplex for instance, or 100Mbps Full-Duplex).

Good luck!

Check your Card Settings

In my experience, network performance sucks if the network cards negotiate improperly (one is at 100Mbps while the connected port is at 1G, or if one is Full-Duplex while the connected port is at Half-Duplex). You can use ethtool to investigate the card settings and you might have to use the switch's management tool to investigate the setting of the connected port.

You can fix it by ensuring that both ends of the link are set identically (both at 1G Full-Duplex for instance, or 100Mbps Full-Duplex).

Good luck!

no luck yet...

The onboard network card is 1G capable but my router is just a simple adsl wireless modem router.

I used ethtool to force the network card to use 100M full duplex, but  no performance improvements.

The network card is a Broadcom card and its driver is part of the kernel, so it should work out of the box.

I'll look into it over the weekend and report back. Suggestions are welcome!

All sorted...

Believe it or not, my problem was due to a dodgy cat5 cable...  

The funny thing is that the connection to the network was actually there, it simply wouldn't work at the right/full speed...

Oh well, you learn something new every day!

I have to say, Turnkey Linux is one of the best things I've tried this year.

You guys have done an amazing job! Thanks a million! :)

 

Jeremy's picture

Glad to hear you worked it out.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)