Date: Tue, 21 Feb 2006 19:54:56 +0300 From: FreeLSD <freelsd@rea.mbslab.kiae.ru> To: hackers@freebsd.org Subject: FreeBSD-6 and em interface speed Message-ID: <20060221165456.GZ44603@rea.mbslab.kiae.ru>
next in thread | raw e-mail | index | archive | help
Good day! I've obtained the following strang results with the em Ethernet interface speeds on a 6.1-PRERELEASE: Polling on: UDP stream to FreeBSD: 327843.84 Kbit/sec, TCP stream to FreeBSD: 524550.12 Kbit/sec. Polling off: UDP stream to FreeBSD: 740409.38 Kbit/sec, TCP stream to FreeBSD: 794348.44 Kbit/sec. It is funny that TCP speed is greater than UDP. It can be related to the hardware, not to the OS, because I've seen such behaviour on a linux-2.6. But on linux-2.4 with the same hardware as for FreeBSD and with the same source host I've got UDP stream to Linux: 927891.44 Kbit/sec, TCP stream to Linux: 850202.50 Kbit/sec. The figures are higher and UDP rate > TCP rate. The questions: can anyone explain the relation 'TCP rate > UDP rate'? Why polling slows down the interface? And can FreeBSD stack can be tuned to get the Linux performance? Kernel config deviations from GENERIC: options SCHED_ULE options ADAPTIVE_GIANT device pf device pflog device pfsync System is running at hz = 1000. Thanks! -- rea I often think it's a pity that Noah and his party didn't miss the boat. -Mark Twain
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060221165456.GZ44603>