Author Topic: [[Solved]] Samba slow if gateway  (Read 1893 times)

rickyx

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
[[Solved]] Samba slow if gateway
« on: January 07, 2012, 05:52:41 pm »
Zentyal 2.2.4

If I setup ONLY one interface and Dhcp, clients read and write fast on samba shares: 11 Mb/s on a 10/100 network.
If I setup Zentyal as the attached image client use samba around 20 kb/s. Internet is fast as it should be.

Of course I exclude any kind of hardware failure, network connections and card, hard disk malfunctioning.
Checked logs but I can't see problems that can be related to this behavior.

I have tried all kind of voodoo but I can't solve the problem.

Thank you for any kind of suggestion that can help me to solve the problem.
Riccardo
« Last Edit: January 12, 2012, 12:13:01 am by rickyx »

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Samba slow if gateway
« Reply #1 on: January 07, 2012, 08:14:03 pm »
Are you using the Traffic Shaping module?
Zentyal Server Lead Developer

rickyx

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Samba slow if gateway
« Reply #2 on: January 08, 2012, 02:22:35 am »
No, ...not yet!

vshaulsk

  • Zen Samurai
  • ****
  • Posts: 477
  • Karma: +9/-1
    • View Profile
Re: Samba slow if gateway
« Reply #3 on: January 09, 2012, 03:11:10 pm »
I have the same setup as you do (only difference is I run gigabit LAN)..... I get steady transfer speeds of about 65 to 75 MB/s.

The only time I have seen speeds slow down a lot is if I use the traffic shaping module.... this causes major slowdowns.

Also I run another instance of zentyal as a virtual machine (I use this one as my webserver + transmission for torrent files).  My virtual server also has samba installed..... when I try transfer files from the virtual server I get about 15 to 20 MB/s, but I think this is a problem with it being a virtual machine.

Is your instance of zentyal physical or virtual????

rickyx

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Samba slow if gateway
« Reply #4 on: January 12, 2012, 12:12:36 am »
My istance is zentyal physical.

Anyway I solved the problem just inverting eth0 with eth1.

Maybe some configuration scripts, running not in the right order, may cause some incorrect value in some configuration files?

In sum, I disabled all interfaces, removed gateway, disabled dns and dhcp modules and started to reconfigure from the internal side using the same parameters as the image posted before.
Making all steps in the right order made:
  • reappear all the interface as possible gateway (yes, I didn't mentioned before, I had trouble because one interface was not listed in the form "add gateway", after removing all configurations that was solved)
  • work dns and dhcp
  • samba goes as fast as 10/100 permit !

Now I'll Qos.

I thank you for the help,
best regards,
Rickyx