Re: RES: RES: Very Slow Samba
At 09:37 AM 8/15/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote: Hi Derek, I didn't have any Intel boards here for spare, but i Found a HP PCI-Express 1x Giga Ethernet here. It's a broadcom chipset, I did replace the card but still with the same problem. I also did a very deep research in google and found more people with the same problem and everyone of them without a solution. I guess that it's a issue between Samba and FreeBSD. I do say that 'cuz on Linux+Samba (Debian Kernel+Samba.deb) this issue does not appear. Anyway, If you have another idea. BTW, this box was the same box that used to run Windows 2003 with SQL Server. Thank you for the support. Best Regards, Mauro Ribeiro Mauro, I'd look at your samba configuration and DNS configuration. If you have samba running on another *NIX OS faster I'd compare the samba, authentication, and dns configurations. I'd still suggest you buy a new intel ethernet. These are not expensive and I know they work well under any load. For a test, you could also try FreeNAS instead of FreeBSD+Samba. It is essentially the same but all "packaged" for file sharing. -Derek -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Derek Ragona Enviada em: quinta-feira, 14 de agosto de 2008 17:39 Para: Mauro Ribeiro - Class Consultoria e Assessoria; freebsd-questions@freebsd.org Assunto: Re: RES: Very Slow Samba At 03:22 PM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote: >Hi Derek, > >I don't use authentication on this server, no internet connection. Only 1 >share and on this share everyone must have write permissions. > >re0: flags=8843 metric 0 mtu 1500 > >options=399bT,WOL_MCAST,WOL_MAGIC> > ether 00:e0:4c:10:c9:75 > inet 192.168.0.254 netmask 0xff00 broadcast 192.168.0.255 > media: Ethernet autoselect (1000baseTX ) > status: active > >It's a realtek gigabit pci card. 8169 chipset. First thing I'd do is replace the realtek. They are terrible especially under any load. Replace with a gigabit card from intel. Then see how it works. -Derek >-Mensagem original- >De: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Em nome de Derek Ragona >Enviada em: quinta-feira, 14 de agosto de 2008 14:17 >Para: Mauro Ribeiro - Class Consultoria e Assessoria; >freebsd-questions@freebsd.org >Assunto: Re: Very Slow Samba > >At 10:21 AM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote: > >Hi All, > > > > > > > >I had migrated a Windows 2003 Server to a Samba Server (only for file >share) > > > > > > > >We share only the company system. That's a 3mb Delphi .exe and a 1,5mb > >libmysql.dll. > > > > > > > >BTW, the system loads 4 .jpg files from the server. > > > > > > > >On our old Windows Server the system was very fast on Samba is damn slow. > >About 2 mins to load. > > > > > > > >I have no clue on what to do. > > > > > > > >Server Specs: Pentium 4 3.0Ghz 1GB RAM, FreeBSD 7.0-STABLE and Samba > >3.0.28a. > > > > > > > >Here's is my smb.conf > > > > > > > >[global] > > > >workgroup = CLASS > > > >server string = Class Data Server > > > >security = share > > > >hosts allow = 192.168.0. > > > >load printers = yes > > > >printing = cups > > > >log file = /var/log/samba/log.%m > > > >max log size = 150 > > > >socket options = TCP_NODELAY > > > >interfaces = 192.168.0.0/24 > > > >dns proxy = no > > > >veto oplock files = /*.exe/*.dll/*.jpg/*.pdf/*.gif/ > > > >oplock break wait time = 1 > > > >debug level = 10 > > > > > > > >[Class] > > > > Comment = Class > > > > Browseable = Yes > > > > Writeable = Yes > > > > Force User = root > > > > create mask = 0777 > > > > path = /dados/samba/Class > > > > Guest ok = Yes > > > > fake oplocks = yes > > > > > > > > > > > >Best Regards, > > > >Mauro Ribeiro > > > > > >What network card is in this server? > >What are you using for authentication? > > -Derek > >-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean. > >___
Re: RES: RES: Very Slow Samba
On Fri, Aug 15, 2008 at 11:07 AM, Michael Powell <[EMAIL PROTECTED]>wrote: > Mauro Ribeiro - Class Consultoria e Assessoria wrote: > > > Hi Derek, > > > > I didn't have any Intel boards here for spare, but i Found a HP > > PCI-Express 1x Giga Ethernet here. > > > > It's a broadcom chipset, I did replace the card but still with the same > > problem. I also did a very deep research in google and found more people > > with the same problem and everyone of them without a solution. > > > > I guess that it's a issue between Samba and FreeBSD. I do say that 'cuz > on > > Linux+Samba (Debian Kernel+Samba.deb) this issue does not appear. > > > > Anyway, If you have another idea. > > > [snip] > > Yes - don't use the Realtek. They are OK for low end things like home ADSL, > but when stressed will generally only give you about half the throughput of > a real NIC. > > Don't know if this will help, but I believe the default buffer sizes to be > way too small. This, for example purposes, from my smb.conf: > > max xmit = 65535 > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=65535 SO_RCVBUF=65535 > > This was also in conjunction with some tuning in /etc/sysctl.conf. If the > above changes the behavior, you might also look at some tuning numbers like > below and see if adjusting them helps. YMMV. > > kern.ipc.maxsockbuf=2097152 > kern.ipc.nmbclusters=32768 > kern.ipc.somaxconn=4096 > kern.ipc.shmmax=67108864 > kern.ipc.shmall=32768 > > These should only be used as "food for thought" examples. What values may > be > of benefit to you will most likely be specific to your situation. > > Also I have/use:use sendfile = Yes > > I have never had Samba perform exactly the same as Windows Server 2003, it > has always been just a tad slower. One thing to figure out though, is if it > is disk limited, network limited, or some combination of both. IF the disk > subsystem is just way too slow it won't matter what you fiddle with in > network land. You may find what you really need is a faster disk subsystem. > > -Mike > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > [EMAIL PROTECTED]" > I thing i would u is first disable the debug level, u are a developer??? syslog = 0 log level = 3 remove the debug option. See u. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: RES: RES: Very Slow Samba
Mauro Ribeiro - Class Consultoria e Assessoria wrote: > Hi Derek, > > I didn't have any Intel boards here for spare, but i Found a HP > PCI-Express 1x Giga Ethernet here. > > It's a broadcom chipset, I did replace the card but still with the same > problem. I also did a very deep research in google and found more people > with the same problem and everyone of them without a solution. > > I guess that it's a issue between Samba and FreeBSD. I do say that 'cuz on > Linux+Samba (Debian Kernel+Samba.deb) this issue does not appear. > > Anyway, If you have another idea. > [snip] Yes - don't use the Realtek. They are OK for low end things like home ADSL, but when stressed will generally only give you about half the throughput of a real NIC. Don't know if this will help, but I believe the default buffer sizes to be way too small. This, for example purposes, from my smb.conf: max xmit = 65535 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=65535 SO_RCVBUF=65535 This was also in conjunction with some tuning in /etc/sysctl.conf. If the above changes the behavior, you might also look at some tuning numbers like below and see if adjusting them helps. YMMV. kern.ipc.maxsockbuf=2097152 kern.ipc.nmbclusters=32768 kern.ipc.somaxconn=4096 kern.ipc.shmmax=67108864 kern.ipc.shmall=32768 These should only be used as "food for thought" examples. What values may be of benefit to you will most likely be specific to your situation. Also I have/use:use sendfile = Yes I have never had Samba perform exactly the same as Windows Server 2003, it has always been just a tad slower. One thing to figure out though, is if it is disk limited, network limited, or some combination of both. IF the disk subsystem is just way too slow it won't matter what you fiddle with in network land. You may find what you really need is a faster disk subsystem. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RES: RES: Very Slow Samba
Hi Derek, I didn't have any Intel boards here for spare, but i Found a HP PCI-Express 1x Giga Ethernet here. It's a broadcom chipset, I did replace the card but still with the same problem. I also did a very deep research in google and found more people with the same problem and everyone of them without a solution. I guess that it's a issue between Samba and FreeBSD. I do say that 'cuz on Linux+Samba (Debian Kernel+Samba.deb) this issue does not appear. Anyway, If you have another idea. BTW, this box was the same box that used to run Windows 2003 with SQL Server. Thank you for the support. Best Regards, Mauro Ribeiro -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Derek Ragona Enviada em: quinta-feira, 14 de agosto de 2008 17:39 Para: Mauro Ribeiro - Class Consultoria e Assessoria; freebsd-questions@freebsd.org Assunto: Re: RES: Very Slow Samba At 03:22 PM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote: >Hi Derek, > >I don't use authentication on this server, no internet connection. Only 1 >share and on this share everyone must have write permissions. > >re0: flags=8843 metric 0 mtu 1500 > >options=399bT,WOL_MCAST,WOL_MAGIC> > ether 00:e0:4c:10:c9:75 > inet 192.168.0.254 netmask 0xff00 broadcast 192.168.0.255 > media: Ethernet autoselect (1000baseTX ) > status: active > >It's a realtek gigabit pci card. 8169 chipset. First thing I'd do is replace the realtek. They are terrible especially under any load. Replace with a gigabit card from intel. Then see how it works. -Derek >-Mensagem original- >De: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Em nome de Derek Ragona >Enviada em: quinta-feira, 14 de agosto de 2008 14:17 >Para: Mauro Ribeiro - Class Consultoria e Assessoria; >freebsd-questions@freebsd.org >Assunto: Re: Very Slow Samba > >At 10:21 AM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote: > >Hi All, > > > > > > > >I had migrated a Windows 2003 Server to a Samba Server (only for file >share) > > > > > > > >We share only the company system. That's a 3mb Delphi .exe and a 1,5mb > >libmysql.dll. > > > > > > > >BTW, the system loads 4 .jpg files from the server. > > > > > > > >On our old Windows Server the system was very fast on Samba is damn slow. > >About 2 mins to load. > > > > > > > >I have no clue on what to do. > > > > > > > >Server Specs: Pentium 4 3.0Ghz 1GB RAM, FreeBSD 7.0-STABLE and Samba > >3.0.28a. > > > > > > > >Here's is my smb.conf > > > > > > > >[global] > > > >workgroup = CLASS > > > >server string = Class Data Server > > > >security = share > > > >hosts allow = 192.168.0. > > > >load printers = yes > > > >printing = cups > > > >log file = /var/log/samba/log.%m > > > >max log size = 150 > > > >socket options = TCP_NODELAY > > > >interfaces = 192.168.0.0/24 > > > >dns proxy = no > > > >veto oplock files = /*.exe/*.dll/*.jpg/*.pdf/*.gif/ > > > >oplock break wait time = 1 > > > >debug level = 10 > > > > > > > >[Class] > > > > Comment = Class > > > > Browseable = Yes > > > > Writeable = Yes > > > > Force User = root > > > > create mask = 0777 > > > > path = /dados/samba/Class > > > > Guest ok = Yes > > > > fake oplocks = yes > > > > > > > > > > > >Best Regards, > > > >Mauro Ribeiro > > > > > >What network card is in this server? > >What are you using for authentication? > > -Derek > >-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean. > >___ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "[EMAIL PROTECTED]" > >__ NOD32 3351 (20080813) Information __ > >This message was checked by NOD32 antivirus system. >http://www.eset.com > > >___ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "[EMAIL PROTECTED]" > >-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" __ NOD32 3351 (20080813) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: RES: Very Slow Samba
At 03:22 PM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote: Hi Derek, I don't use authentication on this server, no internet connection. Only 1 share and on this share everyone must have write permissions. re0: flags=8843 metric 0 mtu 1500 options=399b ether 00:e0:4c:10:c9:75 inet 192.168.0.254 netmask 0xff00 broadcast 192.168.0.255 media: Ethernet autoselect (1000baseTX ) status: active It's a realtek gigabit pci card. 8169 chipset. First thing I'd do is replace the realtek. They are terrible especially under any load. Replace with a gigabit card from intel. Then see how it works. -Derek -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Derek Ragona Enviada em: quinta-feira, 14 de agosto de 2008 14:17 Para: Mauro Ribeiro - Class Consultoria e Assessoria; freebsd-questions@freebsd.org Assunto: Re: Very Slow Samba At 10:21 AM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote: >Hi All, > > > >I had migrated a Windows 2003 Server to a Samba Server (only for file share) > > > >We share only the company system. That's a 3mb Delphi .exe and a 1,5mb >libmysql.dll. > > > >BTW, the system loads 4 .jpg files from the server. > > > >On our old Windows Server the system was very fast on Samba is damn slow. >About 2 mins to load. > > > >I have no clue on what to do. > > > >Server Specs: Pentium 4 3.0Ghz 1GB RAM, FreeBSD 7.0-STABLE and Samba >3.0.28a. > > > >Here's is my smb.conf > > > >[global] > >workgroup = CLASS > >server string = Class Data Server > >security = share > >hosts allow = 192.168.0. > >load printers = yes > >printing = cups > >log file = /var/log/samba/log.%m > >max log size = 150 > >socket options = TCP_NODELAY > >interfaces = 192.168.0.0/24 > >dns proxy = no > >veto oplock files = /*.exe/*.dll/*.jpg/*.pdf/*.gif/ > >oplock break wait time = 1 > >debug level = 10 > > > >[Class] > > Comment = Class > > Browseable = Yes > > Writeable = Yes > > Force User = root > > create mask = 0777 > > path = /dados/samba/Class > > Guest ok = Yes > > fake oplocks = yes > > > > > >Best Regards, > >Mauro Ribeiro > > What network card is in this server? What are you using for authentication? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" __ NOD32 3351 (20080813) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RES: Very Slow Samba
Hi Derek, I don't use authentication on this server, no internet connection. Only 1 share and on this share everyone must have write permissions. re0: flags=8843 metric 0 mtu 1500 options=399b ether 00:e0:4c:10:c9:75 inet 192.168.0.254 netmask 0xff00 broadcast 192.168.0.255 media: Ethernet autoselect (1000baseTX ) status: active It's a realtek gigabit pci card. 8169 chipset. -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Derek Ragona Enviada em: quinta-feira, 14 de agosto de 2008 14:17 Para: Mauro Ribeiro - Class Consultoria e Assessoria; freebsd-questions@freebsd.org Assunto: Re: Very Slow Samba At 10:21 AM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote: >Hi All, > > > >I had migrated a Windows 2003 Server to a Samba Server (only for file share) > > > >We share only the company system. That's a 3mb Delphi .exe and a 1,5mb >libmysql.dll. > > > >BTW, the system loads 4 .jpg files from the server. > > > >On our old Windows Server the system was very fast on Samba is damn slow. >About 2 mins to load. > > > >I have no clue on what to do. > > > >Server Specs: Pentium 4 3.0Ghz 1GB RAM, FreeBSD 7.0-STABLE and Samba >3.0.28a. > > > >Here's is my smb.conf > > > >[global] > >workgroup = CLASS > >server string = Class Data Server > >security = share > >hosts allow = 192.168.0. > >load printers = yes > >printing = cups > >log file = /var/log/samba/log.%m > >max log size = 150 > >socket options = TCP_NODELAY > >interfaces = 192.168.0.0/24 > >dns proxy = no > >veto oplock files = /*.exe/*.dll/*.jpg/*.pdf/*.gif/ > >oplock break wait time = 1 > >debug level = 10 > > > >[Class] > > Comment = Class > > Browseable = Yes > > Writeable = Yes > > Force User = root > > create mask = 0777 > > path = /dados/samba/Class > > Guest ok = Yes > > fake oplocks = yes > > > > > >Best Regards, > >Mauro Ribeiro > > What network card is in this server? What are you using for authentication? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" __ NOD32 3351 (20080813) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"