On Wed, Feb 25, 2009 at 03:14:11PM +0800, Siquijor Philips wrote: > Can someone explain why FreeBSD network throughput (both incoming and > outgoing traffic) decreases when smaller frame size being processed? > With smaller frame size, corresponding packet rate (packet/sec or pps) > increases and experiencing dropped packets. What causes dropping of > packets with small frame size?
Traffic bandwidth does not matter (or much less), PPS rate matters. Packets drop due to high pps rate. Higher packet size, lesser pps saturates link and pps just can't grow high. It can with smaller packets. I've tried to make FreeBSD 7.1 act as packet generator with Intel dualcore 2.8Ghz processor and onboard gigabit ethernet em0 using ng_source(4) low-overhead packet emitter. And it can't saturate gigabit link with UDP packets (64 bytes payload, 130 bytes at wire - including inter-packet gaps, FCSs etc.) It takes all CPU cycles of one 2.8Ghz core to send 750Kpps - I've profiled kernel with DTrace. It seems it spends many cycles inside inlined mtx_lock/mtx_unlock functions. My em(4) driver is statically compiled into the kernel so mtx_lock/mtx_unload are inlined assembler ops. Eugene Grosbein _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"