Slow network file transfert

Jean-Marc Potvin <[email protected]> Sat, 4 Dec 2010 01:29:09 -0500
Newsgroups gmane.linux.mandrake.expert
Message-ID <[email protected]>









Since I put up Mandriva Enterprise server with Mandriva gnome desktop I manage to stabilized it and make it so far a great PDC...But

I have encountered to surprises :
 
1(solved) - User Rights randomly stop working for no apparent reason sometime even shutting a user down in the middle of it's working session :
The problem was caused by a faulty cahe file that as kept wrong IP information about the network card serving the PDC.
Probably the card was reseted or a second pdc was connected for testing on the same network, election where past and a windows machine was elected and Cached wins with wrong adress... That made the Wins.dat samba file updated with wrong IP adresses for the PDC network card.

I learned that samba wins uses "Wins.dat" file as a cache... And beware of it as it can get corrupted for many reason (vey probable if you are in installation or testing environement)!
 You must know the rules of Microsoft wins network... Sometime erasing the "/var/cache/samba/wins.dat" file is not enough... You will have to close all the computer on the network to make sure that all the "master wins data" are erased by Microsoft self network awerness.

You know your wins,dat cache file is corrupted when you see old computer showing up in the "windows network environment"
You know your wins.dat is corrupted when your shared folders shows the wrong files
You know your wins.dat is corrupted when users looses there rights to files and folders they use to have the rights to. 

Just erase the "/var/cache/samba/wins.dat", anyway this will have no negative effects at all!


2(Unsolved) - Noticeable speed decrease when copying transferring file with a windows host for no apparent reason?
  File transfer within server are a whoopy 3-10mo/s but when using Windows file manager the same file copying becomes less then 200ko/s.. Makes it on the verge of an unbearable network to work with...

So far I have tried all the best technique to make the network faster
anyway heres some tweaking nice to know for your smb.conf:

# http://www.techworld.com/opsys/features/index.cfm?featureid=493

read raw = no

write raw = yes



# http://www.informit.com/library/content.aspx?b=red_hat_linux7&seqNum=159

wide links=yes

getwd cache=yes



# http://groups.google.com/group/mailing.unix.samba/browse_thread/thread/f7fe67d3d8af99c0

stat cache = yes

strict sync = no

use sendfile = yes

large readwrite = yes

oplock contention limit = 5

oplock break wait time = 100



# http://ubuntuforums.org/archive/index.php/t-219510.html

case sensitive = true



# http://softwarecommunity.intel.com/articles/eng/1259.htm

strict allocate = yes



socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072



obey pam restrictions = no



preserve case = yes

It's true it makes it twice as fast but when your network is 40X slower then expected... It not bad but it's not good...

Hardware tested so far is looking good :
Weather it is duplex or speed

Looked everywhere for that speed limitation????
Anyone else as speed limits as bad as mine?


My Environment
Dell, 1U poweredge 1750 
>uname -a
Linux mesalter.paysagisteroche.ca 2.6.27.53-desktop-1mnb #1 SMP Tue Sep 21 12:08:46 EDT 2010 i686 Intel(R) Xeon(TM) CPU 2.40GHz GNU/Linux
>lspci
00:00.0 Host bridge: Broadcom CMIC-LE Host Bridge (GC-LE chipset) (rev 33)
00:00.1 Host bridge: Broadcom CMIC-LE Host Bridge (GC-LE chipset)
00:00.2 Host bridge: Broadcom CMIC-LE Host Bridge (GC-LE chipset)
00:0e.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
00:0f.0 Host bridge: Broadcom CSB5 South Bridge (rev 93)
00:0f.1 IDE interface: Broadcom CSB5 IDE Controller (rev 93)
00:0f.2 USB Controller: Broadcom OSB4/CSB5 OHCI USB Controller (rev 05)
00:0f.3 ISA bridge: Broadcom CSB5 LPC bridge
00:10.0 Host bridge: Broadcom CIOB-E I/O Bridge with Gigabit Ethernet (rev 12)
00:10.2 Host bridge: Broadcom CIOB-E I/O Bridge with Gigabit Ethernet (rev 12)
00:11.0 Host bridge: Broadcom CIOB-X2 PCI-X I/O Bridge (rev 05)
00:11.2 Host bridge: Broadcom CIOB-X2 PCI-X I/O Bridge (rev 05)
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 02)
02:00.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 02)
03:06.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 62)
03:06.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 62)
03:06.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 65)
04:03.0 RAID bus controller: Dell PowerEdge Expandable RAID controller 4/Di (rev 02)

> ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:11:43:58:8E:FF  
          inet adr:192.168.0.30  Bcast:192.168.0.255  Masque:255.255.255.0
          adr inet6: fe80::211:43ff:fe58:8eff/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:136471 errors:0 dropped:0 overruns:0 frame:0
          TX packets:196558 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          RX bytes:42613598 (40.6 MiB)  TX bytes:186525423 (177.8 MiB)
          Interruption:17 

> ethtool eth1
Settings for eth1:
    Supported ports: [ TP ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Half 1000baseT/Full 
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Half 1000baseT/Full 
    Advertised auto-negotiation: Yes
    Speed: 100Mb/s
    Duplex: Full
    Port: Twisted Pair
    PHYAD: 1
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: g
    Wake-on: d
    Current message level: 0x000000ff (255)
    Link detected: yes

I have another machine at home with a 64bit version of mandriva Enterprise Server... But this one as no problem so far with speed transfer on the network.