I'm trying to get my network setup as streamlined as possible. I ran a brain-dead-simple speed test of Samba and I'm very confused by the results. Here's my setup: Fast new WinXP Pro machine NetGear GA311 gigabit ethernet ^ | dedicated gigabit ethernet line (no switch) v RTL8169 gigabit ethernet Relatively fast new Debian Linux machine I set up ramdisks on both machines to ensure that the hard drives were not the bottleneck. I then put a roughly 7 MB file on the linux ramdisk and mounted that disk on my windows box via Samba. I then wrote a .bat script on the windows side that copies the file from the linux ramdisk to the windows ramdisk over and over again. On the windows side, the network utilization monitor says that network load stays around 25-30%. It occasionally gets as high as 40%. CPU usage on the windows side is negligible. On the linux side, top reports that smbd is taking about 30% CPU. I'm confused by the fact that neither network utilization nor CPU usage on either computer is getting anywhere near 100%. I'm wondering if there are any config settings I can tweak to get Samba to fill my gigabit line more fully. Thanks alot. Jeff Morrow
On Thu, 18 Nov 2004 22:53:05 -0800 Jeff Morrow <jmorrow@jmorrow.org> wrote:> I then put a roughly 7 MB file on the linux ramdisk > and mounted that disk on my windows box via Samba. I then wrote a > .bat script on the windows side that copies the file from the linux > ramdisk to the windows ramdisk over and over again.I'm a complete newbie, but would using a bigger file not be more accurate. Using a 7MB file on a 1Gbit (+- 130Mbit/sec transfer *theoretical*) is not going to stress the connection. My guess would be that the file is transfered without utilizing the line. and since it's copying back and forth it's est a new connection for each transfer. then again .. I might be completely wrong ;P -- Henti Smith henti@geekware.co.za +27 82 958 2525 http://www.geekware.co.za DISCLAIMER : Unauthorised use of characters, images, sounds, odors, severed limbs, noodles, wierd dreams, strange looking fruit, oxygen, and certain parts of Jupiter are strictly forbidden. If I find you violating, or molesting my property in any way, I will employ a pair of burly convicts to find you, kidnap you, and perform god-awful sexual experiments on you until you lose the ability to sound out vowels. I don't know why you are still reading this, but by doing so you have proven that you have far too much time on your hands, and you should go plant a tree, or read a book or something. - http://www.ctrlaltdel-online.com/
> -----Original Message----- > From: Jeff Morrow [mailto:jmorrow@jmorrow.org]> On the windows side, the network utilization monitor says > that network > load stays around 25-30%. It occasionally gets as high as 40%. CPU > usage on the windows side is negligible. On the linux side, > top reports that smbd is taking about 30% CPU. > > I'm confused by the fact that neither network utilization nor > CPU usage on either computer is getting anywhere near 100%.I doubt you'll ever hit 100%. The most basic reason is you're using a PCI bus ethernet controller. A quick check of the specs for the RTL8169 you mentioned shows it's a 32-bit, 33/66 MHz PCI card. If you're using it in a 33 MHz slot, your maximum bus bandwidth is only a little over 1 Gbit/sec. If your disk controller is sharing the same bus, that means you can do maybe 500 Mbit/sec, tops. If it's in a 64 bit slot, you can double those numbers, but you're still not leaving much of a margin.
> -----Original Message----- > From: David Brodbeck [mailto:DavidB@mail.interclean.com]> If it's in a 64 bit slot, you can double those numbers, but > you're still not leaving much of a margin.That should say "in a 66 MHz slot".
Jeff Morrow wrote:> I'm trying to get my network setup as streamlined as possible. I ran a > brain-dead-simple speed test of Samba and I'm very confused by the > results. Here's my setup: > > Fast new WinXP Pro machine > NetGear GA311 gigabit ethernet > ^ > | dedicated gigabit ethernet line (no switch) > v > RTL8169 gigabit ethernet > Relatively fast new Debian Linux machine > > I set up ramdisks on both machines to ensure that the hard drives were > not the bottleneck. I then put a roughly 7 MB file on the linux ramdisk > and mounted that disk on my windows box via Samba. I then wrote a .bat > script on the windows side that copies the file from the linux ramdisk > to the windows ramdisk over and over again. > > On the windows side, the network utilization monitor says that network > load stays around 25-30%. It occasionally gets as high as 40%. CPU > usage on the windows side is negligible. On the linux side, top reports > that smbd is taking about 30% CPU. > > I'm confused by the fact that neither network utilization nor CPU usage > on either computer is getting anywhere near 100%. I'm wondering if > there are any config settings I can tweak to get Samba to fill my > gigabit line more fully. > > Thanks alot. > > Jeff MorrowHave you tried in your smb.conf: socket options = TCP_NODELAY SO_SNDBUF=65536 SO_RCVBUF=65536 IPTOS_LOWDELAY -- Regards -------------------------------------- Gerald Drouillard Technology Architect Drouillard & Associates, Inc. http://www.Drouillard.ca