Petri Helenius writes: > options upped the performance to ~300Mbps:ish while 4.7-STABLE gives twice > that using the same application. The machine is 2.4GHz Dual P4. >
Yes, -current is much, much slower for networking than -STABLE. This is because at this point, network drivers have paid all the cost for medium-grained locking (interrupts as kernel threads, mutexes all over the place, etc), but network drivers cannot take advantage of any of this yet. I think the last bottleneck to get network drivers out from under Giant is the VM system. Currently, when a network driver allocates an mbuf or mbuf cluster, it must hold Giant. This is because the mbuf allocator may need to call into the VM system to allocate more memory. If this could be solved (via either bringing the VM system out from under Giant, or by having some sort of thread to handle mbuf allocations asynchronously in a different context), I think -current would be almost as fast as -stable for networking. FWIW, I see 1875Mb/sec on 4.5-STABLE and 1200Mb/sec on -current with my Myrinet GM driver on Dual 1GHz PIIIs. This is with zero-copy sends enabled on -current. Since P4's have gobs of memory bandwidth, I doubt zero-copy sends would help you very much. Drew To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message