Hi. Between 2 linux (2.6.11 client and 2.6.14 server) machines connected by a 100Mb link I get samba performance copying a file from the client to the server through a smbmounted share of around 4.2MB/s Is this to be expected? Or can it be improved (and if so, how?) I've tried tweaking SO_(SND/RCV)BUF (after reading numerous articles on samba performance...), but it doesn't seem to have any effect. Unfortunately, I can't use jumbo frames at this moment either. I've tried this with shares on ReiserFS and XFS and there is no difference in the transfer rate. Both machines are not even close to maxxed on cpu (both are at around 10-15% cpu when the transfer is running). Thanks. -- James
On Wed, Feb 01, 2006 at 08:05:28AM -0800, James Lamanna wrote:> Hi. > > Between 2 linux (2.6.11 client and 2.6.14 server) machines connected by > a 100Mb link I get samba performance copying a file from the client to > the server through a smbmounted share of around 4.2MB/s > Is this to be expected? Or can it be improved (and if so, how?) I've > tried tweaking SO_(SND/RCV)BUF (after reading numerous articles on > samba performance...), but it doesn't seem to have any effect. > Unfortunately, I can't use jumbo frames at this moment either. > > I've tried this with shares on ReiserFS and XFS and there is no > difference in the transfer rate. > Both machines are not even close to maxxed on cpu (both are at around > 10-15% cpu when the transfer is running).Add "use sendfile = yes", this should help. Jeremy.
James Lamanna wrote:> Hi. > > Between 2 linux (2.6.11 client and 2.6.14 server) machines connected by > a 100Mb link I get samba performance copying a file from the client to > the server through a smbmounted share of around 4.2MB/s > Is this to be expected? Or can it be improved (and if so, how?) I've > tried tweaking SO_(SND/RCV)BUF (after reading numerous articles on > samba performance...), but it doesn't seem to have any effect. > Unfortunately, I can't use jumbo frames at this moment either. > > I've tried this with shares on ReiserFS and XFS and there is no > difference in the transfer rate. > Both machines are not even close to maxxed on cpu (both are at around > 10-15% cpu when the transfer is running). > > Thanks. > > -- JamesHave a look at: http://www.drouillard.ca/Tips&Tricks/Samba/Oplocks.htm Basically, it comes down to try this: socket options = TCP_NODELAY SO_SNDBUF=65536 SO_RCVBUF=65536 IPTOS_LOWDELAY lock spin time = 15 lock spin count = 30 -- Regards -------------------------------------- Gerald Drouillard Technology Architect Drouillard & Associates, Inc. http://www.Drouillard.ca
You are definately getting sub-par performance. The difference between where you are and where you need to be is not tweaking. We run Samba right "out of the box" for a high-speed realtime requirement, and we don't have to tweak it at all to get 40 or so megabytes/sec out of it with properly configured servers and gigabit networking. And we could probably push it harder if we want to - we're getting high responsiveness at that level. I would look at the client side of the problem - try a newer kernel. We had performance problems using 2 Linux boxes in past kernels - I don't remember when it was solved, but it works beautifully now. On 2/1/06, James Lamanna <jlamanna@gmail.com> wrote:> > Hi. > > Between 2 linux (2.6.11 client and 2.6.14 server) machines connected by > a 100Mb link I get samba performance copying a file from the client to > the server through a smbmounted share of around 4.2MB/s > Is this to be expected? Or can it be improved (and if so, how?) I've > tried tweaking SO_(SND/RCV)BUF (after reading numerous articles on > samba performance...), but it doesn't seem to have any effect. > Unfortunately, I can't use jumbo frames at this moment either. > > I've tried this with shares on ReiserFS and XFS and there is no > difference in the transfer rate. > Both machines are not even close to maxxed on cpu (both are at around > 10-15% cpu when the transfer is running). > > Thanks. > > -- James > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >