Hello Guys, I am having some problems with configuring SAMBA with regards to performance. We are running SAMBA 2.2.3a on Dual PIII 1Ghz machines with 512MB of RAM. The server is running on a default server installation of Red Hat 7.2. We have a 500Gb RAID 5 drive using the Promise SX6000 Raid controller. Currently we are only getting a throughput of ~5MB/S for writes and ~13MB/S for reads. Comparing that to NFS which yealds ~15MB/S for reads and ~13MB/S for writes. This clearly rules out the Hardware bottleneck since XFS is able to perform better on the same hardware. Here is the smb.conf I am using currently ===SMB.CONF==[global] workgroup = MYGROUP netbios name = {HOSTNAME} wins server = {WINSSERVER} server string = {HOSTNAME} security = SHARE encrypt passwords = Yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No oplocks = No level2 oplocks = No [homes] comment = Home Directories read only = No browseable = No [Data] comment = Data Backup Directory path = /home/gm/data guest account = valid users = spirian read only = No ===== I was wondering if there is any documentation for fine tuning SAMBA. Any help is appreciated. Thanks. Vinay Kudithipudi Associate Network Operations Engineer Spirian Technologies Inc.
how are u measuring read and write speeds? -----Original Message----- From: Vinay Kudithipudi [mailto:VKudithipudi@spirian.com] Sent: Wednesday, October 02, 2002 12:57 PM To: samba@lists.samba.org Subject: [Samba] Samba - Performance Issues Hello Guys, I am having some problems with configuring SAMBA with regards to performance. We are running SAMBA 2.2.3a on Dual PIII 1Ghz machines with 512MB of RAM. The server is running on a default server installation of Red Hat 7.2. We have a 500Gb RAID 5 drive using the Promise SX6000 Raid controller. Currently we are only getting a throughput of ~5MB/S for writes and ~13MB/S for reads. Comparing that to NFS which yealds ~15MB/S for reads and ~13MB/S for writes. This clearly rules out the Hardware bottleneck since XFS is able to perform better on the same hardware. Here is the smb.conf I am using currently ===SMB.CONF==[global] workgroup = MYGROUP netbios name = {HOSTNAME} wins server = {WINSSERVER} server string = {HOSTNAME} security = SHARE encrypt passwords = Yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No oplocks = No level2 oplocks = No [homes] comment = Home Directories read only = No browseable = No [Data] comment = Data Backup Directory path = /home/gm/data guest account = valid users = spirian read only = No ===== I was wondering if there is any documentation for fine tuning SAMBA. Any help is appreciated. Thanks. Vinay Kudithipudi Associate Network Operations Engineer Spirian Technologies Inc. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Javid, I am running a script which copies a 1Gb files to and from the shared driver. Am then dividing the time taken by the size of the file. I know it is very hacked up :), but it should at least give some approximations. Thanks. Vinay Kudithipudi Associate Network Operations Engineer Spirian Technologies Inc. -----Original Message----- From: Javid Abdul-AJAVID1 [mailto:AJAVID1@motorola.com] Sent: Wednesday, October 02, 2002 1:13 PM To: 'Vinay Kudithipudi'; samba@lists.samba.org Subject: RE: [Samba] Samba - Performance Issues how are u measuring read and write speeds? -----Original Message----- From: Vinay Kudithipudi [mailto:VKudithipudi@spirian.com] Sent: Wednesday, October 02, 2002 12:57 PM To: samba@lists.samba.org Subject: [Samba] Samba - Performance Issues Hello Guys, I am having some problems with configuring SAMBA with regards to performance. We are running SAMBA 2.2.3a on Dual PIII 1Ghz machines with 512MB of RAM. The server is running on a default server installation of Red Hat 7.2. We have a 500Gb RAID 5 drive using the Promise SX6000 Raid controller. Currently we are only getting a throughput of ~5MB/S for writes and ~13MB/S for reads. Comparing that to NFS which yealds ~15MB/S for reads and ~13MB/S for writes. This clearly rules out the Hardware bottleneck since XFS is able to perform better on the same hardware. Here is the smb.conf I am using currently ===SMB.CONF==[global] workgroup = MYGROUP netbios name = {HOSTNAME} wins server = {WINSSERVER} server string = {HOSTNAME} security = SHARE encrypt passwords = Yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No oplocks = No level2 oplocks = No [homes] comment = Home Directories read only = No browseable = No [Data] comment = Data Backup Directory path = /home/gm/data guest account = valid users = spirian read only = No ===== I was wondering if there is any documentation for fine tuning SAMBA. Any help is appreciated. Thanks. Vinay Kudithipudi Associate Network Operations Engineer Spirian Technologies Inc. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
so are you using xcopy or copy dos command in your script? -----Original Message----- From: Vinay Kudithipudi [mailto:VKudithipudi@spirian.com] Sent: Wednesday, October 02, 2002 1:21 PM To: 'Javid Abdul-AJAVID1'; samba@lists.samba.org Subject: RE: [Samba] Samba - Performance Issues Javid, I am running a script which copies a 1Gb files to and from the shared driver. Am then dividing the time taken by the size of the file. I know it is very hacked up :), but it should at least give some approximations. Thanks. Vinay Kudithipudi Associate Network Operations Engineer Spirian Technologies Inc. -----Original Message----- From: Javid Abdul-AJAVID1 [mailto:AJAVID1@motorola.com] Sent: Wednesday, October 02, 2002 1:13 PM To: 'Vinay Kudithipudi'; samba@lists.samba.org Subject: RE: [Samba] Samba - Performance Issues how are u measuring read and write speeds? -----Original Message----- From: Vinay Kudithipudi [mailto:VKudithipudi@spirian.com] Sent: Wednesday, October 02, 2002 12:57 PM To: samba@lists.samba.org Subject: [Samba] Samba - Performance Issues Hello Guys, I am having some problems with configuring SAMBA with regards to performance. We are running SAMBA 2.2.3a on Dual PIII 1Ghz machines with 512MB of RAM. The server is running on a default server installation of Red Hat 7.2. We have a 500Gb RAID 5 drive using the Promise SX6000 Raid controller. Currently we are only getting a throughput of ~5MB/S for writes and ~13MB/S for reads. Comparing that to NFS which yealds ~15MB/S for reads and ~13MB/S for writes. This clearly rules out the Hardware bottleneck since XFS is able to perform better on the same hardware. Here is the smb.conf I am using currently ===SMB.CONF==[global] workgroup = MYGROUP netbios name = {HOSTNAME} wins server = {WINSSERVER} server string = {HOSTNAME} security = SHARE encrypt passwords = Yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No oplocks = No level2 oplocks = No [homes] comment = Home Directories read only = No browseable = No [Data] comment = Data Backup Directory path = /home/gm/data guest account = valid users = spirian read only = No ===== I was wondering if there is any documentation for fine tuning SAMBA. Any help is appreciated. Thanks. Vinay Kudithipudi Associate Network Operations Engineer Spirian Technologies Inc. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
On Wed, Oct 02, 2002 at 12:57:17PM -0500, Vinay Kudithipudi wrote:> Hello Guys, > I am having some problems with configuring SAMBA with regards to > performance. We are running SAMBA 2.2.3a on Dual PIII 1Ghz machines with > 512MB of RAM. The server is running on a default server installation of Red > Hat 7.2. We have a 500Gb RAID 5 drive using the Promise SX6000 Raid > controller. > Currently we are only getting a throughput of ~5MB/S for writes and > ~13MB/S for reads. Comparing that to NFS which yealds ~15MB/S for reads and > ~13MB/S for writes. This clearly rules out the Hardware bottleneck since XFS > is able to perform better on the same hardware. Here is the smb.conf I am > using currentlyWhat clients are you using ? This can make a big difference in how you tune things. Jeremy.
On Wed, Oct 02, 2002 at 12:57:17PM -0500, Vinay Kudithipudi wrote:> > ===SMB.CONF==> [global] > workgroup = MYGROUP > netbios name = {HOSTNAME} > wins server = {WINSSERVER} > server string = {HOSTNAME} > security = SHARE > encrypt passwords = Yes > log file = /var/log/samba/log.%m > max log size = 50 > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192IIRC, someone wrote in recently saying that the sizes of SO_RCVBUF and SO_SNDBUF can have huge effects on performance, and setting them to 8192 (which used to be a good idea) can reduce performance. I suggest removing them from the socket options and measuring the performance at the defaults, then try modifying them and comparing performance. Also, TCP_NODELAY is the default, right? So maybe just comment out the socket options parameter, restart the daemons, and check to see if the problem goes away.> I was wondering if there is any documentation for fine tuning SAMBA. Any > help is appreciated. Thanks.Nowadays, it's usually best to "leave things alone" (i.e., at the defaults). It's important to not change things in a way that reduces performance. Jay Ts
Jay - I tried the test without any options (i.e. all default) and still get the same results Javid - I am using copy Jeremy - All clients are Win2k or WinXP. I would very much like to blame the hardware for the problem, but since NFS yields better performance I am thinking SAMBA may be the cause here. Vinay Kudithipudi Associate Network Operations Engineer Spirian Technologies Inc. -----Original Message----- From: Jay Ts [mailto:jay@jayts.cx] Sent: Wednesday, October 02, 2002 1:50 PM To: Vinay Kudithipudi Cc: samba@lists.samba.org Subject: Re: [Samba] Samba - Performance Issues On Wed, Oct 02, 2002 at 12:57:17PM -0500, Vinay Kudithipudi wrote:> > ===SMB.CONF==> [global] > workgroup = MYGROUP > netbios name = {HOSTNAME} > wins server = {WINSSERVER} > server string = {HOSTNAME} > security = SHARE > encrypt passwords = Yes > log file = /var/log/samba/log.%m > max log size = 50 > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192IIRC, someone wrote in recently saying that the sizes of SO_RCVBUF and SO_SNDBUF can have huge effects on performance, and setting them to 8192 (which used to be a good idea) can reduce performance. I suggest removing them from the socket options and measuring the performance at the defaults, then try modifying them and comparing performance. Also, TCP_NODELAY is the default, right? So maybe just comment out the socket options parameter, restart the daemons, and check to see if the problem goes away.> I was wondering if there is any documentation for fine tuning SAMBA. > Any help is appreciated. Thanks.Nowadays, it's usually best to "leave things alone" (i.e., at the defaults). It's important to not change things in a way that reduces performance. Jay Ts -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Hi I have noticed that win98 clients have better performance tha win2k with sp3 .I have a similar setu with a 800 GB volumes . I will try the same tests from a windows 98 and compare .Also I have a 4 nic teamed using Intel ANS softwate that improved performance . Thanks ----- Original Message ----- From: <jra@dp.samba.org> To: "Vinay Kudithipudi" <VKudithipudi@spirian.com> Cc: <samba@lists.samba.org> Sent: Wednesday, October 02, 2002 2:24 PM Subject: Re: [Samba] Samba - Performance Issues> On Wed, Oct 02, 2002 at 12:57:17PM -0500, Vinay Kudithipudi wrote: > > Hello Guys, > > I am having some problems with configuring SAMBA with regards to > > performance. We are running SAMBA 2.2.3a on Dual PIII 1Ghz machines with > > 512MB of RAM. The server is running on a default server installation ofRed> > Hat 7.2. We have a 500Gb RAID 5 drive using the Promise SX6000 Raid > > controller. > > Currently we are only getting a throughput of ~5MB/S for writes and > > ~13MB/S for reads. Comparing that to NFS which yealds ~15MB/S for readsand> > ~13MB/S for writes. This clearly rules out the Hardware bottleneck sinceXFS> > is able to perform better on the same hardware. Here is the smb.conf Iam> > using currently > > What clients are you using ? This can make a big difference in how > you tune things. > > Jeremy. > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >