Re: [Samba] samba 3 performance issues
Content-Type: multipart/signed; micalg=pgp-sha1;
On Thu, 2006-03-30 at 13:52 -0500, Rohit Kumar Mehta wrote:[color=blue]
> I believe I have some hardware or configuration related performance=20
> issues running samba 3.0.14a-3sarge.
> Our server is an Intel Celeron 2 Ghz with 512 MB of RAM and a 3ware
> card using SATA disks in a RAID 5 configuration (3ware controller card).=20
> We have a gigabit network and are using Intel Gigabit ethernet cards=20
> When copying large files to the samba shares on the system, the transfer
> rate maxes out near 100 mb/s. We tested with nttcp and were able to get
> speeds of nearly 800mb/s. So I think it is safe to conclude this is not=20
> a network issue.
> Various tools like top, xosview and mpstat convinced us that we are=20
> bound in the CPU. Stopping the samba file transfer and the cpu idle time=20
> exceeds 90%. We are convinced that our CPU is the bottleneck,
> but not sure why.
> #cat /proc/cpuinfo
> processor : 0
> vendor_id : GenuineIntel
> cpu family : 15
> model : 2
> model name : Intel(R) Celeron(R) CPU 2.00GHz
> stepping : 9
> cpu MHz : 1996.920
> cache size : 128 KB
> fdiv_bug : no
> hlt_bug : no
> f00f_bug : no
> coma_bug : no
> fpu : yes
> fpu_exception : yes
> cpuid level : 2
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge=20
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
> bogomips : 3956.73
> Does anyone have any advice on how to speed up our file transfers? We=20
> regularly have to 18 GB worth of files to this system, and it would be=20
> very good if we could speed it up. At current speeds, we get no=20
> advantage at all from even having gigabit network cards!
> Please feel free to ask me any other questions about our system setup.=20
> Thanks in advance for any advice,[/color]
Have you done *ANY* system caching parameters, filesystem tuning, or
Samba Config tuning?
What have you done besides verify it is not the network itself?
Have you tested throughput for the 3ware card?
I can tell you this, if you have the RAID-5 setup not-optimally to work
with the block sizing on your Filesystem you'll never get excellent
I always tend to use largest blocking factors with the 3ware cards for
RAID-5. This (for me at least) has proven the fastest and least latency
ridden settings for me. But then I am using XFS on all of my 3ware
For Mirroring, I typically let the defaults work. Defaults have been by
far the best setup for most filesystems. If you still believe you are
suffering from CPU overload, I'd suggest sending it to the RAID-5 array
with over compressed scp (with mild compression of 4 or 5) and then
without compression. See what you get.
I am betting the real problem comes from multiple bus-mastering cards
conflicting or colliding. The Intel-E1000 and the 3ware card are
definitely both bus-mastering.
There are a couple of things on the Samba side you can do. Turn off
Logging (you don't need it really), change the read and send buffer
sizes, change the TCP setting it uses to be more in line with Gigabit,
move to using Jumbo frames, get a TOE (TCP Offload Engine) NIC.
Then if you still have issues, turn on logging for the stuff you are
worried about (auth would be 0, etc...) and then add a sniffer to you
connection. You'll definitely find something. My gut reaction is that
since this is a Celeron Processor, you really need to goto 64-bit slots
on the mother board. Getting a PCI-X capable motherboard would greatly
help your problems.
One last thing, any of the 95xx cards from 3ware are 3.3V only and are
PCI2.3 compliant, they will function incorrectly possibly even be ruined
or not recognized by a 5V or Auto-detect 5v/3.3v slot. The 9xxx, 8xxx
and 7xxx cards can be used in either a 5V or 3.3V PCI slot.=20
The technology that is=20
Stronger, Better, Faster: Linux
Use Debian GNU/Linux, its a bazaar thing
NOTICE: Due to Presidential Executive Orders, the=20
National Security Agency may have read this email=20
without warning, warrant, or notice, and certainly=20
without probable cause. They may do this without=20
any judicial or legislative oversight. You have no=20
recourse nor protection.
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v18.104.22.168 (GNU/Linux)
-----END PGP SIGNATURE-----
Content-Type: text/plain; charset="us-ascii"
To unsubscribe from this list go to the following URL and read the