[Samba] Slow Samba over VPN
Hello. I have Samba on Ibex running over VPN, and am having problems with speed reading and writing from XP and 7 boxes. It takes, for example, 16 minutes to transfer four files for a total of 1.2MB. I assume that this problem is due to SMB block size and the latency I'm dealing with, always between 200 and 500ms. How can I properly configure client and server to negotiate a suitable block size / tcp window to reduce the number of transactions and up the speed? Thanks, Colin -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Slow Samba writes over NFS
Hi... Same problem here, running on CentOS 5.* and 4.5. It was solved by installing the package lockdev. Then you must restart the machine. And problem fixed. ashis.v.purbhoo wrote: > > > Hello... > > Currently in the process of upgrading Samba v2.0.10 to Samba v3.0.x, while > conducting some minimal testing, it turns-out that Samba v3.0.x is > performing slower than Samba v2.0.10. > > Set-ups: > A. Samba v3.0.x --> > Same PC client is accessing the samba share running on Red Hat 4.5 (64bit, > HP DL380) which in turn has an NFS mount coming from another SAN attached > Red Hat 4.5 (64bit, HP DL380). > > B. Samba v2.0.x --> > Same PC client is accessing the samba share running on Red Hat 4.5 (32bit, > Dell T7400) which in turn has an NFS mount coming from another SAN > attached > Red Hat 4.5 (64bit, HP DL380). > > C. Samba v2.0.x --> > Same PC client is accessing the samba share running on Solaris8 (Sun V240) > which in turn has an NFS mount coming from another SAN attached Solaris8 > (Sun V240). > > Trails: > I've tested both Samba versions using the same smb.conf files and have > also > tested with all global defaults (except those required). Played around > with Socket Options & Max Xmit sizes but no luck, it's still slower. This > doesn't sound accurate, shouldn't the Samba v3.0.x be faster than Samba > v2.0.10? What config options/settings should I be looking at? > > Regards, > Ashis > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba > > -- View this message in context: http://www.nabble.com/Slow-Samba-writes-over-NFS-tp18510681p19226508.html Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Slow Samba writes over NFS
On Mon, Jul 21, 2008 at 11:14:59AM -0500, [EMAIL PROTECTED] wrote: > Thanks for the suggestions, putting Samba directly on the file server would > be ideal, but due to the environment & the large number of Linux/Unix file > servers, this is not a likely scenario. Unfortunately, the only current > option is for us is to use Samba accessing data over NFS. From my > understanding several factors went into deciding on Samba v2.0.10 and among > that were NFS data integrity, smbd hanging and & non-use of *tdb's. At > some point in time we had to go from Samba v2.2 back to Samba v2.0.10 for > the above reasons. > > Suggestions received to speed NFS writes on Samba v3 vs. Samba v2: >Set "strict locking = no" (default in Samba v2*). Default in Samba v3 >is "strict locking = yes" >Set "posix locking = no" >The utimes(2) calls may have changed for write for correctness... "strict locking" or even "locking" should not be touched. "posix locking = no" is advisable for sharing NFS imports. > With or without the suggested updates above, is Samba susceptible to NFS > data corruption and smbd hangs? Was the utime code/script update to really > address NFS write correctness, or other? The utimes stuff is not an NFS specific thing, the problem though is that it is orders of magnitude slower over NFS than on a local file system. smbd hangs when re-exporting NFS are most likely NFS client bugs that Samba can not work around. If smbd is stuck in D state in a file system syscall like pread(2) or unlink(2), there is NOTHING that Samba can do. This is a kernel issue. > I need to determine if any/all of these items below have substance/still > hold true for Samba v3* and specifically for Samba 3.0.27a. > Does these websites info. still hold true for Samba 3.0.27a? > http://threebit.net/mail-archive/samba/msg00821.html > Issues around Samba 3.0.5: > > > http://www.usenet-forums.com/samba/308202-re-samba-exclusive-oplock-left-process.html Beyond "posix locking = no" please also set "kernel oplocks = no". Then depending on the quality of your NFS client implementation you could get to a working server. Volker pgpFBQWtWyfO2.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Slow Samba writes over NFS
All - Thanks for the suggestions, putting Samba directly on the file server would be ideal, but due to the environment & the large number of Linux/Unix file servers, this is not a likely scenario. Unfortunately, the only current option is for us is to use Samba accessing data over NFS. From my understanding several factors went into deciding on Samba v2.0.10 and among that were NFS data integrity, smbd hanging and & non-use of *tdb's. At some point in time we had to go from Samba v2.2 back to Samba v2.0.10 for the above reasons. Suggestions received to speed NFS writes on Samba v3 vs. Samba v2: Set "strict locking = no" (default in Samba v2*). Default in Samba v3 is "strict locking = yes" Set "posix locking = no" The utimes(2) calls may have changed for write for correctness... With or without the suggested updates above, is Samba susceptible to NFS data corruption and smbd hangs? Was the utime code/script update to really address NFS write correctness, or other? I need to determine if any/all of these items below have substance/still hold true for Samba v3* and specifically for Samba 3.0.27a. Does these websites info. still hold true for Samba 3.0.27a? http://threebit.net/mail-archive/samba/msg00821.html Issues around Samba 3.0.5: http://www.usenet-forums.com/samba/308202-re-samba-exclusive-oplock-left-process.html Regards, Ashis This communication may contain privileged or other confidential information. If you are not the intended recipient, or believe that you may have received this communication in error, please reply to the sender indicating that and delete the copy you received. In addition, you should not print, copy, retransmit, disseminate, or otherwise use the information contained in this communication. Thank You. Eric Roseme <[EMAIL PROTECTED] ter.rose.hp.co To m> Helmut Hullen <[EMAIL PROTECTED]> Sent by: cc samba-bounces+ samba@lists.samba.org ashis.v.purbho Subject o=exxonmobil.c Re: [Samba] Slow Samba writes over [EMAIL PROTECTED] NFS .org 07/18/08 10:13 AM Please respond to [EMAIL PROTECTED] er.rose.hp.com Helmut Hullen wrote: > Hallo, ashis.v.purbhoo, > > Du (ashis.v.purbhoo) meintest am 17.07.08: > > >> Currently in the process of upgrading Samba v2.0.10 to Samba v3.0.x, >> while conducting some minimal testing, it turns-out that Samba v3.0.x >> is performing slower than Samba v2.0.10. > >> Set-ups: >> A. Samba v3.0.x --> >> Same PC client is accessing the samba share running on Red Hat 4.5 >> (64bit, HP DL380) which in turn has an NFS mount coming from another >> SAN attached Red Hat 4.5 (64bit, HP DL380). > >> B. Samba v2.0.x --> >> Same PC client is accessing the samba share running on Red Hat 4.5 >> (32bit, Dell T7400) which in turn has an NFS mount coming from >> another SAN attached Red Hat 4.5 (64bit, HP DL380). > > Maybe a change to cifs instead of nfs helps - I have seen that in a > school in the neighnourhood. > > Viele Gruesse! > Helmut Samba 2.* default was "strict locking = no", and 3.* is "strict locking = yes". If you have "strict locking" set over an NFS mount, it will be very slow. Eric Roseme -- To unsubscribe from this list go to th
Re: [Samba] Slow Samba writes over NFS
Helmut Hullen wrote: Hallo, ashis.v.purbhoo, Du (ashis.v.purbhoo) meintest am 17.07.08: Currently in the process of upgrading Samba v2.0.10 to Samba v3.0.x, while conducting some minimal testing, it turns-out that Samba v3.0.x is performing slower than Samba v2.0.10. Set-ups: A. Samba v3.0.x --> Same PC client is accessing the samba share running on Red Hat 4.5 (64bit, HP DL380) which in turn has an NFS mount coming from another SAN attached Red Hat 4.5 (64bit, HP DL380). B. Samba v2.0.x --> Same PC client is accessing the samba share running on Red Hat 4.5 (32bit, Dell T7400) which in turn has an NFS mount coming from another SAN attached Red Hat 4.5 (64bit, HP DL380). Maybe a change to cifs instead of nfs helps - I have seen that in a school in the neighnourhood. Viele Gruesse! Helmut Samba 2.* default was "strict locking = no", and 3.* is "strict locking = yes". If you have "strict locking" set over an NFS mount, it will be very slow. Eric Roseme -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Slow Samba writes over NFS
On Thu, Jul 17, 2008 at 09:47:19AM -0500, [EMAIL PROTECTED] wrote: > > Hello... > > Currently in the process of upgrading Samba v2.0.10 to Samba v3.0.x, while > conducting some minimal testing, it turns-out that Samba v3.0.x is > performing slower than Samba v2.0.10. > > Set-ups: > A. Samba v3.0.x --> > Same PC client is accessing the samba share running on Red Hat 4.5 (64bit, > HP DL380) which in turn has an NFS mount coming from another SAN attached > Red Hat 4.5 (64bit, HP DL380). > > B. Samba v2.0.x --> > Same PC client is accessing the samba share running on Red Hat 4.5 (32bit, > Dell T7400) which in turn has an NFS mount coming from another SAN attached > Red Hat 4.5 (64bit, HP DL380). > > C. Samba v2.0.x --> > Same PC client is accessing the samba share running on Solaris8 (Sun V240) > which in turn has an NFS mount coming from another SAN attached Solaris8 > (Sun V240). > > Trails: > I've tested both Samba versions using the same smb.conf files and have also > tested with all global defaults (except those required). Played around > with Socket Options & Max Xmit sizes but no luck, it's still slower. This > doesn't sound accurate, shouldn't the Samba v3.0.x be faster than Samba > v2.0.10? What config options/settings should I be looking at? None. Very likely it is the utimes(2) calls that we have to do on each write for correctness. Can you verify that with sniffs? I will have to dig it up, but there is a module somewhere that gets rid of those, sacrificing a bit of compatibility. BTW, exporting an NFS imported directory is a REALLY, REALLY bad idea. Why don't you just install Samba on the NFS server? Volker pgp5hjJbJ8iNB.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Slow Samba writes over NFS
Hallo, ashis.v.purbhoo, Du (ashis.v.purbhoo) meintest am 17.07.08: > Currently in the process of upgrading Samba v2.0.10 to Samba v3.0.x, > while conducting some minimal testing, it turns-out that Samba v3.0.x > is performing slower than Samba v2.0.10. > Set-ups: > A. Samba v3.0.x --> > Same PC client is accessing the samba share running on Red Hat 4.5 > (64bit, HP DL380) which in turn has an NFS mount coming from another > SAN attached Red Hat 4.5 (64bit, HP DL380). > B. Samba v2.0.x --> > Same PC client is accessing the samba share running on Red Hat 4.5 > (32bit, Dell T7400) which in turn has an NFS mount coming from > another SAN attached Red Hat 4.5 (64bit, HP DL380). Maybe a change to cifs instead of nfs helps - I have seen that in a school in the neighnourhood. Viele Gruesse! Helmut -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Slow Samba writes over NFS
Hello... Currently in the process of upgrading Samba v2.0.10 to Samba v3.0.x, while conducting some minimal testing, it turns-out that Samba v3.0.x is performing slower than Samba v2.0.10. Set-ups: A. Samba v3.0.x --> Same PC client is accessing the samba share running on Red Hat 4.5 (64bit, HP DL380) which in turn has an NFS mount coming from another SAN attached Red Hat 4.5 (64bit, HP DL380). B. Samba v2.0.x --> Same PC client is accessing the samba share running on Red Hat 4.5 (32bit, Dell T7400) which in turn has an NFS mount coming from another SAN attached Red Hat 4.5 (64bit, HP DL380). C. Samba v2.0.x --> Same PC client is accessing the samba share running on Solaris8 (Sun V240) which in turn has an NFS mount coming from another SAN attached Solaris8 (Sun V240). Trails: I've tested both Samba versions using the same smb.conf files and have also tested with all global defaults (except those required). Played around with Socket Options & Max Xmit sizes but no luck, it's still slower. This doesn't sound accurate, shouldn't the Samba v3.0.x be faster than Samba v2.0.10? What config options/settings should I be looking at? Regards, Ashis -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] slow samba
already on. Bruno La Torre wrote: > > > > iLinux ha scritto: >> I have a samba version 3.024 server joined to a ADS as a "Workstation or >> server" acting as a file/print server. It is a Debian 4.0 amd64 up to >> date >> with stable. ftp works just fine so not network, must be samba config. >> >> vary slow file transfer when copying file from one computer but copy from >> two or more at the same time speed is 10 times faster. You will be >> copying a >> 600MG file with one computer and it will say 80 minutes remaining. start >> copying a file from a nother computer and 10X faster ( 4 minutes >> remaining >> ). Also when copying file from server with linux client 2 minutes 6.5 to >> 7.0 >> MBPS. It looks like it has something to do with cash. i have "winbind >> cache >> time = 30" in my smb.config and "socket options = TCP_NODELAY >> SO_RCVBUF=16384 SO_SNDBUF=16384" no help. Thanks in advance for your >> help. >> > I had the item problem, for me the solution was to enable "Flow control" > on the switch. > > bruno > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba > -- View this message in context: http://www.nabble.com/slow-samba-tp17992390p18033111.html Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] slow samba
When I copy to the server it is fast like 7-8mbps. no mater what file. -- View this message in context: http://www.nabble.com/slow-samba-tp17992390p18033097.html Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] slow samba
here are some dump header when slow No. TimeSourceDestination Protocol Info 1 0.00Cisco_89:f5:19PVST+ STP Conf. Root = 32792/00:18:19:89:f5:00 Cost = 0 Port = 0x8019 2 0.04172.xx.xx.20 172.xx.xx.34 SSH Encrypted response packet len=48 3 0.06172.xx.xx.20 172.xx.xx.34 SSH Encrypted response packet len=112 4 0.000288172.xx.xx.34 172.xx.xx.20 TCP 59647 > ssh [ACK] Seq=1 Ack=49 Win=10569 Len=0 TSV=42771432 TSER=17619003 5 0.000295172.xx.xx.34 172.xx.xx.20 TCP 59647 > ssh [ACK] Seq=1 Ack=161 Win=10569 Len=0 TSV=42771432 TSER=17619003 6 0.000635172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=1 Ack=1 Win=65535 Len=0 7 0.000947172.xx.xx.48 172.xx.xx.20 SMB Read AndX Request[Packet size limited during capture] 8 0.001104172.xx.xx.20 172.xx.xx.48 SMB Read AndX Response[Packet size limited during capture] 9 0.001109172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 10 0.001112172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 11 0.001115172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 12 0.001119172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 13 0.001127172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 14 0.001130172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 15 0.001134172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 16 0.001142172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 17 0.001146172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 18 0.001154172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 19 0.001158172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 20 0.001161172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 21 0.001168172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 22 0.001172172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 23 0.001175172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 24 0.001179172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 25 0.001183172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 26 0.001186172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 27 0.001190172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 28 0.001193172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 29 0.001197172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 30 0.001201172.xx.xx.20 172.xx.xx.48 NBSS NBSS Continuation Message 31 0.005336172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=64 Ack=4381 Win=65535 Len=0 32 0.005343172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=64 Ack=7301 Win=65535 Len=0 33 0.005350172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=64 Ack=10221 Win=65535 Len=0 34 0.005355172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=64 Ack=13141 Win=65535 Len=0 35 0.005362172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=64 Ack=16061 Win=65535 Len=0 36 0.005368172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=64 Ack=18981 Win=65535 Len=0 37 0.005376172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=64 Ack=21901 Win=65535 Len=0 38 0.005384172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=64 Ack=24821 Win=65535 Len=0 39 0.005389172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=64 Ack=27741 Win=65535 Len=0 40 0.005396172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=64 Ack=30661 Win=65535 Len=0 41 0.005404172.xx.xx.48 172.xx.xx.20 TCP l2f > netbios-ssn [ACK] Seq=64 Ack=32832 Win=65535 Len=0 42 0.005415172.xx.xx.48 172.xx.xx.20 SMB Read AndX Request[Packet size limited during capture] 43 0.005512172.xx.xx.20 172.xx.xx.48 SMB Read AndX Response[Packet size limited during capture]
Re: [Samba] slow samba
iLinux ha scritto: I have a samba version 3.024 server joined to a ADS as a "Workstation or server" acting as a file/print server. It is a Debian 4.0 amd64 up to date with stable. ftp works just fine so not network, must be samba config. vary slow file transfer when copying file from one computer but copy from two or more at the same time speed is 10 times faster. You will be copying a 600MG file with one computer and it will say 80 minutes remaining. start copying a file from a nother computer and 10X faster ( 4 minutes remaining ). Also when copying file from server with linux client 2 minutes 6.5 to 7.0 MBPS. It looks like it has something to do with cash. i have "winbind cache time = 30" in my smb.config and "socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384" no help. Thanks in advance for your help. I had the item problem, for me the solution was to enable "Flow control" on the switch. bruno -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] slow samba
just samba, and I get good speed with my linux client 6.6 to 7.0 bsps Scott Lovenberg wrote: > > iLinux wrote: >> Thanks but no help >> >> >> John Drescher-2 wrote: >> >>> On Thu, Jun 19, 2008 at 10:08 AM, iLinux <[EMAIL PROTECTED]> wrote: >>> I have a samba version 3.024 server >>> That is an old version (3.0.30 is current) but it probably is not the >>> problem. >>> >>> vary slow file transfer when copying file from one computer but copy from two or more at the same time speed is 10 times faster. You will be copying a 600MG file with one computer and it will say 80 minutes remaining. start copying a file from a nother computer and 10X faster ( 4 minutes remaining ). Also when copying file from server with linux client 2 minutes 6.5 to 7.0 MBPS. It looks like it has something to do with cash. i have "winbind cache time = 30" in my smb.config and "socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384" no help. Thanks in advance for your help. -- >>> Remove all socket options on 2.6 kernels these are not needed anymore >>> and actually can slow things down. >>> >>> John >>> -- >>> To unsubscribe from this list go to the following URL and read the >>> instructions: https://lists.samba.org/mailman/listinfo/samba >>> >>> >> >> > Does this only happen with Samba or can you reproduce it with multiple > FTP connections, as well? > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba > -- View this message in context: http://www.nabble.com/slow-samba-tp17992390p18017325.html Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] slow samba
iLinux wrote: Thanks but no help John Drescher-2 wrote: On Thu, Jun 19, 2008 at 10:08 AM, iLinux <[EMAIL PROTECTED]> wrote: I have a samba version 3.024 server That is an old version (3.0.30 is current) but it probably is not the problem. vary slow file transfer when copying file from one computer but copy from two or more at the same time speed is 10 times faster. You will be copying a 600MG file with one computer and it will say 80 minutes remaining. start copying a file from a nother computer and 10X faster ( 4 minutes remaining ). Also when copying file from server with linux client 2 minutes 6.5 to 7.0 MBPS. It looks like it has something to do with cash. i have "winbind cache time = 30" in my smb.config and "socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384" no help. Thanks in advance for your help. -- Remove all socket options on 2.6 kernels these are not needed anymore and actually can slow things down. John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Does this only happen with Samba or can you reproduce it with multiple FTP connections, as well? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] slow samba
I have a samba version 3.024 server joined to a ADS as a "Workstation or server" acting as a file/print server. It is a Debian 4.0 amd64 up to date with stable. ftp works just fine so not network, must be samba config. vary slow file transfer when copying file from one computer but copy from two or more at the same time speed is 10 times faster. You will be copying a 600MG file with one computer and it will say 80 minutes remaining. start copying a file from a nother computer and 10X faster ( 4 minutes remaining ). Also when copying file from server with linux client 2 minutes 6.5 to 7.0 MBPS. It looks like it has something to do with cash. i have "winbind cache time = 30" in my smb.config and "socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384" no help. Thanks in advance for your help. Ok something new to report. file.1 = 3.2G file.2 = 640M If I start copying file.1 from server with computer1 i get slow 0.3mbps :( while computer1 still copying I start copying file.2 from server with computer2 computer1 speed jumps to normal. and computer2 speed is normal. if i cancel computer2's file copy of file.2 computer one speed goes back to 0.3mbps :( new scenario If I start copying file.1 from server with computer1 i get slow 0.3mbps :( while computer1 still copying I start copying file.1 from server with computer2 computer1 speed jumps to normal. and computer2 speed is normal. if i cancel computer2's file copy of file.1 computer1's speed stays the same and continues to get faster until full speed :) If i even touch the same file from a nother computer or even the same computer that file will copy normal. *smb.conf*** [global] netbios name = SERVERNAME workgroup = DOMAIN server string = Samba Server idmap uid = 1-2 idmap gid = 1-2 winbind enum users = yes winbind enum groups = yes winbind use default domain = Yes winbind nested groups = Yes winbind cache time = 300 winbind separator = + password server = * preferred master = no max log size = 50 log file = /var/log/samba/log.%m log level = 3 encrypt passwords = true dns proxy = no realm = SEDGWICK.GOV security = ADS wins server = 172.xx.xx.xx 172.xx.xx.xx wins proxy = no load printers = yes printing = cups printcap name = cups admin users = @"DOMAIN+domain admins",@"DOMAIN+wsadmin" template shell = /bin/bash [share] comment = Dept on aging share path = /home/samba/share browseable = yes guest ok = no read only = no inherit acls = yes inherit permissions = yes create mask = 700 directory mask = 700 vfs object = recycle recycle:repository = .recycle/%U recycle:keeptree = Yes recycle:touch = Yes recycle:versions = Yes recycle:maxsixe = 0 recycle:exclude = ~$* *.TMP #recycle:exclude_dir = /tmp [user$] comment = Dept user folders path = /home/samba/user browseable = yes guest ok = no read only = no inherit acls = yes inherit permissions = yes create mask = 700 directory mask = 700 vfs objects = recycle recycle:repository = %U/.recycle recycle:keeptree = Yes recycle:touch = Yes recycle:versions = Yes recycle:maxsixe = 0 recycle:exclude = ~$* #recycle:exclude_dir = /tmp [C$] comment = Admin Share path = /home/samba browseable = yes guest ok = yes read only = no admin users = @"DOMAIN+domain admins",@"DOMAIN+wsadmin" [printers] comment = All Printers path = /var/spool/samba browseable = yes guest ok = yes writable = no printable = yes [print$] comment = Printer Drivers path = /home/samba/drivers browseable = yes guest ok = no read only = no */etc/krb5.conf** [libdefaults] ticket_lifetime = 24h forwardable = yes default_realm = DOMAIN.COM default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc [realms] DOMAIN.COM = { kdc = DOMAIN.COM default_domain = DOMAIN } [domain_realm] .domain.com = DOMAIN.COM domain.com = DOMAIN.COM [kdc] profile = /etc/krb5kdc/kdc.conf [logging] kdc = FILE:/var/log/krb5kdc.log admin_server = FILE:/var/log/kadmin.log default = FILE:/var/log/krb5lib.logog -- View this message in context: http://www.nabble.com/slow-samba-tp17992390p18016995.
Re: [Samba] slow samba
Thanks but no help John Drescher-2 wrote: > > On Thu, Jun 19, 2008 at 10:08 AM, iLinux <[EMAIL PROTECTED]> wrote: >> >> I have a samba version 3.024 server >> > That is an old version (3.0.30 is current) but it probably is not the > problem. > >> >> vary slow file transfer when copying file from one computer but copy from >> two or more at the same time speed is 10 times faster. You will be >> copying a >> 600MG file with one computer and it will say 80 minutes remaining. start >> copying a file from a nother computer and 10X faster ( 4 minutes >> remaining >> ). Also when copying file from server with linux client 2 minutes 6.5 to >> 7.0 >> MBPS. It looks like it has something to do with cash. i have "winbind >> cache >> time = 30" in my smb.config and "socket options = TCP_NODELAY >> SO_RCVBUF=16384 SO_SNDBUF=16384" no help. Thanks in advance for your >> help. >> -- > > Remove all socket options on 2.6 kernels these are not needed anymore > and actually can slow things down. > > John > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba > -- View this message in context: http://www.nabble.com/slow-samba-tp17992390p18015111.html Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] slow samba
On Thu, Jun 19, 2008 at 10:08 AM, iLinux <[EMAIL PROTECTED]> wrote: > > I have a samba version 3.024 server > That is an old version (3.0.30 is current) but it probably is not the problem. > > vary slow file transfer when copying file from one computer but copy from > two or more at the same time speed is 10 times faster. You will be copying a > 600MG file with one computer and it will say 80 minutes remaining. start > copying a file from a nother computer and 10X faster ( 4 minutes remaining > ). Also when copying file from server with linux client 2 minutes 6.5 to 7.0 > MBPS. It looks like it has something to do with cash. i have "winbind cache > time = 30" in my smb.config and "socket options = TCP_NODELAY > SO_RCVBUF=16384 SO_SNDBUF=16384" no help. Thanks in advance for your help. > -- Remove all socket options on 2.6 kernels these are not needed anymore and actually can slow things down. John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] slow samba
I have a samba version 3.024 server joined to a ADS as a "Workstation or server" acting as a file/print server. It is a Debian 4.0 amd64 up to date with stable. ftp works just fine so not network, must be samba config. vary slow file transfer when copying file from one computer but copy from two or more at the same time speed is 10 times faster. You will be copying a 600MG file with one computer and it will say 80 minutes remaining. start copying a file from a nother computer and 10X faster ( 4 minutes remaining ). Also when copying file from server with linux client 2 minutes 6.5 to 7.0 MBPS. It looks like it has something to do with cash. i have "winbind cache time = 30" in my smb.config and "socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384" no help. Thanks in advance for your help. -- View this message in context: http://www.nabble.com/slow-samba-tp17992390p17992390.html Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Slow Samba
I am running a Snap 4200 fileserver, which is a network appliance that uses Samba to share files on a windows network. I've been experiencing slow performance on the Snap. The issue started suddenly 5 to 6 weeks ago, so I don't think it's a performance-related problem. I SSHed into the unit and noticed some odd errors in the samba event logs. They look something like this: [2007/04/10 17:29:38, 0] smbd/posix_acls.c:has_pai_get_perm(474) has_pai_get_perm: unknown tag type in ACL [2007/04/10 18:36:15, 0] smbd/service.c:make_connection(844) 192.168.5.103 (192.168.5.103) couldn't find service furnitur [2007/04/11 03:04:05, 0] lib/util_sock.c:read_socket_data(342) read_socket_data: recv failure for 4. Error = Connection reset by peer [2007/04/11 07:28:13, 0] smbd/service.c:set_current_service(56) chdir (/shares/Meralta) failed [2007/04/11 07:28:13, 0] smbd/service.c:set_current_service(56) chdir (/shares/Meralta) failed [2007/04/11 07:28:13, 0] smbd/service.c:set_current_service(56) chdir (/shares/Meralta) failed [2007/04/11 07:28:23, 0] smbd/service.c:set_current_service(56) chdir (/shares/TEMPLATE) failed [2007/04/11 07:28:23, 0] smbd/service.c:set_current_service(56) chdir (/shares/TEMPLATE) failed [2007/04/11 07:28:23, 0] smbd/service.c:set_current_service(56) chdir (/shares/TEMPLATE) failed [2007/04/11 07:55:16, 0] smbd/service.c:set_current_service(56) chdir (/shares/Drawings) failed [2007/04/11 07:55:16, 0] smbd/service.c:set_current_service(56) chdir (/shares/Drawings) failed [2007/04/11 08:27:11, 0] lib/module.c:smb_load_module(40) "log.smbd" [readonly] 3228L, 166021C Odd errors about enumerating shares... So I did a directory listing of the shares, and lo and behold, some odd permissions showed themselves: drwxrwxrwx8 DOMAIN\ DOMAIN\ 103 Oct 1 2005 Archive drwxrwx--- 17 DOMAIN\ DOMAIN\ 4096 Apr 5 11:40 Cad drwxrwx--- 89 adminadmingrp 4096 Apr 17 15:25 Design drwxrwxrwx6 DOMAIN\ DOMAIN\ 112 Oct 2 2005 DesignData drwxrwxrwx 13 DOMAIN\ DOMAIN\ 4096 Feb 12 11:30 Finance drwxrwxrwx2 adminadmingrp6 Oct 2 2005 Financeapps drwxrwxrwx 29 adminadmingrp 4096 Apr 18 09:04 Furniture drwxrwx--- 1629 DOMAIN\ DOMAIN\81920 Apr 19 15:53 In_Progress drwxrwx--- 34 DOMAIN\ DOMAIN\ 4096 Apr 10 17:21 Marketing drwxrwx--- 15 adminadmingrp 4096 Apr 19 10:43 Meralta drwxrwxrwx2 DOMAIN\ DOMAIN\ 78 Mar 31 18:27 NAN_bu_Month-End drwxrwxrwx2 DOMAIN\ DOMAIN\ 43 Jun 3 2006 OllieBU_MonthEnd drwxrwx--- 223 adminadmingrp16384 Apr 17 14:15 Purge-atory drwxrwx---2 DOMAIN\ admingrp 135 Apr 14 20:10 RESTORED -rwxrwx---1 DOMAIN\ DOMAIN\ 89 Apr 6 21:05 SPOT_top_log.txt -rwxrwxrwx1 DOMAIN\ DOMAIN\ 548 Nov 6 2005 Shortcut to NetVault7_Administrators_Guide.pdf.lnk drwxrwx--- 84 adminadmingrp 4096 Apr 16 13:16 Transfer drwxrwxrwx 35 DOMAIN\ DOMAIN\ 4096 Feb 2 15:28 cab The errors in the samba event logs correlate only to the directories that have permissions of "admin" and "admingrp." Before I wipe the problem out by brute force with chmod and chgrp, has anybody ever seen errors like this before, and how did the permissions get changed from DOMAIN|? Would they cause slow response time? I've also noticed odd permissions scattered down through the directories at various locations, and in some cases the owner of a file is set to a 5-digit number like "20160", etc. Any ideas? Josh -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Slow samba transfer
What environment are you doing this in? In other words, is this over a wireless connection to a remote site? Perhaps something else? As a general rule of thumb, SMB is a MUCH less efficient protocol than others such as FTP. In a near perfect world (i.e. a controlled real world setting), I've found SMB to be between 35% and 45% as fast as FTP. This was independent of operating system. If you are doing SMB over a wireless link, it can be even worse if you have a problematic wireless connection that requires lots of retransmits. I'm betting you are doing this over wireless and you've got some serious interference or other issues going on. Am I even close? Roberto su tiscali wrote: Thats the diagnosis: transfering the same file via smb, scp and ftp I got big speed differences. SMB: file : 1Gb, transfer rate 15-35 kb/s SCP: file : 1Gb, transfer rate 360-780 kb/s FTP: file : 1Gb, transfer rate 360-780 kb/s Why is via smb so slow? Attachment is my own smb:conf, the same that's on air. [global] workgroup = NO1KNOWS netbios name = PBT server string = Samba %v, File server ; wins support = no ; wins server = w.x.y.z dns proxy = no os level = 64 ; name resolve order = lmhosts host wins bcast log file = /var/log/samba/log.%m max log size = 50 ; syslog only = no syslog = 0 panic action = /usr/share/samba/panic-action %d ### Authentication ### security = user encrypt passwords = yes passdb backend = tdbsam guest obey pam restrictions = yes ; guest account = nobody invalid users = root unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . ; pam password change = no socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SORCVBUF=8192 local master = yes domain master =yes #Other stuff ;-)) domain logons = yes hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0 192.168.2.0/255.255.255.0 192.168.3.0/255.255.255.0 logon home = \\%L\%U\.profile logon path = \\%L\profile\%U logon drive = H: logon script = netlogon.bat [homes] comment = Home Directories browseable = no writable = yes create mask = 0700 directory mask = 0700 [profile] path = /home/samba/profile writable = yes browsable = no create mask = 600 directory mask = 700 # Un-comment the following and create the netlogon directory for Domain Logons # (you need to configure Samba to act as a domain controller too.) [netlogon] comment = Network Logon Service path = /home/samba/netlogon read only = yes write list = @admin guest ok = no writable = no share modes = no browsable = no [Tutto] path = /mnt/ writable = yes directory mask = 0754 browseable = yes # read only = yes guest ok = yes [Condivisa] path = /shared/ writable = yes directory mask = 0774 browseable = yes # read only = yes guest ok = yes Help a honest worker! thanx to all-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Slow samba transfer
Thats the diagnosis: transfering the same file via smb, scp and ftp I got big speed differences. SMB: file : 1Gb, transfer rate 15-35 kb/s SCP: file : 1Gb, transfer rate 360-780 kb/s FTP: file : 1Gb, transfer rate 360-780 kb/s Why is via smb so slow? Attachment is my own smb:conf, the same that's on air. [global] workgroup = NO1KNOWS netbios name = PBT server string = Samba %v, File server ; wins support = no ; wins server = w.x.y.z dns proxy = no os level = 64 ; name resolve order = lmhosts host wins bcast log file = /var/log/samba/log.%m max log size = 50 ; syslog only = no syslog = 0 panic action = /usr/share/samba/panic-action %d ### Authentication ### security = user encrypt passwords = yes passdb backend = tdbsam guest obey pam restrictions = yes ; guest account = nobody invalid users = root unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . ; pam password change = no socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SORCVBUF=8192 local master = yes domain master =yes #Other stuff ;-)) domain logons = yes hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0 192.168.2.0/255.255.255.0 192.168.3.0/255.255.255.0 logon home = \\%L\%U\.profile logon path = \\%L\profile\%U logon drive = H: logon script = netlogon.bat [homes] comment = Home Directories browseable = no writable = yes create mask = 0700 directory mask = 0700 [profile] path = /home/samba/profile writable = yes browsable = no create mask = 600 directory mask = 700 # Un-comment the following and create the netlogon directory for Domain Logons # (you need to configure Samba to act as a domain controller too.) [netlogon] comment = Network Logon Service path = /home/samba/netlogon read only = yes write list = @admin guest ok = no writable = no share modes = no browsable = no [Tutto] path = /mnt/ writable = yes directory mask = 0754 browseable = yes # read only = yes guest ok = yes [Condivisa] path = /shared/ writable = yes directory mask = 0774 browseable = yes # read only = yes guest ok = yes Help a honest worker! thanx to all-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Slow Samba performance with single transfers (good speed with mulitple transfers)
System: Gentoo Linux, fully updated (8/19/2006), Kernel 2.6.17.9 stock kernel, samba-3.0.22-r3 (have also tried samba-3.0.23b), 1Gb Ethernet. (thoughout). Problem: Very poor performance when copying files to or from the client, (ie 2000kb or lower on writes, 5000kb or lower on reads). Detailed Problem: If I use SCP from the same source to the same target (including drives), the speed of the transfer is over 1kb), now if I try a samba transfer at the same time as the SCP then the total speed is 42000kb or 11000kb for scp and 31000kb from samba), same thing if I try copying from the samba server and copying to the samba server at the same time then the speed is 24000kb up and 18000kb down, if I stop one or the other the speed drops to 2000kb or so. Now I'm at a complete loss as to what is causing this speed issue and I've tried diffrent kernels and versions of samba as well as modifying the smb.conf file, but nothing seems to change the result. I thought it might be the harddrive, but that would not explain the lone SCP issue I'm encountering. Looking for a solution, which does not include switching to windows or reinstalling the OS. Samba Config File: workgroup = 51west netbios name = 2.0TB RAID5 server string = FileServer encrypt passwords = yes hosts allow = 192.168.0. 127. domain master = no local master = no preferred master = no os level = 0 security = share [Private] path=/raid5/private comment = Private Folders browseable = yes readonly = no valid users = egandt Thanks, ERIC GANDT -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Slow Samba when added new hard drive
Hi, I've used Samba several years without any problems. Last week I added a new disk to my system, and Samba started to behave very strange. It's slow in terms of establish a connection and time to list directories. I've tried to resolve the problem without success. No other daemon has problems, both ftp and http works fine as well as internal communication. Below I've attached both samba log file and a tcpdump. The log file indicates some kind of timeout and the tcpdump shows ERROR: Unknown error (22,49152) in the reply message. I get the same problem with 3.0.8pre1-0.pre1.3 and 3.0.21a. I use Windows XP Professional and Xbox as clients to Samba. The system is running Fedora Core release 3 (2.6.9-1.667) with 9 hard drives (8 pata and 1 sata). I haven't changed anything, neither on the server or the clients more than added the new hard drive. Samba seems to be ok when I disconnect the new hard drive. Thanks, Fredrik >From the logfile (smbd -D -d 5): [2006/01/31 21:08:05, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(63) Got NTLMSSP neg_flags=0x60080215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_NTLM2 NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH [2006/01/31 21:08:05, 5] auth/auth.c:get_ntlm_challenge(95) auth_get_challenge: module guest did not want to specify a challenge [2006/01/31 21:08:05, 5] auth/auth.c:get_ntlm_challenge(95) auth_get_challenge: module sam did not want to specify a challenge [2006/01/31 21:08:05, 5] auth/auth.c:get_ntlm_challenge(135) auth_context challenge created by random [2006/01/31 21:08:05, 5] auth/auth.c:get_ntlm_challenge(136) challenge is: [2006/01/31 21:08:05, 5] lib/util.c:dump_data(2058) [000] B6 A0 82 E7 4E 2C 8F 0C N,.. [2006/01/31 21:08:25, 5] lib/util.c:show_msg(454) [2006/01/31 21:08:25, 5] lib/util.c:show_msg(464) size=230 smb_com=0x73 smb_rcls=22 smb_reh=0 smb_err=49152 smb_flg=136 smb_flg2=51201 smb_tid=0 smb_pid=1 smb_uid=100 smb_mid=3 smt_wct=4 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]=0 (0x0) smb_vwv[ 2]=0 (0x0) smb_vwv[ 3]= 132 (0x84) smb_bcc=187 [2006/01/31 21:08:25, 3] smbd/process.c:timeout_processing(1447) timeout_processing: End of file from client (client has disconnected). And from tcpdump: 21:12:14.973928 IP (tos 0x0, ttl 64, id 9491, offset 0, flags [none], proto 6, length: 204) xbox.1057 > sharky.netbios-ssn: P 256:420(164) ack 94 win 64419 >>> NBT Packet NBT Session Packet Flags=0x0 Length=160 (0xa0) SMB PACKET: SMBsesssetupX (REQUEST) SMB Command = 0x73 Error class = 0x0 Error code= 0 (0x0) Flags1= 0x8 Flags2= 0x1 Tree ID = 0 (0x0) Proc ID = 1 (0x1) UID = 0 (0x0) MID = 3 (0x3) Word Count= 12 (0xc) Com2=0xFF Res1=0x0 Off2=0 (0x0) MaxBuffer= WARNING: Short packet. Try increasing the snap length [|SMB] 21:12:14.991657 IP (tos 0x0, ttl 64, id 39111, offset 0, flags [DF], proto 6, length: 40) sharky.netbios-ssn > xbox.1056: . [tcp sum ok] 1:1(0) ack 1 win 6432 21:12:15.013681 IP (tos 0x0, ttl 64, id 31537, offset 0, flags [DF], proto 6, length: 40) sharky.netbios-ssn > xbox.1057: . [tcp sum ok] 94:94(0) ack 420 win 6432 21:12:15.252060 IP (tos 0x0, ttl 64, id 39113, offset 0, flags [DF], proto 6, length: 274) sharky.netbios-ssn > xbox.1056: P 1:235(234) ack 1 win 6432 >>> NBT Packet NBT Session Packet Flags=0x0 Length=230 (0xe6) SMB PACKET: SMBsesssetupX (REPLY) SMB Command = 0x73 Error class = 0x16 Error code= 49152 (0xc000) Flags1= 0x88 Flags2= 0x1 Tree ID = 0 (0x0) Proc ID = 1 (0x1) UID = 100 (0x64) MID = 3 (0x3) Word Count= 4 (0x4) SMBError = ERROR: Unknown error (22,49152) [000] FF 00 00 00 00 00 00 09 \377\000\000\000\000\000\000\011 [|SMB] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] slow samba write performance
Hi, I have a problem, problem is slow samba write performance.I tested samba copy and ftp copy, result and machine spec; Samba PC P4 3 ghz / 2 gb Ram 1 x 80 gb HDD(for system) 4 x 250gb sata hdd (software raid /dev/md0)^ 3com gigabit ethernet Windows Pc AMD 2500+ / 5123mn ram 1 x 80 gb hdd (c:\) 1 x 160 gb hdd (d:\) gigabit ethernet test results; windows hdd to hdd copy SourceFile SizeTarget Time c:\713+715MB d:\110sn12.989 kb/sec d:\713+715MB c:\ 59sn 24218 kb/sec Samba Copy c:\713+715MB /dev/md0183sn7808 kb/sec d:\713+715MB /dev/md0183sn7808 kb/sec >samba write slow than ftp write /dev/md0 713+715MB c:\ 60sn23814 kb/sec /dev/md0 713+715MB d:\ 86sn16614 kb/sec c:\713+715MB /home144sn9285 kb/sec FTP copy c:\713+715MB /dev/md0 92sn15531 kb/sec d:\713+715MB /dev/md0 80sn17861 kb/sec->ftp copy > samba copy %128 /dev/md0 713+715MB c:\ 75sn19051 kb/sec /dev/md0 713+715MB d:\ 86sn15876 kb/sec hdparm /dev/md0 results; Timing cached reads 3980mb in 2.00 sec=1989.88 mb/sec Timed buffered disk reads: 232mb in 3.00 sec=77.33 mb/sec samba settings socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 IPTOS_LOWDELAY Why slow samba than ftp? Thanks -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] slow samba performance
Hello, We upgraded from Samba 2.2.8 to 3.0 and now Samba performance is really slow !! It takes awefully long to load the profiles than it did before. Even browsing the shares has lag. Please give me some tips on how I should increase this performance. I have attached the smb.conf file. All the parameters are the same. And we are using a much faster system too. [global] workgroup = Bank netbios name = fileserver ; server string = primary domain server running samba%v server string = fileserver security = user read raw = no min password length = 6 obey pam restrictions = Yes admin users = gurnish @employee pam password change = Yes ; username map = /etc/passwd smb passwd file = /etc/samba/smbpasswd passwd program = /usr/bin/passwd %u encrypt passwords = Yes passwd chat = *New*Unix*Password* %n\n *Retype*new*Unix*password*%n\n *passwd: all authentication tokens updated successfully* %n passwd chat debug = Yes username level = 10 unix password sync = no log level = 2 case sensitive = no log file = /var/log/samba/log.%m max log size = 50 time server = Yes unix extensions = Yes socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_SNDBUF=8576 SO_RCVBUF=8576 admin users = @employee, administrator, @administrators add user script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M %u logon script = netlogon.bat logon path = \\%L\profile\%u.pds logon home = domain logons = Yes os level = 64 preferred master = Yes domain master = yes wins support = true name resolve order = wins lmhosts hosts bcast hosts allow = 127.0.0.1 172.16.1.0/255.255.255.0 192.168.2.0/255.255.255.0 ; hosts allow = 127.0.0.1 192.168.2.0/255.255.255.0 ; password server = None hosts deny = 0.0.0.0/0 @web 192.168.2.200 veto files = /*.mp3/*.divx/*.eml/ [profile] path = /home/samba/profile force user = %U writeable = yes create mask = 0600 directory mask = 0700 guest ok = Yes profile acls = Yes browseable = No csc policy = disable -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Slow Samba - Winbind - NT PDC - low bandwidth - Why slow lookups?
No comments on this one...? Did earlier versions of winbind go out to the PDC for information for each and every file that is listed in an explorer window? The is also a like delay in listing directory contents on the linux box (ie ls- al) == Hi all.. I apologies for the length. Run a very old Samba version (2.2.5 - Yes security problems) and winbind on two boxes. One on the same (local) LAN as the NT4 PDC, the other (remote) on the end of an often congested link (512K) This is part of a fairly large WAN - maybe 12 domains and the head "IT group" partway through implementing AD. They are also responsible for providing WINS for both the local LAN and the remote one. The remote-ish Samba box uses the same PDC as the Samba box on the local LAN. There is no BDC. So here is the problem. I am more concerned about understanding rather than fixing this. We will no doubt go to a later Linux version that includes samba with AD support in the next few months. The remote Samba box shares that LAN with a W2K server box. The users at that end see a large disparity in resource wait time (eg UNC share folder openings and printer access) compared to that of those on the local LAN between their Samba and W2K server. For example opening a printer select dialogue on the local LAN (has two Samba printers on it) might take a noticable half second delay but those at the remote end might wait 5 seconds. Note that these are resources on their local LAN, not a connection over the congested link. Note that a mapped resource (eg drive letter) is initially slower from the Samba server but seems to stay cached for a long period. It is more of a problem for UNC shares. There is little difference in server hardware and there are no ethernet issues. Enumeration is off I am thinking that the problem is in the propogation delay of PDC or WINS data from the remote site to either the local PDC or the corporate run WINS system. I made (possibly) small inroads by turning off trusted domains in smb.conf and setting an environment variable (that escapes me at the moment) that restricts winbind to looking for only the domain I want information from. Creating lmhosts entries in the Samba box for the PDC and all other servers in the domain made no perceptible difference nor did creating lmhosts in a remote W2K test workstation for the Samba server. I am guessing that it isnt a WINS issue but a PDC/authentication one. I have to assume that there is some caching of user information on the remote W2K server that doesnt exist on the Samba box. Would anyone care to comment on that? Does the Samba box talk to the PDC a lot or is there anything/a setting that might make it talk "too much"? If it is worth posting my smb.conf pls say so. Cheers Bob -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Slow Samba - Winbind - NT PDC - low bandwidth - Understanding the reason
Hi all.. I apologies for the length. Run a very old Samba version (2.2.5 - Yes security problems) and winbind on two boxes. One on the same (local) LAN as the NT4 PDC, the other (remote) on the end of an often congested link (512K) This is part of a fairly large WAN - maybe 12 domains and the head "IT group" partway through implementing AD. They are also responsible for providing WINS for both the local LAN and the remote one. The remote-ish Samba box uses the same PDC as the Samba box on the local LAN. There is no BDC. So here is the problem. I am more concerned about understanding rather than fixing this. We will no doubt go to a later Linux version that includes samba with AD support in the next few months. The remote Samba box shares that LAN with a W2K server box. The users at that end see a large disparity in resource wait time (eg UNC share folder openings and printer access) compared to that of those on the local LAN between their Samba and W2K server. For example opening a printer select dialogue on the local LAN (has two Samba printers on it) might take a noticable half second delay but those at the remote end might wait 5 seconds. Note that these are resources on their local LAN, not a connection over the congested link. Note that a mapped resource (eg drive letter) is initially slower from the Samba server but seems to stay cached for a long period. It is more of a problem for UNC shares. There is little difference in server hardware and there are no ethernet issues. Enumeration is off I am thinking that the problem is in the propogation delay of PDC or WINS data from the remote site to either the local PDC or the corporate run WINS system. I made (possibly) small inroads by turning off trusted domains in smb.conf and setting an environment variable (that escapes me at the moment) that restricts winbind to looking for only the domain I want information from. Creating lmhosts entries in the Samba box for the PDC and all other servers in the domain made no perceptible difference nor did creating lmhosts in a remote W2K test workstation for the Samba server. I am guessing that it isnt a WINS issue but a PDC/authentication one. I have to assume that there is some caching of user information on the remote W2K server that doesnt exist on the Samba box. Would anyone care to comment on that? Does the Samba box talk to the PDC a lot or is there anything/a setting that might make it talk "too much"? If it is worth posting my smb.conf pls say so. Cheers Bob -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Slow Samba share--why?
I trying to figure out why copying from a Samba drive to Windows XP is slower than an FTP transfer beween the same two machines. To copy the 110 MB file from Samba takes 400 seconds, and to transfer the same file by FTP takes 41 seconds. From using ethereal, and comparing a fast smb copy to a slow smb copy, I can see that the slow copy has a _lot_ more tcp traffic for a SMB single read request. I'm guessing this is the reason for the slow transfer speed. I'm hoping someone here can verify this (and hopefully tell me how to fix it!). My environment is: Sarge: Debian Sarge Samba 3.0.5-1 (smb.conf attached) vsftpd 2.0.1-1 Sarge has the Samba share and the FTP server. XP (virtual machine in Sarge): VMware 4.5.2 build-8848 (bridged network connection) Windows XP Home, Service Pack 1 Woody Debian Woody Samba 2.2.3a-12.3 (for smbmount) When I copy a file from the Sarge Samba share to XP, it takes ten times as long as FTP'ing the same file in the same direction. When I mount Sarge's share from Woody using smbmount, the cp command speed is a bit slower than the ftp speed (135 seconds instead of 111). This seems normal. I ran ethereal on Sarge and captured logs for both the slow and the fast copy. The fast copy (Woody) repeats this pattern over and over again: 959 SMB Read Request (115 bytes) 960 SMB Read Response (1514 bytes) 961 TCP [Continuation to #961] netbios-ssn > 1043 ACK (1514 bytes) 962 TCP [Continuation to #962] netbios-ssn > 1043 PSA, ACK (1318 bytes) 963 TCP 1043 > netbios-ssn ACK (963 bytes) The slow copy (from XP) has two similar SMB packets ("Read AndX Request" instead of "Read Request"), but from there on the sequence differs, with many more TCP continuation packets and one SMB [TCP Retransmission]. I have attached a section of the ethereal log for the slow copy. It includes all packets between one "Read AndX Request" and the next. I have saved a copy of the complete ethereal logs for both the slow and the fast copy and can send them if they would be of any help. I have also attached the log files generated by Samba at log level 3 for both a fast and slow copy. (A different run that the ran that generated the ethereal logs.) I removed the time stamps and diff'd them, but didn't make out much. Thanks for any pointers! Regards, Mark P.S. I am not subscribed to this list, so please CC me on any replies. # # Sample configuration file for the Samba suite for Debian GNU/Linux. # # # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options most of which # are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentary and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command # "testparm" to check that you have not many any basic syntactic # errors. # #=== Global Settings === [global] ## Browsing/Identification ### # Change this to the workgroup/NT-domain name your Samba server will part of workgroup = hubcap # server string is the equivalent of the NT Description field server string = %h server (Samba %v) # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable its WINS Server ; wins support = no # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ; wins server = w.x.y.z # This will prevent nmbd to search for NetBIOS names through DNS. dns proxy = no # What naming service and in what order should we use to resolve host names # to IP addresses ; name resolve order = lmhosts host wins bcast Debugging/Accounting # This tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/log.%m # Put a capping on the size of the log files (in Kb). max log size = 1000 # If you want Samba to only log through syslog then set the following # parameter to 'yes'. ; syslog only = no # We want Samba to log a minimum amount of information to syslog. Everything # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log # through syslog you should set the following parameter to something higher. syslog = 0 # Do something sensible when Samba crashes: mail the admin a backtrace panic action = /usr/share/samba/panic-action %d ### Authentication ### # "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc # package for details. ; security = user # You may wish to use password encryption. See the section on # 'encrypt passwords' in the sm
Re: [Samba] Slow samba performance when writing many files into single directory
Hi, winxp has a service running called windows xp Webclient disable it for a better performance browsing networks, also windows will try to use show you the right icons for every file type this may slow down performance toowith many files, this can be adjusted by settings explorer...hope this helps Regards Jan Brychta schrieb: Hello, I met with this problem - we use a groupware app on Win PCs that stores its data on samba share. The app uses many directories with large amount of small files (emails) in each. App performance is teribly slow - compared with data stored on netware share that we were using succesfully for many years. The app is unsuable now. I tried to simulate with these results: 1. ftp access read/write of anything is ok 2. samba reading and writing of big files (250MB) is ok 3. samba reading of 3000 small files (total 100MB) in one directory is ok 4. samba writing of 3000 small files (total 100MB) into one directory is POOR 5. samba writing of the same 3000 files splitted into 15 directories is better but stil slow. I think it is related to case (in)sensitivity. I have no chance to change app behaviour so I need to tune samba settings. It is SLES 8, kernel k_smp 2.4.21-241, samba 2.2.8a It is independent on filesystem - tried with very similar results on ext3, reiser, xfs. Thanks. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Slow samba performance when writing many files into single directory
Hello, I met with this problem - we use a groupware app on Win PCs that stores its data on samba share. The app uses many directories with large amount of small files (emails) in each. App performance is teribly slow - compared with data stored on netware share that we were using succesfully for many years. The app is unsuable now. I tried to simulate with these results: 1. ftp access read/write of anything is ok 2. samba reading and writing of big files (250MB) is ok 3. samba reading of 3000 small files (total 100MB) in one directory is ok 4. samba writing of 3000 small files (total 100MB) into one directory is POOR 5. samba writing of the same 3000 files splitted into 15 directories is better but stil slow. I think it is related to case (in)sensitivity. I have no chance to change app behaviour so I need to tune samba settings. It is SLES 8, kernel k_smp 2.4.21-241, samba 2.2.8a It is independent on filesystem - tried with very similar results on ext3, reiser, xfs. Thanks. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] slow samba performance vs. w2k
Hi samba folk, Firstly, thank you for an excellent project! We are attempting to use Samba on a NAS unit running GNU/Linux which will be a data store for a couple hundred BE AudioVault Vault2 clients (http://www.audiovault.com/vault2/v2_idx.html). However, we have been experiencing much worse performance using Samba vs. Win 2k server. This is immediately apparant when using the BE NFServer software, which syncs two SMB shares with each other; Win 2k server performs at 60 megabytes/minute while Samba is only performing around 15 megabytes/minute. I have posted some packet captures using tcpdump comparing a successful vs. a problem transfer here: http://techweb.rfa.org/staff/grauf/NAS_smb_debug/ Details of our software and hardware are documented here: http://techweb.rfa.org/staff/grauf/NAS_smb_debug/readme.txt How can I further diagnose and correct this problem? thank you, donfede -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Slow samba access from Mac OS X 10.2.6
Just to let you know I've solved the slow mac client problem thanks to Ben Low. The issue was with this line: socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096 Removing SO_SNDBUF and SO_RCVBUF fixes the issue. I think this was in the default configuration - or the default for swat. Perhaps it shouldn't be? Hope this helps anyone else with complaining mac users. James -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Slow samba access from Mac OS X 10.2.6
Hi, I'm running samba 2.2.3a-12.3 on Debian Linux (i686). The network is 100Mbit switched and I can ftp data off the server at 9Mb/sec. If I use either the Finder GUI under Mac OS X or mount manually via Terminal, and then try to copy a file I get less than 64k/sec! I don't ever remember having much better speeds than this while using the various versions of Mac OS X. Windows users can access the server with no problems. A 600Meg file will take several days for mac users - all mac users seem to have this problem with my server (5 of them) - but 5 mins. for a windows user. Interestingly copying files from windows machines works as expected - I can copy a 600Mb file to my mac in 5 mins. from a WinXp machine (via smb). I suspect there's probably something wrong with my samba config, but not sure what. I've played with settings - to little effect - and searched the net without finding anything of use. If anyone at all has seen this and/or knows what the problem/solution is, I'd be most grateful. Many thanks, James (My samba config if it's of any use) [global] workgroup = WINCHESTER netbios name = CRAY server string = %h server (Samba %v) interfaces = eth0 127.0.0.1 bind interfaces only = Yes security = SERVER encrypt passwords = Yes password server = 172.16.0.10 passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spas sword:* %n\n . username map = /etc/samba/smbusers log level = 2 syslog = 0 max log size = 0 debug pid = Yes large readwrite = Yes min protocol = COREPLUS deadtime = 5 socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=409 6 load printers = No dns proxy = No wins server = 172.16.0.11 invalid users = root hosts deny = 172.16.16.16 hide unreadable = Yes [homes] comment = Home Directories read only = No create mask = 0700 directory mask = 0700 browseable = No [public] comment = Public Read Access path = /home/public invalid users = guest ok = Yes -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba